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
82264bc9
authored
2021-01-13 14:40:29 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
删除图形删除界址点 界址线
1 parent
baf514d1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
56 additions
and
4 deletions
src/api/zd.js
src/components/lineTree/lineTree.vue
src/components/lineTree/tx/importGeo.vue
src/components/lineTree/tx/js/geoUtils.js
src/views/zd/zddcb/index.vue
src/api/zd.js
View file @
82264bc
...
...
@@ -162,6 +162,27 @@ export function jzxsbatchModify(data) {
})
}
/*
删除界址点
*/
export
function
delJzdByBsm
(
data
){
return
request
({
url
:
'/zd/qjJzd/'
,
method
:
'delete'
,
params
:
data
})
}
/*
删除界址线
*/
export
function
delJzxByBsm
(
data
){
return
request
({
url
:
'/zd/qjJzx/'
,
method
:
'delete'
,
params
:
data
})
}
/**x
*根据宗地Bsm删除宗地信息
*/
...
...
src/components/lineTree/lineTree.vue
View file @
82264bc
...
...
@@ -127,7 +127,7 @@
</
template
>
<
script
>
import
lineItem
from
"./lineItem.vue"
;
import
{
deleteZdInfoByBsm
,
exportShp
,
exportExcel
}
from
"@api/zd"
;
import
{
deleteZdInfoByBsm
,
exportShp
,
exportExcel
,
delJzdByBsm
,
delJzxByBsm
}
from
"@api/zd"
;
import
Create
from
"../../views/panel/create/index"
;
import
ImportGeo
from
'./tx/importGeo'
import
geoUtils
from
"@components/lineTree/tx/js/geoUtils"
;
...
...
@@ -529,7 +529,13 @@ export default {
self
.
updateGraphic
(
featureUrl
,
features
,
function
(
res
)
{
if
(
!
res
.
updateFeatureResults
[
0
].
error
){
self
.
$message
.
warning
(
"删除成功!!!"
)
self
.
addGeoByBsm
(
BSM
,
type
,
"testMap"
);
//清除图层
self
.
clearHighlightLayer
(
"testMap"
);
//self.addGeoByBsm(BSM,type,"testMap");
//删除界址点 界址线
if
(
type
==
'zd'
){
self
.
delJzdAndJzx
(
BSM
);
}
}
});
...
...
@@ -538,6 +544,19 @@ export default {
}
});
},
//删除宗地界址点 界址线
delJzdAndJzx
(
bsm
){
delJzdByBsm
({
zdbsm
:
bsm
}).
then
(
res
=>
{
if
(
res
.
success
){
console
.
log
(
"删除界址点成功!!!"
);
}
});
delJzxByBsm
({
zdbsm
:
bsm
}).
then
(
res
=>
{
if
(
res
.
success
){
console
.
log
(
"删除界址线成功!!!"
);
}
})
},
/*
* 导入图形
* */
...
...
src/components/lineTree/tx/importGeo.vue
View file @
82264bc
...
...
@@ -381,8 +381,9 @@ export default {
if
(
valid
){
//选择处理方式
var
value
=
self
.
dealForm
.
method
;
self
.
currntDealGraphic
.
attributes
=
{};
switch
(
value
)
{
case
'1'
:
self
.
currntDealGraphic
.
attributes
.
BGZT
=
1
;
self
.
saveZd
(
self
.
currntDealGraphic
);
break
;
case
'1'
:
self
.
currntDealGraphic
.
attributes
.
BGZT
=
1
;
self
.
saveZd
(
self
.
currntDealGraphic
);
break
;
case
"2"
:
self
.
getDifference
(
self
.
currntDealGraphic
,
self
.
overResults
,
self
.
delOverGeo
);
break
;
case
"3"
:
self
.
getResultsDif
(
self
.
overResults
,
self
.
currntDealGraphic
,
self
.
delOtherGeo
,
true
);
break
;
case
"4"
:
self
.
getResultsDif
(
self
.
overResults
,
self
.
currntDealGraphic
,
self
.
delOtherGeo
,
false
);
break
;
...
...
@@ -395,6 +396,9 @@ export default {
},
//裁剪自己在保存
delOverGeo
(
geometry
){
if
(
!
this
.
currntDealGraphic
.
attributes
){
this
.
currntDealGraphic
.
attributes
=
{};
}
this
.
currntDealGraphic
.
attributes
.
BGZT
=
2
;
if
(
geometry
==
null
){
this
.
$message
.
warning
(
"完全重叠,已删除图形信息!!!"
)
...
...
src/components/lineTree/tx/js/geoUtils.js
View file @
82264bc
...
...
@@ -508,6 +508,14 @@ export default {
return
;
}
});
},
//清空当前图层
clearHighlightLayer
(
viewId
){
var
view
=
maps
[
viewId
];
var
layer
=
view
.
map
.
findLayerById
(
"highlightLayer"
);
if
(
layer
){
layer
.
removeAll
();
}
}
}
}
\ No newline at end of file
...
...
src/views/zd/zddcb/index.vue
View file @
82264bc
...
...
@@ -806,7 +806,7 @@
var
qlrTableData
=
this
.
$refs
.
qlrxxModule
.
tableData
;
if
(
qlrTableData
.
length
>
0
){
for
(
var
i
=
0
;
i
<
qlrTableData
.
length
;
i
++
){
if
(
i
=
=
0
){
if
(
i
=
0
){
self
.
geoAttributes
[
key
]
=
qlrTableData
[
i
].
qlrmc
;
}
else
{
self
.
geoAttributes
[
key
]
+=
','
+
qlrTableData
[
i
].
qlrmc
;
...
...
Please
register
or
sign in
to post a comment