whj 1 年之前
父节点
当前提交
0bcd37702c
共有 1 个文件被更改,包括 3 次插入1 次删除
  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)