电子标签
This commit is contained in:
parent
a53f2c45f3
commit
c106cda3cd
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue