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: '',
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;

Loading…
Cancel
Save