郭超 há 4 anos atrás
pai
commit
2f217852fd

+ 4 - 4
src/components/project/Project.vue

@@ -708,7 +708,7 @@
       },
       receiveProjectFail(error) {
         this.hideLoading()
-        notify('error', '接收项目失败:' + error.data)
+        notify('error', '接收项目失败' + error.data)
       },
       //拒绝项目
       rejectProject() {
@@ -824,7 +824,7 @@
       },
       deleteTaskFail(error) {
         console.log(error)
-        notify('error', '删除失败:' + error)
+        notify('error', '删除失败' + error)
       },
       beforeApkUpload(file) {
         return true;
@@ -876,7 +876,7 @@
           }
         }).catch((error) => {
           this.hideLoading()
-          // notify('error', error.data)
+          notify('error', '获取项目详情失败:' + error.data)
         })
       },
 
@@ -923,7 +923,7 @@
           notify('success', '需求文档上传成功')
         }).catch((error) => {
           this.hideLoading()
-          notify('error', '需求文档上传失败:' + error.data)
+          notify('error', '需求文档上传失败' + error.data)
         })
       },
       uploadApkFile(param) {

+ 4 - 6
src/components/report/ProjectReport.vue

@@ -45,14 +45,12 @@
               将文件拖到此处,或
               <em>点击上传</em>
             </div>
-            <div class="el-upload__tip" slot="tip">请上传报告文件</div>
+<!--            <div class="el-upload__tip" slot="tip">请上传报告文件</div>-->
           </el-upload>
-          <div v-if="!isModifyMode">
-            <span v-if="report.fileUrl==null"><i class="el-icon-document"></i>暂无文件</span>
-            <a :href="report.fileUrl" v-if="report.fileUrl!=null">
+            <span v-if="report.fileUrl==''"><i class="el-icon-document"></i>暂无文件</span>
+            <a :href="report.fileUrl" v-if="report.fileUrl!=''">
               <el-link :underline="false" type="primary"><i class="el-icon-document"></i>下载文档</el-link>
             </a>
-          </div>
         </el-form-item>
 
         <el-form-item label="结论" prop="conclusion">
@@ -151,7 +149,7 @@
             dependencyCode: this.taskId == null ? this.projectId : this.taskId,
             target: this.report.target,
             content: this.report.content,
-            file: '123.pdf',
+            file: this.report.fileUrl,
             conclusion: this.report.conclusion
           }
           console.log(newReport)

+ 5 - 5
src/components/task/Task.vue

@@ -243,7 +243,7 @@
                 trigger="hover"
                 content="测评机构已提交结束申请,请确认是否结束该任务">
                 <el-button v-if="taskOperationControl.confirmFinish" type="success" size="mini" slot="reference"
-                           @click="endTask()">确认结束
+                           @click="endTask()">结束任务
                 </el-button>
               </el-popover>
 
@@ -730,7 +730,7 @@ export default {
     //获取任务详情失败时回调函数
     getTaskDetailFail(error) {
       this.hideLoading()
-      // notify('error', '获取任务详情失败:' + error.data)
+      notify('error', '获取任务详情失败:' + error.data)
     },
 
     //处理显示报告
@@ -832,7 +832,7 @@ export default {
     },
     //更新任务信息失败时回调函数
     updateTaskFail(error) {
-      notify('error', '修改失败:' + error.data)
+      notify('error', '修改失败' + error.data)
       this.hideLoading()
     },
     //上传任务需求文档
@@ -848,7 +848,7 @@ export default {
         // console.log(res)
         this.task.requireDocUrl = res.data
       }).catch((error) => {
-        // notify('error', '上传失败:' + error.data)
+        // notify('error', '上传失败' + error.data)
         this.uploadRequireDocFail(error)
       })
     },
@@ -865,7 +865,7 @@ export default {
         this.task.endPoint.threePageUrl = res.data
         console.log("this.task.endPoint.threePageUrl " + this.task.endPoint.threePageUrl)
       }).catch((error) => {
-        // notify('error', '上传失败:' + error.data)
+        // notify('error', '上传失败' + error.data)
         this.uploadRequireDocFail(error)
       })
     },

+ 1 - 1
src/pages/Homepage/HomepagePrivate.vue

@@ -251,7 +251,7 @@
     watch: {
       getUserInfo(val) {
         this.setUserInfo();
-        // this.loadData();
+        this.loadData();
       }
     }
   }