From bd945fa9dd9d4edabf1d4284fd626f6727c76c27 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期二, 12 十二月 2023 10:01:22 +0800 Subject: [PATCH] 整合代码 --- Source/UBCS-WEB/src/views/statistic/statisticPage.vue | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/Source/UBCS-WEB/src/views/statistic/statisticPage.vue b/Source/UBCS-WEB/src/views/statistic/statisticPage.vue index a823bc9..da3bcf1 100644 --- a/Source/UBCS-WEB/src/views/statistic/statisticPage.vue +++ b/Source/UBCS-WEB/src/views/statistic/statisticPage.vue @@ -2,14 +2,14 @@ <!-- 鏂板鍙充晶鎸夐挳--> <div> <div style=" display: flex; justify-content: flex-end;"> - <el-button plain type="primary" @click="addHandler">鏂板</el-button> + <el-button plain type="primary" @click="addHandler">閰嶇疆</el-button> </div> <!-- 鏂板瀵硅瘽妗�--> <el-dialog :visible.sync="addVisible" append-to-body class="avue-dialog avue-dialog--top" - title="鏂板鏁版嵁缁熻鍒嗘瀽" + title="閰嶇疆鏁版嵁缁熻鍒嗘瀽" top="-50px" > <el-table @@ -48,7 +48,7 @@ </span> </el-dialog> <!-- echarts缁勪欢--> - <div style="margin-top: 15px"> + <div style="margin-top: 15px;padding-bottom: 35px"> <lineChart v-for="(item,index) in lineList" :key="index" :chartName="item.menuName" :lineData="item.menuData"></lineChart> <pieChart v-for="(item,index) in pieList" :key="index" :chartName="item.menuName" @@ -79,7 +79,7 @@ name: "statisticPage", data() { return { - menuList:[], + menuList: [], dataKeyList: [], addVisible: false, chartName: "", @@ -129,7 +129,7 @@ this.nextSave(); this.$message.success('淇濆瓨鎴愬姛') }); - }else { + } else { this.$message.warning('璇烽�夋嫨鏁版嵁锛�') } }, @@ -148,6 +148,10 @@ const dataKey = typeList[item.codeType]; if (dataKey) { this[dataKey].push(item); + this[dataKey].forEach(res=>{ + console.log('this[dataKey]',this[dataKey]) + console.log('res',res) + }) hasValidData = true; } }); -- Gitblit v1.9.3