sunjh 6 anos atrás
pai
commit
3e8cd7d1c5
2 arquivos alterados com 43 adições e 5 exclusões
  1. 38 2
      src/components/project/Project.vue
  2. 5 3
      src/components/task/Task.vue

+ 38 - 2
src/components/project/Project.vue

@@ -257,7 +257,7 @@
 
     <div class="create-body" v-if="!isModifyMode">
       <div class="title h2">报告列表</div>
-      <report-list/>
+      <report-list v-bind:reports="project.reportList"/>
     </div>
   </div>
 </template>
@@ -339,7 +339,34 @@ export default {
             datetime: "2018-11-11 11:11:01",
             worker: ""
           }
-        ]
+        ],
+        reportList: [
+          {
+            id: 1,
+            type: '项目可行性报告',
+            file: []
+          },
+          {
+            id: 2,
+            type: '项目测试方案(汇总)',
+            file: [{name: 'report2', url: 'report2.excel'}]
+          },
+          {
+            id: 3,
+            type: '项目测试报告(汇总)',
+            file: [{name: 'report3', url: 'report3.excel'}]
+          },
+          {
+            id: 4,
+            type: '项目缺陷报告(汇总)',
+            file: [{name: 'report4', url: 'report4.excel'}]
+          },
+          {
+            id: 5,
+            type: '项目用例报告(汇总)',
+            file: [{name: 'report5', url: 'report5.excel'}]
+          }
+        ],
       },
       analyseDemandList: [
         {
@@ -350,6 +377,15 @@ export default {
             url: "feasibilityReport.docx"
           },
           priceAuditReport: { name: "价格审核告", url: "priceAuditReport.docx" }
+        },
+        {
+          id: "1",
+          institution: "上软",
+          feasibilityReport: {
+            name: "可行性分析报告",
+            url: "feasibilityReport.docx"
+          },
+          priceAuditReport: { name: "价格审核告", url: "priceAuditReport.docx" }
         }
       ],
       pickerOptions: {

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

@@ -107,6 +107,8 @@ export default {
       isModifyMode: false,
       institutionArray: Enum.institution,
       tabPosition: 'top',
+      taskId:0,
+      projectId:0,
       task: {
         id: 0,
         projectId: 0,
@@ -219,8 +221,8 @@ export default {
   },
   methods: {
     init () {
-      this.task.taskId = +this.$route.params.taskId
-      this.task.projectId = +this.$route.params.projectId
+      this.taskId = +this.$route.params.taskId
+      this.projectId = +this.$route.params.projectId
     },
     updateLocation (location) {
       var provinceName = ''
@@ -286,7 +288,7 @@ export default {
     toProject () {
       this.$router.push({
         name: 'Project',
-        params: {projectId: this.task.projectId}
+        params: {projectId: this.projectId}
       })
     },
     applyTask () {