|
|
@ -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");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|