NEZ-351 perf: 滑框重构完成(alertmsg预览还有小bug)

This commit is contained in:
chenjinsong
2020-07-30 18:37:04 +08:00
parent b2472d9f12
commit bcdc152d5d
19 changed files with 845 additions and 1179 deletions

View File

@@ -259,14 +259,23 @@
deep: true,
immediate: true,
handler(n) {
//console.info(n);
this.editAsset = JSON.parse(JSON.stringify(n));
if (!this.editAsset.accounts) {
this.$set(this.editAsset, "accounts", []);
} else {
this.editAsset.accounts.length > 0 && (this.accountType = this.editAsset.accounts[0].protocol);
}
console.info(n)
this.getVendorAndModelOptionData(n.model.type.code);
this.$set(this.editAsset, "modelId", n.model.id);
let initLocationData={
idc: n.idc,
cabinet: n.cabinet,
u: [n.cabinetStart, n.cabinetEnd]
};
this.$nextTick(() => {
this.$refs.locationCascader.initComponet(initLocationData);
this.getVendorAndModelOptionData(n.model.type.code);
});
}
},
'editAsset.accounts': {