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
c1e5c241
Commit
c1e5c241
authored
Jul 16, 2024
by
纪泽龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jzl'
parents
9ee22145
b2b24350
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
647 additions
and
202 deletions
+647
-202
btm-item-active.png
zh-baseversion-web/src/assets/firstimage/btm-item-active.png
+0
-0
btm-item-one.png
zh-baseversion-web/src/assets/firstimage/btm-item-one.png
+0
-0
btm-item.png
zh-baseversion-web/src/assets/firstimage/btm-item.png
+0
-0
btmA.png
zh-baseversion-web/src/assets/firstimage/btmA.png
+0
-0
btmB.png
zh-baseversion-web/src/assets/firstimage/btmB.png
+0
-0
l.png
zh-baseversion-web/src/assets/firstimage/l.png
+0
-0
r.png
zh-baseversion-web/src/assets/firstimage/r.png
+0
-0
all.scss
zh-baseversion-web/src/assets/styles/all.scss
+5
-1
PipeColor.vue
zh-baseversion-web/src/components/bigWindow/PipeColor.vue
+3
-3
rightBar.vue
zh-baseversion-web/src/components/bigWindow/rightBar.vue
+2
-1
Bottom.vue
zh-baseversion-web/src/views/bigWindow/components/Bottom.vue
+242
-124
BottomOld.vue
...eversion-web/src/views/bigWindow/components/BottomOld.vue
+263
-0
index.vue
zh-baseversion-web/src/views/bigWindow/index.vue
+127
-69
vue.config.js
zh-baseversion-web/vue.config.js
+5
-4
No files found.
zh-baseversion-web/src/assets/firstimage/btm-item-active.png
0 → 100644
View file @
c1e5c241
922 Bytes
zh-baseversion-web/src/assets/firstimage/btm-item-one.png
0 → 100644
View file @
c1e5c241
1 KB
zh-baseversion-web/src/assets/firstimage/btm-item.png
0 → 100644
View file @
c1e5c241
2.51 KB
zh-baseversion-web/src/assets/firstimage/btmA.png
0 → 100644
View file @
c1e5c241
6.27 KB
zh-baseversion-web/src/assets/firstimage/btmB.png
0 → 100644
View file @
c1e5c241
1.89 KB
zh-baseversion-web/src/assets/firstimage/l.png
0 → 100644
View file @
c1e5c241
589 Bytes
zh-baseversion-web/src/assets/firstimage/r.png
0 → 100644
View file @
c1e5c241
551 Bytes
zh-baseversion-web/src/assets/styles/all.scss
View file @
c1e5c241
...
...
@@ -746,3 +746,7 @@
// pointer-events:auto !important;
// top:-30px !important;
}
zh-baseversion-web/src/components/bigWindow/PipeColor.vue
View file @
c1e5c241
...
...
@@ -8,7 +8,7 @@
-->
<
template
>
<div>
<
div
class=
"pipePressure"
>
<
!--
<div
class=
"pipePressure"
>
--
>
<!--
<div
style=
"float: left;margin-right: 5px;"
>
<div
class=
"hasColorBox"
>
...
...
@@ -32,7 +32,7 @@
监控
</div>
</div>
-->
<div>
<
!--
<
div>
<div
class=
"hasColorBox"
:style=
"
{ color: pipeColor[`1`] }">
<div
:style=
"
{ backgroundColor: pipeColor[`1`] }">
</div>
低压管线
...
...
@@ -50,7 +50,7 @@
高压管线
</div>
</div>
</div>
</div>
-->
<div
class=
"mapChange"
>
<div
:class=
"
{ active: mapStyle }" @click="mapChange(2)">全景地图
</div>
...
...
zh-baseversion-web/src/components/bigWindow/rightBar.vue
View file @
c1e5c241
...
...
@@ -1151,6 +1151,7 @@ export default {
.rightb
{
width
:
98%
;
height
:
100%
;
}
.rightbar1
{
width
:
90%
;
...
...
@@ -1161,7 +1162,7 @@ export default {
.rightbar2
{
width
:
76%
;
height
:
37%
;
padding-top
:
15
px
;
padding-top
:
30
px
;
margin-left
:
20%
;
pointer-events
:
auto
;
}
...
...
zh-baseversion-web/src/views/bigWindow/components/Bottom.vue
View file @
c1e5c241
<!--
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 202
3-07-12 13:58:25
* @Date: 202
4-07-15 10:26:41
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 202
3-07-12 17:12:59
* @FilePath: /
gassafetyprogress
-web/src/views/bigWindow/components/Bottom.vue
* @LastEditTime: 202
4-07-16 17:27:41
* @FilePath: /
zh-baseversion
-web/src/views/bigWindow/components/Bottom.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<
template
>
<div
class=
"bigwindow-bottom listingsSty"
>
<div
class=
"big-bottom"
>
<div
class=
"left"
>
<img
src=
"~@/assets/firstimage/bottombk.svg"
v-if=
"cont != list.length - 3"
@
click
.
stop=
"cont++"
src=
"@/assets/firstimage/l.png"
alt=
""
style=
"backdrop-filter: blur(4px)"
/>
<div
class=
"listingsSty"
>
</div>
<div
class=
"container"
>
<transition
name=
"fade"
mode=
"out-in"
>
<div
v-if=
"activeCom.label"
class=
"children"
>
<div
v-for=
"item in activeCom.children"
:key=
"item.value"
:title=
"'河北冉盛升新能源有限公123123123司'"
class=
"child zzz"
:class=
"[
{ active: selectActive.includes(item.value) }]"
@click.stop="selectActiveChange(item.value)"
>
{{
item
.
label
}}
</div>
</div>
</transition>
<div
class=
"
firsty selectA
ll"
class=
"
a
ll"
@
click
.
stop=
"selectAll"
:class=
"[
{
:class=
"
{
active:
selectActive.length == listFlatArr.length
&&
selectActive.length > 1,
},
]"
}"
>
全部
</div>
<div
class=
"firsty item"
v-for=
"(item, index) in list"
:key=
"item.value"
>
<div
class=
"other"
>
<div
class=
"other2"
>
<div
class=
"move"
:style=
"
{ left: -cont * 144 + 'px' }">
<div
class=
"itemCompany"
@
click
.
stop=
"selectChange(item.value)"
v-for=
"item in list"
@
click
.
stop=
"itemClick(item)"
:key=
"item.value"
class=
"item"
:class=
"[
{ active: selectSome(index) },
{ activeAll: selectEvery(index) },
{ active: item.label == activeCom.label },
{ minOne: selectSome(item) },
{ maxAll: selectEvery(item) },
]"
>
{{
item
.
label
}}
</div>
<div
class=
"up-select"
:class=
"[
{ hide: !selectShowNum.includes(item.value) }]"
:style="{ height: item.children.length * 35 + 'px' }"
>
<div
class=
"selectItem"
v-for=
"selectItem in item.children"
:class=
"[
{ active: selectActive.includes(selectItem.value) }]"
:key="selectItem.value"
@click.stop="selectActiveChange(selectItem.value)"
>
{{
selectItem
.
label
}}
</div>
</div>
</div>
</div>
<div
class=
"right"
>
<img
v-if=
"cont != 0"
@
click
.
stop=
"cont--"
src=
"@/assets/firstimage/r.png"
alt=
""
/>
</div>
</div>
</
template
>
<
script
>
import
{
mapGetters
,
mapActions
}
from
"vuex"
;
export
default
{
name
:
""
,
data
()
{
return
{
cont
:
0
,
list
:
[
{
value
:
1
,
...
...
@@ -92,6 +108,8 @@ export default {
],
},
],
// 被选中的公司
activeCom
:
{},
selectShowNum
:
[],
// 被选中的值
selectActive
:
[],
...
...
@@ -101,12 +119,10 @@ export default {
computed
:
{
...
mapGetters
([
"company"
,
"systemSetting"
]),
},
beforeCreate
()
{},
mounted
()
{
this
.
GetCompany
().
then
((
res
)
=>
{
this
.
company
.
forEach
((
item
)
=>
{
this
.
list
[
item
.
companyType
-
1
].
children
.
push
({
this
.
list
[
item
.
companyType
-
1
].
children
.
push
({
value
:
item
.
conpanyId
,
label
:
item
.
companyName
,
});
...
...
@@ -118,9 +134,8 @@ export default {
...
mapActions
({
GetCompany
:
"bigWindowCompany/GetCompany"
,
}),
// 把下拉框放下
selectUpClear
(){
this
.
selectShowNum
=
[];
selectUpClear
()
{
this
.
activeCom
=
{};
},
selectAll
()
{
// 生成所有都选中的数组
...
...
@@ -141,12 +156,12 @@ export default {
}
this
.
$emit
(
"listChange"
,
this
.
selectActive
);
},
selectChange
(
value
)
{
const
num
=
this
.
selectShowNum
.
indexOf
(
value
)
;
if
(
num
>=
0
)
{
this
.
selectShowNum
.
splice
(
num
,
1
)
;
itemClick
(
item
)
{
if
(
item
.
children
.
length
==
0
)
return
;
if
(
this
.
activeCom
==
item
)
{
this
.
activeCom
=
{}
;
}
else
{
this
.
selectShowNum
.
push
(
value
)
;
this
.
activeCom
=
item
;
}
},
selectActiveChange
(
value
)
{
...
...
@@ -158,20 +173,19 @@ export default {
}
this
.
$emit
(
"listChange"
,
this
.
selectActive
);
},
// 至少有一个被选中
selectSome
(
index
)
{
selectSome
(
item
)
{
return
(
this
.
list
[
index
]
.
children
.
length
>
0
&&
this
.
list
[
index
]
.
children
.
some
((
item
)
=>
{
item
.
children
.
length
>
0
&&
item
.
children
.
some
((
item
)
=>
{
return
this
.
selectActive
.
includes
(
item
.
value
);
})
);
},
// 都被选中
selectEvery
(
i
ndex
)
{
selectEvery
(
i
tem
)
{
return
(
this
.
list
[
index
]
.
children
.
length
>
0
&&
this
.
list
[
index
]
.
children
.
every
((
item
)
=>
{
item
.
children
.
length
>
0
&&
item
.
children
.
every
((
item
)
=>
{
return
this
.
selectActive
.
includes
(
item
.
value
);
})
);
...
...
@@ -180,84 +194,188 @@ export default {
};
</
script
>
<
style
lang=
"scss"
scoped
>
.big
window
-bottom
{
width
:
40%
;
height
:
7
0px
;
.big-bottom
{
width
:
810px
;
height
:
5
0px
;
position
:
fixed
;
bottom
:
0
;
margin-left
:
30%
;
display
:
flex
;
// z-index: 1000;
img
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
z-index
:
-1
;
bottom
:
-10px
;
}
.listingsSty
{
padding-left
:
15%
;
padding-right
:
15%
;
bottom
:
38px
;
left
:
50%
;
margin-left
:
-405px
;
background
:
url("~@/assets/firstimage/btmA.png")
no-repeat
bottom
center
,
url("~@/assets/firstimage/btmB.png")
no-repeat
bottom
center
;
box-sizing
:
border-box
;
width
:
180%
;
padding
:
0
80px
;
display
:
flex
;
justify-content
:
space-between
;
.firsty
{
// width: 15%;
min-width
:
80px
;
height
:
35px
;
align-items
:
center
;
.container
{
// background: red;
flex
:
1
;
margin-right
:
22px
;
height
:
28px
;
display
:
flex
;
.all
{
transition
:
all
0
.2s
linear
;
width
:
128px
;
margin-right
:
16px
;
text-align
:
center
;
line-height
:
35
px
;
line-height
:
28
px
;
color
:
#fff
;
font-size
:
16px
;
cursor
:
pointer
;
&
.selectAll
{
transition
:
all
0
.5s
ease
;
background
:
url("~@/assets/firstimage/btm-item.png")
no-repeat
bottom
center
;
&
.active
{
color
:
#00ffff
;
text-shadow
:
0
0
20px
rgba
(
0
,
255
,
255
,
1
)
,
0
0
35px
rgb
(
0
,
255
,
255
,
1
);
background
:
url("~@/assets/firstimage/btm-item-active.png")
no-repeat
bottom
center
;
}
&
:hover
{
opacity
:
0
.7
;
}
}
.other
{
flex
:
1
;
width
:
0
;
position
:
relative
;
.other2
{
width
:
100%
;
height
:
100%
;
overflow
:
hidden
;
&
.item
{
min-width
:
180px
;
.move
{
transition
:
all
0
.5s
linear
;
width
:
1000px
;
height
:
100%
;
// background: blue;
position
:
relative
;
.itemCompany
{
transition
:
all
0
.5s
ease
;
display
:
flex
;
align-items
:
center
;
left
:
0px
;
.item
{
transition
:
all
0
.2s
linear
;
width
:
128px
;
margin-right
:
16px
;
text-align
:
center
;
line-height
:
28px
;
color
:
#fff
;
font-size
:
16px
;
cursor
:
pointer
;
background
:
url("~@/assets/firstimage/btm-item.png")
no-repeat
bottom
center
;
&
.active
{
color
:
#00ffff
;
text-shadow
:
0
0
20px
rgba
(
0
,
255
,
255
,
0
.3
)
,
0
0
35px
rgb
(
0
,
255
,
255
,
0
.3
);
color
:
#1ec9e3
;
}
// 最少选中一个
&
.minOne
{
background
:
url("~@/assets/firstimage/btm-item-one.png")
no-repeat
bottom
center
;
}
// 全选中
&
.maxAll
{
background
:
url("~@/assets/firstimage/btm-item-active.png")
no-repeat
bottom
center
;
}
&
:hover
{
opacity
:
0
.7
;
}
}
&
.activeAll
{
color
:
#00ffff
;
text-shadow
:
0
0
20px
rgba
(
0
,
255
,
255
,
1
)
,
0
0
35px
rgb
(
0
,
255
,
255
,
1
);
}
}
.up-select
{
transition
:
all
0
.5s
ease
;
}
.children
{
transition
:
all
1s
linear
;
width
:
620px
;
max-height
:
214px
;
position
:
absolute
;
// background: red;
background
:
rgba
(
2
,
26
,
51
,
0
.9
);
border
:
1px
solid
#127bd1
;
box-shadow
:
inset
0px
0px
10px
0px
#164db2
;
left
:
50%
;
margin-left
:
-310px
;
// top: -215px;
bottom
:
50px
;
left
:
0
;
width
:
100%
;
background
:
rgb
(
18
,
92
,
155
,
0
.3
);
overflow
:
hidden
;
&
.hide
{
height
:
0px
!
important
;
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
space-between
;
box-sizing
:
border-box
;
padding
:
20px
20px
0px
20px
;
// 滚动条
overflow-y
:
auto
;
&
:
:-
webkit-scrollbar
{
width
:
10px
;
background
:
#012a53
;
position
:
absolute
;
top
:
0
;
}
&
:
:-
webkit-scrollbar-thumb
{
/*滚动条里面小方块*/
// border-radius: 10px;
// box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
background
:
#000000
52
;
border-radius
:
8px
;
}
&
:
:-
webkit-scrollbar-track
{
/*滚动条里面轨道*/
// box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
// border-radius: 10px;
// background-color: red;
}
.selectItem
{
transition
:
all
0
.5s
ease
;
&
:
:-
webkit-scrollbar-button
:
start
{
// overflow: hidden;
}
&
:
:-
webkit-scrollbar-button
:
end
{
// overflow: hidden;
}
.child
{
width
:
275px
;
height
:
32px
;
margin-bottom
:
16px
;
background
:
#0b2d47
;
box-sizing
:
border-box
;
padding-left
:
21px
;
line-height
:
32px
;
color
:
#fff
;
border
:
1px
solid
rgba
(
54
,
136
,
255
,
0
.2392
);
cursor
:
pointer
;
&
.active
{
color
:
#00ffff
;
text-shadow
:
0
0
20px
#00ffff
,
0
0
35px
#00ffff
;
background
:
rgba
(
255
,
141
,
70
,
0
.29
);
box-sizing
:
border-box
;
border
:
1px
solid
rgba
(
255
,
178
,
130
,
0
.4
);
}
&
:hover
{
opacity
:
0
.7
;
}
}
}
}
.left
{
margin-right
:
32px
;
color
:
white
;
}
.right
{
color
:
white
;
}
.left
,
.right
{
width
:
14px
;
height
:
20px
;
img
{
transition
:
all
0
.5s
linear
;
width
:
100%
;
height
:
100%
;
cursor
:
pointer
;
&
:hover
{
opacity
:
0
.7
;
}
}
}
// background: red;
}
</
style
>
zh-baseversion-web/src/views/bigWindow/components/BottomOld.vue
0 → 100644
View file @
c1e5c241
<!--
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 2023-07-12 13:58:25
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2023-07-12 17:12:59
* @FilePath: /gassafetyprogress-web/src/views/bigWindow/components/Bottom.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<
template
>
<div
class=
"bigwindow-bottom listingsSty"
>
<img
src=
"~@/assets/firstimage/bottombk.svg"
alt=
""
style=
"backdrop-filter: blur(4px)"
/>
<div
class=
"listingsSty"
>
<div
class=
"firsty selectAll"
@
click
.
stop=
"selectAll"
:class=
"[
{
active:
selectActive.length == listFlatArr.length
&&
selectActive.length > 1,
},
]"
>
全部
</div>
<div
class=
"firsty item"
v-for=
"(item, index) in list"
:key=
"item.value"
>
<div
class=
"itemCompany"
@
click
.
stop=
"selectChange(item.value)"
:class=
"[
{ active: selectSome(index) },
{ activeAll: selectEvery(index) },
]"
>
{{
item
.
label
}}
</div>
<div
class=
"up-select"
:class=
"[
{ hide: !selectShowNum.includes(item.value) }]"
:style="{ height: item.children.length * 35 + 'px' }"
>
<div
class=
"selectItem"
v-for=
"selectItem in item.children"
:class=
"[
{ active: selectActive.includes(selectItem.value) }]"
:key="selectItem.value"
@click.stop="selectActiveChange(selectItem.value)"
>
{{
selectItem
.
label
}}
</div>
</div>
</div>
</div>
</div>
</
template
>
<
script
>
import
{
mapGetters
,
mapActions
}
from
"vuex"
;
export
default
{
name
:
""
,
data
()
{
return
{
list
:
[
{
value
:
1
,
label
:
"天然气公司"
,
children
:
[
// { value: 10, label: "东阿道夫阿" },
// { value: 11, label: "阿发送到" },
// { value: 19, label: "发打算发大水" },
],
},
{
value
:
2
,
label
:
"液化气公司"
,
children
:
[
// { value: 21, label: "2-1" },
// { value: 22, label: "2-2" },
],
},
{
value
:
3
,
label
:
"加气站"
,
children
:
[
// { value: 31, label: "3-1" },
// { value: 32, label: "3-2" },
],
},
],
selectShowNum
:
[],
// 被选中的值
selectActive
:
[],
listFlatArr
:
[],
};
},
computed
:
{
...
mapGetters
([
"company"
,
"systemSetting"
]),
},
beforeCreate
()
{},
mounted
()
{
this
.
GetCompany
().
then
((
res
)
=>
{
this
.
company
.
forEach
((
item
)
=>
{
this
.
list
[
item
.
companyType
-
1
].
children
.
push
({
value
:
item
.
conpanyId
,
label
:
item
.
companyName
,
});
});
this
.
selectAll
();
});
},
methods
:
{
...
mapActions
({
GetCompany
:
"bigWindowCompany/GetCompany"
,
}),
// 把下拉框放下
selectUpClear
(){
this
.
selectShowNum
=
[];
},
selectAll
()
{
// 生成所有都选中的数组
this
.
listFlatArr
=
this
.
list
.
map
((
item
)
=>
{
return
item
.
children
.
map
((
iten
)
=>
{
return
iten
.
value
;
});
})
.
flat
();
// 如果是全选中状态,则全取消,否则全选
if
(
this
.
selectActive
.
length
==
this
.
listFlatArr
.
length
)
{
this
.
selectActive
=
[];
}
else
{
this
.
selectActive
=
[...
this
.
listFlatArr
];
}
this
.
$emit
(
"listChange"
,
this
.
selectActive
);
},
selectChange
(
value
)
{
const
num
=
this
.
selectShowNum
.
indexOf
(
value
);
if
(
num
>=
0
)
{
this
.
selectShowNum
.
splice
(
num
,
1
);
}
else
{
this
.
selectShowNum
.
push
(
value
);
}
},
selectActiveChange
(
value
)
{
const
num
=
this
.
selectActive
.
indexOf
(
value
);
if
(
num
>=
0
)
{
this
.
selectActive
.
splice
(
num
,
1
);
}
else
{
this
.
selectActive
.
push
(
value
);
}
this
.
$emit
(
"listChange"
,
this
.
selectActive
);
},
// 至少有一个被选中
selectSome
(
index
)
{
return
(
this
.
list
[
index
].
children
.
length
>
0
&&
this
.
list
[
index
].
children
.
some
((
item
)
=>
{
return
this
.
selectActive
.
includes
(
item
.
value
);
})
);
},
// 都被选中
selectEvery
(
index
)
{
return
(
this
.
list
[
index
].
children
.
length
>
0
&&
this
.
list
[
index
].
children
.
every
((
item
)
=>
{
return
this
.
selectActive
.
includes
(
item
.
value
);
})
);
},
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
.bigwindow-bottom
{
width
:
40%
;
height
:
70px
;
position
:
fixed
;
bottom
:
0
;
margin-left
:
30%
;
display
:
flex
;
// z-index: 1000;
img
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
z-index
:
-1
;
bottom
:
-10px
;
}
.listingsSty
{
padding-left
:
15%
;
padding-right
:
15%
;
box-sizing
:
border-box
;
width
:
180%
;
display
:
flex
;
justify-content
:
space-between
;
.firsty
{
// width: 15%;
min-width
:
80px
;
height
:
35px
;
text-align
:
center
;
line-height
:
35px
;
color
:
#fff
;
font-size
:
16px
;
cursor
:
pointer
;
&
.selectAll
{
transition
:
all
0
.5s
ease
;
&
.active
{
color
:
#00ffff
;
text-shadow
:
0
0
20px
rgba
(
0
,
255
,
255
,
1
)
,
0
0
35px
rgb
(
0
,
255
,
255
,
1
);
}
}
&
.item
{
min-width
:
180px
;
position
:
relative
;
.itemCompany
{
transition
:
all
0
.5s
ease
;
&
.active
{
color
:
#00ffff
;
text-shadow
:
0
0
20px
rgba
(
0
,
255
,
255
,
0
.3
)
,
0
0
35px
rgb
(
0
,
255
,
255
,
0
.3
);
}
&
.activeAll
{
color
:
#00ffff
;
text-shadow
:
0
0
20px
rgba
(
0
,
255
,
255
,
1
)
,
0
0
35px
rgb
(
0
,
255
,
255
,
1
);
}
}
.up-select
{
transition
:
all
0
.5s
ease
;
position
:
absolute
;
bottom
:
50px
;
left
:
0
;
width
:
100%
;
background
:
rgb
(
18
,
92
,
155
,
0
.3
);
overflow
:
hidden
;
&
.hide
{
height
:
0px
!
important
;
}
.selectItem
{
transition
:
all
0
.5s
ease
;
&
.active
{
color
:
#00ffff
;
text-shadow
:
0
0
20px
#00ffff
,
0
0
35px
#00ffff
;
}
}
}
}
}
}
}
</
style
>
zh-baseversion-web/src/views/bigWindow/index.vue
View file @
c1e5c241
<!--
* @Author: your name
* @Date: 2022-01-11 13:44:17
* @LastEditTime: 202
3-07-12 17:13:16
* @LastEditTime: 202
4-07-15 14:29:45
* @LastEditors: 纪泽龙 jizelong@qq.com
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/views/Home.vue
-->
<
template
>
<div
class=
"home bigwindow"
@
click=
'windowClick'
>
<div
class=
"home bigwindow"
@
click=
"windowClick"
>
<div
class=
"goSystem"
@
click=
"$router.push('/index')"
>
进入管理系统
</div>
<div
id=
"map"
></div>
<!--
<Center
:show=
"show"
:centerData=
"centerData"
/>
-->
...
...
@@ -30,7 +30,10 @@
:pageSize=
"20"
/>
<PipeColor
/>
<PipeSelect
@
transmit=
"getPipeSelectMessage"
@
closeMediumPressureLine=
"clearBigWindowsSelectPipe"
/>
<!--
<PipeSelect
@
transmit=
"getPipeSelectMessage"
@
closeMediumPressureLine=
"clearBigWindowsSelectPipe"
/>
-->
<!-- 底部按钮 -->
<!--
<div
class=
"home-div"
>
...
...
@@ -54,7 +57,7 @@
</div>
</div>
</div>
-->
<Bottom
v-if=
"enterpriseId
==-2"
@
listChange=
"listChange"
ref=
'Bottom'
/>
<Bottom
v-if=
"enterpriseId
== -2"
@
listChange=
"listChange"
ref=
"Bottom"
/>
<!-- 设备按钮 -->
<div
class=
"typelist-div"
>
<div
...
...
@@ -83,18 +86,21 @@
<!-- 头部 -->
<div
class=
"banner-test"
>
<!--
<dv-decoration-5
style=
"width:100%;height:100%;"
/>
-->
<img
v-if=
"this.enterpriseId==-2"
src=
"../../assets/images/zibk.png"
alt=
""
/>
<img
v-if=
"this.enterpriseId == -2"
src=
"../../assets/images/zibk.png"
alt=
""
/>
<img
v-else
src=
"../../assets/images/20230805152711.png"
alt=
""
/>
</div>
<!-- 左边 -->
<div
class=
"leftbar"
>
<div
class=
"leftbar"
:style=
"changeLeftBarStyle"
>
<leftBar
ref=
"mychild2"
></leftBar>
</div>
<!-- 右边 -->
<div
class=
"rightbar"
>
<div
class=
"rightbar"
:style=
"changeRightBarStyle"
>
<rightBar
ref=
"mychild"
></rightBar>
</div>
<!--
<img
src=
"../../assets/images/leftbk.svg"
alt=
""
>
-->
...
...
@@ -150,7 +156,11 @@
import
{
EditorMap
}
from
"@/utils/mapClass/map"
;
import
{
mapGetters
,
mapActions
}
from
"vuex"
;
import
{
listDetectorInfo
}
from
"@/api/detector/detectorInfo"
;
import
{
detectorUserList
,
massMarksDetectorUserList
,
labelsLayerMarksDetectorUserList
}
from
"@/api/detector/detectorUser"
;
import
{
detectorUserList
,
massMarksDetectorUserList
,
labelsLayerMarksDetectorUserList
,
}
from
"@/api/detector/detectorUser"
;
import
{
pipeData
,
tiaoyaxiang
,
...
...
@@ -171,7 +181,7 @@ import {
userAlarm
,
getTcqDevice
,
getYhq
,
deviceUser
deviceUser
,
}
from
"@/api/bigWindow/getDevice"
;
import
Line
from
"@/components/bigWindow/Line.vue"
;
import
VideoView
from
"@/components/bigWindow/VideoView.vue"
;
...
...
@@ -190,9 +200,9 @@ import { getUserProfile } from "@/api/system/user";
import
leftBar
from
"@/components/bigWindow/leftBar.vue"
;
import
rightBar
from
"@/components/bigWindow/rightBar.vue"
;
import
Bottom
from
"./components/Bottom.vue"
;
import
{
mapState
}
from
'vuex'
import
MediumPressureLineVue
from
'../../components/bigWindow/MediumPressureLine.vue'
;
import
PipeSelect
from
'../../components/bigWindow/PipeSelect.vue'
;
import
{
mapState
}
from
"vuex"
;
import
MediumPressureLineVue
from
"../../components/bigWindow/MediumPressureLine.vue"
;
import
PipeSelect
from
"../../components/bigWindow/PipeSelect.vue"
;
export
default
{
name
:
"Home"
,
components
:
{
...
...
@@ -217,6 +227,8 @@ export default {
nowDate
:
""
,
nowweek
:
""
,
nowtime
:
""
,
// 当前日期
changeRightBarStyle
:
""
,
changeLeftBarStyle
:
""
,
typeList
:
[
{
val
:
1
,
...
...
@@ -300,7 +312,7 @@ export default {
},
computed
:
{
...
mapGetters
([
"company"
,
"systemSetting"
,
"enterpriseId"
]),
...
mapGetters
([
"company"
,
"systemSetting"
,
"enterpriseId"
]),
companyLength
()
{
return
this
.
typeList
.
length
;
},
...
...
@@ -313,6 +325,12 @@ export default {
}
},
},
created
()
{
window
.
addEventListener
(
"resize"
,
this
.
leftRightBarChange
);
this
.
leftRightBarChange
();
// changeRightBarStyle
},
async
mounted
()
{
// console.log(99999999999999)
// getPipe().then(res=>{
...
...
@@ -334,10 +352,10 @@ export default {
this
);
getUserProfile
().
then
(
response
=>
{
getUserProfile
().
then
(
(
response
)
=>
{
var
user
=
response
.
data
;
if
(
user
.
deptId
==
13
)
{
this
.
map
.
setCenter
([
"117.908541"
,
"39.688353"
])
if
(
user
.
deptId
==
13
)
{
this
.
map
.
setCenter
([
"117.908541"
,
"39.688353"
]);
}
});
...
...
@@ -369,22 +387,32 @@ export default {
await
this
.
goMap
(
getEnterprise
,
this
.
addDevice
,
Company
,
true
);
// this.goMap(getPipe, this.addPipeLine, Line, true);
//管道
this
.
goMediumPressureLineMap
(
getPipe
,
this
.
addMediumPipeLine
,
Line
,
MediumPressureLineVue
,
true
);
this
.
goMediumPressureLineMap
(
getPipe
,
this
.
addMediumPipeLine
,
Line
,
MediumPressureLineVue
,
true
);
//调压箱
this
.
labelsLayerMarksTysGoMap
(
getTyx
,
Device
,
false
);
//阀门井
this
.
labelsLayerMarksFmjGoMap
(
getFm
,
Device
,
false
);
//场站
this
.
labelsLayerMarksCzGoMap
(
getCz
,
Cz
,
false
);
this
.
labelsLayerMarksCzGoMap
(
getCz
,
Cz
,
false
);
//监控
this
.
labelsLayerMarksVideoGoMap
(
getVideo
,
VideoView
,
false
);
this
.
labelsLayerMarksVideoGoMap
(
getVideo
,
VideoView
,
false
);
//this.goMap(getYhq, this.addDevice2, yhqUser, false); //液化气用户上图
if
(
this
.
enterpriseId
==-
2
)
{
if
(
this
.
enterpriseId
==
-
2
)
{
this
.
labelsLayerMarksDeviceUserGoMap
(
deviceUser
,
yhqUser
,
false
);
//用户上图
}
// 用户要等一下 因为有报警数据
this
.
labelsLayerMarksDetectorUserGoMap
(
labelsLayerMarksDetectorUserList
,
User
,
false
).
then
((
res
)
=>
{
this
.
labelsLayerMarksDetectorUserGoMap
(
labelsLayerMarksDetectorUserList
,
User
,
false
).
then
((
res
)
=>
{
// 先查一下,然后开启定时器
this
.
userAlarm
();
this
.
alarmTimer
=
setInterval
(()
=>
{
...
...
@@ -403,17 +431,42 @@ export default {
...
mapActions
({
GetCompany
:
"bigWindowCompany/GetCompany"
,
}),
windowClick
(){
leftRightBarChange
()
{
const
scale
=
window
.
innerHeight
/
1080
;
let
right
=
0
;
if
(
scale
>=
1
)
{
right
=
(
585
/
2
)
*
(
scale
-
1
)
-
20
;
}
else
{
right
=
(
585
/
2
)
*
(
scale
-
1
)
-
20
;
}
// console.log("right", right, "scale", scale);
this
.
changeRightBarStyle
=
[
{
right
:
right
+
"px"
},
{
transform
:
`scale(
${
scale
}
)`
},
];
this
.
changeLeftBarStyle
=
[
{
left
:
right
+
20
+
"px"
},
{
transform
:
`scale(
${
scale
}
)`
},
];
},
windowClick
()
{
this
.
$refs
.
Bottom
.
selectUpClear
();
},
// 点击了 大屏端 管道搜索的清除键
clearBigWindowsSelectPipe
(){
clearBigWindowsSelectPipe
()
{
this
.
map
.
infowindowClose
();
},
getPipeSelectMessage
(
data
,
id
)
{
let
arrArea
=
data
.
split
(
','
);
this
.
map
.
setCenter
([
arrArea
[
0
],
arrArea
[
1
]])
this
.
map
.
filterSelectPipe
(
id
,
MediumPressureLineVue
,
arrArea
[
0
],
arrArea
[
1
]);
getPipeSelectMessage
(
data
,
id
)
{
let
arrArea
=
data
.
split
(
","
);
this
.
map
.
setCenter
([
arrArea
[
0
],
arrArea
[
1
]]);
this
.
map
.
filterSelectPipe
(
id
,
MediumPressureLineVue
,
arrArea
[
0
],
arrArea
[
1
]
);
},
// 管道上图
addPipeLine
(
data
,
component
)
{
...
...
@@ -424,10 +477,10 @@ export default {
}
},
// 管道上图
addMediumPipeLine
(
data
,
component
,
mediumComponent
)
{
addMediumPipeLine
(
data
,
component
,
mediumComponent
)
{
for
(
let
comp
in
data
)
{
data
[
comp
].
forEach
((
pipe
)
=>
{
this
.
map
.
addMediumPipeLine
(
pipe
,
component
,
mediumComponent
);
this
.
map
.
addMediumPipeLine
(
pipe
,
component
,
mediumComponent
);
});
}
},
...
...
@@ -461,7 +514,13 @@ export default {
});
}
},
goMediumPressureLineMap
(
httpFunc
,
addFunc
,
component
,
mediumComponent
,
show
){
goMediumPressureLineMap
(
httpFunc
,
addFunc
,
component
,
mediumComponent
,
show
)
{
return
httpFunc
().
then
((
res
)
=>
{
// 给用户加icontype
if
(
res
.
data
&&
!
res
.
data
[
0
].
iconType
)
{
...
...
@@ -482,46 +541,41 @@ export default {
}
else
{
config
=
{
data
:
res
.
data
||
res
.
rows
};
}
addFunc
(
config
,
component
,
mediumComponent
,
show
);
addFunc
(
config
,
component
,
mediumComponent
,
show
);
return
config
.
iconType
;
});
},
labelsLayerMarksDeviceUserGoMap
(
httpFunc
,
component
,
show
)
{
labelsLayerMarksDeviceUserGoMap
(
httpFunc
,
component
,
show
)
{
return
httpFunc
().
then
((
res
)
=>
{
const
mapData
=
res
.
data
;
this
.
map
.
labelsLayerMarksDeviceUserGoMap
(
mapData
,
component
,
show
);
})
}
,
labelsLayerMarksVideoGoMap
(
httpFunc
,
component
,
show
){
});
},
labelsLayerMarksVideoGoMap
(
httpFunc
,
component
,
show
)
{
return
httpFunc
().
then
((
res
)
=>
{
const
mapData
=
res
.
data
;
this
.
map
.
labelsLayerMarksVideoGoMap
(
mapData
,
component
,
show
);
})
}
,
labelsLayerMarksCzGoMap
(
httpFunc
,
component
,
show
){
});
},
labelsLayerMarksCzGoMap
(
httpFunc
,
component
,
show
)
{
return
httpFunc
().
then
((
res
)
=>
{
const
mapData
=
res
.
data
;
this
.
map
.
labelsLayerMarksCzGoMap
(
mapData
,
component
,
show
);
})
}
,
labelsLayerMarksFmjGoMap
(
httpFunc
,
component
,
show
){
});
},
labelsLayerMarksFmjGoMap
(
httpFunc
,
component
,
show
)
{
return
httpFunc
().
then
((
res
)
=>
{
const
mapData
=
res
.
data
;
this
.
map
.
labelsLayerMarksFmjGoMap
(
mapData
,
component
,
show
);
})
}
,
labelsLayerMarksTysGoMap
(
httpFunc
,
component
,
show
){
});
},
labelsLayerMarksTysGoMap
(
httpFunc
,
component
,
show
)
{
return
httpFunc
().
then
((
res
)
=>
{
const
mapData
=
res
.
data
;
this
.
map
.
labelsLayerMarksTysGoMap
(
mapData
,
component
,
show
);
})
}
,
});
},
labelsLayerMarksDetectorUserGoMap
(
httpFunc
,
component
,
show
)
{
return
httpFunc
().
then
((
res
)
=>
{
const
mapData
=
res
.
data
;
...
...
@@ -572,9 +626,9 @@ export default {
// },
// 更改下方列表
listChange
(
arr
)
{
console
.
log
(
arr
)
console
.
log
(
arr
)
;
// return;
this
.
selarr
=
[...
arr
]
this
.
selarr
=
[...
arr
];
this
.
map
.
allfilter
(
this
.
selarr
,
this
.
selarr1
);
this
.
map
.
infowindowClose
();
this
.
show
=
false
;
...
...
@@ -653,7 +707,6 @@ export default {
getTcqDevice
(
queryParams
,
title
)
{
console
.
log
(
queryParams
);
return
getTcqDevice
(
queryParams
).
then
((
res
)
=>
{
this
.
detcetorList
=
res
;
this
.
centerUserId
=
queryParams
.
devId
;
// 总数据
...
...
@@ -700,6 +753,7 @@ export default {
},
// 销毁定时器
beforeDestroy
()
{
window
.
removeEventListener
(
"resize"
,
this
.
leftRightBarChange
);
if
(
this
.
formatDate
)
{
clearInterval
(
this
.
formatDate
);
// 在Vue实例销毁前,清除时间定时器
}
...
...
@@ -755,9 +809,13 @@ export default {
.leftbar
{
width
:
565px
;
height
:
93%
;
// height: 93%;
height
:
1010px
;
position
:
fixed
;
top
:
70px
;
// top: 70px;
top
:
50%
;
margin-top
:
-470px
;
z-index
:
999
;
background
:
url("../../assets/firstimage/le.png")
;
background-size
:
105%
100%
;
...
...
@@ -767,15 +825,15 @@ export default {
}
.rightbar
{
width
:
585px
;
height
:
93%
;
height
:
1010px
;
position
:
fixed
;
top
:
70px
;
top
:
50%
;
margin-top
:
-470px
;
z-index
:
999
;
right
:
0
;
// right: 861px
;
background
:
url("../../assets/firstimage/ri.png")
;
background-size
:
100%
100%
;
background-repeat
:
no-repeat
;
margin-right
:
-20px
;
pointer-events
:
none
;
}
.home-div
{
...
...
zh-baseversion-web/vue.config.js
View file @
c1e5c241
...
...
@@ -35,8 +35,9 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
target
:
`http://localhost:8905/gassafety`
,
//
target: `http://localhost:8905/gassafety`,
// target: `http://27.128.233.145:8905/gassafety`,
target
:
` http://36.138.180.82:8905/gassafety`
,
changeOrigin
:
true
,
pathRewrite
:
{
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
...
...
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