Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zghywpc-vue
Project
Project
Details
Activity
Releases
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
李苏
zghywpc-vue
Commits
8cf6ec1b
Commit
8cf6ec1b
authored
Sep 11, 2024
by
李苏
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页看板样式调整
parent
849e87e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
18 deletions
+74
-18
index.vue
src/views/sbxxgl/sbxx/index.vue
+1
-0
index.vue
src/views/yhlywsytst/yhlywsytst/index.vue
+73
-18
No files found.
src/views/sbxxgl/sbxx/index.vue
View file @
8cf6ec1b
...
@@ -197,6 +197,7 @@
...
@@ -197,6 +197,7 @@
tree.loadAllNode() */
tree.loadAllNode() */
},
},
selectedTree
:
function
(
e
)
{
selectedTree
:
function
(
e
)
{
console
.
log
(
e
)
this
.
$refs
.
basePage
.
treeInfo
=
e
this
.
$refs
.
basePage
.
treeInfo
=
e
this
.
$refs
.
basePage
.
queryParams
.
pid
=
e
.
id
this
.
$refs
.
basePage
.
queryParams
.
pid
=
e
.
id
this
.
$refs
.
basePage
.
refresh
()
this
.
$refs
.
basePage
.
refresh
()
...
...
src/views/yhlywsytst/yhlywsytst/index.vue
View file @
8cf6ec1b
...
@@ -301,11 +301,8 @@
...
@@ -301,11 +301,8 @@
</div>
</div>
</div>
</div>
<!-- 设备流向-->
<!-- 设备流向-->
<div
class=
"sylb
"
>
<div
class=
"sblx
"
>
<div
class=
"full data-box1"
style=
"position: relative;"
>
<div
class=
"full data-box1"
style=
"position: relative;"
>
<i
@
click=
"sylbshow=false"
style=
"position: absolute;right: 1px;top: 2px;color: #68D8FE;cursor: pointer;z-index: 999;"
class=
"el-icon-error"
></i>
<i
class=
"topL"
></i>
<i
class=
"topL"
></i>
<i
class=
"topR"
></i>
<i
class=
"topR"
></i>
<i
class=
"bottomL"
></i>
<i
class=
"bottomL"
></i>
...
@@ -315,9 +312,46 @@
...
@@ -315,9 +312,46 @@
<span>
设备流向
</span>
<span>
设备流向
</span>
<b
class=
"data-title-right"
>
]
</b>
<b
class=
"data-title-right"
>
]
</b>
</div>
</div>
<div
class=
"full"
style=
"padding: 10px;;padding-top: 15px;height: calc(100% - 14px);"
>
<div
class=
"full flex "
style=
"height: calc(100% - 14px);padding-top: 12px;"
>
<el-row
:gutter=
"20"
class=
"search-row-1"
style=
"width: 100%;"
>
<el-col
:span=
"12"
class=
"search-col"
>
<div
class=
"search-item"
>
<span
class=
"search-span"
>
绘制流动:
</span>
<el-select
:popper-append-to-body=
'false'
style=
"width: 100%;background-color: rgba(0, 0, 0, 0.0);"
@
change=
"flowPieDataChange"
v-model=
"flowPieData"
clearable
placeholder=
""
>
<el-option
v-for=
"(item, index) in allPieData"
:key=
"index"
:value=
"item.name"
>
{{
item
.
name
}}
</el-option>
</el-select>
</div>
</el-col>
<el-col
:span=
"12"
class=
"search-col flex-center"
>
<div
class=
"flex1 text-center"
>
<el-switch
style=
"color: #fff ;font-size: 12px;"
v-model=
"flowDirection"
active-text=
"正向"
inactive-text=
"反向"
>
</el-switch>
</div>
</el-col>
</el-row>
</div>
</div>
<!--
<div
class=
"full"
style=
"padding: 10px;;padding-top: 15px;height: calc(100% - 14px);"
>
<div
class=
"toolButton2"
>
<div
class=
"flex1 text-center"
>
<el-select
:popper-append-to-body=
'false'
style=
"width: 100px;background-color: rgba(0, 0, 0, 0.0);"
@
change=
"flowPieDataChange"
v-model=
"flowPieData"
clearable
placeholder=
"绘制流动"
>
<el-option
v-for=
"(item, index) in allPieData"
:key=
"index"
:value=
"item.name"
>
{{
item
.
name
}}
</el-option>
</el-select>
</div>
<div
class=
"flex1 text-center"
>
<el-switch
style=
"color: #fff ;font-size: 12px;"
v-model=
"flowDirection"
active-text=
"正向"
inactive-text=
"反向"
>
</el-switch>
</div>
</div>
</div>
-->
</div>
</div>
</div>
</div>
<!-- 右侧操作边框-->
<!-- 右侧操作边框-->
...
@@ -786,27 +820,38 @@
...
@@ -786,27 +820,38 @@
o
.
points
.
forEach
((
item
)
=>
{
o
.
points
.
forEach
((
item
)
=>
{
box
.
expandByPoint
(
new
THREE
.
Vector3
(...
item
));
box
.
expandByPoint
(
new
THREE
.
Vector3
(...
item
));
});
});
let
point
=
box
.
max
o
.
points
.
forEach
((
item
)
=>
{
let
finallyPoint
=
this
.
getCameraPosition
(
5
,
point
)
box
.
expandByPoint
(
new
THREE
.
Vector3
(...
item
));
this
.
cameraTo
(
finallyPoint
.
x
,
finallyPoint
.
y
,
finallyPoint
.
z
,
point
.
x
,
point
.
y
,
point
.
z
)
});
this
.
viewer
.
cameraControl
.
control
.
fitToBox
(
box
,
true
,
{
cover
:
true
});
}
}
});
});
},
},
/* 获取流向数据*/
/* 获取流向数据*/
getData
()
{
getData
()
{
fetch
(
`/data.json?
${
new
Date
().
getTime
()}
`
)
this
.
$post
(
'sbgl/usblxgx/zbInfo'
,{}).
then
(
res
=>
{
.
then
(
response
=>
{
if
(
res
.
success
){
if
(
!
response
.
ok
)
{
let
data
=
res
.
data
.
records
||
[]
throw
new
Error
(
'网络响应错误'
);
}
else
{
return
response
.
json
()
}
}).
then
(
data
=>
{
this
.
allPieData
=
data
.
filter
((
item
)
=>
{
this
.
allPieData
=
data
.
filter
((
item
)
=>
{
return
item
.
children
.
some
((
child
)
=>
child
.
data
.
length
>=
2
);
return
item
.
children
.
some
((
child
)
=>
child
.
data
.
length
>=
2
);
});
});
}
})
})
// fetch(`/data.json?${new Date().getTime()}`)
// .then(response => {
// if (!response.ok) {
// throw new Error('网络响应错误');
// } else {
// return response.json()
// }
// }).then(data => {
// this.allPieData = data.filter((item) => {
// return item.children.some((child) => child.data.length >= 2);
// });
// })
},
},
/* 流向动画*/
/* 流向动画*/
drawPipe
(
positions
,
radius
,
direction
)
{
drawPipe
(
positions
,
radius
,
direction
)
{
...
@@ -1325,7 +1370,7 @@
...
@@ -1325,7 +1370,7 @@
}
}
.sylb
{
.sylb
{
top
:
21
5px
;
top
:
32
5px
;
right
:
15px
;
right
:
15px
;
/* 使元素居中 */
/* 使元素居中 */
position
:
absolute
;
position
:
absolute
;
...
@@ -1335,6 +1380,16 @@
...
@@ -1335,6 +1380,16 @@
background-color
:
rgba
(
0
,
0
,
0
,
0
.6
);
background-color
:
rgba
(
0
,
0
,
0
,
0
.6
);
}
}
.sblx
{
top
:
215px
;
right
:
15px
;
/* 使元素居中 */
position
:
absolute
;
height
:
90px
;
width
:
28%
;
z-index
:
12
;
background-color
:
rgba
(
0
,
0
,
0
,
0
.6
);
}
.topL
{
.topL
{
...
...
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