|
@@ -135,30 +135,35 @@
|
|
|
<div class="div_priority" :style="{background: priorityColors[scope.row.priority % priorityColors.length]}">{{ 'P'+scope.row.priority }}</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="name" label="需求名称" min-width="15%">
|
|
|
+ <el-table-column prop="name" label="需求名称" min-width="18%">
|
|
|
<template v-slot="scope">
|
|
|
<div style="cursor: pointer;" @click="getToRequirementDetails(scope.row.id)">{{ scope.row.name }}</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="belongingProjectName" label="归属的项目" min-width="10%">
|
|
|
+ <el-table-column prop="bizId" label="业务线" min-width="10%">
|
|
|
<template v-slot="scope">
|
|
|
- {{ getProjectName(scope.row.belongingProject) }}
|
|
|
+ {{ getBizName(scope.row.bizId) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="bizId" label="业务线" min-width="10%">
|
|
|
+ <el-table-column prop="sourceType" label="需求来源" min-width="10%">
|
|
|
<template v-slot="scope">
|
|
|
- {{ getBizName(scope.row.bizId) }}
|
|
|
+ {{ sourceTypeOb[scope.row.sourceType] }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="pm" label="产品" min-width="10%">
|
|
|
+ <el-table-column prop="belongingProjectName" label="归属的项目" min-width="10%">
|
|
|
+ <template v-slot="scope">
|
|
|
+ {{ getProjectName(scope.row.belongingProject) }}
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="pm" label="PM" min-width="10%">
|
|
|
<template v-slot="scope">
|
|
|
{{ scope.row.pm[0]?scope.row.pm[0].name:'无' }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="taskCount" label="任务总数" min-width="8%" />
|
|
|
<el-table-column prop="bugCount" label="bug总数" min-width="8%" />
|
|
|
- <el-table-column prop="creator" label="创建人" min-width="10%" />
|
|
|
- <el-table-column prop="createTime" label="创建时间" min-width="10%">
|
|
|
+ <el-table-column prop="creator" label="创建人" min-width="8%" />
|
|
|
+ <el-table-column prop="createTime" label="创建时间" min-width="8%">
|
|
|
<template v-slot="scope">{{ getcreateTime(scope.row.createTime) }}</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -207,6 +212,7 @@ export default {
|
|
|
},
|
|
|
projectOb: {},
|
|
|
bizTypeOb: {},
|
|
|
+ sourceTypeOb: {},
|
|
|
searchForm: {
|
|
|
name: null,
|
|
|
belongingProject: null,
|
|
@@ -269,6 +275,9 @@ export default {
|
|
|
for (const i in this.searchInfo.bizType) {
|
|
|
this.bizTypeOb[this.searchInfo.bizType[i].code] = this.searchInfo.bizType[i].msg
|
|
|
}
|
|
|
+ for (const i in this.searchInfo.sourceType) {
|
|
|
+ this.sourceTypeOb[this.searchInfo.sourceType[i].code] = this.searchInfo.sourceType[i].msg
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
handleCommand(command) {
|
|
@@ -294,26 +303,6 @@ export default {
|
|
|
getcreateTime(time) {
|
|
|
return time.substring(2, 10).replace(/-/g, '/')
|
|
|
},
|
|
|
- getType(priority) {
|
|
|
- let type
|
|
|
- switch (priority) {
|
|
|
- case 0:
|
|
|
- type = 'danger'
|
|
|
- break
|
|
|
- case 1:
|
|
|
- type = 'warning'
|
|
|
- break
|
|
|
- case 2:
|
|
|
- type = ''
|
|
|
- break
|
|
|
- case 3:
|
|
|
- type = 'success'
|
|
|
- break
|
|
|
- default:
|
|
|
- type = 'info'
|
|
|
- }
|
|
|
- return type
|
|
|
- },
|
|
|
// 分页pageSize选择
|
|
|
handleSizeChange: function(pageSize) {
|
|
|
this.searchForm.pageSize = pageSize
|
|
@@ -340,7 +329,7 @@ export default {
|
|
|
priority: null,
|
|
|
pm: null,
|
|
|
creator: null,
|
|
|
- pageSize: 10,
|
|
|
+ pageSize: 15,
|
|
|
curIndex: 1
|
|
|
}
|
|
|
this.searchTitle = {
|
|
@@ -349,7 +338,7 @@ export default {
|
|
|
source: '需求来源',
|
|
|
priority: '优先级'
|
|
|
}
|
|
|
- this.getTableData()
|
|
|
+ // this.getTableData()
|
|
|
},
|
|
|
getProjectName(id) {
|
|
|
const ret = this.projectOb[id]
|