From ddbb2bd2691629336faa4491a59fdc3dc3c5934e Mon Sep 17 00:00:00 2001 From: gaoshp <291585735@qq.com> Date: 星期一, 17 六月 2024 23:44:23 +0800 Subject: [PATCH] update --- src/views/mdc/time-analysis.vue | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/views/mdc/time-analysis.vue b/src/views/mdc/time-analysis.vue index 598302d..60eeda5 100644 --- a/src/views/mdc/time-analysis.vue +++ b/src/views/mdc/time-analysis.vue @@ -2,7 +2,7 @@ * @Author: lzhe lzhe@example.com * @Date: 2024-04-26 09:36:18 * @LastEditors: lzhe lzhe@example.com - * @LastEditTime: 2024-06-05 11:37:24 + * @LastEditTime: 2024-06-14 18:26:34 * @FilePath: /smart-web/src/views/mdc/status-record.vue * @Description: 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE --> @@ -91,7 +91,7 @@ </div> </div> <!-- 鎸夋椂闂村懆鏈熺粺璁harts --> - <div id="analysisA" v-if="setTitle.length != 0"> + <div id="analysisB" v-if="setTitle.length != 0"> <div class="demo-collapse"> <el-collapse v-model="activeNames1" accordion> <el-collapse-item v-for="(item,index) in setTitle1" :name="index + 1"> @@ -550,10 +550,11 @@ tabChange(val) { this.activeName = val; if(val == "time") { //鎸夋椂闂村懆鏈熺粺璁� + var len = this.btnList.length; if(this.setTitle.length != 0) { var obj = { endDate: this.btnList[0].id, - startDate: this.btnList[0].id, + startDate: this.btnList[len-1].id, statisticalMethod: "WEEK" } this.$HTTP.post(`/api/blade-mdc/efficiency-analysis/interval`,obj).then(res=> { @@ -587,9 +588,12 @@ indexName : firstDayOfJuly + "鑷�" + lastDayOfJuly }); this.setTitle1 = arr; - this.getDataChartsB("DAY"); - this.getDataChartsB("MONTH"); - this.getDataChartsB("WEEK"); + this.date = this.btnList[0].id; + this.$nextTick(()=> { + this.getDataChartsB("DAY"); + this.getDataChartsB("MONTH"); + this.getDataChartsB("WEEK"); + }) } }) } -- Gitblit v1.9.3