|
@@ -48,9 +48,9 @@
|
|
:cell-style="{textAlign: 'center'}"
|
|
:cell-style="{textAlign: 'center'}"
|
|
@current-change="handleCurrentRowChange"
|
|
@current-change="handleCurrentRowChange"
|
|
>
|
|
>
|
|
- <el-table-column prop="priority" label="优先级" min-width="10%">
|
|
|
|
|
|
+ <el-table-column prop="priority" label="优先级" min-width="8%">
|
|
<template v-slot="scope">
|
|
<template v-slot="scope">
|
|
- <el-tag size="mini" :type="getPriorityTagType(scope.row.priority)">{{ 'P'+scope.row.priority }}</el-tag>
|
|
|
|
|
|
+ <div class="div_priority" :style="{background: priorityColors[scope.row.priority%priorityColors.length]}">{{ 'P'+scope.row.priority }}</div>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="requirementName" label="需求名称" min-width="10%" />
|
|
<el-table-column prop="requirementName" label="需求名称" min-width="10%" />
|
|
@@ -61,7 +61,7 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column prop="pmName" label="PM" min-width="10%" />
|
|
<el-table-column prop="pmName" label="PM" min-width="10%" />
|
|
<el-table-column prop="status" label="状态" min-width="10%" />
|
|
<el-table-column prop="status" label="状态" min-width="10%" />
|
|
- <el-table-column prop="statusInfoCountList" label="任务" min-width="30%">
|
|
|
|
|
|
+ <el-table-column prop="statusInfoCountList" label="任务" min-width="35%">
|
|
<template v-slot="scope">
|
|
<template v-slot="scope">
|
|
<version-chart
|
|
<version-chart
|
|
:chart-id="'taskCount' + scope.$index"
|
|
:chart-id="'taskCount' + scope.$index"
|
|
@@ -104,6 +104,7 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ priorityColors: ['#F56C6C', '#FF8952', '#7ED321', '#61D3B8', '#F7AD3F', '#69B3FF', '#C889FF'],
|
|
tableData: [],
|
|
tableData: [],
|
|
loading: false,
|
|
loading: false,
|
|
searchInfo: {
|
|
searchInfo: {
|
|
@@ -268,21 +269,15 @@ export default {
|
|
case 0:
|
|
case 0:
|
|
type = 'danger'
|
|
type = 'danger'
|
|
break
|
|
break
|
|
- case 2:
|
|
|
|
|
|
+ case 1:
|
|
type = 'warning'
|
|
type = 'warning'
|
|
break
|
|
break
|
|
- case 3:
|
|
|
|
|
|
+ case 2:
|
|
type = ''
|
|
type = ''
|
|
break
|
|
break
|
|
- case 4:
|
|
|
|
|
|
+ case 3:
|
|
type = 'success'
|
|
type = 'success'
|
|
break
|
|
break
|
|
- case 5:
|
|
|
|
- type = 'info'
|
|
|
|
- break
|
|
|
|
- case 6:
|
|
|
|
- type = 'info'
|
|
|
|
- break
|
|
|
|
default:
|
|
default:
|
|
type = 'info'
|
|
type = 'info'
|
|
}
|
|
}
|
|
@@ -325,6 +320,7 @@ export default {
|
|
this.getVersionHomePageList()
|
|
this.getVersionHomePageList()
|
|
},
|
|
},
|
|
getVersionHomePageList() {
|
|
getVersionHomePageList() {
|
|
|
|
+ this.loading = true
|
|
getVersionHomePageList(this.searchForm)
|
|
getVersionHomePageList(this.searchForm)
|
|
.then(res => {
|
|
.then(res => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
@@ -336,6 +332,7 @@ export default {
|
|
this.tableData = null
|
|
this.tableData = null
|
|
this.$message.warning(res.msg)
|
|
this.$message.warning(res.msg)
|
|
}
|
|
}
|
|
|
|
+ this.loading = false
|
|
})
|
|
})
|
|
},
|
|
},
|
|
createTaskOption(data) {
|
|
createTaskOption(data) {
|
|
@@ -403,7 +400,6 @@ export default {
|
|
for (const i in enums.taskStage) {
|
|
for (const i in enums.taskStage) {
|
|
this.versionEnum.taskStageMap[enums.taskStage[i].code] = enums.taskStage[i].msg
|
|
this.versionEnum.taskStageMap[enums.taskStage[i].code] = enums.taskStage[i].msg
|
|
}
|
|
}
|
|
- console.log(this.versionEnum)
|
|
|
|
} else {
|
|
} else {
|
|
this.$message.warning(res.msg)
|
|
this.$message.warning(res.msg)
|
|
}
|
|
}
|
|
@@ -423,6 +419,9 @@ export default {
|
|
border-radius: 8px;
|
|
border-radius: 8px;
|
|
background-color: #ffffff;
|
|
background-color: #ffffff;
|
|
}
|
|
}
|
|
|
|
+.layout_main {
|
|
|
|
+ padding: 0
|
|
|
|
+}
|
|
.layout_header {
|
|
.layout_header {
|
|
margin: 2%;
|
|
margin: 2%;
|
|
line-height: 60px;
|
|
line-height: 60px;
|
|
@@ -430,4 +429,10 @@ export default {
|
|
.layout_main {
|
|
.layout_main {
|
|
margin: 0 2% 2% 2%
|
|
margin: 0 2% 2% 2%
|
|
}
|
|
}
|
|
|
|
+.div_priority {
|
|
|
|
+ color: #ffffff;
|
|
|
|
+ width:fit-content;
|
|
|
|
+ padding: 0 12px;
|
|
|
|
+ border-radius: 4px;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|