|
@@ -314,7 +314,7 @@
|
|
|
<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>
|
|
|
</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">
|
|
|
<el-progress :percentage="Number(scope.row.rate)" color="#409eff" />
|
|
|
</template>
|
|
@@ -740,7 +740,8 @@ export default {
|
|
|
formLabelWidth1: '60px',
|
|
|
project_Milepost: [],
|
|
|
get_Milepost_data: {}, // 点击原点数据
|
|
|
- condition: ''
|
|
|
+ condition: '',
|
|
|
+ noRequire: ''
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -818,6 +819,32 @@ export default {
|
|
|
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) {
|
|
|
this.condition = ''
|
|
|
this.condition = e
|
|
@@ -1040,6 +1067,7 @@ export default {
|
|
|
},
|
|
|
get_allTask() {
|
|
|
// 获取全部任务
|
|
|
+ this.noRequire = false
|
|
|
this.condition = Number(this.projectId[1])
|
|
|
taskList({
|
|
|
projectId: Number(this.projectId[1]),
|
|
@@ -1054,6 +1082,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
NoOwnership() { // 无归属需求任务
|
|
|
+ this.noRequire = true
|
|
|
this.condition = Number(this.projectId[1])
|
|
|
taskList({
|
|
|
projectId: Number(this.projectId[1]),
|
|
@@ -1090,11 +1119,11 @@ export default {
|
|
|
},
|
|
|
handleSizeChange(size) { // 分页
|
|
|
this.pageSize = size
|
|
|
- this.click_name(this.condition)
|
|
|
+ this.click_name1(this.condition)
|
|
|
},
|
|
|
handleCurrentChange(curIndex) { // 分页
|
|
|
this.curIndex = curIndex
|
|
|
- this.click_name(this.condition)
|
|
|
+ this.click_name1(this.condition)
|
|
|
}
|
|
|
}
|
|
|
}
|