|
@@ -68,7 +68,7 @@
|
|
<script>
|
|
<script>
|
|
import echarts from 'echarts'
|
|
import echarts from 'echarts'
|
|
|
|
|
|
-import { bugDailyList } from '@/api/testPresentetion'
|
|
|
|
|
|
+import { bugDailyList, dailyReport } from '@/api/testPresentetion'
|
|
import { dailyReportSendmail } from '@/api/ResultPage'
|
|
import { dailyReportSendmail } from '@/api/ResultPage'
|
|
import html2canvas from 'html2canvas'
|
|
import html2canvas from 'html2canvas'
|
|
export default {
|
|
export default {
|
|
@@ -113,47 +113,48 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- this.getRouterData()
|
|
|
|
|
|
+ // this.getRouterData()
|
|
|
|
+ this.idGet()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- getRouterData() {
|
|
|
|
- if (this.$route.query.data) {
|
|
|
|
- this.fromCreat = this.$route.query.data
|
|
|
|
|
|
+ idGet() {
|
|
|
|
+ dailyReport({ id: this.$route.query.id }).then((res) => {
|
|
|
|
+ this.fromCreat = res.data
|
|
this.name = this.fromCreat.reportName
|
|
this.name = this.fromCreat.reportName
|
|
this.gntCreateEnd = this.fromCreat.gmtCreate
|
|
this.gntCreateEnd = this.fromCreat.gmtCreate
|
|
this.bugshow = this.fromCreat.bugExplain
|
|
this.bugshow = this.fromCreat.bugExplain
|
|
this.TestProgress = this.fromCreat.testExplain
|
|
this.TestProgress = this.fromCreat.testExplain
|
|
this.projectProgress = this.fromCreat.problemRisks
|
|
this.projectProgress = this.fromCreat.problemRisks
|
|
- }
|
|
|
|
- this.pro = { projectId: this.fromCreat.projectId, taskId: this.fromCreat.taskId, gntCreateEnd: this.gntCreateEnd }
|
|
|
|
- bugDailyList(this.pro).then(res => {
|
|
|
|
- this.dateList = res.data.dateList
|
|
|
|
- this.statusMap = res.data.statusMap
|
|
|
|
- this.statusList = res.data.statusList
|
|
|
|
- this.numList = res.data.bugMap
|
|
|
|
- for (var ele of this.numList) {
|
|
|
|
- this.bugName.push(ele.name)
|
|
|
|
- }
|
|
|
|
|
|
+ this.pro = { projectId: this.fromCreat.projectId, taskId: this.fromCreat.taskId, gntCreateEnd: this.gntCreateEnd }
|
|
|
|
+ bugDailyList(this.pro).then(res => {
|
|
|
|
+ this.dateList = res.data.dateList
|
|
|
|
+ this.statusMap = res.data.statusMap
|
|
|
|
+ this.statusList = res.data.statusList
|
|
|
|
+ this.numList = res.data.bugMap
|
|
|
|
+ for (var ele of this.numList) {
|
|
|
|
+ this.bugName.push(ele.name)
|
|
|
|
+ }
|
|
|
|
|
|
- echarts.init(document.getElementById('lineShow')).setOption({
|
|
|
|
- title: { left: 'center', text: 'bug数量汇总' },
|
|
|
|
- tooltip: { trigger: 'axis' },
|
|
|
|
- legend: { top: 30, data: this.bugName },
|
|
|
|
- grid: { left: '5%', right: '25%', bottom: '12%', containLabel: true },
|
|
|
|
- // toolbox: { feature: { saveAsImage: {}}},
|
|
|
|
- xAxis: { type: 'category', boundaryGap: true, data: this.dateList },
|
|
|
|
- yAxis: { type: 'value' },
|
|
|
|
- series: this.numList
|
|
|
|
- })
|
|
|
|
- echarts.init(document.getElementById('barShow')).setOption({
|
|
|
|
- title: { text: 'bug状态汇总', x: 'center' },
|
|
|
|
- color: ['#003366', '#006699', '#4cabce', '#e5323e'],
|
|
|
|
- tooltip: { trigger: 'axis' },
|
|
|
|
- legend: { top: 30, data: this.statusMap },
|
|
|
|
- grid: { left: '5%', right: '25%', bottom: '12%', containLabel: true },
|
|
|
|
- xAxis: [{ data: this.statusList }],
|
|
|
|
- yAxis: [{}],
|
|
|
|
- series: this.statusMap
|
|
|
|
|
|
+ echarts.init(document.getElementById('lineShow')).setOption({
|
|
|
|
+ title: { left: 'center', text: 'bug数量汇总' },
|
|
|
|
+ tooltip: { trigger: 'axis' },
|
|
|
|
+ legend: { top: 30, data: this.bugName },
|
|
|
|
+ grid: { left: '5%', right: '25%', bottom: '12%', containLabel: true },
|
|
|
|
+ // toolbox: { feature: { saveAsImage: {}}},
|
|
|
|
+ xAxis: { type: 'category', boundaryGap: true, data: this.dateList },
|
|
|
|
+ yAxis: { type: 'value' },
|
|
|
|
+ series: this.numList
|
|
|
|
+ })
|
|
|
|
+ echarts.init(document.getElementById('barShow')).setOption({
|
|
|
|
+ title: { text: 'bug状态汇总', x: 'center' },
|
|
|
|
+ color: ['#003366', '#006699', '#4cabce', '#e5323e'],
|
|
|
|
+ tooltip: { trigger: 'axis' },
|
|
|
|
+ legend: { top: 30, data: this.statusMap },
|
|
|
|
+ grid: { left: '5%', right: '25%', bottom: '12%', containLabel: true },
|
|
|
|
+ xAxis: [{ data: this.statusList }],
|
|
|
|
+ yAxis: [{}],
|
|
|
|
+ series: this.statusMap
|
|
|
|
+ })
|
|
})
|
|
})
|
|
})
|
|
})
|
|
},
|
|
},
|