|
@@ -33,7 +33,7 @@
|
|
|
|
|
|
<el-input :placeholder="$t('SystemManage.DataRefresh.indicator_name')" prefix-icon="el-icon-search" clearable
|
|
|
v-model="selectOption.keyWord" @input="selectOptionChange('keyWord')"
|
|
|
- v-if="![34,11].includes(Source)&&Source"></el-input>
|
|
|
+ ></el-input>
|
|
|
|
|
|
</div>
|
|
|
<div class="table-box" v-if="hasSelectOption">
|
|
@@ -272,7 +272,7 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
settingTab:'time',
|
|
|
- Source:'',
|
|
|
+ Source:0,
|
|
|
SourceList:[],
|
|
|
SubSource:'',
|
|
|
SubSourceList:[],
|
|
@@ -291,7 +291,7 @@ export default {
|
|
|
sortType:'',//升序降序
|
|
|
sortParam:'',//排序字段
|
|
|
},
|
|
|
- hasSelectOption:false,
|
|
|
+ hasSelectOption: true,
|
|
|
selectOptionLoading:false,
|
|
|
|
|
|
|
|
@@ -324,7 +324,7 @@ export default {
|
|
|
statusSourceList:[],
|
|
|
statusEdbClassifyList:[],
|
|
|
searchParams:{
|
|
|
- Source:'',
|
|
|
+ Source:0,
|
|
|
Status:'',
|
|
|
Frequency:'',
|
|
|
SysUserId:'',
|
|
@@ -444,11 +444,11 @@ export default {
|
|
|
this.isSetTimeDialogShow = true
|
|
|
if(isDefault){
|
|
|
//判断数据源是否选择
|
|
|
- if(!this.Source){
|
|
|
- // this.$message.warning("请选择数据源")
|
|
|
- this.$message.warning(this.$t('SystemManage.DataRefresh.select_source_pld'))
|
|
|
- return
|
|
|
- }
|
|
|
+ // if(!this.Source){
|
|
|
+ // // this.$message.warning("请选择数据源")
|
|
|
+ // this.$message.warning(this.$t('SystemManage.DataRefresh.select_source_pld'))
|
|
|
+ // return
|
|
|
+ // }
|
|
|
/* if(this.SubSourceList.length&&!this.SubSource){
|
|
|
this.$message.warning("$t('SystemManage.DataRefresh.complete_data_source')")
|
|
|
return
|
|
@@ -537,7 +537,7 @@ export default {
|
|
|
const source = this.SourceList.find(i=>i.Source===this.Source)||{Child:[]}
|
|
|
this.SubSourceList = source.Child
|
|
|
this.SubSource=''
|
|
|
- this.hasSelectOption = ![34,11].includes(this.Source)
|
|
|
+ this.hasSelectOption = true
|
|
|
if(this.hasSelectOption){
|
|
|
this.resetSelect()
|
|
|
this.tableData = []
|
|
@@ -568,7 +568,7 @@ export default {
|
|
|
},
|
|
|
//获取分类列表
|
|
|
async getClassifyList(){
|
|
|
- if(!this.Source) return
|
|
|
+ // if(!this.Source) return
|
|
|
const res = await dataRefreshInterface.getClassifyList({
|
|
|
Source:Number(this.Source)
|
|
|
})
|
|
@@ -589,7 +589,7 @@ export default {
|
|
|
//获取终端编码列表
|
|
|
await this.getClassifyList()
|
|
|
//获取分类列表
|
|
|
- await this.getTerminalCodeList()
|
|
|
+ // await this.getTerminalCodeList()
|
|
|
this.selectOptionLoading = false
|
|
|
},
|
|
|
//切换数据源时重置表格选项
|
|
@@ -1094,8 +1094,10 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
mounted(){
|
|
|
- this.getSourceList()
|
|
|
+ // this.getSourceList()
|
|
|
this.getUserList()
|
|
|
+ this.getTableData('optionChange')
|
|
|
+ this.getSelectOption()
|
|
|
}
|
|
|
};
|
|
|
</script>
|