提交 #56

Merged
lukeyan merged 1 commits from lukeyan into master 1 year ago

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

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

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

Loading…
Cancel
Save