|
@@ -22,8 +22,6 @@
|
|
|
@change="dateType = ''"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- </el-form>
|
|
|
- <el-form :model="chartForm" class="demo-form-inline" :inline="true">
|
|
|
<el-form-item label="责任团队:">
|
|
|
<el-select
|
|
|
v-model="chartForm.team"
|
|
@@ -148,6 +146,14 @@
|
|
|
<h3>需求方向分布图</h3>
|
|
|
<belong-chart :chart-data="orntDistributeData" />
|
|
|
</div> -->
|
|
|
+ <div class="chart-item">
|
|
|
+ <h3>排期发生变更的任务({{ changeTotal }})</h3>
|
|
|
+ <change-require-chart :chart-data="changeRequireData" />
|
|
|
+ </div>
|
|
|
+ <div class="chart-item">
|
|
|
+ <h3>缺陷统计</h3>
|
|
|
+ <bug-list :chart-data="bugListData" />
|
|
|
+ </div>
|
|
|
</el-main>
|
|
|
</el-container>
|
|
|
</template>
|
|
@@ -164,7 +170,9 @@ import {
|
|
|
getRequireRdDeliveryPeriodicData,
|
|
|
getDistributeData,
|
|
|
getStatusStayData,
|
|
|
- getOrntDistributeData
|
|
|
+ getOrntDistributeData,
|
|
|
+ getReqUnlockData,
|
|
|
+ getBugStatisticData
|
|
|
} from '@/api/statisticsApi/requireStatistics'
|
|
|
import statusChart from './components/statusChart'
|
|
|
import tendencyChart from './components/tendencyChart'
|
|
@@ -173,6 +181,8 @@ import developmentCycle from './components/developmentCycle'
|
|
|
import distributionChart from './components/distributionChart'
|
|
|
import statusStayChart from './components/statusStayChart'
|
|
|
// import belongChart from './components/belongChart'
|
|
|
+import changeRequireChart from './components/changeRequireChart'
|
|
|
+import bugList from './components/bugList'
|
|
|
export default {
|
|
|
components: {
|
|
|
statusChart,
|
|
@@ -180,8 +190,10 @@ export default {
|
|
|
cycleStatistic,
|
|
|
developmentCycle,
|
|
|
distributionChart,
|
|
|
- statusStayChart
|
|
|
+ statusStayChart,
|
|
|
// belongChart
|
|
|
+ changeRequireChart,
|
|
|
+ bugList
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -213,7 +225,10 @@ export default {
|
|
|
orntDistributeData: null, // 所属需求方向数据
|
|
|
distributeData: null, // 需求分布图数据
|
|
|
statusStayData: null, // 状态停留图数据
|
|
|
- moduleDistribute: null // 模块分布图数据
|
|
|
+ moduleDistribute: null, // 模块分布图数据
|
|
|
+ changeRequireData: null, // 排期变更需求数据
|
|
|
+ changeTotal: 0, // 变更总数
|
|
|
+ bugListData: {} // 缺陷统计数据
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
@@ -258,9 +273,6 @@ export default {
|
|
|
this.getTeamList()
|
|
|
this.getRequireDirection()
|
|
|
},
|
|
|
- mounted() {
|
|
|
- this.onSubmit()
|
|
|
- },
|
|
|
methods: {
|
|
|
onSubmit() {
|
|
|
if (this.activeTab === '2' && this.distributeStatus === 1) {
|
|
@@ -274,6 +286,8 @@ export default {
|
|
|
this.getOrntDistributeData()
|
|
|
this.getDistributeData()
|
|
|
this.getStatusStayData()
|
|
|
+ this.getReqUnlockData()
|
|
|
+ this.getBugStatisticData()
|
|
|
},
|
|
|
setDate(type) { // 日期筛选
|
|
|
let startDate = null
|
|
@@ -395,6 +409,28 @@ export default {
|
|
|
}
|
|
|
bfs(arr)
|
|
|
return { children: arr, name: '总量', count: num }
|
|
|
+ },
|
|
|
+ async getReqUnlockData() { // 排期发生变更的需求
|
|
|
+ const params = {
|
|
|
+ ...this.globalParams,
|
|
|
+ type: Number(this.activeTab),
|
|
|
+ distributeType: this.distributeStatus
|
|
|
+ }
|
|
|
+ const res = await getReqUnlockData(params)
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.changeRequireData = res.data || []
|
|
|
+ this.changeRequireData.map(item => {
|
|
|
+ this.changeTotal += item.count
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+ async getBugStatisticData() { // 缺陷统计
|
|
|
+ const params = {
|
|
|
+ ...this.globalParams,
|
|
|
+ type: Number(this.activeTab)
|
|
|
+ }
|
|
|
+ const res = await getBugStatisticData(params)
|
|
|
+ if (res.code === 200) this.bugListData = res.data
|
|
|
}
|
|
|
}
|
|
|
}
|