1078-完善接入国标通道页面以及属性

This commit is contained in:
panlinlin
2024-06-20 06:21:20 +08:00
parent edeea61318
commit 5db39a2265
7 changed files with 251 additions and 53 deletions

View File

@@ -306,27 +306,29 @@ export default {
this.initData();
},
add: function () {
this.$refs.channelEdit.openDialog(null, this.deviceId, () => {
this.$refs.channelEdit.close();
this.$message({
showClose: true,
message: "添加成功",
type: "success",
});
setTimeout(this.getList, 200)
})
// this.$refs.channelEdit.openDialog(null, this.deviceId, () => {
// this.$refs.channelEdit.close();
// this.$message({
// showClose: true,
// message: "添加成功",
// type: "success",
// });
// setTimeout(this.getList, 200)
// })
this.$router.push(`/jtChannelEdit/${this.device.id}`);
},
// 编辑
handleEdit(row) {
this.$refs.channelEdit.openDialog(row, this.deviceId, () => {
this.$refs.channelEdit.close();
this.$message({
showClose: true,
message: "修改成功",
type: "success",
});
setTimeout(this.getList, 200)
})
// this.$refs.channelEdit.openDialog(row, this.deviceId, () => {
// this.$refs.channelEdit.close();
// this.$message({
// showClose: true,
// message: "修改成功",
// type: "success",
// });
// setTimeout(this.getList, 200)
// })
this.$router.push(`/jtChannelEdit/${this.device.id}/${row.id}`);
}
}
};