qinzhipeng_v 5 年 前
コミット
068fc1f248
1 ファイル変更33 行追加4 行削除
  1. 33 4
      src/views/projectManage/projectList/projectViewDetails.vue

+ 33 - 4
src/views/projectManage/projectList/projectViewDetails.vue

@@ -314,7 +314,7 @@
               <el-table-column label="测试负责人" min-width="100" align="center" show-overflow-tooltip>
               <el-table-column label="测试负责人" min-width="100" align="center" show-overflow-tooltip>
                 <template slot-scope="scope">{{ scope.row.qaObject === null ? '' : scope.row.qaObject.name }}</template>
                 <template slot-scope="scope">{{ scope.row.qaObject === null ? '' : scope.row.qaObject.name }}</template>
               </el-table-column>
               </el-table-column>
-              <el-table-column label="任务进度" min-width="100" align="center">
+              <el-table-column label="任务进度" min-width="150" align="center">
                 <template slot-scope="scope">
                 <template slot-scope="scope">
                   <el-progress :percentage="Number(scope.row.rate)" color="#409eff" />
                   <el-progress :percentage="Number(scope.row.rate)" color="#409eff" />
                 </template>
                 </template>
@@ -740,7 +740,8 @@ export default {
       formLabelWidth1: '60px',
       formLabelWidth1: '60px',
       project_Milepost: [],
       project_Milepost: [],
       get_Milepost_data: {}, // 点击原点数据
       get_Milepost_data: {}, // 点击原点数据
-      condition: ''
+      condition: '',
+      noRequire: ''
     }
     }
   },
   },
   created() {
   created() {
@@ -818,6 +819,32 @@ export default {
         this.$router.push({ name: '项目', query: {}})
         this.$router.push({ name: '项目', query: {}})
       })
       })
     },
     },
+    click_name1(e) {
+      this.condition = ''
+      this.condition = e
+      // 需求下任务
+      if (this.noRequire === true) {
+        taskList({
+          projectId: e,
+          noRequire: true,
+          curIndex: this.curIndex,
+          pageSize: this.pageSize
+        }).then(res => {
+          this.all_task = res.data
+          this.total = res.total
+        })
+      }
+      if (this.noRequire === false) {
+        taskList({
+          projectId: e,
+          curIndex: this.curIndex,
+          pageSize: this.pageSize
+        }).then(res => {
+          this.all_task = res.data
+          this.total = res.total
+        })
+      }
+    },
     click_name(e) {
     click_name(e) {
       this.condition = ''
       this.condition = ''
       this.condition = e
       this.condition = e
@@ -1040,6 +1067,7 @@ export default {
     },
     },
     get_allTask() {
     get_allTask() {
       // 获取全部任务
       // 获取全部任务
+      this.noRequire = false
       this.condition = Number(this.projectId[1])
       this.condition = Number(this.projectId[1])
       taskList({
       taskList({
         projectId: Number(this.projectId[1]),
         projectId: Number(this.projectId[1]),
@@ -1054,6 +1082,7 @@ export default {
       })
       })
     },
     },
     NoOwnership() { // 无归属需求任务
     NoOwnership() { // 无归属需求任务
+      this.noRequire = true
       this.condition = Number(this.projectId[1])
       this.condition = Number(this.projectId[1])
       taskList({
       taskList({
         projectId: Number(this.projectId[1]),
         projectId: Number(this.projectId[1]),
@@ -1090,11 +1119,11 @@ export default {
     },
     },
     handleSizeChange(size) { //  分页
     handleSizeChange(size) { //  分页
       this.pageSize = size
       this.pageSize = size
-      this.click_name(this.condition)
+      this.click_name1(this.condition)
     },
     },
     handleCurrentChange(curIndex) { //  分页
     handleCurrentChange(curIndex) { //  分页
       this.curIndex = curIndex
       this.curIndex = curIndex
-      this.click_name(this.condition)
+      this.click_name1(this.condition)
     }
     }
   }
   }
 }
 }