Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zh-baseversion-project
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
王浩
zh-baseversion-project
Commits
9a2b75e9
Commit
9a2b75e9
authored
Jul 22, 2024
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
left组件优化完成
parent
d171861e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
225 additions
and
185 deletions
+225
-185
left-top-img.png
zh-baseversion-web/src/assets/firstimage/left-top-img.png
+0
-0
all.scss
zh-baseversion-web/src/assets/styles/all.scss
+28
-3
leftBar.vue
zh-baseversion-web/src/components/bigWindow/leftBar.vue
+167
-176
rightBar.vue
zh-baseversion-web/src/components/bigWindow/rightBar.vue
+30
-6
No files found.
zh-baseversion-web/src/assets/firstimage/left-top-img.png
0 → 100644
View file @
9a2b75e9
13.3 KB
zh-baseversion-web/src/assets/styles/all.scss
View file @
9a2b75e9
...
...
@@ -96,6 +96,23 @@
}
.el-table__body-wrapper
{
.el-table__body
{
border-spacing
:
0
5px
;
font-size
:
14px
;
td
:nth-child
(
4
)
.cell
{
text-align
:
center
;
}
}
.el-table__row
{
width
:
100%
;
// display: block;
vertical-align
:
5px
;
height
:
36px
;
width
:
350px
;
}
.el-table__row
:nth-child
(
2n
+
1
)
{
background-color
:
#e6e6e6
;
...
...
@@ -195,8 +212,9 @@
}
.el-table__body-wrapper
{
.el-table__row
:nth-child
(
2n
+
1
)
{
background-color
:
rgb
(
11
22
37
)
;
background-color
:
#062A45
;
&
:hover
td
{
background-color
:
#7bf8f4
30
!
important
;
...
...
@@ -205,13 +223,18 @@
td
{
.cell
{
// color: #525252;
color
:
rgba
(
123
,
248
,
244
,
1
);
// color: rgba(123, 248, 244, 1);
line-height
:
14px
;
color
:
#fff
;
}
}
}
.el-table__row
:nth-child
(
2n
)
{
background-color
:
#213b52
;
// background-color: #213b52;
background-color
:
#062A45
;
&
:hover
td
{
background-color
:
#7bf8f4
30
!
important
;
...
...
@@ -219,6 +242,7 @@
td
{
.cell
{
line-height
:
14px
;
color
:
#fff
;
}
}
...
...
@@ -621,6 +645,7 @@
}
.el-table__body-wrapper
{
.el-table__row
:nth-child
(
2n
+
1
)
{
background-color
:
#e6e6e6
;
...
...
zh-baseversion-web/src/components/bigWindow/leftBar.vue
View file @
9a2b75e9
...
...
@@ -36,16 +36,10 @@
<div
class=
"div-p"
@
click=
"$router.push('/regulation/supervise')"
>
从业人员数(人)
</div>
<span
style=
"
font-family: 'arialbd';
font-size: 35px;
color: rgb(255, 255, 255);
-webkit-background-clip: text;
"
>
{{
allNum
.
peopleNum
}}
</span
>
<div
class=
"div-p-value"
>
{{
allNum
.
peopleNum
}}
</div>
<div></div>
</div>
</div>
<!--
<div
style=
"width: 86%;margin-left: 4%;border-bottom: 1px dashed #094749;margin-top: 15px;margin-bottom: 15px;"
></div>
-->
...
...
@@ -62,15 +56,7 @@
<div
class=
"div-p"
@
click=
"$router.push('/regulation/pipe')"
>
管道长度(m)
</div>
<span
style=
"
font-family: 'arialbd';
font-size: 35px;
color: rgb(255, 255, 255);
-webkit-background-clip: text;
"
>
{{
allNum
.
allPipeLength
}}
</span
>
<div
class=
"div-p-value"
>
{{
allNum
.
allPipeLength
}}
</div>
</div>
</div>
</div>
...
...
@@ -89,26 +75,35 @@
<div
class=
"rightline2"
></div>
</div>
<div
class=
"pieone"
>
<div
id=
"myChartpieone"
:style=
"
{ width: '100%', height: '100%' }"
>
</div>
<div
class=
"titleTex"
>
<div
:style=
"
{ color: '#5470c6' }">● 已完成:
{{
allNum
.
typeOne
}}
</div>
<div
:style=
"
{ color: '#fa8167' }">● 未完成:
{{
allNum
.
typeTwo
}}
</div>
<div
class=
"pie-title"
>
巡检任务数量(个)
</div>
<div
class=
"chars-wrapper"
>
<div
id=
"myChartpieone"
></div>
<div
class=
"titleTex"
>
<div
class=
"titleTex-item"
>
<span>
已完成巡检
</span>
<span
class=
"b"
>
{{
allNum
.
typeOne
}}
</span>
</div>
<div
class=
"titleTex-item"
>
<span>
未完成巡检
</span>
<span
class=
"b"
>
{{
allNum
.
typeTwo
}}
</span>
</div>
</div>
</div>
</div>
<div
class=
"pietwo"
>
<div
id=
"myChartpietwo"
:style=
"
{ width: '100%', height: '100%' }"
>
</div>
<div
class=
"titleTex"
>
<div
:style=
"
{ color: '#5470c6' }">
● 已完成:
{{
this
.
allNum
.
hiddenBookFinish
}}
</div>
<div
:style=
"
{ color: '#fa8167' }">
● 未完成:
{{
this
.
allNum
.
hiddenBookUnFinish
}}
<div
class=
"pie-title"
>
隐患整治数量(个)
</div>
<div
class=
"chars-wrapper"
>
<div
id=
"myChartpietwo"
></div>
<div
class=
"titleTex"
>
<div
class=
"titleTex-item"
>
<span>
已完成整治
</span>
<span
class=
"b"
>
{{
allNum
.
hiddenBookFinish
}}
</span>
</div>
<div
class=
"titleTex-item"
>
<span>
未完成整治
</span>
<span
class=
"b"
>
{{
allNum
.
hiddenBookUnFinish
}}
</span>
</div>
</div>
</div>
</div>
...
...
@@ -116,7 +111,7 @@
<!-- 任务完成率 -->
<div
class=
"leftbar3"
>
<div
class=
"item
1
"
>
<div
class=
"item
3
"
>
<!--
<div
class=
"fong-div"
></div>
<div
class=
"fong-div"
style=
"margin-left: 3px;"
></div>
<div
class=
"fong-div"
style=
"margin-left: 3px;"
></div>
-->
...
...
@@ -283,164 +278,110 @@ export default {
// 绘制图表
pieone
.
setOption
({
title
:
{
text
:
"巡检任务数(个) : "
+
(
this
.
allNum
.
typeOne
+
this
.
allNum
.
typeTwo
)
,
text
:
"总量"
,
subtext
:
this
.
allNum
.
typeOne
+
this
.
allNum
.
typeTwo
||
"0"
,
left
:
"center"
,
top
:
0
,
top
:
25
,
textStyle
:
{
color
:
"#cddbe4"
,
fontSize
:
"16"
,
},
},
grid
:
{
bottom
:
"7%
"
,
containLabel
:
true
,
subtextStyle
:
{
color
:
"#cddbe4"
,
fontSize
:
"16
"
,
}
,
},
tooltip
:
{
trigger
:
"item"
,
show
:
false
,
},
legend
:
{
top
:
"50%"
,
left
:
"center"
,
show
:
false
,
},
series
:
[
{
name
:
"任务概况"
,
color
:
[
"#35A1FF"
,
"#1EC9E3"
],
name
:
"Access From"
,
type
:
"pie"
,
radius
:
"55%"
,
center
:
[
"50%"
,
"58%"
],
data
:
[
{
value
:
this
.
allNum
.
typeTwo
,
name
:
"未完成"
,
itemStyle
:
{
color
:
"#fa8167"
},
},
{
value
:
this
.
allNum
.
typeOne
,
name
:
"已完成"
,
itemStyle
:
{
color
:
"#5470c6"
},
},
],
labelLine
:
{
length
:
20
,
length2
:
50
,
},
label
:
{
color
:
"#fff"
,
fontSize
:
14
,
// formatter:"{b}\n\n",
// padding:[0,-55],
normal
:
{
show
:
false
,
position
:
"outer"
,
// formatter: '{d}%, {c} \n\n',
//模板变量有 {a}, {b},{c},{d},{e},分别表示系列名,数据名,数据值等。
formatter
:
"{a_set|{b}}
\n
{b_set|{d}%}
\n\n\n
"
,
// formatter: "{a_set|{b}}\n{c_set|{d}%}\n{b|}\n\n",
borderWidth
:
20
,
borderRadius
:
4
,
padding
:
[
0
,
-
55
],
rich
:
{
a_set
:
{
color
:
"#cddbe4"
,
lineHeight
:
20
,
align
:
"center"
,
padding
:
[
55
,
-
40
,
-
15
,
-
40
],
},
b_set
:
{
color
:
"auto"
,
},
},
},
radius
:
[
"70%"
,
"90%"
],
avoidLabelOverlap
:
false
,
itemStyle
:
{
borderRadius
:
0
,
borderColor
:
"#fff"
,
borderWidth
:
0
,
},
emphasis
:
{
itemStyle
:
{
sh
adowBlur
:
10
,
shadowOffsetX
:
0
,
shadowColor
:
"rgba(0, 0, 0, 0.5)
"
,
label
:
{
sh
ow
:
false
,
fontSize
:
4
0
,
fontWeight
:
"bold
"
,
},
},
labelLine
:
{
show
:
false
,
},
data
:
[
{
value
:
1048
,
name
:
"Search Engine"
},
{
value
:
735
,
name
:
"Direct"
},
],
},
],
});
pietwo
.
setOption
({
title
:
{
text
:
"隐患整治数(个) : "
+
(
this
.
allNum
.
hiddenBookFinish
+
this
.
allNum
.
hiddenBookUnFinish
),
text
:
"总量"
,
subtext
:
this
.
allNum
.
hiddenBookFinish
+
this
.
allNum
.
hiddenBookUnFinish
||
"0"
,
left
:
"center"
,
top
:
0
,
top
:
25
,
textStyle
:
{
color
:
"#cddbe4"
,
fontSize
:
"16"
,
},
},
grid
:
{
bottom
:
"7%
"
,
containLabel
:
true
,
subtextStyle
:
{
color
:
"#cddbe4"
,
fontSize
:
"16
"
,
}
,
},
tooltip
:
{
trigger
:
"item"
,
show
:
false
,
},
legend
:
{
top
:
"50%"
,
left
:
"center"
,
show
:
false
,
},
series
:
[
{
name
:
"任务概况"
,
color
:
[
"#FEA754"
,
"#D8583E"
],
name
:
"Access From"
,
type
:
"pie"
,
radius
:
"55%"
,
center
:
[
"50%"
,
"58%"
],
data
:
[
{
value
:
this
.
allNum
.
hiddenBookUnFinish
,
name
:
"未完成"
,
itemStyle
:
{
color
:
"#fa8167"
},
},
{
value
:
this
.
allNum
.
hiddenBookFinish
,
name
:
"已完成"
,
itemStyle
:
{
color
:
"#5470c6"
},
},
],
labelLine
:
{
length
:
20
,
length2
:
50
,
},
label
:
{
color
:
"#fff"
,
fontSize
:
14
,
// formatter:"{b}\n\n",
// padding:[0,-55],
normal
:
{
show
:
false
,
position
:
"outer"
,
// formatter: '{d}%, {c} \n\n',
//模板变量有 {a}, {b},{c},{d},{e},分别表示系列名,数据名,数据值等。
formatter
:
"{a_set|{b}}
\n
{b_set|{d}%}
\n\n\n
"
,
// formatter: "{a_set|{b}}\n{c_set|{d}%}\n{b|}\n\n",
borderWidth
:
20
,
borderRadius
:
4
,
padding
:
[
0
,
-
55
],
rich
:
{
a_set
:
{
color
:
"#cddbe4"
,
lineHeight
:
20
,
align
:
"center"
,
padding
:
[
55
,
-
40
,
-
15
,
-
40
],
},
b_set
:
{
color
:
"auto"
,
},
},
},
radius
:
[
"70%"
,
"90%"
],
avoidLabelOverlap
:
false
,
itemStyle
:
{
borderRadius
:
0
,
borderColor
:
"#fff"
,
borderWidth
:
0
,
},
emphasis
:
{
itemStyle
:
{
sh
adowBlur
:
10
,
shadowOffsetX
:
0
,
shadowColor
:
"rgba(0, 0, 0, 0.5)
"
,
label
:
{
sh
ow
:
false
,
fontSize
:
4
0
,
fontWeight
:
"bold
"
,
},
},
labelLine
:
{
show
:
false
,
},
data
:
[
{
value
:
1048
,
name
:
"Search Engine"
},
{
value
:
735
,
name
:
"Direct"
},
],
},
],
});
...
...
@@ -593,8 +534,8 @@ export default {
margin-left
:
2%
;
}
.leftbar1
{
width
:
8
5
%
;
height
:
2
0
%
;
width
:
8
0
%
;
height
:
2
5
%
;
padding-top
:
10%
;
pointer-events
:
auto
;
}
...
...
@@ -607,7 +548,7 @@ export default {
.leftbar3
{
width
:
85%
;
height
:
32%
;
padding-top
:
15
px
;
padding-top
:
20
px
;
padding-bottom
:
35px
;
pointer-events
:
auto
;
}
...
...
@@ -630,7 +571,16 @@ export default {
font-size
:
16px
;
font-weight
:
700
;
margin-left
:
5%
;
margin-top
:
40px
;
margin-top
:
25px
;
}
.item3
{
width
:
85%
;
height
:
30px
;
font-size
:
16px
;
font-weight
:
700
;
margin-left
:
5%
;
padding-top
:
25px
;
line-height
:
10px
;
}
.fong-div
{
width
:
4px
;
...
...
@@ -644,7 +594,6 @@ export default {
height
:
2px
;
float
:
right
;
background-image
:
linear-gradient
(
to
left
,
#47a0ff
,
#ffffff
00
);
margin-top
:
10px
;
margin-right
:
50px
;
}
...
...
@@ -714,13 +663,25 @@ export default {
}
} */
.div-p
{
width
:
100%
;
background
:
url("../../assets/ranqifirst/div-p.png")
;
// width: 100%;
width
:
155px
;
// background: url("../../assets/ranqifirst/div-p.png");
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
cursor
:
pointer
;
text-align
:
center
;
padding
:
7px
0px
;
color
:
#0ff
;
// color: #0ff;
}
.div-p-value
{
width
:
155px
;
height
:
77px
;
text-align
:
center
;
font-family
:
"arialbd"
;
font-size
:
35px
;
color
:
rgb
(
255
,
255
,
255
);
-webkit-background-clip
:
text
;
background
:
url("~@/assets/firstimage/left-top-img.png")
center
;
}
.div-el
{
...
...
@@ -769,15 +730,16 @@ export default {
color: #1e516f;
} */
.titleTex
{
width
:
100%
;
height
:
20px
;
margin-top
:
0px
;
text-align
:
center
;
/* font-size: 15px;
display: flex;
justify-content: space-around;
align-items: center; */
padding
:
0px
30px
;
flex
:
1
;
align-content
:
center
;
.titleTex-item
{
color
:
#fff
;
margin-left
:
40px
;
margin-bottom
:
10px
;
.b
{
margin-left
:
40px
;
}
}
}
.leftyj
{
margin-top
:
10px
;
...
...
@@ -803,16 +765,45 @@ export default {
line-height
:
35px
;
padding
:
10px
0
0
0
;
}
.pieone
{
width
:
5
0%
;
height
:
6
0%
;
float
:
left
;
width
:
8
0%
;
height
:
4
0%
;
//
float: left;
margin-top
:
30px
;
margin-left
:
40px
;
.pie-title
{
color
:
#fff
;
margin-bottom
:
10px
;
}
.chars-wrapper
{
width
:
100%
;
// height: 100%;
display
:
flex
;
}
#myChartpieone
{
width
:
100px
;
height
:
100px
;
}
}
.pietwo
{
width
:
50%
;
height
:
60%
;
float
:
right
;
margin-top
:
30px
;
width
:
80%
;
height
:
40%
;
margin-left
:
40px
;
.pie-title
{
color
:
#fff
;
margin-bottom
:
10px
;
}
.chars-wrapper
{
width
:
100%
;
// height: 100%;
display
:
flex
;
}
#myChartpietwo
{
width
:
100px
;
height
:
100px
;
}
// float: right;
// margin-top: 30px;
}
</
style
>
zh-baseversion-web/src/components/bigWindow/rightBar.vue
View file @
9a2b75e9
...
...
@@ -424,8 +424,26 @@ export default {
changeTimer
:
false
,
repeatFinshed
:
false
,
tableHeight
:
135
,
tableData
:
[{
unitName
:
123
},{
unitName
:
456
},{
unitName
:
45446
}],
tableHeight
:
185
,
tableData
:
[
// {
// unitName: 123,
// handledStatus: 123,
// statusName: 345,
// alarmTime: "2014-11-11 10:10:10",
// },
// {
// unitName: 456,
// handledStatus: 123,
// statusName: 345,
// alarmTime: "2014-11-11 10:10:10",
// },
// { unitName: 45446, alarmTime: "2014-11-11 10:10:10" },
// { unitName: 45446, alarmTime: "2014-11-11 10:10:10" },
// { unitName: 45446, alarmTime: "2014-11-11 10:10:10" },
// { unitName: 45446, alarmTime: "2014-11-11 10:10:10" },
// { unitName: 45446, alarmTime: "2014-11-11 10:10:10" },
],
yujingdata
:
{
unitName
:
"省移动"
,
detectorType
:
""
,
...
...
@@ -497,7 +515,7 @@ export default {
cancel1
()
{},
getAlarm
()
{
return
alarmData
().
then
((
response
)
=>
{
return
;
//
return;
this
.
tableData
=
response
.
data
.
pageData
;
if
(
this
.
tableData
.
length
>
0
)
{
this
.
yujingdata
=
this
.
tableData
[
0
];
...
...
@@ -550,7 +568,8 @@ export default {
);
clearInterval
(
this
.
timer
);
this
.
timer
=
setInterval
(
async
()
=>
{
if
(
selectWrap
.
scrollTop
==
this
.
scrollHeight
)
{
// console.log(selectWrap.scrollTop,this.scrollHeight)
if
(
selectWrap
.
scrollTop
>=
this
.
scrollHeight
)
{
clearInterval
(
this
.
timer
);
await
this
.
getAlarm
();
selectWrap
.
scrollTop
=
0
;
...
...
@@ -1140,7 +1159,7 @@ export default {
};
</
script
>
<
style
scoped
>
<
style
lang=
"scss"
scoped
>
.rightb
{
width
:
98%
;
height
:
100%
;
...
...
@@ -1393,8 +1412,13 @@ titletu2 {
.left
{
margin-top
:
10px
;
width
:
350px
;
height
:
5
5%
;
height
:
7
5%
;
margin-left
:
35px
;
.right-bottom-data-left
{
height
:
100%
;
// background: red;
}
}
.yj
{
padding
:
0px
10px
;
...
...
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