|
@@ -67,6 +67,9 @@
|
|
|
</el-select>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column label="健康状态" width="200" align="center" show-overflow-tooltip>
|
|
|
+ <template slot-scope="scope">{{ scope.row.stageString }}</template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="所属需求" width="200" align="center" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">{{ scope.row.requireName }}</template>
|
|
|
</el-table-column>
|
|
@@ -79,12 +82,24 @@
|
|
|
<el-table-column label="测试负责人" width="100" align="center" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">{{ scope.row.qaObject ? scope.row.qaObject.name : '' }}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="任务进度" min-width="150" align="center">
|
|
|
+ <el-table-column label="任务进度" min-width="100" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
<el-progress :percentage="Number(scope.row.rate && scope.row.rate.substring(0,4))" color="#409eff" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
+ <div align="right">
|
|
|
+ <el-pagination
|
|
|
+ background
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :current-page="searchForm.curIndex"
|
|
|
+ :page-size="searchForm.pageSize"
|
|
|
+ :page-sizes="[15,30,45]"
|
|
|
+ :total="total"
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
<TestReport v-if="dialogTestReport" ref="TestReport" />
|
|
|
<DailyReport v-if="dialogDailyReport" ref="DailyReport" />
|
|
|
<ClientReport v-if="dialogClientReport" ref="ClientReport" />
|
|
@@ -105,12 +120,12 @@ import '@/styles/PublicStyle/index.scss'
|
|
|
import TestReport from '@/views/Platform/presentation/Templates/TestReport' // 提测
|
|
|
import DailyReport from '@/views/Platform/presentation/Templates/DailyReport' // 日报
|
|
|
import ClientReport from '@/views/Platform/presentation/Templates/ClientReport' // 准出
|
|
|
-import { taskList } from '@/api/projectIndex'
|
|
|
import { taskUpdate } from '@/api/projectViewDetails'
|
|
|
import { configShowTaskEnum } from '@/api/taskIndex'
|
|
|
import scheduleList from './scheduleList'
|
|
|
import modifySchedule from './modifySchedule'
|
|
|
import taskDialog from '@/views/projectManage/taskList/dialog/taskDialog' // 任务状态修改(已上线/已提测/已准出)
|
|
|
+import { getVersionHomeTaskList } from '@/api/version.js'
|
|
|
export default {
|
|
|
components: {
|
|
|
TestReport,
|
|
@@ -120,9 +135,19 @@ export default {
|
|
|
taskDialog,
|
|
|
modifySchedule
|
|
|
},
|
|
|
+ props: {
|
|
|
+ searchForms: { type: Object, required: true }
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
imgUrl: imgUrl,
|
|
|
+ total: 0,
|
|
|
+ searchForm: {
|
|
|
+ clientType: null,
|
|
|
+ versionType: null,
|
|
|
+ curIndex: 1,
|
|
|
+ pageSize: 15
|
|
|
+ },
|
|
|
tableList: [], // 排期bable验证
|
|
|
changeData: new Map(),
|
|
|
allChange: false, // 是否全展开
|
|
@@ -152,11 +177,16 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async get_allTask() { // 获取全部任务
|
|
|
- const res = await taskList({
|
|
|
- projectId: this.$route.query.id
|
|
|
+ const res = await getVersionHomeTaskList({
|
|
|
+ bizid: localStorage.getItem('bizId'),
|
|
|
+ curIndex: this.searchForm.curIndex,
|
|
|
+ pageSize: this.searchForm.pageSize,
|
|
|
+ versionType: this.searchForms.versionType,
|
|
|
+ clientType: this.searchForms.clientType
|
|
|
})
|
|
|
if (res.code === 200) {
|
|
|
- this.all_task = res.data
|
|
|
+ this.all_task = res.data.list
|
|
|
+ this.total = res.data.total
|
|
|
}
|
|
|
},
|
|
|
async getTaskStatus() { // 获取任务状态列表
|
|
@@ -271,6 +301,16 @@ export default {
|
|
|
},
|
|
|
link_task(id) { // 跳转到任务详情页
|
|
|
this.$router.push({ name: '任务详情', query: { id: id }})
|
|
|
+ },
|
|
|
+ // 分页pageSize选择
|
|
|
+ handleSizeChange(pageSize) {
|
|
|
+ this.searchForm.pageSize = pageSize
|
|
|
+ this.get_allTask()
|
|
|
+ },
|
|
|
+ // 当前页选择
|
|
|
+ handleCurrentChange(currentPage) {
|
|
|
+ this.searchForm.curIndex = currentPage
|
|
|
+ this.get_allTask()
|
|
|
}
|
|
|
}
|
|
|
}
|