Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety-progress
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
gassafety-progress
Commits
7dbf6501
Commit
7dbf6501
authored
Mar 02, 2022
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
右边滚动要跟报警稍微同步一下
parent
ae3be04e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
752 additions
and
590 deletions
+752
-590
rightBar.vue
gassafetyprogress-web/src/components/bigWindow/rightBar.vue
+745
-587
config.js
gassafetyprogress-web/src/utils/mapClass/config.js
+4
-1
index.vue
gassafetyprogress-web/src/views/bigWindow/index.vue
+3
-2
No files found.
gassafetyprogress-web/src/components/bigWindow/rightBar.vue
View file @
7dbf6501
<
template
>
<
template
>
<div
style=
"height: 100%"
>
<div
style=
"height: 100%"
>
<div>
<div>
<div
class=
"item1"
>
<div
class=
"item1"
>
<span
class=
"dot"
>
<span
class=
"dot"
>
<span
class=
"dot-inner"
></span>
<span
class=
"dot-inner"
></span>
</span>
</span>
<span
style=
"letter-spacing :3px;color:#cddbe4"
>
报警信息
</span>
<span
style=
"letter-spacing: 3px; color: #cddbe4"
>
报警信息
</span>
<div
class=
"fong-div"
style=
"width: 8px;height: 12px;background-color: #2c888899;float: right;margin-top: 10px;transform: skewX(-25deg)"
></div>
<div
<div
class=
"fong-div"
style=
"width: 8px;height: 12px;background-color: #24b1b1b3;float: right;margin-top: 10px;margin-right: 10px;transform: skewX(-25deg)"
></div>
class=
"fong-div"
<div
class=
"fong-div"
style=
"width: 8px;height: 12px;background-color: #11e9e9b3;float: right;margin-top: 10px;margin-right: 10px;transform: skewX(-25deg)"
></div>
style=
"
width: 8px;
height: 12px;
background-color: #2c888899;
float: right;
margin-top: 10px;
transform: skewX(-25deg);
"
></div>
<div
class=
"fong-div"
style=
"
width: 8px;
height: 12px;
background-color: #24b1b1b3;
float: right;
margin-top: 10px;
margin-right: 10px;
transform: skewX(-25deg);
"
></div>
<div
class=
"fong-div"
style=
"
width: 8px;
height: 12px;
background-color: #11e9e9b3;
float: right;
margin-top: 10px;
margin-right: 10px;
transform: skewX(-25deg);
"
></div>
</div>
</div>
</div>
</div>
<div
class=
"left"
>
<div
class=
"left"
>
<div
<div
class=
"bottom right-bottom-data-left"
class=
"bottom right-bottom-data-left"
@
mouseover=
"tableEnt
er"
@
mouseover=
"mouseov
er"
@
mouseout=
"timerAni
"
@
mouseout=
"mouseout
"
>
>
<el-table
<el-table
size=
"mini"
size=
"mini"
...
@@ -59,7 +90,7 @@
...
@@ -59,7 +90,7 @@
</div>
</div>
</div>
</div>
<!-- <div style="width: 100%;height: 200px;background-color: #44d7dc;">
<!-- <div style="width: 100%;height: 200px;background-color: #44d7dc;">
<el-table
<el-table
size="mini"
size="mini"
:data="tableData"
:data="tableData"
...
@@ -85,18 +116,53 @@
...
@@ -85,18 +116,53 @@
</el-table>
</el-table>
</div> -->
</div> -->
<div>
<div>
<div
class=
"item1"
style=
"margin-top: 10px;
"
>
<div
class=
"item1"
style=
"margin-top: 10px
"
>
<span
class=
"dot"
>
<span
class=
"dot"
>
<span
class=
"dot-inner"
></span>
<span
class=
"dot-inner"
></span>
</span>
</span>
<span
style=
"letter-spacing :3px;color:#cddbe4"
>
资源统计
</span>
<span
style=
"letter-spacing: 3px; color: #cddbe4"
>
资源统计
</span>
<div
class=
"fong-div"
style=
"width: 8px;height: 12px;background-color: #2c888899;float: right;margin-top: 10px;transform: skewX(-25deg)"
></div>
<div
<div
class=
"fong-div"
style=
"width: 8px;height: 12px;background-color: #24b1b1b3;float: right;margin-top: 10px;margin-right: 10px;transform: skewX(-25deg)"
></div>
class=
"fong-div"
<div
class=
"fong-div"
style=
"width: 8px;height: 12px;background-color: #11e9e9b3;float: right;margin-top: 10px;margin-right: 10px;transform: skewX(-25deg)"
></div>
style=
"
width: 8px;
height: 12px;
background-color: #2c888899;
float: right;
margin-top: 10px;
transform: skewX(-25deg);
"
></div>
<div
class=
"fong-div"
style=
"
width: 8px;
height: 12px;
background-color: #24b1b1b3;
float: right;
margin-top: 10px;
margin-right: 10px;
transform: skewX(-25deg);
"
></div>
<div
class=
"fong-div"
style=
"
width: 8px;
height: 12px;
background-color: #11e9e9b3;
float: right;
margin-top: 10px;
margin-right: 10px;
transform: skewX(-25deg);
"
></div>
</div>
</div>
</div>
</div>
<div
class=
"echarts-one"
style=
"margin-top: 10px;width: 430px;margin-left: 10px;"
>
<div
<div
id=
"myChartone"
:style=
"{width: '420px', height: '240px'}"
></div>
class=
"echarts-one"
style=
"margin-top: 10px; width: 430px; margin-left: 10px"
>
<div
id=
"myChartone"
:style=
"{ width: '420px', height: '240px' }"
></div>
</div>
</div>
<div>
<div>
...
@@ -104,102 +170,157 @@
...
@@ -104,102 +170,157 @@
<span
class=
"dot"
>
<span
class=
"dot"
>
<span
class=
"dot-inner"
></span>
<span
class=
"dot-inner"
></span>
</span>
</span>
<span
style=
"letter-spacing :3px;color:#cddbe4"
>
用户安全监控设备
</span>
<span
style=
"letter-spacing: 3px; color: #cddbe4"
<div
class=
"fong-div"
style=
"width: 8px;height: 12px;background-color: #2c888899;float: right;margin-top: 10px;transform: skewX(-25deg)"
></div>
>
用户安全监控设备
</span
<div
class=
"fong-div"
style=
"width: 8px;height: 12px;background-color: #24b1b1b3;float: right;margin-top: 10px;margin-right: 10px;transform: skewX(-25deg)"
></div>
>
<div
class=
"fong-div"
style=
"width: 8px;height: 12px;background-color: #11e9e9b3;float: right;margin-top: 10px;margin-right: 10px;transform: skewX(-25deg)"
></div>
<div
class=
"fong-div"
style=
"
width: 8px;
height: 12px;
background-color: #2c888899;
float: right;
margin-top: 10px;
transform: skewX(-25deg);
"
></div>
<div
class=
"fong-div"
style=
"
width: 8px;
height: 12px;
background-color: #24b1b1b3;
float: right;
margin-top: 10px;
margin-right: 10px;
transform: skewX(-25deg);
"
></div>
<div
class=
"fong-div"
style=
"
width: 8px;
height: 12px;
background-color: #11e9e9b3;
float: right;
margin-top: 10px;
margin-right: 10px;
transform: skewX(-25deg);
"
></div>
</div>
</div>
</div>
</div>
<div
class=
"outuser"
>
<div
class=
"outuser"
>
<div
class=
"outuserone"
>
<div
class=
"outuserone"
>
<p>
燃气用户数量
</p>
<p>
燃气用户数量
</p>
<span
class=
"outuserspan"
>
{{diviceNum.userNum
}}
</span>
<span
class=
"outuserspan"
>
{{ diviceNum.userNum
}}
</span>
</div>
</div>
<div
class=
"outusertwo"
>
<div
class=
"outusertwo"
>
<p>
安全设备数量
</p>
<p>
安全设备数量
</p>
<span
class=
"outuserspan"
>
{{diviceNum.baoNum+diviceNum.changNum+diviceNum.liNum}}
</span>
<span
class=
"outuserspan"
>
{{
diviceNum.baoNum + diviceNum.changNum + diviceNum.liNum
}}
</span>
</div>
</div>
</div>
</div>
<div
id=
"huan"
style=
"width: 450px;height: 170px;
"
></div>
<div
id=
"huan"
style=
"width: 450px; height: 170px
"
></div>
<div
class=
"inyuan"
>
<div
class=
"inyuan"
>
<div
style=
"letter-spacing:2px;"
>
设备总数
</div>
<div
style=
"letter-spacing: 2px"
>
设备总数
</div>
<span
style=
"font-family: 'arialbd';letter-spacing:2px;color: #00FFFF;font-size: 20px;"
>
{{diviceNum.baoNum+diviceNum.changNum+diviceNum.liNum}}
</span>
<span
style=
"
font-family: 'arialbd';
letter-spacing: 2px;
color: #00ffff;
font-size: 20px;
"
>
{{ diviceNum.baoNum + diviceNum.changNum + diviceNum.liNum }}
</span
>
</div>
</div>
<div
class=
"usernum"
>
<div
class=
"usernum"
>
<div
class=
"usernumin in1"
>
<div
class=
"usernumin in1"
>
<span>
●
</span>
<span>
●
</span>
<span
style=
"color: #fff;"
>
在线数量
</span>
<span
style=
"color: #fff"
>
在线数量
</span>
<span
style=
"font-family: 'arialbd';letter-spacing:2px;"
>
: {{diviceNum.changNum}}
</span>
<span
style=
"font-family: 'arialbd'; letter-spacing: 2px"
>
: {{ diviceNum.changNum }}
</span
>
</div>
</div>
<div
class=
"usernumin in2"
>
<div
class=
"usernumin in2"
>
<span>
●
</span>
<span>
●
</span>
<span
style=
"color: #fff;"
>
离线数量
</span>
<span
style=
"color: #fff"
>
离线数量
</span>
<span
style=
"font-family: 'arialbd';letter-spacing:2px;"
>
: {{diviceNum.liNum}}
</span>
<span
style=
"font-family: 'arialbd'; letter-spacing: 2px"
>
: {{ diviceNum.liNum }}
</span
>
</div>
</div>
<div
class=
"usernumin in3"
>
<div
class=
"usernumin in3"
>
<span>
●
</span>
<span>
●
</span>
<span
style=
"color: #fff;"
>
报警数量
</span>
<span
style=
"color: #fff"
>
报警数量
</span>
<span
style=
"font-family: 'arialbd';letter-spacing:2px;"
>
: {{diviceNum.baoNum}}
</span>
<span
style=
"font-family: 'arialbd'; letter-spacing: 2px"
>
: {{ diviceNum.baoNum }}
</span
>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
// 引入基本模板
// 引入基本模板
import
*
as
echarts
from
'echarts'
;
import
*
as
echarts
from
"echarts"
;
import
{
alarmData
,
selectDeviceNum
}
from
"@/api/detector/detectorInfo"
;
import
{
alarmData
,
selectDeviceNum
}
from
"@/api/detector/detectorInfo"
;
export
default
{
// 当不轮播时候的刷新时间
import
{
alarmtime
}
from
"@/utils/mapClass/config"
;
export
default
{
// components: {
// components: {
// RightPic,
// RightPic,
// },
// },
data
()
{
data
()
{
return
{
return
{
allNum
:
{},
allNum
:
{},
diviceNum
:
{
diviceNum
:
{
baoNum
:
0
,
baoNum
:
0
,
changNum
:
0
,
changNum
:
0
,
liNum
:
0
,
liNum
:
0
,
userNum
:
0
userNum
:
0
,
},
},
zeroNum
:
{
zeroNum
:
{
fajing
:
0
,
fajing
:
0
,
stationNum
:
0
,
stationNum
:
0
,
tiaoya
:
0
,
tiaoya
:
0
,
videoNum
:
0
videoNum
:
0
,
},
},
enterpriseIds
:
{
enterpriseIds
:
{
enterpriseId
:
""
enterpriseId
:
""
,
},
},
timer
:
null
,
timer
:
null
,
// 与bigwindow的报警同步的定时器
alarmTimer
:
null
,
// 滚动功能的容器大还是列表大
changeTimer
:
false
,
repeatFinshed
:
false
,
repeatFinshed
:
false
,
tableHeight
:
230
,
tableHeight
:
230
,
tableData
:
[],
tableData
:
[],
scrollHeight
:
0
scrollHeight
:
0
,
};
};
},
},
mounted
()
{
mounted
()
{
// this.$nextTick(()=>{
// this.$nextTick(()=>{
// this.getScrollHeight();
// this.getScrollHeight();
// })
// })
this
.
getAlarm
();
this
.
getAlarm
();
selectDeviceNum
(
this
.
enterpriseIds
).
then
(
response
=>
{
selectDeviceNum
(
this
.
enterpriseIds
).
then
((
response
)
=>
{
this
.
diviceNum
=
response
.
data
;
this
.
diviceNum
=
response
.
data
;
this
.
drawLine3
();
this
.
drawLine3
();
});
});
},
},
methods
:
{
methods
:
{
getAlarm
()
{
getAlarm
()
{
alarmData
().
then
(
response
=>
{
return
alarmData
().
then
((
response
)
=>
{
this
.
tableData
=
response
.
data
.
pageData
;
this
.
tableData
=
response
.
data
.
pageData
;
// console.log(response.data)
// console.log(response.data)
// this.user = response.data;
// this.user = response.data;
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
getScrollHeight
();
this
.
getScrollHeight
();
})
});
});
});
},
},
getScrollHeight
()
{
getScrollHeight
()
{
...
@@ -211,107 +332,124 @@
...
@@ -211,107 +332,124 @@
.
querySelector
(
".el-table__body-wrapper"
)
.
querySelector
(
".el-table__body-wrapper"
)
.
querySelector
(
".el-table__body"
);
.
querySelector
(
".el-table__body"
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
// 列表容器高度
// 列表容器高度
const
{
height
:
heightWrapper
}
=
selectWrap
.
getBoundingClientRect
();
const
{
height
:
heightWrapper
}
=
selectWrap
.
getBoundingClientRect
();
// 列表高度
// 列表高度
const
{
height
:
heightSelect
}
=
select
.
getBoundingClientRect
();
const
{
height
:
heightSelect
}
=
select
.
getBoundingClientRect
();
// 滚动条的高度 = 列表高度-列表容器高度
// 滚动条的高度 = 列表高度-列表容器高度
this
.
scrollHeight
=
heightSelect
-
heightWrapper
;
this
.
scrollHeight
=
heightSelect
-
heightWrapper
;
// 如果列表高度大于列表容器高度,就让轮播到底重新调接口,否则就跟bigwindow同步调取接口
},
1
)
if
(
heightSelect
>
heightWrapper
)
{
this
.
timerAni
();
this
.
timerAni
();
console
.
log
(
"滚动"
);
}
else
{
this
.
alarmTimerAni
();
console
.
log
(
"不滚动"
);
}
// 列表大的时候鼠标移入移出就会触发暂停,否则就return
this
.
changeTimer
=
heightSelect
>
heightWrapper
;
},
1
);
},
},
timerAni
()
{
timerAni
()
{
const
selectWrap
=
this
.
$refs
.
table
.
$el
.
querySelector
(
const
selectWrap
=
this
.
$refs
.
table
.
$el
.
querySelector
(
".el-table__body-wrapper"
".el-table__body-wrapper"
);
);
this
.
timer
=
setInterval
(()
=>
{
clearInterval
(
this
.
timer
);
// console.log(selectWrap.scrollTop)
this
.
timer
=
setInterval
(
async
()
=>
{
if
(
selectWrap
.
scrollTop
==
this
.
scrollHeight
)
{
if
(
selectWrap
.
scrollTop
==
this
.
scrollHeight
)
{
selectWrap
.
scrollTop
=
1
;
clearInterval
(
this
.
timer
);
}
await
this
.
getAlarm
();
selectWrap
.
scrollTop
=
0
;
}
else
{
selectWrap
.
scrollTop
+=
1
;
selectWrap
.
scrollTop
+=
1
;
}
},
100
);
},
100
);
},
},
// 与外界报警同步
alarmTimerAni
()
{
this
.
alarmTimer
=
setTimeout
(()
=>
{
this
.
getAlarm
();
},
alarmtime
);
},
tableEnter
()
{
tableEnter
()
{
console
.
log
(
123
);
clearInterval
(
this
.
timer
);
clearInterval
(
this
.
timer
);
},
},
choice
(
val
){
// 列表大的时候鼠标移入移出就会触发暂停,否则就啥也不干
this
.
getNum
(
val
)
mouseover
()
{
this
.
changeTimer
&&
this
.
tableEnter
();
},
mouseout
()
{
this
.
changeTimer
&&
this
.
timerAni
();
},
},
getNum
(
val
){
choice
(
val
)
{
if
(
val
!=
null
&&
val
!=
''
){
this
.
getNum
(
val
);
},
getNum
(
val
)
{
if
(
val
!=
null
&&
val
!=
""
)
{
this
.
enterpriseIds
.
enterpriseId
=
val
.
toString
();
this
.
enterpriseIds
.
enterpriseId
=
val
.
toString
();
selectDeviceNum
(
this
.
enterpriseIds
).
then
(
response
=>
{
selectDeviceNum
(
this
.
enterpriseIds
).
then
((
response
)
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
this
.
allNum
=
response
.
data
;
this
.
allNum
=
response
.
data
;
this
.
drawLine
();
this
.
drawLine
();
});
});
}
else
{
}
else
{
this
.
allNum
=
this
.
zeroNum
;
this
.
allNum
=
this
.
zeroNum
;
this
.
drawLine
();
this
.
drawLine
();
}
}
},
},
drawLine
()
{
drawLine
()
{
// 基于准备好的dom,初始化echarts实例
// 基于准备好的dom,初始化echarts实例
let
myChart1
=
this
.
$echarts
.
init
(
document
.
getElementById
(
'myChartone'
))
let
myChart1
=
this
.
$echarts
.
init
(
document
.
getElementById
(
"myChartone"
));
// 绘制图表
// 绘制图表
myChart1
.
setOption
({
myChart1
.
setOption
({
tooltip
:
{
tooltip
:
{
trigger
:
"item"
trigger
:
"item"
,
},
},
grid
:
{
grid
:
{
top
:
"8%"
,
top
:
"8%"
,
left
:
"8%"
,
left
:
"8%"
,
right
:
"8%"
,
right
:
"8%"
,
bottom
:
"13%"
,
bottom
:
"13%"
,
containLabel
:
true
containLabel
:
true
,
},
},
xAxis
:
{
xAxis
:
{
data
:
[
"阀井"
,
"调压箱"
,
"场站"
,
"监控"
],
data
:
[
"阀井"
,
"调压箱"
,
"场站"
,
"监控"
],
type
:
'category'
,
type
:
"category"
,
// data: category,
// data: category,
splitLine
:
{
show
:
false
},
splitLine
:
{
show
:
false
},
axisLine
:
{
axisLine
:
{
show
:
false
,
show
:
false
,
lineStyle
:
{
lineStyle
:
{
color
:
'#bbb6b6'
color
:
"#bbb6b6"
,
}
},
},
},
axisTick
:
{
axisTick
:
{
show
:
false
show
:
false
,
},
},
offset
:
10
,
offset
:
10
,
nameTextStyle
:
{
nameTextStyle
:
{
fontSize
:
15
fontSize
:
15
,
}
},
},
},
yAxis
:
{
yAxis
:
{
type
:
'value'
,
type
:
"value"
,
axisLine
:
{
axisLine
:
{
show
:
false
,
show
:
false
,
lineStyle
:
{
lineStyle
:
{
color
:
'#688AB6'
color
:
"#688AB6"
,
}
},
},
},
axisTick
:
{
axisTick
:
{
show
:
false
show
:
false
,
},
},
splitLine
:
{
splitLine
:
{
show
:
true
,
show
:
true
,
lineStyle
:
{
lineStyle
:
{
type
:
'dashed'
,
type
:
"dashed"
,
color
:
'#464646'
color
:
"#464646"
,
}
},
}
},
},
},
series
:
[
series
:
[
{
{
...
@@ -319,72 +457,83 @@
...
@@ -319,72 +457,83 @@
type
:
"bar"
,
type
:
"bar"
,
showSymbol
:
false
,
showSymbol
:
false
,
hoverAnimation
:
false
,
hoverAnimation
:
false
,
data
:
[
this
.
allNum
.
fajing
,
this
.
allNum
.
tiaoya
,
this
.
allNum
.
stationNum
,
this
.
allNum
.
videoNum
],
data
:
[
this
.
allNum
.
fajing
,
this
.
allNum
.
tiaoya
,
this
.
allNum
.
stationNum
,
this
.
allNum
.
videoNum
,
],
barWidth
:
18
,
//柱图宽度
barWidth
:
18
,
//柱图宽度
// barCategoryGap:'60%',
// barCategoryGap:'60%',
itemStyle
:
{
itemStyle
:
{
normal
:
{
normal
:
{
label
:
{
label
:
{
show
:
true
,
//开启显示
show
:
true
,
//开启显示
position
:
'top'
,
//在上方显示
position
:
"top"
,
//在上方显示
textStyle
:
{
//数值样式
textStyle
:
{
color
:
'#688AB6'
,
//数值样式
fontSize
:
12
color
:
"#688AB6"
,
}
fontSize
:
12
,
},
},
barBorderRadius
:
[
5
,
5
,
0
,
0
],
},
//每个柱子的颜色即为colorList数组里的每一项,如果柱子数目多于colorList的长度,则柱子颜色循环使用该数组
barBorderRadius
:
[
5
,
5
,
0
,
0
],
//每个柱子的颜色即为colorList数组里的每一项,如果柱子数目多于colorList的长度,则柱子颜色循环使用该数组
color
:
function
(
params
){
color
:
function
(
params
)
{
//我这边就两个柱子,大体就两个柱子颜色渐变,所以数组只有两个值,多个颜色就多个值
//我这边就两个柱子,大体就两个柱子颜色渐变,所以数组只有两个值,多个颜色就多个值
var
colorList
=
[[
'#00ffff'
,
'#00fbfb80'
,
'#112238'
],[
'#198EF0'
,
'#198ef099'
,
'#112238'
]];
var
colorList
=
[
var
index
=
params
.
dataIndex
;
[
"#00ffff"
,
"#00fbfb80"
,
"#112238"
],
if
(
params
.
dataIndex
>=
colorList
.
length
){
[
"#198EF0"
,
"#198ef099"
,
"#112238"
],
index
=
params
.
dataIndex
-
colorList
.
length
;
];
var
index
=
params
.
dataIndex
;
if
(
params
.
dataIndex
>=
colorList
.
length
)
{
index
=
params
.
dataIndex
-
colorList
.
length
;
}
}
return
new
echarts
.
graphic
.
LinearGradient
(
0
,
0
,
0
,
1
,[
return
new
echarts
.
graphic
.
LinearGradient
(
0
,
0
,
0
,
1
,
[
{
offset
:
0
,
color
:
colorList
[
index
][
0
]},
{
offset
:
0
,
color
:
colorList
[
index
][
0
]
},
{
offset
:
0.5
,
color
:
colorList
[
index
][
1
]},
{
offset
:
0.5
,
color
:
colorList
[
index
][
1
]
},
{
offset
:
1
,
color
:
colorList
[
index
][
2
]}
{
offset
:
1
,
color
:
colorList
[
index
][
2
]
},
]);
]);
}
}
}
},{
name
:
'资源数量统计'
,
tooltip
:{
show
:
true
},
type
:
'bar'
,
barWidth
:
10
,
},{
name
:
'b'
,
tooltip
:{
show
:
false
},
},{
name
:
'd'
,
tooltip
:{
show
:
false
},
},
}
},
]
},
},
{
name
:
"资源数量统计"
,
tooltip
:
{
show
:
true
,
},
type
:
"bar"
,
barWidth
:
10
,
},
{
name
:
"b"
,
tooltip
:
{
show
:
false
,
},
},
{
name
:
"d"
,
tooltip
:
{
show
:
false
,
},
},
],
});
});
},
},
drawLine3
()
{
drawLine3
()
{
// 基于准备好的dom,初始化echarts实例
// 基于准备好的dom,初始化echarts实例
let
myChart31
=
echarts
.
init
(
document
.
getElementById
(
'huan'
))
let
myChart31
=
echarts
.
init
(
document
.
getElementById
(
"huan"
));
// let myChart32 = echarts.init(document.getElementById('main32'))
// let myChart32 = echarts.init(document.getElementById('main32'))
// 绘制图表
// 绘制图表
myChart31
.
setOption
({
myChart31
.
setOption
({
color
:
[
'#FF4040'
,
'#F0C41B'
,
'#188DF0'
],
color
:
[
"#FF4040"
,
"#F0C41B"
,
"#188DF0"
],
grid
:
{
grid
:
{
left
:
0
,
left
:
0
,
// right: 0,
// right: 0,
bottom
:
0
,
bottom
:
0
,
top
:
0
,
top
:
0
,
containLabel
:
true
containLabel
:
true
,
},
},
// grid: {
// grid: {
// bottom: 150,
// bottom: 150,
...
@@ -395,9 +544,9 @@
...
@@ -395,9 +544,9 @@
series
:
[
series
:
[
// 主要展示层的
// 主要展示层的
{
{
radius
:
[
'75%'
,
'65%'
],
radius
:
[
"75%"
,
"65%"
],
center
:
[
'50%'
,
'50%'
],
center
:
[
"50%"
,
"50%"
],
type
:
'pie'
,
type
:
"pie"
,
itemStyle
:
{
itemStyle
:
{
borderRadius
:
20
,
borderRadius
:
20
,
},
},
...
@@ -407,52 +556,56 @@
...
@@ -407,52 +556,56 @@
textStyle
:
{
textStyle
:
{
fontSize
:
13
,
fontSize
:
13
,
},
},
position
:
'outside'
position
:
"outside"
,
},
},
emphasis
:
{
emphasis
:
{
show
:
false
show
:
false
,
}
},
},
},
labelLine
:
{
labelLine
:
{
normal
:
{
normal
:
{
show
:
false
,
show
:
false
,
length
:
20
,
length
:
20
,
length2
:
35
length2
:
35
,
},
},
emphasis
:
{
emphasis
:
{
show
:
true
show
:
true
,
}
},
},
},
name
:
"民警训练总量"
,
name
:
"民警训练总量"
,
data
:
[{
"name"
:
"报警数量"
,
"value"
:
this
.
diviceNum
.
baoNum
},
data
:
[
{
"name"
:
"离线数量"
,
"value"
:
this
.
diviceNum
.
liNum
},
{
name
:
"报警数量"
,
value
:
this
.
diviceNum
.
baoNum
},
{
"name"
:
"在线数量"
,
"value"
:
this
.
diviceNum
.
changNum
},
],
{
name
:
"离线数量"
,
value
:
this
.
diviceNum
.
liNum
},
{
name
:
"在线数量"
,
value
:
this
.
diviceNum
.
changNum
},
],
},
},
// 边框的设置
// 边框的设置
{
{
name
:
'外边框'
,
name
:
"外边框"
,
type
:
'pie'
,
type
:
"pie"
,
clockWise
:
false
,
//顺时加载
clockWise
:
false
,
//顺时加载
hoverAnimation
:
false
,
//鼠标移入变大
hoverAnimation
:
false
,
//鼠标移入变大
center
:
[
'50%'
,
'50%'
],
center
:
[
"50%"
,
"50%"
],
radius
:
[
'80%'
,
'80%'
],
radius
:
[
"80%"
,
"80%"
],
label
:
{
label
:
{
normal
:
{
normal
:
{
show
:
false
show
:
false
,
}
},
},
},
data
:
[{
data
:
[
{
value
:
9
,
value
:
9
,
name
:
''
,
name
:
""
,
itemStyle
:
{
itemStyle
:
{
normal
:
{
normal
:
{
borderWidth
:
2
,
borderWidth
:
2
,
borderColor
:
'#61bad3'
borderColor
:
"#61bad3"
,
}
},
}
},
}]
},
},
]
],
},
],
});
});
// myChart32.setOption({
// myChart32.setOption({
// title: {
// title: {
...
@@ -491,13 +644,13 @@
...
@@ -491,13 +644,13 @@
// }
// }
// ]
// ]
// });
// });
}
},
}
},
}
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.titleTex
{
.titleTex
{
height
:
30px
;
height
:
30px
;
width
:
100%
;
width
:
100%
;
color
:
aqua
;
color
:
aqua
;
...
@@ -505,22 +658,22 @@
...
@@ -505,22 +658,22 @@
line-height
:
30px
;
line-height
:
30px
;
margin-top
:
10px
;
margin-top
:
10px
;
}
}
.divall
{
.divall
{
height
:
100%
;
height
:
100%
;
width
:
100%
;
width
:
100%
;
}
}
.divfen
{
.divfen
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
}
}
.numdiv
{
.numdiv
{
background
:
#47aed5
;
background
:
#47aed5
;
color
:
white
;
color
:
white
;
width
:
27px
;
width
:
27px
;
font-size
:
30px
;
font-size
:
30px
;
}
}
.item1
{
.item1
{
width
:
93%
;
width
:
93%
;
height
:
30px
;
height
:
30px
;
font-size
:
18px
;
font-size
:
18px
;
...
@@ -530,7 +683,12 @@
...
@@ -530,7 +683,12 @@
font-weight
:
700
;
font-weight
:
700
;
font-style
:
italic
;
font-style
:
italic
;
margin-left
:
10px
;
margin-left
:
10px
;
background-image
:
linear-gradient
(
to
left
,
#112238
,
rgb
(
49
151
195
/
70%
)
50%
,
#112238
);
background-image
:
linear-gradient
(
to
left
,
#112238
,
rgb
(
49
151
195
/
70%
)
50%
,
#112238
);
}
}
.dot
{
.dot
{
display
:
inline-block
;
display
:
inline-block
;
...
@@ -542,9 +700,9 @@
...
@@ -542,9 +700,9 @@
margin-right
:
10px
;
margin-right
:
10px
;
margin-left
:
10px
;
margin-left
:
10px
;
margin-bottom
:
2px
;
margin-bottom
:
2px
;
}
}
.dot-inner
{
.dot-inner
{
background
:
#44d7dc
;
background
:
#44d7dc
;
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
...
@@ -556,73 +714,73 @@
...
@@ -556,73 +714,73 @@
border-radius
:
50%
;
border-radius
:
50%
;
-webkit-animation
:
vabDot
1.2s
ease-in-out
infinite
;
-webkit-animation
:
vabDot
1.2s
ease-in-out
infinite
;
animation
:
vabDot
1.2s
ease-in-out
infinite
;
animation
:
vabDot
1.2s
ease-in-out
infinite
;
}
}
@-webkit-keyframes
vabDot
{
@-webkit-keyframes
vabDot
{
0
%
{
0
%
{
opacity
:
.6
;
opacity
:
0
.6
;
transform
:
scale
(
.8
)
transform
:
scale
(
0.8
);
}
}
to
{
to
{
opacity
:
0
;
opacity
:
0
;
transform
:
scale
(
2.4
)
transform
:
scale
(
2.4
);
}
}
}
}
@keyframes
vabDot
{
@keyframes
vabDot
{
0
%
{
0
%
{
opacity
:
.6
;
opacity
:
0
.6
;
transform
:
scale
(
.8
)
transform
:
scale
(
0.8
);
}
}
to
{
to
{
opacity
:
0
;
opacity
:
0
;
transform
:
scale
(
2.4
)
transform
:
scale
(
2.4
);
}
}
}
.outuser
{
}
.outuser
{
width
:
450px
;
width
:
450px
;
height
:
60px
;
height
:
60px
;
}
}
.outuserone
{
.outuserone
{
width
:
50%
;
width
:
50%
;
height
:
100%
;
height
:
100%
;
text-align
:
center
;
text-align
:
center
;
float
:
left
;
float
:
left
;
color
:
#E8F2FF
;
color
:
#e8f2ff
;
}
}
.outusertwo
{
.outusertwo
{
width
:
50%
;
width
:
50%
;
height
:
100%
;
height
:
100%
;
text-align
:
center
;
text-align
:
center
;
float
:
right
;
float
:
right
;
color
:
#E8F2FF
;
color
:
#e8f2ff
;
}
}
.outuserspan
{
.outuserspan
{
font-family
:
'arialbd'
;
font-family
:
"arialbd"
;
font-size
:
28px
;
font-size
:
28px
;
color
:
#00FFFF
;
color
:
#00ffff
;
letter-spacing
:
8px
;
letter-spacing
:
8px
;
}
}
.usernum
{
.usernum
{
width
:
100%
;
width
:
100%
;
height
:
20px
;
height
:
20px
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-around
;
justify-content
:
space-around
;
}
}
.usernumin
{
.usernumin
{
font-size
:
15px
;
font-size
:
15px
;
}
}
.in1
{
.in1
{
color
:
#188DF
0
;
color
:
#188df
0
;
}
}
.in2
{
.in2
{
color
:
#F0C41B
;
color
:
#f0c41b
;
}
}
.in3
{
.in3
{
color
:
#FF
4040
;
color
:
#ff
4040
;
}
}
.inyuan
{
.inyuan
{
width
:
106px
;
width
:
106px
;
height
:
106px
;
height
:
106px
;
border-radius
:
50%
;
border-radius
:
50%
;
...
@@ -636,15 +794,15 @@
...
@@ -636,15 +794,15 @@
text-align
:
center
;
text-align
:
center
;
line-height
:
25px
;
line-height
:
25px
;
padding
:
28px
0px
0px
0px
;
padding
:
28px
0px
0px
0px
;
background-image
:
linear-gradient
(
to
left
,
#112238
,
#003E8D
,
#112238
);
background-image
:
linear-gradient
(
to
left
,
#112238
,
#003e8d
,
#112238
);
}
}
.b_list
{
.b_list
{
height
:
100%
;
height
:
100%
;
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.left
{
.left
{
margin-top
:
10px
;
margin-top
:
10px
;
width
:
440px
;
width
:
440px
;
margin-left
:
20px
;
margin-left
:
20px
;
}
}
</
style
>
</
style
>
gassafetyprogress-web/src/utils/mapClass/config.js
View file @
7dbf6501
/*
/*
* @Author: your name
* @Author: your name
* @Date: 2022-01-26 10:47:44
* @Date: 2022-01-26 10:47:44
* @LastEditTime: 2022-03-0
1 16:07:06
* @LastEditTime: 2022-03-0
2 11:28:29
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/utils/config.js
* @FilePath: /test/hello-world/src/utils/config.js
...
@@ -20,6 +20,9 @@ export const pipePressure = {
...
@@ -20,6 +20,9 @@ export const pipePressure = {
3
:
"次高压"
,
3
:
"次高压"
,
4
:
"高压"
,
4
:
"高压"
,
};
};
// 这是报警轮询的时间
export
const
alarmtime
=
10000
;
export
const
svgUrl
=
{
export
const
svgUrl
=
{
2
:
require
(
"@/assets/image/tiaoyaxiang1.svg"
),
2
:
require
(
"@/assets/image/tiaoyaxiang1.svg"
),
3
:
require
(
"@/assets/image/famen1.svg"
),
3
:
require
(
"@/assets/image/famen1.svg"
),
...
...
gassafetyprogress-web/src/views/bigWindow/index.vue
View file @
7dbf6501
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2022-01-11 13:44:17
* @Date: 2022-01-11 13:44:17
* @LastEditTime: 2022-03-0
1 16:08:52
* @LastEditTime: 2022-03-0
2 11:47:13
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/views/Home.vue
* @FilePath: /test/hello-world/src/views/Home.vue
...
@@ -144,6 +144,7 @@ import {
...
@@ -144,6 +144,7 @@ import {
changzhan
,
changzhan
,
jiankong
,
jiankong
,
user
,
user
,
alarmtime
}
from
"@/utils/mapClass/config.js"
;
}
from
"@/utils/mapClass/config.js"
;
import
{
import
{
getPipe
,
getPipe
,
...
@@ -321,7 +322,7 @@ export default {
...
@@ -321,7 +322,7 @@ export default {
this
.
alarmTimer
=
setInterval
(()
=>
{
this
.
alarmTimer
=
setInterval
(()
=>
{
this
.
userAlarm
();
this
.
userAlarm
();
// console.log("查询报警");
// console.log("查询报警");
},
6000
);
},
alarmtime
);
});
});
}
}
this
.
currentTime
();
this
.
currentTime
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment