|
|
@@ -353,6 +353,39 @@
|
|
|
this.workReport.executorJobNum = this.$store.state.user.info?.jobNumber;
|
|
|
},
|
|
|
watch: {
|
|
|
+ taskInfo: {
|
|
|
+ immediate: true,
|
|
|
+ handler() {
|
|
|
+ if (this.taskInfo.code) {
|
|
|
+ this.getReportCount();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ 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
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
formData: {
|
|
|
immediate: true,
|
|
|
handler() {
|