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
f142be6b
authored
2021-01-15 10:42:41 +0800
by
zhaoqian
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
2 parents
71da52b2
9449e558
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
73 additions
and
54 deletions
src/components/lineTree/lineTree.vue
src/components/lineTree/tx/js/geoUtils.js
src/views/zd/zddcb/index.vue
src/views/zrz/zrzxx/index.vue
src/components/lineTree/lineTree.vue
View file @
f142be6
...
...
@@ -608,7 +608,7 @@ export default {
exportText
(){
var
self
=
this
;
var
type
=
this
.
zdData
.
type
;
var
BSM
=
type
==
'zd
t
'
?
this
.
zdData
.
zdbsm
:
this
.
zdData
.
bsm
;
var
BSM
=
type
==
'zd'
?
this
.
zdData
.
zdbsm
:
this
.
zdData
.
bsm
;
this
.
queryGeoByBsm
(
BSM
,
type
,
function
(
features
){
if
(
features
&&
features
.
length
>
0
&&
features
[
0
].
geometry
.
rings
.
length
>
0
){
var
data
=
features
[
0
];
...
...
@@ -637,7 +637,7 @@ export default {
exportToShp
(){
var
self
=
this
;
var
type
=
this
.
zdData
.
type
;
var
BSM
=
type
==
'zd
t
'
?
this
.
zdData
.
zdbsm
:
this
.
zdData
.
bsm
;
var
BSM
=
type
==
'zd'
?
this
.
zdData
.
zdbsm
:
this
.
zdData
.
bsm
;
this
.
queryGeoByBsm
(
BSM
,
type
,
function
(
features
){
if
(
features
&&
features
.
length
>
0
&&
features
[
0
].
geometry
.
rings
.
length
>
0
)
{
var
data
=
JSON
.
stringify
(
features
[
0
]);
...
...
@@ -656,7 +656,7 @@ export default {
exportExcel
(){
var
self
=
this
;
var
type
=
this
.
zdData
.
type
;
var
BSM
=
type
==
'zd
t
'
?
this
.
zdData
.
zdbsm
:
this
.
zdData
.
bsm
;
var
BSM
=
type
==
'zd'
?
this
.
zdData
.
zdbsm
:
this
.
zdData
.
bsm
;
this
.
queryGeoByBsm
(
BSM
,
type
,
function
(
features
)
{
if
(
features
&&
features
.
length
>
0
&&
features
[
0
].
geometry
.
rings
.
length
>
0
)
{
var
data
=
features
[
0
];
...
...
@@ -696,7 +696,7 @@ export default {
//图形定位
postionToMap
(){
var
type
=
this
.
zdData
.
type
;
var
BSM
=
type
==
'zd
t
'
?
this
.
zdData
.
zdbsm
:
this
.
zdData
.
bsm
;
var
BSM
=
type
==
'zd'
?
this
.
zdData
.
zdbsm
:
this
.
zdData
.
bsm
;
if
(
this
.
$route
.
path
==
"/viewMap"
){
//定位到当前空间位置
// TODO 这个方法只是为了支撑功能
...
...
src/components/lineTree/tx/js/geoUtils.js
View file @
f142be6
...
...
@@ -223,7 +223,7 @@ export default {
})
},
//保存或者编辑属性信息
updAttributes
(
bsm
,
type
,
attributes
,
callBackFunction
){
updAttributes
(
bsm
,
type
,
attributes
,
callBackFunction
,
ydybsm
){
var
layer
=
null
;
if
(
type
==
'zd'
){
layer
=
this
.
getLayerByName
(
"ZDJBXX"
);
...
...
@@ -232,7 +232,7 @@ export default {
}
var
featureUrl
=
layer
.
layerUrl
.
replace
(
"MapServer"
,
"FeatureServer"
);
featureUrl
+=
"/"
+
layer
.
id
;
this
.
queryGeoByBsm
(
bsm
,
type
,
function
(
features
)
{
this
.
queryGeoByBsm
(
ydybsm
?
ydybsm
:
bsm
,
type
,
function
(
features
)
{
if
(
features
&&
features
.
length
>
0
){
attributes
.
OBJECTID
=
features
[
0
].
attributes
.
OBJECTID
;
features
[
0
].
attributes
=
attributes
;
...
...
@@ -240,6 +240,9 @@ export default {
features[0].geometry.spatialReference = {
wkt:wkt
}*/
if
(
ydybsm
){
features
[
0
].
attributes
.
BSM
=
ydybsm
;
}
featureUpdate
.
methods
.
updateGraphic
(
featureUrl
,
features
[
0
],
callBackFunction
);
}
else
{
var
graphic
=
{
...
...
src/views/zd/zddcb/index.vue
View file @
f142be6
...
...
@@ -556,6 +556,9 @@
//权利性质数据传给子组件
this
.
$refs
.
qlxzModule
.
countList
=
res
.
result
.
list
;
})
if
(
res
.
result
.
ydybsm
){
this
.
saveZdGraphicAtrributes
(
res
.
result
.
ydybsm
);
}
}
else
{
this
.
$nextTick
(()
=>
{
//权利性质数据传给子组件
...
...
@@ -793,36 +796,7 @@
type
:
"error"
,
});
});
//保存到空间库里面
var
self
=
this
;
for
(
var
key
in
this
.
geoAttributes
)
{
if
(
key
==
"BSM"
)
{
self
.
geoAttributes
[
key
]
=
this
.
$store
.
state
.
zdbsm
}
else
if
(
key
==
'QLSDFS'
)
{
var
qlsdfsList
=
self
.
$store
.
state
.
qlsdfsList
,
value
=
self
.
formData
.
qlsdfs
;
var
qlsdfs
=
qlsdfsList
.
filter
(
item
=>
{
return
item
.
bsm
==
value
;
})
self
.
geoAttributes
[
key
]
=
qlsdfs
[
0
]
?
qlsdfs
[
0
].
mc
:
""
;
}
else
if
(
key
==
'QLR'
){
var
qlrTableData
=
this
.
$refs
.
qlrxxModule
.
tableData
;
if
(
qlrTableData
.
length
>
0
){
for
(
var
i
=
0
;
i
<
qlrTableData
.
length
;
i
++
){
if
(
i
=
0
){
self
.
geoAttributes
[
key
]
=
qlrTableData
[
i
].
qlrmc
;
}
else
{
self
.
geoAttributes
[
key
]
+=
','
+
qlrTableData
[
i
].
qlrmc
;
}
}
}
}
else
{
var
formKay
=
key
.
toLowerCase
();
self
.
geoAttributes
[
key
]
=
self
.
formData
[
formKay
];
}
}
self
.
updAttributes
(
this
.
$store
.
state
.
zdbsm
,
'zd'
,
this
.
geoAttributes
,
function
(
res
)
{
});
this
.
saveZdGraphicAtrributes
();
}
}
}
else
{
...
...
@@ -835,6 +809,43 @@
})
},
//保存空间图形
saveZdGraphicAtrributes
(
ybsm
){
//保存到空间库里面
var
self
=
this
;
/* var ybsm = null;
if(this.ydybsm){
ybsm = this.ydybsm;
} */
for
(
var
key
in
this
.
geoAttributes
)
{
if
(
key
==
"BSM"
)
{
self
.
geoAttributes
[
key
]
=
this
.
$store
.
state
.
zdbsm
}
else
if
(
key
==
'QLSDFS'
)
{
var
qlsdfsList
=
self
.
$store
.
state
.
qlsdfsList
,
value
=
self
.
formData
.
qlsdfs
;
var
qlsdfs
=
qlsdfsList
.
filter
(
item
=>
{
return
item
.
bsm
==
value
;
})
self
.
geoAttributes
[
key
]
=
qlsdfs
[
0
]
?
qlsdfs
[
0
].
mc
:
""
;
}
else
if
(
key
==
'QLR'
){
var
qlrTableData
=
this
.
$refs
.
qlrxxModule
.
tableData
;
if
(
qlrTableData
.
length
>
0
){
for
(
var
i
=
0
;
i
<
qlrTableData
.
length
;
i
++
){
if
(
i
=
0
){
self
.
geoAttributes
[
key
]
=
qlrTableData
[
i
].
qlrmc
;
}
else
{
self
.
geoAttributes
[
key
]
+=
','
+
qlrTableData
[
i
].
qlrmc
;
}
}
}
}
else
{
var
formKay
=
key
.
toLowerCase
();
self
.
geoAttributes
[
key
]
=
self
.
formData
[
formKay
];
}
}
self
.
updAttributes
(
this
.
$store
.
state
.
zdbsm
,
'zd'
,
this
.
geoAttributes
,
function
(
res
)
{
},
ybsm
);
},
inputBlur
(
e
)
{
if
(
e
.
target
.
value
!=
''
)
{
e
.
target
.
style
.
border
=
""
...
...
src/views/zrz/zrzxx/index.vue
View file @
f142be6
...
...
@@ -567,24 +567,7 @@
this
.
loading
=
false
;
})
this
.
loading
=
false
;
//保存到空间库里面
var
self
=
this
;
for
(
var
key
in
this
.
geoAttributes
){
if
(
key
==
"BSM"
){
self
.
geoAttributes
[
key
]
=
this
.
bsm
}
else
if
(
key
==
'JGRQ'
){
var
formKay
=
key
.
toLowerCase
();
self
.
geoAttributes
[
key
]
=
new
Date
(
self
.
form
[
formKay
]).
getTime
();
}
else
{
var
formKay
=
key
.
toLowerCase
();
self
.
geoAttributes
[
key
]
=
self
.
form
[
formKay
];
}
}
self
.
updAttributes
(
this
.
bsm
,
'zrz'
,
this
.
geoAttributes
,
function
(
res
)
{
console
.
log
(
"属性保存完成!!"
);
});
}
this
.
saveGraphicAttributes
();
}
}
else
{
this
.
$message
({
// message: item.name+'不能为空',
...
...
@@ -594,6 +577,25 @@
}
})
},
//保存空间信息
saveGraphicAttributes
(
ybsm
){
//保存到空间库里面
var
self
=
this
;
for
(
var
key
in
this
.
geoAttributes
){
if
(
key
==
"BSM"
){
self
.
geoAttributes
[
key
]
=
this
.
bsm
}
else
if
(
key
==
'JGRQ'
){
var
formKay
=
key
.
toLowerCase
();
self
.
geoAttributes
[
key
]
=
new
Date
(
self
.
form
[
formKay
]).
getTime
();
}
else
{
var
formKay
=
key
.
toLowerCase
();
self
.
geoAttributes
[
key
]
=
self
.
form
[
formKay
];
}
}
self
.
updAttributes
(
this
.
bsm
,
'zrz'
,
this
.
geoAttributes
,
function
(
res
)
{
console
.
log
(
"属性保存完成!!"
);
},
ybsm
);
},
onSubmit
(){
let
data
=
{
glbsm
:
this
.
bsm
,
...
...
@@ -664,6 +666,9 @@
getZrzDetailByBsm
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
){
this
.
form
=
res
.
result
;
if
(
res
.
result
.
ydybsm
){
this
.
saveGraphicAttributes
(
res
.
result
.
ydybsm
);
}
if
(
res
.
result
.
gygyqlrqk
!=
null
){
this
.
$refs
.
qlrxxModule
.
changeGyfs
(
res
.
result
.
gygyqlrqk
);
}
...
...
Please
register
or
sign in
to post a comment