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
ffe684e2
authored
2020-12-03 09:08:19 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'master' of
http://yun.pashanhoo.com:9090/renchao/CadastralSystem
2 parents
98fe80fa
b588a832
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
95 additions
and
14 deletions
src/assets/json/layers.json
src/components/lineTree/lineTree.vue
src/components/lineTree/tx/importGeo.vue
src/components/lineTree/tx/js/geoUtils.js
src/libs/map/IdentifyUtils.js
src/views/panel/add/index.vue
src/views/panel/change/fg/index.vue
src/views/panel/change/hb/index.vue
src/views/zd/fjcl/fjcl.vue
src/assets/json/layers.json
View file @
ffe684e
...
...
@@ -7,5 +7,20 @@
"layerName"
:
"ZRZ"
,
"layerUrl"
:
"http://192.168.2.201:6080/arcgis/rest/services/%E4%BA%92%E8%81%94%E7%BD%91%E5%8A%A0%E4%B8%8D%E5%8A%A8%E4%BA%A7/XA_%E4%B8%8D%E5%8A%A8%E4%BA%A7/MapServer"
,
"id"
:
"10"
},
{
"layerName"
:
"DJQ"
,
"layerUrl"
:
"http://192.168.2.201:6080/arcgis/rest/services/%E4%BA%92%E8%81%94%E7%BD%91%E5%8A%A0%E4%B8%8D%E5%8A%A8%E4%BA%A7/XA_%E4%B8%8D%E5%8A%A8%E4%BA%A7/MapServer"
,
"id"
:
"13"
},
{
"layerName"
:
"DJZQ"
,
"layerUrl"
:
"http://192.168.2.201:6080/arcgis/rest/services/%E4%BA%92%E8%81%94%E7%BD%91%E5%8A%A0%E4%B8%8D%E5%8A%A8%E4%BA%A7/XA_%E4%B8%8D%E5%8A%A8%E4%BA%A7/MapServer"
,
"id"
:
"14"
},
{
"layerName"
:
"XJZQ"
,
"layerUrl"
:
"http://192.168.2.201:6080/arcgis/rest/services/%E4%BA%92%E8%81%94%E7%BD%91%E5%8A%A0%E4%B8%8D%E5%8A%A8%E4%BA%A7/XA_%E4%B8%8D%E5%8A%A8%E4%BA%A7/MapServer"
,
"id"
:
"19"
}
]
\ No newline at end of file
...
...
src/components/lineTree/lineTree.vue
View file @
ffe684e
...
...
@@ -409,8 +409,8 @@ export default {
});
},
/*
* 导入图形
* */
* 导入图形
* */
importGeo
(){
var
self
=
this
;
var
BSM
=
""
;
...
...
src/components/lineTree/tx/importGeo.vue
View file @
ffe684e
...
...
@@ -196,11 +196,19 @@ export default {
attributes
:
self
.
currentClickZd
,
geometry
:
geometry
}
if
(
self
.
propertyInfo
.
type
==
"zd"
){
self
.
saveZd
(
graphic
);
}
else
{
self
.
saveZRZ
(
graphic
);
}
self
.
geoJoint
(
geometry
,
function
(
isJoint
,
message
)
{
if
(
isJoint
){
self
.
$message
.
warning
(
message
)
return
;
}
else
{
if
(
self
.
propertyInfo
.
type
==
"zd"
){
self
.
saveZd
(
graphic
);
}
else
{
self
.
saveZRZ
(
graphic
);
}
}
});
}
else
{
console
.
log
(
'error submit!!'
);
return
false
;
...
...
src/components/lineTree/tx/js/geoUtils.js
View file @
ffe684e
...
...
@@ -4,6 +4,7 @@
import
layers
from
'@/assets/json/layers.json'
import
queryUtils
from
"@libs/map/queryUtils"
;
import
identifyUtils
from
'@/libs/map/IdentifyUtils'
import
{
loadModules
}
from
"esri-loader"
import
arcgisParser
from
'terraformer-arcgis-parser'
import
wktParse
from
'terraformer-wkt-parser'
...
...
@@ -155,6 +156,54 @@ export default {
primitive.type = "Polygon"
}*/
return
arcgisParser
.
convert
(
primitive
)
},
//导入空间图形是 先判断数据是否跨界
geoJoint
(
geometry
,
callBacFunction
){
var
self
=
this
;
loadModules
([
"esri/geometry/geometryEngine"
,
"esri/geometry/Polygon"
]).
then
(([
geometryEngine
,
Polygon
])
=>
{
var
djqLayer
=
null
,
djzqLayer
=
null
,
xjzqLayer
=
null
;
djqLayer
=
self
.
getLayerByName
(
"DJQ"
);
djzqLayer
=
self
.
getLayerByName
(
"DJZQ"
);
xjzqLayer
=
self
.
getLayerByName
(
"XJZQ"
);
var
layerIds
=
[];
layerIds
.
push
(
djqLayer
.
id
);
layerIds
.
push
(
djzqLayer
.
id
);
layerIds
.
push
(
xjzqLayer
.
id
);
var
polygon
=
new
Polygon
(
geometry
);
identifyUtils
.
methods
.
identify
(
djqLayer
.
layerUrl
,
layerIds
,
polygon
,
function
(
res
)
{
var
results
=
res
.
results
;
var
isJoint
=
false
,
layerName
=
""
,
message
=
""
;
if
(
!
results
||
results
.
length
==
0
){
callBacFunction
(
true
,
"不在行政区内,请检查空间位置信息!!!"
);
}
for
(
var
i
=
0
;
i
<
results
.
length
;
i
++
){
var
feature
=
results
[
i
].
feature
;
var
flag
=
geometryEngine
.
disjoint
(
polygon
,
feature
.
geometry
);
if
(
flag
){
isJoint
=
true
;
layerName
=
results
[
i
].
layerName
;
switch
(
layerName
)
{
case
'DJQ'
:
message
=
"地块跨越地籍区,数据不合法!!!"
;
break
;
case
'DJZQ'
:
message
=
"地块跨越地籍子区,数据不合法!!!"
;
break
;
case
'XJZQ'
:
message
=
"地块跨越行政区,数据不合法!!!"
;
break
;
}
break
}
}
if
(
callBacFunction
&&
typeof
callBacFunction
==
"function"
){
callBacFunction
(
isJoint
,
message
);
}
})
}).
catch
(
err
=>
{
console
.
log
(
err
);
throw
(
err
);
})
}
}
...
...
src/libs/map/IdentifyUtils.js
View file @
ffe684e
...
...
@@ -10,17 +10,20 @@ export default {
"esri/tasks/support/IdentifyParameters"
]).
then
(([
IdentifyTask
,
IdentifyParameters
IdentifyParameters
])
=>
{
var
identifyTask
=
new
IdentifyTask
({
url
:
url
}),
identifyParameters
=
new
i
dentifyParameters
();
identifyParameters
=
new
I
dentifyParameters
();
identifyParameters
.
geometry
=
geometry
;
if
(
layerIds
){
identifyParameters
.
layerIds
=
layerIds
;
}
identifyParameters
.
layerOption
=
"all"
;
identifyParameters
.
tolerance
=
3
;
identifyParameters
.
mapExtent
=
geometry
.
extent
;
identifyParameters
.
returnGeometry
=
true
;
identifyParameters
.
spatialReference
=
geometry
.
spatialReference
;
identifyTask
.
execute
(
identifyParameters
).
then
(
result
=>
{
if
(
callBackFunction
&&
typeof
callBackFunction
==
'function'
){
...
...
src/views/panel/add/index.vue
View file @
ffe684e
...
...
@@ -135,7 +135,13 @@
default
:
break
;
}
this
.
$router
.
push
(
path
);
this
.
$router
.
push
({
path
:
path
,
query
:
{
bsm
:
row
.
glbsm
,
source
:
2
}
});
},
},
computed
:
{},
...
...
src/views/panel/change/fg/index.vue
View file @
ffe684e
This diff is collapsed.
Click to expand it.
src/views/panel/change/hb/index.vue
View file @
ffe684e
...
...
@@ -372,7 +372,7 @@
return
{
tabName
:
'zd'
,
centerDialogVisible
:
false
,
b
gqData
:
[],
zdF
gqData
:
[],
hbhData
:
{},
fgBoxWidth
:
0
,
xzq
:
[],
...
...
@@ -462,10 +462,10 @@
},
addData
:
function
(
val
)
{
this
.
centerDialogVisible
=
false
;
this
.
b
gqData
.
push
(
val
)
this
.
zdF
gqData
.
push
(
val
)
},
getData
:
function
(
data
)
{
this
.
b
gqData
.
push
(
data
)
this
.
zdF
gqData
.
push
(
data
)
},
},
computed
:
{},
...
...
src/views/zd/fjcl/fjcl.vue
View file @
ffe684e
...
...
@@ -8,6 +8,7 @@
:before-remove=
"beforeRemove"
:on-success=
"uploadSuccess"
:on-error=
"uploadError"
:show-file-list=
"false"
multiple
:limit=
"3"
:on-exceed=
"handleExceed"
...
...
@@ -107,7 +108,6 @@
},
uploadSuccess
(
res
,
file
,
fileList
)
{
this
.
filesData
.
list
=
res
.
result
;
console
.
log
(
res
,
"res========="
)
insertFile
(
this
.
filesData
).
then
(
res
=>
{
if
(
res
.
success
)
{
Message
.
success
(
"上传成功"
)
...
...
Please
register
or
sign in
to post a comment