Bladeren bron

项目类型附件管理无法修改问题修复

lizhenhao 2 jaren geleden
bovenliggende
commit
33d9616a8d
1 gewijzigde bestanden met toevoegingen van 4 en 2 verwijderingen
  1. 4 2
      src/views/modules/program/configuration/typeFileDict/TypeFileDictForm.vue

+ 4 - 2
src/views/modules/program/configuration/typeFileDict/TypeFileDictForm.vue

@@ -95,6 +95,8 @@
         this.loading = false
         this.$nextTick(() => {
           this.$refs.inputForm.resetFields()
+          this.inputForm.attachmentProjectType = attachmentProjectType
+          this.inputForm.attachmentProjectSort = attachmentProjectSort
           if (method === 'edit' || method === 'view') { // 修改或者查看
             this.loading = true
             this.programTypeFileDictService.queryById(this.inputForm.id).then(({data}) => {
@@ -103,11 +105,11 @@
               if (this.inputForm.requiredStage === '0') {
                 this.inputForm.requiredStage = ''
               }
+              this.inputForm.attachmentProjectType = attachmentProjectType
+              this.inputForm.attachmentProjectSort = attachmentProjectSort
               this.loading = false
             })
           }
-          this.inputForm.attachmentProjectType = attachmentProjectType
-          this.inputForm.attachmentProjectSort = attachmentProjectSort
         })
       },
       // 表单提交