|
|
@@ -177,28 +177,32 @@
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ infoData: {
|
|
|
+ immediate: true,
|
|
|
+ handler() {
|
|
|
+ if (
|
|
|
+ this.infoData.id &&
|
|
|
+ this.currentInfo.code == this.firstInfo.code &&
|
|
|
+ this.infoData.deviceCode
|
|
|
+ ) {
|
|
|
+ // 设备
|
|
|
+ this.workReportDeviceList = Object.assign(
|
|
|
+ {},
|
|
|
+ this.workReportDeviceList,
|
|
|
+ {
|
|
|
+ code: this.infoData.deviceCode,
|
|
|
+ name: this.infoData.deviceName,
|
|
|
+ rootCategoryLevelId: this.infoData.rootCategoryLevelId,
|
|
|
+ path: this.infoData.path[0]?.pathName,
|
|
|
+ model: this.infoData.model,
|
|
|
+ sourceInstanceId: this.infoData.sourceInstanceId,
|
|
|
+ specification: this.infoData.specification
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
- // infoData: {
|
|
|
- // immediate: true,
|
|
|
- // handler () {
|
|
|
- // if (this.infoData.id&& this.currentInfo.code == this.firstInfo.code) {
|
|
|
- // // 设备
|
|
|
- // this.workReportDeviceList = Object.assign(
|
|
|
- // {},
|
|
|
- // this.workReportDeviceList,
|
|
|
- // {
|
|
|
- // code: this.infoData.deviceCode,
|
|
|
- // name: this.infoData.deviceName,
|
|
|
- // rootCategoryLevelId: this.infoData.rootCategoryLevelId,
|
|
|
- // path: this.infoData.path[0]?.pathName,
|
|
|
- // model: this.infoData.model,
|
|
|
- // sourceInstanceId: this.infoData.sourceInstanceId,
|
|
|
- // specification: this.infoData.specification
|
|
|
- // }
|
|
|
- // );
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
},
|
|
|
created() {
|
|
|
this.workReport.executorId = this.$store.state.user.info?.userId;
|