ysy %!s(int64=2) %!d(string=hai) anos
pai
achega
b656dfc398
Modificáronse 1 ficheiros con 5 adicións e 3 borrados
  1. 5 3
      src/views/technology/productParam/components/user-edit.vue

+ 5 - 3
src/views/technology/productParam/components/user-edit.vue

@@ -359,8 +359,9 @@ export default {
 
 
     chooseModal(data) {
-      let arr = deepClone(data)
-      this.$refs.table.setData([...arr, ...this.$refs.table.getData()]);
+      this.$refs.table.setData([...data, ...this.$refs.table.getData()]);
+      let _arr = JSON.stringify([...data, ...this.$refs.table.getData()])
+      this.$set(this.form, 'taskParam', _arr)
     },
 
     /* 表格数据源 */
@@ -429,7 +430,8 @@ export default {
     },
 
     chooseProcess(data) {
-      this.$set(this.form, 'produceParam', data)
+      let _arr = JSON.stringify(data)
+      this.$set(this.form, 'produceParam', _arr)
     },
   },