电子标签
This commit is contained in:
parent
a53f2c45f3
commit
c106cda3cd
|
|
@ -482,6 +482,7 @@ export default {
|
||||||
queryParams: {
|
queryParams: {
|
||||||
maCode: null,
|
maCode: null,
|
||||||
maCodeTwo: null,
|
maCodeTwo: null,
|
||||||
|
devType: null,
|
||||||
},
|
},
|
||||||
isJj:null, //判断是什么类型
|
isJj:null, //判断是什么类型
|
||||||
tagInfo:{
|
tagInfo:{
|
||||||
|
|
@ -510,6 +511,7 @@ export default {
|
||||||
this.optionList = response.data.map((type) => ({
|
this.optionList = response.data.map((type) => ({
|
||||||
value: type.maId,
|
value: type.maId,
|
||||||
label: type.maCode,
|
label: type.maCode,
|
||||||
|
devType: type.devType,
|
||||||
}));
|
}));
|
||||||
console.log("xxxxxxxxxxxxxxxxxxxxxx",this.optionList)
|
console.log("xxxxxxxxxxxxxxxxxxxxxx",this.optionList)
|
||||||
});
|
});
|
||||||
|
|
@ -517,7 +519,8 @@ export default {
|
||||||
|
|
||||||
// 获取列表
|
// 获取列表
|
||||||
async getList() {
|
async getList() {
|
||||||
await getListTag({'maCode':this.queryParams.maCodeTwo}).then((response) => {
|
this.queryParams.devType = this.optionList.find((item) => item.label == this.queryParams.maCodeTwo)?.devType;
|
||||||
|
await getListTag({'maCode':this.queryParams.maCodeTwo,'devType':this.queryParams.devType}).then((response) => {
|
||||||
if(response.data &&response.data.length!=0){
|
if(response.data &&response.data.length!=0){
|
||||||
this.tagInfo = response.data[0]
|
this.tagInfo = response.data[0]
|
||||||
}
|
}
|
||||||
|
|
@ -550,6 +553,7 @@ export default {
|
||||||
this.isJj = null;
|
this.isJj = null;
|
||||||
this.queryParams.maCode=null
|
this.queryParams.maCode=null
|
||||||
this.queryParams.maCodeTwo=null
|
this.queryParams.maCodeTwo=null
|
||||||
|
this.queryParams.devType=null
|
||||||
this.resetForm('queryForm')
|
this.resetForm('queryForm')
|
||||||
this.optionList = []
|
this.optionList = []
|
||||||
this.handleQuery()
|
this.handleQuery()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue