@@ -1280,12 +1280,22 @@
this.fileShow = true;
},
fileClose(val) {
+
if (val == false) {
this.fileShow = false;
} else {
-
- console.log(val, 22)
+ this.$refs.fileTable.setData([
+ ...val,
+ ...this.$refs.fileTable.getData()
+ ]);
+ this.$set(
+ this.tableData.taskParam[this.currentIndex],
+ 'fileParam',
+ this.$refs.fileTable.getData()
+ );
}
@@ -252,7 +252,7 @@
handleSave() {
if(this.selection.length == 0) return this.$message.warning('请选择一条数据')
- this.$emit('close', this.selection);
+ this.$emit('close', JSON.parse(JSON.stringify(this.selection)));
/* 表格操作按钮事件 */