电子标签

This commit is contained in:
hongchao 2025-11-12 17:23:26 +08:00
parent a53f2c45f3
commit c106cda3cd
1 changed files with 5 additions and 1 deletions

View File

@ -482,6 +482,7 @@ export default {
queryParams: {
maCode: null,
maCodeTwo: null,
devType: null,
},
isJj:null, //
tagInfo:{
@ -510,6 +511,7 @@ export default {
this.optionList = response.data.map((type) => ({
value: type.maId,
label: type.maCode,
devType: type.devType,
}));
console.log("xxxxxxxxxxxxxxxxxxxxxx",this.optionList)
});
@ -517,7 +519,8 @@ export default {
//
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){
this.tagInfo = response.data[0]
}
@ -550,6 +553,7 @@ export default {
this.isJj = null;
this.queryParams.maCode=null
this.queryParams.maCodeTwo=null
this.queryParams.devType=null
this.resetForm('queryForm')
this.optionList = []
this.handleQuery()