whj 10 달 전
부모
커밋
119b74b569
2개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/views/custom/className/modules/BaseForm.vue
  2. 1 0
      src/views/custom/form/modules/component/modules/Detail.vue

+ 1 - 0
src/views/custom/className/modules/BaseForm.vue

@@ -113,6 +113,7 @@ export default {
         return
       }
       this.modalTitle = '编辑'
+      this.code = record.code
       const {
         form: { setFieldsValue },
       } = this

+ 1 - 0
src/views/custom/form/modules/component/modules/Detail.vue

@@ -173,6 +173,7 @@ export default {
       if (val.id === this.model.id) return
       this.model = val
       this.config = config
+      this.additionalField = []
       if (this.model.attrs.dict !== undefined && this.model.attrs.dict !== '') {
         this.dictChange(this.model.attrs.dict)
       }