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
7cf9b4cb
authored
2020-12-01 16:57:57 +0800
by
weimo934
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(bjlp,lineTree):添加删除逻辑幢、幢单元
1 parent
2986383b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
1 deletions
src/api/lpb.js
src/components/lineTree/lineTree.vue
src/views/zrz/lpb/bjlp/index.vue
src/api/lpb.js
View file @
7cf9b4c
...
...
@@ -145,3 +145,26 @@ export function moveH(data) {
data
:
data
})
}
/**
* 删除逻辑幢
* @param bsm
*/
export
function
deleteLjz
(
id
)
{
return
request
({
url
:
'system/qjLjz/deleteLjzByBsm'
,
method
:
'delete'
,
params
:{
id
}
})
}
export
function
deleteZdy
(
id
)
{
return
request
({
url
:
'system/qjZdy/deleteZdyByBsm'
,
method
:
'delete'
,
params
:{
id
}
})
}
...
...
src/components/lineTree/lineTree.vue
View file @
7cf9b4c
...
...
@@ -89,6 +89,8 @@
<li
v-show=
"zdData.type == 'zrz'"
@
click=
"openLpbDialog('ljz')"
>
添加逻辑幢
</li>
<li
v-show=
"zdData.type == 'zrz' || zdData.type == 'ljz'"
@
click=
"openLpbDialog('zdy')"
>
添加幢单元
</li>
<li
v-show=
"zdData.type == 'zrz' || zdData.type == 'ljz' || zdData.type == 'zdy'"
@
click=
"openLpbDialog('ch')"
>
添加层户
</li>
<li
v-show=
"zdData.type == 'ljz'"
@
click=
"deleteLjz"
>
删除逻辑幢
</li>
<li
v-show=
"zdData.type == 'zdy'"
@
click=
"deleteZdy"
>
删除幢单元
</li>
</ul>
<!-- 添加定着物弹框 -->
<el-dialog
title=
"新建"
:visible
.
sync=
"dialogVisible"
width=
"40%"
>
...
...
@@ -100,6 +102,7 @@
import
lineItem
from
"./lineItem.vue"
;
import
{
deleteZdInfoByBsm
}
from
"../../api/zd"
;
import
Create
from
"../../views/panel/create/index"
;
import
{
deleteLjz
,
deleteZdy
}
from
"./../../api/lpb"
export
default
{
inheritAttrs
:
false
,
props
:
{
...
...
@@ -173,6 +176,29 @@ export default {
},
methods
:
{
loading
(){
this
.
$emit
(
"loading"
)
},
deleteLjz
(){
console
.
log
(
"删除逻辑幢"
)
console
.
log
(
this
.
zdData
,
"zdData"
)
deleteLjz
(
this
.
zdData
.
bsm
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
loading
()
}
else
{
}
})
},
deleteZdy
(){
console
.
log
(
"删除幢单元"
)
console
.
log
(
this
.
zdData
,
"zdData"
)
deleteZdy
(
this
.
zdData
.
bsm
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
loading
()
}
})
},
// 改变菜单数据
changeVisible
(
data
)
{
this
.
visible
=
data
;
...
...
src/views/zrz/lpb/bjlp/index.vue
View file @
7cf9b4c
...
...
@@ -79,7 +79,7 @@
>
<!-- 左侧树结构 -->
<div
class=
"lp-tree"
:class=
"createFlag ? 'w260' : 'w0'"
>
<LineTree
:pd=
"pd"
class=
"treeData"
:islpb=
"islpb"
></LineTree>
<LineTree
:pd=
"pd"
class=
"treeData"
:islpb=
"islpb"
@
loading=
"loading"
></LineTree>
<p
@
click=
"createFlag = false"
style=
"width:20px;float:left;margin-top: 12px;margin-left:10px;cursor:pointer;"
...
...
@@ -393,6 +393,9 @@ export default {
},
100
);
},
methods
:
{
loading
(){
this
.
getLpbMenuTree
(
this
.
$store
.
state
.
zrzbsm
);
},
openPlC
(){
if
(
this
.
cbsmList
.
length
<=
0
)
{
Message
.
warning
(
"请选择层"
)
...
...
Please
register
or
sign in
to post a comment