Kaynağa Gözat

feat(CrewInfo): 优化船员体检表下载功能

- 增加对 crewForm.crewExamRecViewUrl 的判断
- 添加 disabled 属性的判断,提高组件的灵活性和可用性
wzg 11 ay önce
ebeveyn
işleme
79d8bf653f
2 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 1 0
      .gitignore
  2. 1 1
      src/components/CrewInfo.vue

+ 1 - 0
.gitignore

@@ -31,3 +31,4 @@ node_modules
 dist
 
 src/.DS_Store
+.DS_Store

+ 1 - 1
src/components/CrewInfo.vue

@@ -131,7 +131,7 @@
           >
             下载船员体检表
           </el-button>
-          <div v-else>暂无</div>
+          <div v-if="!crewForm.crewExamRecViewUrl && disabled">暂无</div>
           <el-upload
             v-if="!disabled"
             :action="store.state.baseurl + '/ship/crew/uploadCert'"