guarantee-lsq há 2 anos atrás
pai
commit
9117f0982e

+ 1 - 1
src/views/check/checkstandard/CheckStandard.vue

@@ -452,7 +452,7 @@ export default {
     handleCopy (record) {
       fetchCheckStandard({ id: record.id }).then(res => {
         const modal = this.$refs.baseModal
-        // res.data.id = null
+        res.data.id = null
         modal.base(res.data)
       })
     },

+ 7 - 3
src/views/check/checkstandard/modules/BaseForm.vue

@@ -480,9 +480,13 @@ export default {
       this.sbId = record.sbId
       this.level = record.level
       // 查询列表
-      fetchCheckStandard({ id: record.id }).then(res => {
-        this.data = res.data.detailList
-      })
+      if (record.id !== null) {
+        fetchCheckStandard({ id: record.id }).then(res => {
+          this.data = res.data.detailList
+        })
+      } else {
+        this.data = record.detailList
+      }
       this.checkImgList = record.checkImgList
       this.checkFileList = record.checkFileList
       if (record.lastDate != null) {