whj hace 1 año
padre
commit
0bcd37702c
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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)