whj 1 year ago
parent
commit
0bcd37702c
1 changed files with 3 additions and 1 deletions
  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)