From b9346c0dad8727fce46482c5ed29009717a902d0 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期三, 25 九月 2024 14:20:39 +0800 Subject: [PATCH] 标线调整 --- src/views/system/check/result/index.vue | 20 +++++++++++++------- 1 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/views/system/check/result/index.vue b/src/views/system/check/result/index.vue index 3428663..4551ab5 100644 --- a/src/views/system/check/result/index.vue +++ b/src/views/system/check/result/index.vue @@ -5,9 +5,11 @@ <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect" style="margin-bottom: 10px"> <el-menu-item index="0">鐪佸巺鏈堝害</el-menu-item> - <el-menu-item index="2">鐪佸巺瀛e害</el-menu-item> - <el-menu-item index="1">鍖哄幙鏈堝害</el-menu-item> + <el-menu-item index="1">鐪佸巺瀛e害</el-menu-item> + <el-menu-item index="2">鍖哄幙鏈堝害</el-menu-item> <el-menu-item index="3">鍖哄幙瀛e害</el-menu-item> + <el-menu-item index="4">鍏畨閮ㄦ湀搴�</el-menu-item> + <el-menu-item index="5">鍏畨閮ㄥ搴�</el-menu-item> </el-menu> </div> <!-- 瀵煎嚭鎸夐挳 --> @@ -62,7 +64,9 @@ <el-button slot="reference" type="primary" size="mini" plain>瀵煎嚭</el-button> </el-popover> </div> + </div> + <div class="data-chart-container"> <el-card class="data-card" :body-style="{ height: '100%' }"> <div class="card-content"> @@ -126,7 +130,8 @@ return { tagOptions: [ {value: 0, label: '鐪佸巺'}, - {value: 1, label: '鍖哄幙'} + {value: 1, label: '鍖哄幙'}, + {value: 2, label: '鍏畨閮�'} ], pickerOptions: { shortcuts: [{ @@ -188,10 +193,9 @@ }, mounted() { this.queryParams.examineTag = this.activeIndex - this.getList(); - this.areaSelect(); chart = echarts.init(this.$refs.barChart); - this.setChartOption(this.checkScoreList); + this.areaSelect() + // this.setChartOption(this.checkScoreList); }, methods: { jumpDetail(index) { @@ -353,10 +357,12 @@ areaSelect() { areaSelect().then(res => { this.areaList = res.data; + this.getList(); }) }, translateDeptId(deptId) { const department = this.areaList.find(dept => dept.id === deptId); + console.log(deptId,this.areaList) return department ? department.value : '鏈煡'; }, @@ -413,7 +419,7 @@ console.log(this.queryParams); listScore(this.queryParams).then(response => { this.checkScoreList = response.data; - console.log(this.checkScoreList); + this.setChartOption(this.checkScoreList); this.loading = false; }); -- Gitblit v1.8.0