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
e488f5f0
authored
2020-12-01 10:27:45 +0800
by
weimo934
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(lpbContent):上下左右移动户联调接口
1 parent
29473d18
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
116 additions
and
4 deletions
src/api/lpb.js
src/components/moveH/moveH.vue
src/views/zrz/lpb/bjlp/lpbContent/index.vue
src/api/lpb.js
View file @
e488f5f
...
...
@@ -106,4 +106,16 @@ export function getLpbFwytAndQlxz (data) {
method
:
'get'
,
data
:
data
})
}
\ No newline at end of file
}
/**
* 上下左右移动户
* @param data
*/
export
function
moveH
(
data
)
{
return
request
({
url
:
'fw/lpbright/insertMoveH'
,
method
:
'post'
,
data
:
data
})
}
...
...
src/components/moveH/moveH.vue
0 → 100644
View file @
e488f5f
<
template
>
<div>
<el-dialog
title=
"移动户"
:visible
.
sync=
"isVisible"
width=
"50%"
@
close=
"close"
:modal-append-to-body=
"false"
center
>
<div>
<el-radio-group
v-model=
"moveHdata.sxzylx"
>
<el-radio
label=
"up"
>
向上
</el-radio>
<el-radio
label=
"down"
>
向下
</el-radio>
<el-radio
label=
"left"
>
向左
</el-radio>
<el-radio
label=
"right"
>
向右
</el-radio>
</el-radio-group>
<div
class=
""
>
<el-button
type=
"primary"
@
click=
"save"
>
确认
</el-button>
<el-button
type=
"primary"
@
click=
"cacel"
>
取消
</el-button>
</div>
</div>
</el-dialog>
</div>
</
template
>
<
script
>
import
{
moveH
}
from
'./../../api/lpb'
import
{
Message
}
from
'element-ui'
export
default
{
name
:
"moveH"
,
data
()
{
return
{
isVisible
:
false
,
moveHdata
:
{
hbsm
:
""
,
sxzylx
:
""
,
type
:
""
}
}
},
props
:
{
moveHvisible
:
{
type
:
Boolean
,
default
:
false
},
hbsm
:
{
type
:
String
},
type
:{
type
:
String
}
},
methods
:
{
loading
:
function
(){
this
.
$emit
(
'loading'
)
},
save
()
{
this
.
moveHdata
.
hbsm
=
this
.
hbsm
this
.
moveHdata
.
type
=
this
.
type
moveH
(
this
.
moveHdata
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
success
)
{
this
.
loading
();
this
.
close
();
Message
.
success
(
"移动成功"
)
}
else
{
Message
.
error
(
res
.
message
)
}
})
},
cacel
(){
this
.
close
()
},
close
()
{
this
.
$emit
(
'close'
);
}
},
watch
:
{
moveHvisible
(
val
)
{
this
.
isVisible
=
val
}
}
}
</
script
>
<
style
scoped
>
</
style
>
src/views/zrz/lpb/bjlp/lpbContent/index.vue
View file @
e488f5f
...
...
@@ -94,16 +94,19 @@
<li
v-show=
'rightClickFlag=="c"'
@
click=
"handleDownAddC"
>
向下添加层
</li>
<li
v-show=
'rightClickFlag=="c"'
@
click=
"handleDeleteC"
>
删除层
</li>
</ul>
<move-h
:hbsm=
"chData.bsm"
@
close=
"moveHClose"
:move-hvisible=
"moveHvisible"
:type=
"syclx"
@
loading=
"loadingData"
></move-h>
</div>
</template>
<
script
>
import
{
getLpb
}
from
"../../../../../api/lpb"
;
import
moveH
from
"./../../../../../components/moveH/moveH"
export
default
{
name
:
""
,
components
:
{},
components
:
{
moveH
},
props
:
{},
data
()
{
return
{
moveHvisible
:
false
,
lpbData
:
{
ljzs
:
[],
cs
:
[],
...
...
@@ -145,6 +148,9 @@ export default {
},
200
);
},
methods
:
{
loadingData
(){
this
.
getLpb
(
this
.
$store
.
state
.
zrzbsm
,
this
.
$parent
.
syclx
);
},
//获取楼盘表数据
getLpb
(
zrzbsm
,
syclx
)
{
getLpb
(
zrzbsm
,
syclx
).
then
((
res
)
=>
{
...
...
@@ -241,7 +247,7 @@ export default {
// this.zdyWidth = 124;
}
},
//户单击事件
handleTdClick
(
e
,
bsm
)
{
...
...
@@ -321,7 +327,13 @@ export default {
},
handleMoveH
(){
// 移动户
console
.
log
(
this
.
chData
,
"chData"
)
console
.
log
(
this
.
$parent
.
syclx
,
"实预测类型"
)
this
.
moveHvisible
=
true
;
},
moveHClose
(){
this
.
moveHvisible
=
false
;
},
handleDeleteH
(){
...
...
Please
register
or
sign in
to post a comment