Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.CadastralSystem
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
e258d481
authored
2020-12-31 09:58:38 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
合并代码
2 parents
98bae8ac
3163d413
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
4 deletions
src/assets/json/layerTreeData.json
src/views/panel/change/hb/index.vue
src/views/systemTX/mapWeight/js/mapLayerManager.js
src/views/systemTX/mapWeight/sideTools.vue
src/assets/json/layerTreeData.json
View file @
e258d48
...
...
@@ -2,15 +2,18 @@
"label"
:
"专题树"
,
"id"
:
"1"
,
"type"
:
"layerGroup"
,
"alpha"
:
100
,
"children"
:[
{
"label"
:
"西安市阎良区"
,
"id"
:
"1-1"
,
"type"
:
"layerGroup"
,
"alpha"
:
100
,
"children"
:[{
"label"
:
"行政区划"
,
"id"
:
"1-1-1"
,
"type"
:
"layerGroup"
,
"alpha"
:
100
,
"children"
:[
{
"label"
:
"行政区界限"
,
...
...
@@ -32,6 +35,7 @@
"label"
:
"地籍分区"
,
"id"
:
"1-1-2"
,
"type"
:
"layerGroup"
,
"alpha"
:
100
,
"children"
:[
{
"label"
:
"地籍区"
,
...
...
@@ -53,6 +57,7 @@
"label"
:
"不动产单元"
,
"id"
:
"1-1-3"
,
"type"
:
"layerGroup"
,
"alpha"
:
100
,
"children"
:[
{
"label"
:
"线状定着物"
,
...
...
@@ -130,6 +135,7 @@
"label"
:
"自然地理"
,
"id"
:
"1-1-4"
,
"type"
:
"layerGroup"
,
"alpha"
:
100
,
"children"
:[
{
"label"
:
"辅助面"
,
...
...
src/views/panel/change/hb/index.vue
View file @
e258d48
...
...
@@ -210,7 +210,7 @@
import
dzHb
from
'@components/dzHb/dzHb'
export
default
{
name
:
""
,
inject
:
[
'get
RightTree
'
],
inject
:
[
'get
TreeByS'
,
'getTreeByBsm
'
],
components
:
{
zdQueryData
,
hfghb
,
dzHb
},
props
:
{},
data
()
{
...
...
@@ -310,7 +310,7 @@
if
(
res
.
success
)
{
this
.
$message
.
success
(
"合并成功"
);
//更新目录树
this
.
get
RightTree
(
res
.
result
,
'2'
);
this
.
get
TreeByS
(
res
.
result
);
this
.
$router
.
push
({
path
:
'/zd'
,
query
:
{
...
...
@@ -335,6 +335,7 @@
if
(
res
.
success
)
{
console
.
log
(
res
)
this
.
$message
.
success
(
"多幢合并成功"
)
this
.
getTreeByBsm
(
res
.
result
,
'dz'
,
'0,1,2'
)
this
.
$router
.
push
({
path
:
'/dz'
,
query
:
{
...
...
src/views/systemTX/mapWeight/js/mapLayerManager.js
View file @
e258d48
...
...
@@ -157,6 +157,17 @@ export default {
}
}
layer
.
sublayers
=
items
;
},
//设置图层透明度
setLayerOpacity
(
viewId
,
layers
,
value
){
var
view
=
maps
[
viewId
],
layer
=
view
.
map
.
findLayerById
(
"testLayer"
);
for
(
var
i
=
0
;
i
<
layers
.
length
;
i
++
){
var
sublayer
=
layer
.
findSublayerById
(
layers
[
i
].
layerId
);
if
(
sublayer
){
sublayer
.
opacity
=
value
/
100
;
}
}
}
}
}
\ No newline at end of file
...
...
src/views/systemTX/mapWeight/sideTools.vue
View file @
e258d48
...
...
@@ -31,7 +31,7 @@
<span
class=
"custom-tree-node"
slot-scope=
"
{ node, data }">
<span>
{{
node
.
label
}}
</span>
<span
class=
"setOpacity"
v-if=
"data.type == 'layerGroup'"
>
<el-slider
v-model=
"data.alpha"
ref=
"data.id"
:format-tooltip=
"formatTooltip"
@
change=
"alphaChange(data)"
></el-slider>
<el-slider
v-model=
"data.alpha"
ref=
"data.id"
:format-tooltip=
"formatTooltip"
@
change=
"alphaChange(data)"
></el-slider>
</span>
</span>
</el-tree>
...
...
@@ -114,7 +114,12 @@
return
val
+
"%"
;
},
alphaChange
(
nodeData
){
if
(
nodeData
.
alpha
==
0
){
return
;
}
var
ids
=
[];
this
.
getChildrens
(
nodeData
,
ids
);
this
.
setLayerOpacity
(
this
.
viewId
,
ids
,
nodeData
.
alpha
);
}
}
}
...
...
Please
register
or
sign in
to post a comment