Переглянути джерело

fix:修改单次任务页面样式

ly 10 місяців тому
батько
коміт
150a22ff1a

+ 1 - 1
src/views/business/production/onceWork/index.vue

@@ -220,7 +220,7 @@
             >{{resultLable(scope.row)}}</el-button>
             <el-button v-if="(scope.row.record !== null && scope.row.record.status!==3) && scope.row.record.handlerId  ===  useUserStore().user.userId"  link type="primary" icon="Edit" size="small" style="margin: 0"
                        @click="viewResult(scope.row,false)" />
-            <el-button v-if="scope.row.record !== null && scope.row.record.status === 3" v-hasPermi="['business:production:onceWork:perEdit']"  link type="primary" icon="Edit" size="small" style="margin: 0"
+            <el-button v-hasPermi="['business:production:onceWork:perEdit']"  link type="primary" icon="Edit" size="small" style="margin: 0"
                        @click="viewResult(scope.row,false)" />
           </div>
 

+ 4 - 4
src/views/business/production/onceWork/resultDialog.vue

@@ -242,7 +242,7 @@ function openView(id,status,userId,resultStatus,view){
     fileEntityList.value =response.data
     filesTable.value.forEach((file)=>{
       preList.value.push(baseUrl+file.fileUrl)
-      viewList.value.push(baseUrl+file.fileUrl)
+      viewList.value.push(file.fileUrl)
     })
   })
 }
@@ -258,7 +258,7 @@ const onsumbit = () => {
         fileEntityList.value =response.data
         filesTable.value.forEach((file)=>{
           preList.value.push(baseUrl+file.fileUrl)
-          viewList.value.push(baseUrl+file.fileUrl)
+          viewList.value.push(file.fileUrl)
         })
       })
     })
@@ -305,7 +305,7 @@ const handlePase = (e)=>{
           fileEntity.originalFileName = res.originalFilename;
           fileEntity.fileUrl = res.fileName;
         }
-        viewList.value.push(`${baseUrl}+${res.url}`);
+        viewList.value.push(`${res.url}`);
         fileEntityList.value.push(fileEntity);
       })
     })
@@ -356,7 +356,7 @@ const handleOnChange = (e)=>{
           fileEntity.originalFileName = res.originalFilename;
           fileEntity.fileUrl = res.fileName;
         }
-        viewList.value.push(`${baseUrl}+${res.url}`);
+        viewList.value.push(`${res.url}`);
         fileEntityList.value.push(fileEntity);
       })
   }