From 4b848e13d7d1cd11a8cc6043baf5f5ffa34afdd5 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期二, 01 十月 2024 20:26:49 +0800
Subject: [PATCH] 优化排班和部分功能
---
src/views/mdc/time-analysis.vue | 43 ++++++++++++++++++++++++++++++-------------
1 files changed, 30 insertions(+), 13 deletions(-)
diff --git a/src/views/mdc/time-analysis.vue b/src/views/mdc/time-analysis.vue
index 598302d..ba4183b 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-09-10 11:35:09
* @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">
@@ -199,7 +199,6 @@
params.forEach(item=> {
dom += `<div>${item.marker}${item.seriesName}锛�${item.data}%</div>`
})
- console.log(params)
return dom;
}
},
@@ -218,6 +217,9 @@
show: true,
axisLabel: {
formatter: function (value) {
+ if(value <= 1) {
+ value = value * 100;
+ }
return value + "%";
}
},
@@ -254,7 +256,10 @@
show: true,
axisLabel: {
formatter: function (value) {
- return value * 100 + "%";
+ if(value <= 1) {
+ value = value * 100;
+ }
+ return value + "%";
}
},
data: [2,20,40,60,80,100]
@@ -290,7 +295,11 @@
show: true,
axisLabel: {
formatter: function (value) {
- return value * 100 + "%";
+ if(value <= 1) {
+ value = value * 100;
+ }
+ console.log(value)
+ return value + "%";
}
},
data: [2,20,40,60,80,100]
@@ -326,7 +335,10 @@
show: true,
axisLabel: {
formatter: function (value) {
- return value * 100 + "%";
+ if(value <= 1) {
+ value = value * 100;
+ }
+ return value + "%";
}
},
data: [2,20,40,60,80,100]
@@ -481,7 +493,6 @@
this.chartOptionA.series = this.formatChartData(res.data.countStatus);
var myChart = echarts.init(recordDom);
myChart.setOption(this.chartOptionA);
- console.log(JSON.stringify(this.chartOptionA))
}
})
},
@@ -546,14 +557,18 @@
changeLeftTab(item) {
this.btnLeftctive = item.id;
this.ids = [];
+ if(item.id == 2) { //鎸夊伐浣嶇粺璁℃爲
+ this.getTree2List();
+ }
},
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 +602,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");
+ })
}
})
}
@@ -653,7 +671,6 @@
this.date = this.time[1];
},
query() {
- console.log(this.activeName)
this.getTime({endDate: this.time[1],startDate: this.time[0],statisticalMethod: 'SHIFT'});
this.date = this.time[1];
this.ids = [];
@@ -789,7 +806,7 @@
font-weight: bold;
}
.demo-collapse /deep/ .el-collapse-item__header {
- background-color: #d8e8e8;
+ background-color: #7eb9f7;
margin: 8px;
height: 32px;
padding-left: 16px;
--
Gitblit v1.9.3