|
@@ -80,22 +80,19 @@ export default {
|
|
|
bugData: null // 缺陷数据
|
|
|
}
|
|
|
},
|
|
|
- created() {
|
|
|
+ mounted() {
|
|
|
this.getProjectSumData()
|
|
|
},
|
|
|
methods: {
|
|
|
async getProjectSumData() { // 获取数据
|
|
|
const res = await getProjectSumData(this.$route.query.id)
|
|
|
if (res.code === 200) {
|
|
|
- console.log(res.data)
|
|
|
this.requireData = res.data.requireData
|
|
|
this.taskData = res.data.taskData
|
|
|
this.bugData = res.data.bugData
|
|
|
- this.$nextTick(() => {
|
|
|
- this.setDataChart(this.requireData.detail, 'echartsOption1')
|
|
|
- this.setDataChart(this.taskData.detail, 'echartsOption2')
|
|
|
- this.setDataChart(this.bugData.detail, 'echartsOption3')
|
|
|
- })
|
|
|
+ this.setDataChart(this.requireData.detail, 'echartsOption1')
|
|
|
+ this.setDataChart(this.taskData.detail, 'echartsOption2')
|
|
|
+ this.setDataChart(this.bugData.detail, 'echartsOption3')
|
|
|
}
|
|
|
},
|
|
|
setDataChart(data, obj) {
|