|
@@ -113,6 +113,10 @@
|
|
<h3>新增趋势图</h3>
|
|
<h3>新增趋势图</h3>
|
|
<tendency-chart :chart-data="tendencyData" />
|
|
<tendency-chart :chart-data="tendencyData" />
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="chart-item">
|
|
|
|
+ <h3>所属需求方向分布图</h3>
|
|
|
|
+ <belong-chart :chart-data="orntDistributeData" />
|
|
|
|
+ </div>
|
|
<div class="chart-item">
|
|
<div class="chart-item">
|
|
<h3>周期统计<span>(根据排期计算)</span></h3>
|
|
<h3>周期统计<span>(根据排期计算)</span></h3>
|
|
<div class="chart-item-tip">
|
|
<div class="chart-item-tip">
|
|
@@ -156,15 +160,24 @@ import {
|
|
} from '@/api/defectStatistics'
|
|
} from '@/api/defectStatistics'
|
|
import {
|
|
import {
|
|
getDistributeData,
|
|
getDistributeData,
|
|
- getStatusStayData
|
|
|
|
|
|
+ getStatusStayData,
|
|
|
|
+ getOrntDistributeData
|
|
} from '@/api/statisticsApi/requireStatistics'
|
|
} from '@/api/statisticsApi/requireStatistics'
|
|
import statusChart from './components/statusChart'
|
|
import statusChart from './components/statusChart'
|
|
import tendencyChart from './components/tendencyChart'
|
|
import tendencyChart from './components/tendencyChart'
|
|
import cycleStatistic from './components/cycleStatistic'
|
|
import cycleStatistic from './components/cycleStatistic'
|
|
import distributionChart from './components/distributionChart'
|
|
import distributionChart from './components/distributionChart'
|
|
import statusStayChart from './components/statusStayChart'
|
|
import statusStayChart from './components/statusStayChart'
|
|
|
|
+import belongChart from './components/belongChart'
|
|
export default {
|
|
export default {
|
|
- components: { statusChart, tendencyChart, cycleStatistic, distributionChart, statusStayChart },
|
|
|
|
|
|
+ components: {
|
|
|
|
+ statusChart,
|
|
|
|
+ tendencyChart,
|
|
|
|
+ cycleStatistic,
|
|
|
|
+ distributionChart,
|
|
|
|
+ statusStayChart,
|
|
|
|
+ belongChart
|
|
|
|
+ },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
bugCountTimeType: 1, // 获取趋缺陷势图数据接口入参:1本周 2本月 3本年
|
|
bugCountTimeType: 1, // 获取趋缺陷势图数据接口入参:1本周 2本月 3本年
|
|
@@ -190,6 +203,7 @@ export default {
|
|
{ code: 4, label: 'pm' },
|
|
{ code: 4, label: 'pm' },
|
|
{ code: 5, label: '跟版客户端' }
|
|
{ code: 5, label: '跟版客户端' }
|
|
], // 需求分布图需求状态列表
|
|
], // 需求分布图需求状态列表
|
|
|
|
+ orntDistributeData: null, // 所属需求方向数据
|
|
distributeData: null, // 需求分布图数据
|
|
distributeData: null, // 需求分布图数据
|
|
statusStayData: null // 状态停留图数据
|
|
statusStayData: null // 状态停留图数据
|
|
}
|
|
}
|
|
@@ -224,6 +238,7 @@ export default {
|
|
this.getSummary()
|
|
this.getSummary()
|
|
this.defectTrendTimeChange()
|
|
this.defectTrendTimeChange()
|
|
this.getCycleData()
|
|
this.getCycleData()
|
|
|
|
+ this.getOrntDistributeData()
|
|
this.getDistributeData()
|
|
this.getDistributeData()
|
|
this.getStatusStayData()
|
|
this.getStatusStayData()
|
|
},
|
|
},
|
|
@@ -311,6 +326,19 @@ export default {
|
|
}
|
|
}
|
|
const res = await getStatusStayData(params)
|
|
const res = await getStatusStayData(params)
|
|
if (res.code === 200) this.statusStayData = res.data
|
|
if (res.code === 200) this.statusStayData = res.data
|
|
|
|
+ },
|
|
|
|
+ async getOrntDistributeData() { // 获取需求方向分布
|
|
|
|
+ const params = {
|
|
|
|
+ ...this.globalParams,
|
|
|
|
+ type: Number(this.activeTab)
|
|
|
|
+ }
|
|
|
|
+ const res = await getOrntDistributeData(params)
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
+ this.orntDistributeData = {
|
|
|
|
+ xaxis: res.data.map(item => item.name),
|
|
|
|
+ yaxis: [{ data: res.data.map(item => item.count) }]
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -451,6 +479,7 @@ export default {
|
|
}
|
|
}
|
|
.chart-item-tip {
|
|
.chart-item-tip {
|
|
margin-top: 12px;
|
|
margin-top: 12px;
|
|
|
|
+ margin-bottom: 10px;
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
color: #E6A23C;
|
|
color: #E6A23C;
|
|
}
|
|
}
|