Browse Source

默认选中经济数据库和全部刷新

cxmo 10 months ago
parent
commit
b8bfdd7c9d

+ 1 - 1
src/views/system_manage/components/refreshConfig.vue

@@ -173,7 +173,7 @@ export default {
                     frequency_n:item.RefreshFrequencyDay,
                     frequency_n:item.RefreshFrequencyDay,
                     time:item.RefreshTime,
                     time:item.RefreshTime,
                     num:item.RefreshDataNum,
                     num:item.RefreshDataNum,
-                    isAll:false
+                    isAll:Boolean(item.RefreshAllData)
                 }
                 }
             })
             })
             return {
             return {

+ 5 - 0
src/views/system_manage/dataRefreshSetting.vue

@@ -348,6 +348,11 @@ export default {
                 this.getSelectOption()
                 this.getSelectOption()
                 this.selectOptionChange()
                 this.selectOptionChange()
             }
             }
+            //如果有二级数据源,默认选中第一个
+            if(this.SubSourceList.length){
+                this.SubSource = this.SubSourceList[0].SubSource
+                this.handleSubSourceChange()
+            }
         },
         },
         handleSubSourceChange(){
         handleSubSourceChange(){
             this.getSelectOption()
             this.getSelectOption()