Browse Source

chooselist 新增参数 sql 2022-06-09 sxm

master
[li_she] 4 years ago
parent
commit
b4be9e3d12
  1. 5
      src/views/modules/common/Chooselist.vue

5
src/views/modules/common/Chooselist.vue

@ -82,6 +82,7 @@ export default {
param2: '', param2: '',
param3: '', param3: '',
param: '', param: '',
conSql: '',
param4: this.$store.state.user.site, param4: this.$store.state.user.site,
dataList: [], dataList: [],
baseListData: { baseListData: {
@ -101,10 +102,11 @@ export default {
methods: { methods: {
// //
init(tagNo,param) {
init(tagNo,param,conSql) {
this.tagNo = tagNo this.tagNo = tagNo
this.visible = true; this.visible = true;
this.param = param this.param = param
this.conSql = conSql?conSql: ''
// tagNo // tagNo
getChooselist({"tagNo": tagNo}).then(({data}) => { getChooselist({"tagNo": tagNo}).then(({data}) => {
this.columnList = [] this.columnList = []
@ -183,6 +185,7 @@ export default {
sql += " and site=" + this.param4 sql += " and site=" + this.param4
} }
} }
sql += this.conSql
getChooselistData({"sqlcode": sql}).then(({data}) => { getChooselistData({"sqlcode": sql}).then(({data}) => {
if (data.code == 0) { if (data.code == 0) {
this.dataList = data.baseListData; this.dataList = data.baseListData;

Loading…
Cancel
Save