From 15315b1772036eb5168792aac0121f6e9005b11e Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: Mon, 08 Jan 2024 10:16:26 +0800
Subject: [PATCH] Default Changelist
---
src/views/specialWorkSystem/specialIndex/index.vue | 40 +++++++++++++++++++++++++---------------
1 files changed, 25 insertions(+), 15 deletions(-)
diff --git a/src/views/specialWorkSystem/specialIndex/index.vue b/src/views/specialWorkSystem/specialIndex/index.vue
index c93cfb0..ce6908a 100644
--- a/src/views/specialWorkSystem/specialIndex/index.vue
+++ b/src/views/specialWorkSystem/specialIndex/index.vue
@@ -64,7 +64,7 @@
<div class="chart-item">
<dv-border-box10 v-if="isFull==true" class="item-bg"></dv-border-box10>
<div class="chart-tit">
- <span class="tit">异常警报关联人</span>
+ <span class="tit">作业警报记录</span>
<div class="filter-part">
<el-switch
v-model="chartSearch4.type"
@@ -346,6 +346,8 @@
isFull:boolean;
themeColor:string;
endTime:string
+ pieData: Array<status>
+ squareData: Array<status>
}
interface type {
id: number | null;
@@ -480,6 +482,8 @@
value: 2
}
],
+ pieData: [],
+ squareData: [],
warningData: [
{
name: '黄公子',
@@ -583,7 +587,9 @@
}
let res = await specialIndexApi().analyseType(data);
if (res.data.code === '200') {
- console.log('饼图数据>>>', res.data.data)
+ // console.log('饼图数据>>>', res.data.data)
+ state.pieData = JSON.parse(JSON.stringify(res.data.data))
+ // initZyfb()
} else {
ElMessage({
type: 'warning',
@@ -600,7 +606,9 @@
}
let res = await specialIndexApi().analyseAllWork(data);
if (res.data.code === '200') {
- console.log('条形图数据>>>', res.data.data)
+ // console.log('条形图数据>>>', res.data.data)
+ state.squareData = JSON.parse(JSON.stringify(res.data.data))
+ // initSlfx()
} else {
ElMessage({
type: 'warning',
@@ -611,7 +619,9 @@
const getDepMonth = async ()=>{
let res = await specialIndexApi().analyseDepMonth(state.chartSearch3.depId);
if (res.data.code === '200') {
- console.log('折线图数据>>>', res.data.data)
+ // console.log('折线图数据>>>', res.data.data)
+ state.squareData = JSON.parse(JSON.stringify(res.data.data))
+ // initSlfx()
} else {
ElMessage({
type: 'warning',
@@ -696,14 +706,14 @@
},
},
data: [
- { value: 1048, name: '动火作业' },
- { value: 735, name: '受限空间作业' },
- { value: 580, name: '吊装作业' },
- { value: 484, name: '动土作业' },
- { value: 735, name: '断路作业' },
- { value: 580, name: '高处作业' },
- { value: 484, name: '临时用电作业' },
- { value: 300, name: '盲板抽堵作业' }
+ { value: 0, name: '动火作业' },
+ { value: 0, name: '受限空间作业' },
+ { value: 0, name: '吊装作业' },
+ { value: 0, name: '动土作业' },
+ { value: 0, name: '断路作业' },
+ { value: 0, name: '高处作业' },
+ { value: 0, name: '临时用电作业' },
+ { value: 0, name: '盲板抽堵作业' }
]
}
]
@@ -734,7 +744,7 @@
xAxis: [
{
type: 'category',
- data: ['事业部1', '事业部2', '事业部3', '事业部4', '事业部5', '事业部6', '事业部7'],
+ data: ['部门一','部门二','部门三'],
axisTick: {
alignWithLabel: true
},
@@ -753,7 +763,7 @@
name: 'Direct',
type: 'bar',
barWidth: '60%',
- data: [10, 52, 200, 334, 390, 330, 220]
+ data: [0,0,0],
}
]
}
@@ -794,7 +804,7 @@
},
series: [
{
- data: [150, 230, 224, 218, 135, 147, 230, 224, 218, 135, 147, 260],
+ data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
type: 'line',
label:{
show: true
--
Gitblit v1.9.2