diff --git a/src/views/modules/common/Chooselist.vue b/src/views/modules/common/Chooselist.vue index ef177cb..2adcaca 100644 --- a/src/views/modules/common/Chooselist.vue +++ b/src/views/modules/common/Chooselist.vue @@ -82,6 +82,7 @@ export default { param2: '', param3: '', param: '', + conSql: '', param4: this.$store.state.user.site, dataList: [], baseListData: { @@ -101,10 +102,11 @@ export default { methods: { // 获取 用户的配置 - init(tagNo,param) { + init(tagNo,param,conSql) { this.tagNo = tagNo this.visible = true; this.param = param + this.conSql = conSql?conSql: '' // 根据 tagNo 获取列表 getChooselist({"tagNo": tagNo}).then(({data}) => { this.columnList = [] @@ -183,6 +185,7 @@ export default { sql += " and site=" + this.param4 } } + sql += this.conSql getChooselistData({"sqlcode": sql}).then(({data}) => { if (data.code == 0) { this.dataList = data.baseListData;