|
@@ -3,7 +3,7 @@
|
|
<div v-if="Statistics.title === '任务分布图数据'" class="qz-drawer-grade">按任务等级分布</div>
|
|
<div v-if="Statistics.title === '任务分布图数据'" class="qz-drawer-grade">按任务等级分布</div>
|
|
<div v-if="Statistics.title === '分布图数据'" class="qz-drawer-grade-tow">按缺陷等级分布</div>
|
|
<div v-if="Statistics.title === '分布图数据'" class="qz-drawer-grade-tow">按缺陷等级分布</div>
|
|
<div>
|
|
<div>
|
|
- <div v-if="Statistics.title !== '模块分布数据'" :class="[Statistics.towTimeLine ? 'qz-drawer-padding' : 'qz-drawer-padding-s', 'qz-drawer-header']">
|
|
|
|
|
|
+ <div v-if="Statistics.title !== '模块分布数据' && Statistics.title !== '需求方向分布图数据'" :class="[Statistics.towTimeLine ? 'qz-drawer-padding' : 'qz-drawer-padding-s', 'qz-drawer-header']">
|
|
<div class="qz-drawer-scll">
|
|
<div class="qz-drawer-scll">
|
|
<timeline :data="list" :num="defaultKey" :bgmargin="bgMargin" @update="getvalue" />
|
|
<timeline :data="list" :num="defaultKey" :bgmargin="bgMargin" @update="getvalue" />
|
|
</div>
|
|
</div>
|
|
@@ -11,23 +11,20 @@
|
|
<timeline :data="Statistics.towTimeLine" :num="defaultKey2" :bgmargin="bgMargin" @update="getvalueTow" />
|
|
<timeline :data="Statistics.towTimeLine" :num="defaultKey2" :bgmargin="bgMargin" @update="getvalueTow" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div v-if="Statistics.title === '需求分布图数据' || Statistics.title === '任务分布图数据'" class="qz-drawer-H">
|
|
|
|
- <span>{{ status }}</span>为<span>{{ type }}</span>的{{ Statistics.toType }}
|
|
|
|
- </div>
|
|
|
|
- <div v-if="Statistics.title === '状态停留分布图数据'" class="qz-drawer-H">
|
|
|
|
- 在<span>{{ type }}</span>状态停留时长为<span>{{ typeTow }}</span>的{{ Statistics.toType }}
|
|
|
|
- </div>
|
|
|
|
- <div v-if="Statistics.title === '模块分布数据'" class="qz-drawer-H" style="margin: 20px 30px 10px;">
|
|
|
|
- 模块<span>{{ Statistics.name }}</span>的缺陷
|
|
|
|
- </div>
|
|
|
|
- <div v-if="Statistics.title === `${Statistics.qz_holiday}的修复时长区间数据`" class="qz-drawer-H" style="margin: 20px 30px 10px;">
|
|
|
|
- {{ Statistics.qz_holiday }}修复时间区间为<span>{{ type }}</span>的<span>{{ typeTow }}</span>级缺陷
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div v-if="Statistics.title === '需求分布图数据' || Statistics.title === '任务分布图数据'" class="qz-drawer-H"><span>{{ status }}</span>为<span>{{ type }}</span>的{{ Statistics.toType }}</div>
|
|
|
|
+ <div v-if="Statistics.title === '状态停留分布图数据'" class="qz-drawer-H">在<span>{{ type }}</span>状态停留时长为<span>{{ typeTow }}</span>的{{ Statistics.toType }}</div>
|
|
|
|
+ <div v-if="Statistics.title === '模块分布数据'" class="qz-drawer-H qz-margin-H"> 模块<span>{{ Statistics.name }}</span>的缺陷</div>
|
|
|
|
+ <div v-if="Statistics.title === `${Statistics.qz_holiday}的修复时长区间数据`" class="qz-drawer-H qz-margin-H">{{ Statistics.qz_holiday }}修复时间区间为<span>{{ type }}</span>的<span>{{ typeTow }}</span>级缺陷</div>
|
|
|
|
+ <div v-if="Statistics.title === `状态累积流量图数据`" class="qz-drawer-H qz-margin-H"><span>{{ type }}</span>流入到<span>{{ typeTow }}</span>的{{ Statistics.toType }}</div>
|
|
|
|
+ <div v-if="Statistics.title === `需求方向分布图数据`" class="qz-drawer-H qz-margin-H">需求方向为<span>{{ type }}</span>的需求</div>
|
|
|
|
+ <div v-if="Statistics.title === '新增趋势图数据' && Statistics.toType === '任务' || Statistics.title === '上线趋势图数据' && Statistics.toType === '任务'" class="qz-drawer-H qz-margin-H"><span>{{ type }}</span>{{ Statistics.title.substring(0, Statistics.title.length - 5 ) }}的任务</div>
|
|
|
|
+ <div v-if="Statistics.toType === '需求' && Statistics.title === '新增趋势图数据' || Statistics.title === '上线趋势图数据' || Statistics.title === 'PRD评审趋势图数据' || Statistics.title === '技术准入趋势图数据'" class="qz-drawer-H qz-margin-H"><span>{{ type }}</span>{{ Statistics.title.substring(0, Statistics.title.length - 5 ) }}的需求</div>
|
|
<qzTable
|
|
<qzTable
|
|
:data="tableData"
|
|
:data="tableData"
|
|
:title="Statistics.title"
|
|
:title="Statistics.title"
|
|
:type="Statistics.title === '需求分布图数据' || Statistics.title === '任务分布图数据' || Statistics.title === '分布图数据' ? status : Statistics.toType"
|
|
:type="Statistics.title === '需求分布图数据' || Statistics.title === '任务分布图数据' || Statistics.title === '分布图数据' ? status : Statistics.toType"
|
|
:oftype="type"
|
|
:oftype="type"
|
|
|
|
+ :mintitle="Statistics.title === '周期统计数据' || Statistics.title === '人力统计数据' ? min_title : ''"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
<el-pagination
|
|
<el-pagination
|
|
@@ -59,6 +56,7 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
list: [],
|
|
list: [],
|
|
|
|
+ min_title: '', // 周期统计表头标题
|
|
bgMargin: false,
|
|
bgMargin: false,
|
|
dataList: [],
|
|
dataList: [],
|
|
Statistics: {}, // title
|
|
Statistics: {}, // title
|
|
@@ -115,11 +113,20 @@ export default {
|
|
this.defaultKey = this.Statistics.dataIndex
|
|
this.defaultKey = this.Statistics.dataIndex
|
|
this.dataList = this.Statistics.yaxis[0].idList[this.defaultKey]
|
|
this.dataList = this.Statistics.yaxis[0].idList[this.defaultKey]
|
|
this.getTableData(this.dataList)
|
|
this.getTableData(this.dataList)
|
|
- } else if (this.Statistics.title === '缺陷统计数据' || this.Statistics.title === '去除节假日的修复时长数据') {
|
|
|
|
- const key = this.Statistics.xaxis.indexOf(this.Statistics.label)
|
|
|
|
|
|
+ } else if (this.Statistics.title === '缺陷统计数据' || this.Statistics.title === '去除节假日的修复时长数据' || this.Statistics.title === '周期统计数据' || this.Statistics.title === '人力统计数据') {
|
|
|
|
+ const key = this.Statistics.title === '周期统计数据' || this.Statistics.title === '人力统计数据' ? this.Statistics.xaxis.indexOf(this.Statistics.label.substr(2)) : this.Statistics.xaxis.indexOf(this.Statistics.label)
|
|
|
|
+ this.Statistics.title === '周期统计数据' || this.Statistics.title === '人力统计数据' ? this.min_title = this.Statistics.label.substr(2) : ''
|
|
this.defaultKey = key === -1 ? 0 : key
|
|
this.defaultKey = key === -1 ? 0 : key
|
|
this.dataList = this.Statistics.idList
|
|
this.dataList = this.Statistics.idList
|
|
this.getTableData(this.dataList)
|
|
this.getTableData(this.dataList)
|
|
|
|
+ } else if (this.Statistics.title === '状态累积流量图数据') {
|
|
|
|
+ this.bgMargin = true
|
|
|
|
+ this.typeTow = this.Statistics.seriesName
|
|
|
|
+ this.defaultKey = this.Statistics.dataIndex
|
|
|
|
+ this.defaultKey2 = Number(this.Statistics.seriesIndex)
|
|
|
|
+ const statusArr = this.Statistics.statusList[this.Statistics.seriesName]
|
|
|
|
+ this.dataList = statusArr[this.defaultKey].idList
|
|
|
|
+ this.getTableData(this.dataList)
|
|
} else if (this.Statistics.title === '状态停留分布图数据') {
|
|
} else if (this.Statistics.title === '状态停留分布图数据') {
|
|
this.bgMargin = true
|
|
this.bgMargin = true
|
|
this.typeTow = this.Statistics.seriesName // 停留时长
|
|
this.typeTow = this.Statistics.seriesName // 停留时长
|
|
@@ -136,6 +143,18 @@ export default {
|
|
key === 3 ? this.getIdList({ releaseReportIdList: this.Statistics.subCountList[0].idList }) : '' // 准出
|
|
key === 3 ? this.getIdList({ releaseReportIdList: this.Statistics.subCountList[0].idList }) : '' // 准出
|
|
} else if (this.Statistics.title === '模块分布数据') {
|
|
} else if (this.Statistics.title === '模块分布数据') {
|
|
this.getTableData(this.Statistics.newData.idList)
|
|
this.getTableData(this.Statistics.newData.idList)
|
|
|
|
+ } else if (this.Statistics.title === '需求方向分布图数据') {
|
|
|
|
+ this.Statistics.children.map(item => {
|
|
|
|
+ if (item.name === this.Statistics.name) {
|
|
|
|
+ this.getTableData(item.idList)
|
|
|
|
+ } else {
|
|
|
|
+ if (item.children) {
|
|
|
|
+ item.children.map(i => {
|
|
|
|
+ i.name === this.Statistics.name ? this.getTableData(i.idList) : ''
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
} else if (this.Statistics.title === `${this.Statistics.qz_holiday}的修复时长区间数据`) {
|
|
} else if (this.Statistics.title === `${this.Statistics.qz_holiday}的修复时长区间数据`) {
|
|
this.bgMargin = true
|
|
this.bgMargin = true
|
|
this.typeTow = this.Statistics.seriesName
|
|
this.typeTow = this.Statistics.seriesName
|
|
@@ -143,6 +162,11 @@ export default {
|
|
this.defaultKey2 = Number(this.Statistics.seriesIndex)
|
|
this.defaultKey2 = Number(this.Statistics.seriesIndex)
|
|
this.dataList = this.Statistics.series[this.defaultKey2].idList[this.defaultKey]
|
|
this.dataList = this.Statistics.series[this.defaultKey2].idList[this.defaultKey]
|
|
this.getTableData(this.dataList)
|
|
this.getTableData(this.dataList)
|
|
|
|
+ } else if (this.Statistics.title === '新增趋势图数据' || this.Statistics.title === '上线趋势图数据' || this.Statistics.title === 'PRD评审趋势图数据' || this.Statistics.title === '技术准入趋势图数据') {
|
|
|
|
+ this.defaultKey = this.Statistics.dataIndex
|
|
|
|
+ this.defaultKey2 = this.Statistics.seriesIndex
|
|
|
|
+ this.dataList = this.Statistics.yaxis[0].idList[this.defaultKey]
|
|
|
|
+ this.getTableData(this.dataList)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
getvalue(e) { // 时间轴one
|
|
getvalue(e) { // 时间轴one
|
|
@@ -161,10 +185,16 @@ export default {
|
|
this.dataList = []
|
|
this.dataList = []
|
|
this.currentPage = 1
|
|
this.currentPage = 1
|
|
this.paging = { curIndex: 1, pageSize: 10 }
|
|
this.paging = { curIndex: 1, pageSize: 10 }
|
|
- if (this.Statistics.title === '需求分布图数据' || this.Statistics.title === '任务分布图数据' || this.Statistics.title === '分布图数据') {
|
|
|
|
|
|
+ if (this.Statistics.title === '需求分布图数据' || this.Statistics.title === '任务分布图数据' || this.Statistics.title === '分布图数据' || this.Statistics.title === '新增趋势图数据' || this.Statistics.title === '上线趋势图数据' || this.Statistics.title === 'PRD评审趋势图数据' || this.Statistics.title === '技术准入趋势图数据') {
|
|
this.dataList = this.Statistics.yaxis[0].idList[this.oneVal.value]
|
|
this.dataList = this.Statistics.yaxis[0].idList[this.oneVal.value]
|
|
} else if (this.Statistics.title === '缺陷统计数据') {
|
|
} else if (this.Statistics.title === '缺陷统计数据') {
|
|
this.dataList = this.Statistics.yaxis[this.oneVal.value].idList
|
|
this.dataList = this.Statistics.yaxis[this.oneVal.value].idList
|
|
|
|
+ } else if (this.Statistics.title === '周期统计数据' || this.Statistics.title === '人力统计数据') {
|
|
|
|
+ this.min_title = this.type
|
|
|
|
+ this.dataList = this.Statistics.yaxis[this.defaultKey].idList
|
|
|
|
+ } else if (this.Statistics.title === '状态累积流量图数据') {
|
|
|
|
+ const statusArr = this.Statistics.statusList[this.typeTow]
|
|
|
|
+ this.dataList = statusArr[this.defaultKey].idList
|
|
} else if (this.Statistics.title === '状态停留分布图数据') {
|
|
} else if (this.Statistics.title === '状态停留分布图数据') {
|
|
this.dataList = this.Statistics.statusList.yaxis[this.defaultKey2].idList[this.defaultKey]
|
|
this.dataList = this.Statistics.statusList.yaxis[this.defaultKey2].idList[this.defaultKey]
|
|
} else if (this.Statistics.title === '报告统计数据') {
|
|
} else if (this.Statistics.title === '报告统计数据') {
|
|
@@ -186,19 +216,20 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
async getTableData(taskIdList) { // 获取需求、任务、缺陷表格数据
|
|
async getTableData(taskIdList) { // 获取需求、任务、缺陷表格数据
|
|
|
|
+ console.log(taskIdList, 'legnth')
|
|
if (taskIdList.length <= 0) {
|
|
if (taskIdList.length <= 0) {
|
|
this.tableData = []
|
|
this.tableData = []
|
|
this.total = 0
|
|
this.total = 0
|
|
return
|
|
return
|
|
}
|
|
}
|
|
const data = { ids: taskIdList, ...this.paging }
|
|
const data = { ids: taskIdList, ...this.paging }
|
|
- if (this.Statistics.title === '需求分布图数据' || this.Statistics.title === '状态停留分布图数据' && this.Statistics.toType === '需求') {
|
|
|
|
|
|
+ if (this.Statistics.title === '需求方向分布图数据' || this.Statistics.title === '需求分布图数据' || this.Statistics.title === '状态停留分布图数据' && this.Statistics.toType === '需求' || this.Statistics.title === '状态累积流量图数据' && this.Statistics.toType === '需求' || this.Statistics.title === '周期统计数据' || this.Statistics.title === '人力统计数据' || this.Statistics.title === '新增趋势图数据' && this.Statistics.toType === '需求' || this.Statistics.title === '上线趋势图数据' && this.Statistics.toType === '需求' || this.Statistics.title === 'PRD评审趋势图数据' || this.Statistics.title === '技术准入趋势图数据') {
|
|
const res = await getRequirement(data)
|
|
const res = await getRequirement(data)
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
this.tableData = res.data.list
|
|
this.tableData = res.data.list
|
|
this.total = res.data.total
|
|
this.total = res.data.total
|
|
}
|
|
}
|
|
- } else if (this.Statistics.title === '任务分布图数据' || this.Statistics.title === '状态停留分布图数据' && this.Statistics.toType === '任务') {
|
|
|
|
|
|
+ } else if (this.Statistics.title === '任务分布图数据' || this.Statistics.title === '状态停留分布图数据' && this.Statistics.toType === '任务' || this.Statistics.title === '状态累积流量图数据' && this.Statistics.toType === '任务' || this.Statistics.title === '新增趋势图数据' && this.Statistics.toType === '任务' || this.Statistics.title === '上线趋势图数据' && this.Statistics.toType === '任务') {
|
|
const res = await taskList(data)
|
|
const res = await taskList(data)
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
this.tableData = res.data
|
|
this.tableData = res.data
|
|
@@ -313,4 +344,7 @@ export default {
|
|
>>>.el-table td, .el-table th {
|
|
>>>.el-table td, .el-table th {
|
|
padding: 5px 0;
|
|
padding: 5px 0;
|
|
}
|
|
}
|
|
|
|
+.qz-margin-H {
|
|
|
|
+ margin: 20px 30px 10px;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|