pull/56/head
lukeyan 1 year ago
parent 13350c918a
commit a041827095

@ -354,7 +354,7 @@ export default {
open_perception_dialog(num, row) {
if (num === "1") {
//
this.$refs.perceptionForm.open();
this.$refs.perceptionForm.open(num);
} else if (num === "2") {
//
if (this.handle_perception.length != 1) {

@ -342,10 +342,10 @@ export default {
companyName: "",
deviceName: "",
deviceIp: "",
deviceVideoParentType: "",
deviceVideoParentTypeCn: "",
deviceVideoSubType: "",
deviceVideoSubTypeCn: "",
devicePerceptionParentType: "",
devicePerceptionParentTypeCn: "",
devicePerceptionSubType: "",
devicePerceptionSubTypeCn: "",
isDoorwayVideoCn: "",
isDoorwayVideo: "",
directionCn: "",
@ -411,13 +411,13 @@ export default {
},
//
parent_change(val) {
this.form.deviceVideoParentType = this.form_list.parent_type.find(
this.form.devicePerceptionParentType = this.form_list.parent_type.find(
(item) => item.dictLabel === val
).dictValue;
},
//
son_change(val) {
this.form.deviceVideoSubType = this.form_list.son_type.find(
this.form.devicePerceptionSubType = this.form_list.son_type.find(
(item) => item.dictLabel === val
).dictValue;
},
@ -447,7 +447,7 @@ export default {
addPerceptionList(this.form).then((res) => {
this.visible = false;
console.log(res);
this.$message.success("新建数据成功");
this.$message.success("新建成功");
//
this.$emit("refresh_perception");
});
@ -455,7 +455,7 @@ export default {
changePerceptionList(this.form).then((res) => {
this.visible = false;
console.log(res);
this.$message.success("修改数据成功");
this.$message.success("修改成功");
this.$emit("refresh_perception");
});
}

@ -383,7 +383,7 @@ export default {
addVideoList(this.form).then((res) => {
this.visible = false;
console.log(res);
this.$message.success("新建数据成功");
this.$message.success("新建成功");
//
this.$emit("refresh_video");
});
@ -391,7 +391,7 @@ export default {
changeVideoList(this.form).then((res) => {
this.visible = false;
console.log(res);
this.$message.success("修改数据成功");
this.$message.success("修改成功");
this.$emit("refresh_video");
});
}

Loading…
Cancel
Save