guarantee-lsq 2 년 전
부모
커밋
9117f0982e
2개의 변경된 파일8개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      src/views/check/checkstandard/CheckStandard.vue
  2. 7 3
      src/views/check/checkstandard/modules/BaseForm.vue

+ 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) {