From e7828fd2775b199b1b2467df751b5d8948e61a62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Mon, 8 Apr 2024 14:49:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/quality/base/qualityIsra/index.vue | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/views/quality/base/qualityIsra/index.vue b/src/views/quality/base/qualityIsra/index.vue index 92ad1aa4..fe04cb38 100644 --- a/src/views/quality/base/qualityIsra/index.vue +++ b/src/views/quality/base/qualityIsra/index.vue @@ -131,7 +131,7 @@ export default { // width: 350, }, { - type: this.$auth.hasPermi(' base: quality - isra - statistics: query') ? 'button' : '', + type: this.$auth.hasPermi('base:quality-isra-statistics:query') ? 'button' : '', btnName: '查询', name: 'search', color: 'primary', @@ -207,15 +207,16 @@ export default { }).then((res) => { let mapArr= [] let mapLegendData = [] + let obj = { + name: '', + type: 'line', + // stack: 'Total', + data: [], + mapXAxisData: [], + } // let mapXAxisData = [] for (let i in res.data) { - let obj = { - name: '', - type: 'line', - // stack: 'Total', - data: [], - mapXAxisData:[], - } + // console.log(i) let dataArr = [] res.data[i].forEach(ele => { @@ -225,8 +226,9 @@ export default { obj.name = i obj.data = dataArr mapLegendData.push(i) - mapArr.push(obj) } + mapArr.push(obj) + console.log(mapArr); // console.log(res.data[res]); var chartDom = this.activeName === 'day' ? document.getElementById('mapDayMain') : this.activeName === 'week' ? document.getElementById('mapWeekMain') : document.getElementById('mapMonthMain') var myChart = echarts.init(chartDom); -- 2.45.2