소스 검색

fix:修改任务制定-查看数据项附件问题

luzhixia 1 개월 전
부모
커밋
d22cc95361

+ 3 - 1
src/components/task/mounTaskComponents/auditNoticeTab.vue

@@ -251,6 +251,7 @@
                         上传附件
                       </el-button>
                       <el-button
+                        v-if="scope.row.dataValue"
                         type="text"
                         size="small"
                         @click="handleViewScan(scope.row.dataValue)"
@@ -426,6 +427,7 @@
                       上传附件
                     </el-button> -->
                       <el-button
+                        v-if="scope.row.dataValue"
                         type="primary"
                         size="small"
                         :disabled="false"
@@ -1145,7 +1147,7 @@
         if (fileUrl.startsWith('http')) {
           _fileUrl = fileUrl
         } else {
-          fileUrl = window.context.form + fileUrl
+          _fileUrl = window.context.form + fileUrl
         }
         // 对文件URL进行Base64编码
         const encodedUrl = encodeURIComponent(Base64.encode(_fileUrl))

+ 2 - 1
src/components/task/taskComponents/auditNoticeTab.vue

@@ -297,6 +297,7 @@
                       上传附件
                     </el-button> -->
                       <el-button
+                        v-if="scope.row.dataValue"
                         type="primary"
                         size="small"
                         :disabled="false"
@@ -831,7 +832,7 @@
         if (fileUrl.startsWith('http')) {
           _fileUrl = fileUrl
         } else {
-          fileUrl = window.context.form + fileUrl
+          _fileUrl = window.context.form + fileUrl
         }
         // 对文件URL进行Base64编码
         const encodedUrl = encodeURIComponent(Base64.encode(_fileUrl))

+ 2 - 1
src/components/task/taskInfo.vue

@@ -943,6 +943,7 @@
                       上传附件
                     </el-button> -->
                       <el-button
+                        v-if="scope.row.dataValue"
                         type="primary"
                         size="small"
                         :disabled="false"
@@ -1968,7 +1969,7 @@
         if (fileUrl.startsWith('http')) {
           _fileUrl = fileUrl
         } else {
-          fileUrl = window.context.form + fileUrl
+          _fileUrl = window.context.form + fileUrl
         }
         // 对文件URL进行Base64编码
         const encodedUrl = encodeURIComponent(Base64.encode(_fileUrl))

+ 2 - 1
src/views/EntDeclaration/auditTaskManagement/components/AuditDocumentTab.vue

@@ -200,6 +200,7 @@
                         上传附件
                       </el-button> -->
                       <el-button
+                        v-if="scope.row.dataValue"
                         type="text"
                         size="small"
                         :disabled="false"
@@ -350,7 +351,7 @@
         if (fileUrl.startsWith('http')) {
           _fileUrl = fileUrl
         } else {
-          fileUrl = window.context.form + fileUrl
+          _fileUrl = window.context.form + fileUrl
         }
         // 对文件URL进行Base64编码
         const encodedUrl = encodeURIComponent(Base64.encode(_fileUrl))

+ 1 - 0
src/views/costAudit/auditInfo/auditManage/auditDocumentsMain.vue

@@ -284,6 +284,7 @@
                         上传附件
                       </el-button>
                       <el-button
+                        v-if="scope.row.dataValue"
                         type="text"
                         size="small"
                         @click="handleViewScan(scope.row.dataValue)"

+ 2 - 1
src/views/costAudit/projectInfo/auditTaskManage/taskCustomizedRelease/auditNoticeTab.vue

@@ -283,6 +283,7 @@
                         上传附件
                       </el-button>
                       <el-button
+                        v-if="scope.row.dataValue"
                         type="text"
                         size="small"
                         @click="handleViewScan(scope.row.dataValue)"
@@ -956,7 +957,7 @@
         if (fileUrl.startsWith('http')) {
           _fileUrl = fileUrl
         } else {
-          fileUrl = window.context.form + fileUrl
+          _fileUrl = window.context.form + fileUrl
         }
         // 对文件URL进行Base64编码
         const encodedUrl = encodeURIComponent(Base64.encode(_fileUrl))