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
de0e9e68
Commit
de0e9e68
authored
Aug 23, 2022
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置大屏左侧
parent
808643ca
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
793 additions
and
9 deletions
+793
-9
leftBarZ.vue
gassafetyprogress-web/src/components/bigWindow/leftBarZ.vue
+776
-0
index.vue
gassafetyprogress-web/src/views/bigWindow/index.vue
+17
-9
No files found.
gassafetyprogress-web/src/components/bigWindow/leftBarZ.vue
0 → 100644
View file @
de0e9e68
This diff is collapsed.
Click to expand it.
gassafetyprogress-web/src/views/bigWindow/index.vue
View file @
de0e9e68
<!--
<!--
* @Author: your name
* @Author: your name
* @Date: 2022-01-11 13:44:17
* @Date: 2022-01-11 13:44:17
* @LastEditTime: 2022-08-2
2 14:15
:59
* @LastEditTime: 2022-08-2
3 17:04
:59
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditors: 纪泽龙 jizelong@qq.com
* @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
...
@@ -85,8 +85,10 @@
...
@@ -85,8 +85,10 @@
</div>
</div>
<!-- 左边 -->
<!-- 左边 -->
<div
class=
"leftbar"
>
<div
class=
"leftbar"
:style=
"
{width:windowInnerWidth>1024?'470px':'300px'}">
<leftBar
ref=
"mychild2"
></leftBar>
<leftBar
v-if=
"windowInnerWidth>1024"
ref=
"mychild2"
></leftBar>
<leftBarZ
v-else
ref=
"mychild2"
></leftBarZ>
</div>
</div>
<!-- 右边 -->
<!-- 右边 -->
<div
class=
"rightbar"
>
<div
class=
"rightbar"
>
...
@@ -179,11 +181,13 @@ import PipeColor from "@/components/bigWindow/PipeColor.vue";
...
@@ -179,11 +181,13 @@ import PipeColor from "@/components/bigWindow/PipeColor.vue";
// import markerInfoWindow from './components/markerInfoWindow.vue'
// import markerInfoWindow from './components/markerInfoWindow.vue'
import
leftBar
from
"@/components/bigWindow/leftBar.vue"
;
import
leftBar
from
"@/components/bigWindow/leftBar.vue"
;
import
leftBarZ
from
"@/components/bigWindow/leftBarZ.vue"
;
import
rightBar
from
"@/components/bigWindow/rightBar.vue"
;
import
rightBar
from
"@/components/bigWindow/rightBar.vue"
;
export
default
{
export
default
{
name
:
"Home"
,
name
:
"Home"
,
components
:
{
components
:
{
leftBar
,
leftBar
,
leftBarZ
,
rightBar
,
rightBar
,
// Center,
// Center,
UserCenter
,
UserCenter
,
...
@@ -268,6 +272,7 @@ export default {
...
@@ -268,6 +272,7 @@ export default {
// 报警轮询timer
// 报警轮询timer
alarmTimer
:
null
,
alarmTimer
:
null
,
windowInnerWidth
:
0
,
};
};
},
},
...
@@ -285,6 +290,9 @@ export default {
...
@@ -285,6 +290,9 @@ export default {
}
}
},
},
},
},
created
()
{
this
.
windowInnerWidth
=
window
.
innerWidth
;
},
async
mounted
()
{
async
mounted
()
{
// console.log(99999999999999)
// console.log(99999999999999)
// getPipe().then(res=>{
// getPipe().then(res=>{
...
@@ -293,7 +301,6 @@ export default {
...
@@ -293,7 +301,6 @@ export default {
// console.log(123)
// console.log(123)
// })
// })
// return;
// return;
const
path
=
eval
(
this
.
systemSetting
.
map_center
);
const
path
=
eval
(
this
.
systemSetting
.
map_center
);
this
.
map
=
new
EditorMap
(
this
.
map
=
new
EditorMap
(
"map"
,
"map"
,
...
@@ -351,11 +358,11 @@ export default {
...
@@ -351,11 +358,11 @@ export default {
}),
}),
// 管道上图
// 管道上图
addPipeLine
(
data
,
component
)
{
addPipeLine
(
data
,
component
)
{
console
.
log
(
'zzzzzzsssssxxxxzxzxzxzxzxzxz'
)
console
.
log
(
"zzzzzzsssssxxxxzxzxzxzxzxzxz"
);
for
(
let
comp
in
data
)
{
for
(
let
comp
in
data
)
{
data
[
comp
].
forEach
((
pipe
)
=>
{
data
[
comp
].
forEach
((
pipe
)
=>
{
console
.
log
(
pipe
)
console
.
log
(
pipe
)
;
this
.
map
.
addPipeLine
(
pipe
,
component
);
this
.
map
.
addPipeLine
(
pipe
,
component
);
});
});
}
}
...
@@ -587,8 +594,9 @@ export default {
...
@@ -587,8 +594,9 @@ export default {
}
}
.leftbar
{
.leftbar
{
width
:
450px
;
width
:
300px
;
height
:
90%
;
overflow
:
hidden
;
height
:
calc
(
100vh
-
85px
);
position
:
fixed
;
position
:
fixed
;
top
:
10%
;
top
:
10%
;
left
:
0
;
left
:
0
;
...
@@ -711,7 +719,7 @@ export default {
...
@@ -711,7 +719,7 @@ export default {
box-shadow
:
inset
0px
1px
2px
1px
#125c9b
;
box-shadow
:
inset
0px
1px
2px
1px
#125c9b
;
font-size
:
14px
;
font-size
:
14px
;
}
}
.list
img
{
.list
img
{
width
:
22px
;
width
:
22px
;
}
}
</
style
>
</
style
>
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