From b4be9e3d1268a7af11225e188a30d7768e917239 Mon Sep 17 00:00:00 2001 From: "[li_she]" <[li.she@xujiesoft.com]> Date: Thu, 9 Jun 2022 10:59:41 +0800 Subject: [PATCH] =?UTF-8?q?chooselist=20=E6=96=B0=E5=A2=9E=E5=8F=82?= =?UTF-8?q?=E6=95=B0=20sql=202022-06-09=20sxm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/common/Chooselist.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;