|
@@ -442,12 +442,10 @@ export default class extends Vue {
|
|
|
if (this.curEquip.id) {
|
|
|
//更新
|
|
|
this.handleUpdateEquip(this.curEquip);
|
|
|
- this.handleChangeDevice()
|
|
|
} else {
|
|
|
this.curEquip.classCode = this.deviceVal[1]
|
|
|
// 创建
|
|
|
this.handleCreateEquip(this.curEquip);
|
|
|
- this.handleChangeDevice()
|
|
|
}
|
|
|
}
|
|
|
// 更新设备
|
|
@@ -462,6 +460,7 @@ export default class extends Vue {
|
|
|
if (res.result == 'success') {
|
|
|
this.$message.success('更新成功');
|
|
|
this.dialogVisible = false;
|
|
|
+ this.handleChangeDevice()
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -477,6 +476,7 @@ export default class extends Vue {
|
|
|
if (res.result == 'success') {
|
|
|
this.$message.success('创建成功');
|
|
|
this.dialogVisible = false;
|
|
|
+ this.handleChangeDevice()
|
|
|
}
|
|
|
})
|
|
|
}
|