whj 1 vuosi sitten
vanhempi
commit
0bcd37702c
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      src/views/check/checkstandard/modules/BatchBaseForm.vue

+ 3 - 1
src/views/check/checkstandard/modules/BatchBaseForm.vue

@@ -218,7 +218,9 @@ export default {
       this.data.push({})
     },
     handleCopy(record) {
-      this.data.push(this.BaseTool.Object.copy(record))
+      const newVal = this.BaseTool.Object.copy(record)
+      delete newVal.id
+      this.data.push(newVal)
     },
     handleDelOne(record, i) {
       this.data.splice(i, 1)