bug修复
This commit is contained in:
parent
76f7af32db
commit
4a7edc0560
|
|
@ -164,7 +164,6 @@ export default {
|
|||
},
|
||||
async mounted() {
|
||||
this.open = true
|
||||
await this.getRanges();
|
||||
if (this.editParams) {
|
||||
await Object.assign(this.projectParams, this.editParams);
|
||||
// 查询所属设备
|
||||
|
|
@ -180,6 +179,7 @@ export default {
|
|||
} else {
|
||||
this.subSort = 1;
|
||||
}
|
||||
await this.getRanges();
|
||||
this.open = false
|
||||
},
|
||||
data() {
|
||||
|
|
@ -286,21 +286,67 @@ export default {
|
|||
};
|
||||
});
|
||||
// 获取工程下拉选
|
||||
let projRes = await queryProjApi({
|
||||
isAll: 0,
|
||||
});
|
||||
this.projRange = projRes.data.map((item) => {
|
||||
return {
|
||||
label: item.proName,
|
||||
value: item.id,
|
||||
};
|
||||
});
|
||||
if(this.subSort==1)
|
||||
{
|
||||
let projRes = await queryProjApi({
|
||||
isAll: 0,
|
||||
});
|
||||
this.projRange = projRes.data.map((item) => {
|
||||
return {
|
||||
label: item.proName,
|
||||
value: item.id,
|
||||
};
|
||||
});
|
||||
}
|
||||
if(this.subSort==2){
|
||||
// 获取工程下拉选
|
||||
let projRes = queryProjApi({
|
||||
isAll: 0
|
||||
}).then(projRes =>{
|
||||
this.projRange = projRes.data.map((item) => {
|
||||
return {
|
||||
label: item.proName,
|
||||
value: item.id,
|
||||
};
|
||||
});
|
||||
})
|
||||
}
|
||||
},
|
||||
departChange(e) {
|
||||
this.departRange.forEach((item) => {
|
||||
if (e === item.value) {
|
||||
this.projectParams.departName = item.label;
|
||||
if(this.subSort==2){
|
||||
// 获取工程下拉选
|
||||
let projRes = queryProjApi({
|
||||
isAll: 0,
|
||||
departId: e,
|
||||
}).then(projRes =>{
|
||||
this.projRange = projRes.data.map((item) => {
|
||||
return {
|
||||
label: item.proName,
|
||||
value: item.id,
|
||||
};
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
if(this.subSort==1){
|
||||
// 获取工程下拉选
|
||||
let projRes = queryProjApi({
|
||||
isAll: 0,
|
||||
departId: e,
|
||||
}).then(projRes =>{
|
||||
this.projRange = projRes.data.map((item) => {
|
||||
return {
|
||||
label: item.proName,
|
||||
value: item.id,
|
||||
};
|
||||
});
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
},
|
||||
projChange(e) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue