Selaa lähdekoodia

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

cxmo 10 kuukautta sitten
vanhempi
commit
b8bfdd7c9d

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

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

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

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