whj 1 jaar geleden
bovenliggende
commit
0bcd37702c
1 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  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)