|
@@ -19,11 +19,12 @@
|
|
|
size="small"
|
|
|
value-format="yyyy.MM.dd"
|
|
|
:default-time="['00:00:00','23:59:59']"
|
|
|
+ @change="dateType = ''"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<el-form :model="defectForm" class="demo-form-inline" :inline="true">
|
|
|
- <el-form-item label="团队:">
|
|
|
+ <el-form-item label="责任团队:">
|
|
|
<el-select
|
|
|
v-model="defectForm.team"
|
|
|
placeholder="请选择"
|
|
@@ -197,42 +198,42 @@
|
|
|
@sort-change="moduleTableSortChange"
|
|
|
>
|
|
|
<el-table-column prop="name" label="模块" />
|
|
|
- <el-table-column v-if="activeTab=== 1" prop="repair" label="新增" sortable="custom" show-overflow-tooltip>
|
|
|
+ <el-table-column v-if="activeTab=== 1" prop="newData" label="新增" sortable="custom" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<span class="table-repair-item1 repair-span">{{ scope.row.newData.total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.newData.detail[0].label }}:{{ scope.row.newData.detail[0].total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.newData.detail[1].label }}:{{ scope.row.newData.detail[1].total }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <!-- <el-table-column prop="isRepair" label="待修复/Reopen" sortable="custom">
|
|
|
+ <el-table-column prop="newAndReopenData" label="待修复/Reopen" sortable="custom">
|
|
|
<template slot-scope="scope">
|
|
|
<span class="table-repair-item2 repair-span2">{{ scope.row.newAndReopenData.total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.newAndReopenData.detail[0].label }}:{{ scope.row.newAndReopenData.detail[0].total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.newAndReopenData.detail[1].label }}:{{ scope.row.newAndReopenData.detail[1].total }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="isRepair" label="待测试" sortable="custom">
|
|
|
+ <el-table-column prop="waitTestData" label="待测试" sortable="custom">
|
|
|
<template slot-scope="scope">
|
|
|
<span class="table-repair-item2 repair-span2">{{ scope.row.waitTestData.total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.waitTestData.detail[0].label }}:{{ scope.row.waitTestData.detail[0].total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.waitTestData.detail[1].label }}:{{ scope.row.waitTestData.detail[1].total }}</span>
|
|
|
</template>
|
|
|
- </el-table-column> -->
|
|
|
- <el-table-column prop="isRepair" label="已完成" sortable="custom">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="repairData" label="已完成" sortable="custom">
|
|
|
<template slot-scope="scope">
|
|
|
<span class="table-repair-item2 repair-span2">{{ scope.row.repairData.total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.repairData.detail[0].label }}:{{ scope.row.repairData.detail[0].total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.repairData.detail[1].label }}:{{ scope.row.repairData.detail[1].total }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="time" label="平均修复时长">
|
|
|
+ <el-table-column prop="repairTimeAvgData" label="平均修复时长">
|
|
|
<template slot-scope="scope">
|
|
|
<span class="table-repair-item3 repair-span">{{ scope.row.repairTimeAvgData.total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.repairTimeAvgData.detail[0].label }}:{{ scope.row.repairTimeAvgData.detail[0].total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.repairTimeAvgData.detail[1].label }}:{{ scope.row.repairTimeAvgData.detail[1].total }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="time" label="平均修复时长(去除节假日)">
|
|
|
+ <el-table-column prop="repairTimeAvgPurgeNhData" label="平均修复时长(去除节假日)">
|
|
|
<template slot-scope="scope">
|
|
|
<span class="table-repair-item4 repair-span">{{ scope.row.repairTimeAvgPurgeNhData.total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.repairTimeAvgPurgeNhData.detail[0].label }}:{{ scope.row.repairTimeAvgData.detail[0].total }}</span>
|
|
@@ -255,42 +256,42 @@
|
|
|
@sort-change="memberTableSortChange"
|
|
|
>
|
|
|
<el-table-column prop="name" label="姓名" />
|
|
|
- <el-table-column v-if="activeTab=== 1" prop="repair" label="新增" sortable="custom" show-overflow-tooltip>
|
|
|
+ <el-table-column v-if="activeTab=== 1" prop="newData" label="新增" sortable="custom" show-overflow-tooltip>
|
|
|
<template slot-scope="scope">
|
|
|
<span class="table-repair-item1 repair-span">{{ scope.row.newData.total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.newData.detail[0].label }}:{{ scope.row.newData.detail[0].total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.newData.detail[1].label }}:{{ scope.row.newData.detail[1].total }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="isRepair" label="待修复/Reopen" sortable="custom">
|
|
|
+ <el-table-column prop="newAndReopenData" label="待修复/Reopen" sortable="custom">
|
|
|
<template slot-scope="scope">
|
|
|
<span class="table-repair-item2 repair-span2">{{ scope.row.newAndReopenData.total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.newAndReopenData.detail[0].label }}:{{ scope.row.newAndReopenData.detail[0].total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.newAndReopenData.detail[1].label }}:{{ scope.row.newAndReopenData.detail[1].total }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="isRepair" label="待测试" sortable="custom">
|
|
|
+ <el-table-column prop="waitTestData" label="待测试" sortable="custom">
|
|
|
<template slot-scope="scope">
|
|
|
<span class="table-repair-item2 repair-span2">{{ scope.row.waitTestData.total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.waitTestData.detail[0].label }}:{{ scope.row.waitTestData.detail[0].total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.waitTestData.detail[1].label }}:{{ scope.row.waitTestData.detail[1].total }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="isRepair" label="已完成" sortable="custom">
|
|
|
+ <el-table-column prop="repairData" label="已完成" sortable="custom">
|
|
|
<template slot-scope="scope">
|
|
|
<span class="table-repair-item2 repair-span2">{{ scope.row.repairData.total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.repairData.detail[0].label }}:{{ scope.row.repairData.detail[0].total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.repairData.detail[1].label }}:{{ scope.row.repairData.detail[1].total }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="time" label="平均修复时长">
|
|
|
+ <el-table-column prop="repairTimeAvgData" label="平均修复时长">
|
|
|
<template slot-scope="scope">
|
|
|
<span class="table-repair-item3 repair-span">{{ scope.row.repairTimeAvgData.total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.repairTimeAvgData.detail[0].label }}:{{ scope.row.repairTimeAvgData.detail[0].total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.repairTimeAvgData.detail[1].label }}:{{ scope.row.repairTimeAvgData.detail[1].total }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="time" label="平均修复时长(去除节假日)">
|
|
|
+ <el-table-column prop="repairTimeAvgPurgeNhData" label="平均修复时长(去除节假日)">
|
|
|
<template slot-scope="scope">
|
|
|
<span class="table-repair-item4 repair-span">{{ scope.row.repairTimeAvgPurgeNhData.total }}</span>
|
|
|
<span class="repair-span">{{ scope.row.repairTimeAvgPurgeNhData.detail[0].label }}:{{ scope.row.repairTimeAvgData.detail[0].total }}</span>
|
|
@@ -685,10 +686,15 @@ export default {
|
|
|
this.moduleData = res.data || []
|
|
|
},
|
|
|
moduleTableSortChange(column) { // 模块table排序变动
|
|
|
- if (column.prop === 'repair') {
|
|
|
+ console.log(column)
|
|
|
+ if (column.prop === 'newData') { // 新增排序
|
|
|
column.order === 'ascending' ? this.moduleSort = 1 : this.moduleSort = 2
|
|
|
- } else {
|
|
|
+ } else if (column.prop === 'repairData') { // 已完成排序
|
|
|
column.order === 'ascending' ? this.moduleSort = 3 : this.moduleSort = 4
|
|
|
+ } else if (column.prop === 'newAndReopenData') { // 带修复
|
|
|
+ column.order === 'ascending' ? this.moduleSort = 5 : this.moduleSort = 6
|
|
|
+ } else if (column.prop === 'waitTestData') { // 待测试
|
|
|
+ column.order === 'ascending' ? this.moduleSort = 7 : this.moduleSort = 8
|
|
|
}
|
|
|
this.getModuleDistributeData()
|
|
|
},
|
|
@@ -707,10 +713,14 @@ export default {
|
|
|
this.memberData = res.data || []
|
|
|
},
|
|
|
memberTableSortChange(column) { // 责任人table排序变动
|
|
|
- if (column.prop === 'repair') {
|
|
|
+ if (column.prop === 'newData') { // 新增排序
|
|
|
column.order === 'ascending' ? this.memberSort = 1 : this.memberSort = 2
|
|
|
- } else {
|
|
|
+ } else if (column.prop === 'repairData') { // 已完成排序
|
|
|
column.order === 'ascending' ? this.memberSort = 3 : this.memberSort = 4
|
|
|
+ } else if (column.prop === 'newAndReopenData') { // 带修复
|
|
|
+ column.order === 'ascending' ? this.memberSort = 5 : this.memberSort = 6
|
|
|
+ } else if (column.prop === 'waitTestData') { // 待测试
|
|
|
+ column.order === 'ascending' ? this.memberSort = 7 : this.memberSort = 8
|
|
|
}
|
|
|
this.getMemberDistributeData()
|
|
|
}
|