|
@@ -1314,6 +1314,9 @@
|
|
|
createName: userInfo.name,
|
|
createName: userInfo.name,
|
|
|
createTime: dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
|
createTime: dayjs(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
|
|
});
|
|
});
|
|
|
|
|
+ this.$refs.fileTable.setData(
|
|
|
|
|
+ this.tableData.taskParam[this.currentIndex]['fileParam']
|
|
|
|
|
+ );
|
|
|
},
|
|
},
|
|
|
addJob() {
|
|
addJob() {
|
|
|
this.$refs.jobRef.open();
|
|
this.$refs.jobRef.open();
|
|
@@ -1450,6 +1453,7 @@
|
|
|
},
|
|
},
|
|
|
tabsChange() {
|
|
tabsChange() {
|
|
|
console.log(this.activeName);
|
|
console.log(this.activeName);
|
|
|
|
|
+ console.log(this.tableData.taskParam[this.currentIndex]);
|
|
|
if (this.activeName === '工艺参数') {
|
|
if (this.activeName === '工艺参数') {
|
|
|
// 工艺参数
|
|
// 工艺参数
|
|
|
this.$refs.table.setData(
|
|
this.$refs.table.setData(
|
|
@@ -1480,13 +1484,31 @@
|
|
|
this.tableData.taskParam[this.currentIndex].replaceMaterial || []
|
|
this.tableData.taskParam[this.currentIndex].replaceMaterial || []
|
|
|
);
|
|
);
|
|
|
} else if (this.activeName === '工种') {
|
|
} else if (this.activeName === '工种') {
|
|
|
- this.$refs.jobTable.setData(
|
|
|
|
|
- this.tableData.taskParam[this.currentIndex].aptitudeParam || []
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ if (
|
|
|
|
|
+ JSON.stringify(
|
|
|
|
|
+ this.tableData.taskParam[this.currentIndex].aptitudeParam
|
|
|
|
|
+ ) == '{}'
|
|
|
|
|
+ ) {
|
|
|
|
|
+ this.tableData.taskParam[this.currentIndex].aptitudeParam = [];
|
|
|
|
|
+ this.$refs.jobTable.setData([]);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$refs.jobTable.setData(
|
|
|
|
|
+ this.tableData.taskParam[this.currentIndex].aptitudeParam
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
} else if (this.activeName === '工艺文件') {
|
|
} else if (this.activeName === '工艺文件') {
|
|
|
- this.$refs.fileTable.setData(
|
|
|
|
|
- this.tableData.taskParam[this.currentIndex].fileParam || []
|
|
|
|
|
- );
|
|
|
|
|
|
|
+ if (
|
|
|
|
|
+ JSON.stringify(
|
|
|
|
|
+ this.tableData.taskParam[this.currentIndex].fileParam
|
|
|
|
|
+ ) == '{}'
|
|
|
|
|
+ ) {
|
|
|
|
|
+ this.tableData.taskParam[this.currentIndex].fileParam = [];
|
|
|
|
|
+ this.$refs.fileTable.setData([]);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$refs.fileTable.setData(
|
|
|
|
|
+ this.tableData.taskParam[this.currentIndex].fileParam
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
openParam(type) {
|
|
openParam(type) {
|