|
|
@ -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; |
|
|
|