Forráskód Böngészése

文件详情文档阶段状态回显

Alfyn 6 napja
szülő
commit
b0d0ed7f26
1 módosított fájl, 4 hozzáadás és 2 törlés
  1. 4 2
      src/views/document/fileDetail.vue

+ 4 - 2
src/views/document/fileDetail.vue

@@ -262,8 +262,8 @@ export default {
       docStageTable: [],
       docTypeTable: [],
       dictionaryForm: {
-        doc_stage: '0',
-        doc_type: 'DR',
+        doc_stage: null,
+        doc_type: null,
       },
       dictionary:[],
       //命名规则
@@ -476,6 +476,8 @@ export default {
     async initFileInfo() {
       const { data } = await getFileDetail(this.info.file.id)
       this.info.file = data
+      this.dictionaryForm.doc_stage = data.doc_stage ?? null
+      this.dictionaryForm.doc_type = data.doc_type ?? null
       localStorage.setItem(`fileDetailItem_${this.$route.query.id}`, JSON.stringify(this.info))
     },
     //审批进度