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
ff02ed10
authored
2021-01-05 10:18:32 +0800
by
zhaoqian
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
逻辑幢的编辑
1 parent
209cb582
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
115 additions
and
21 deletions
src/api/ljz.js
src/views/panel/change/fg/index.vue
src/views/zrz/lpb/bjlp/ljz/index.vue
src/api/ljz.js
0 → 100644
View file @
ff02ed1
import
request
from
'@/plugin/axios'
/**
* 查询逻辑幢基本信息
*/
export
function
getQjLjzDetailById
(
data
)
{
return
request
({
url
:
'/system/qjLjz/getQjLjzDetailById'
,
method
:
'get'
,
params
:
{
id
:
data
,
}
})
}
/**
* 更新保存逻辑幢基本信息
*/
export
function
updateQjLjz
(
data
)
{
return
request
({
url
:
'/system/qjLjz/updateQjLjz'
,
method
:
'put'
,
data
:
data
,
})
}
src/views/panel/change/fg/index.vue
View file @
ff02ed1
...
...
@@ -315,7 +315,7 @@
export
default
{
name
:
""
,
inject
:
[
'getTreeByS'
],
inject
:
[
'getTreeByS'
,
'getRightTree'
],
components
:
{
zdQueryData
,
dzQueryData
,
hfghb
},
props
:
{},
data
()
{
...
...
@@ -634,6 +634,7 @@
}
saveDzFg
(
this
.
dzFghData
).
then
(
res
=>
{
if
(
res
.
success
)
{
this
.
getRightTree
(
res
.
result
,
'0,1,2'
);
Message
.
success
(
"保存成功"
)
//TO DO 多幢分割完成后的操作
}
else
{
...
...
src/views/zrz/lpb/bjlp/ljz/index.vue
View file @
ff02ed1
...
...
@@ -109,15 +109,18 @@
<span
@
click=
"deleteYtInfo(index)"
>
删除
</span>
</td>
<td
colspan=
"9"
>
<el-select
v-model=
"item1.fwytzdbsm"
placeholder=
"请选择"
>
<el-option
v-for=
"item in $store.state.tdytList"
:key=
"item.bsm"
:label=
"item.mc"
:value=
"item.bsm"
>
</el-option>
</el-select>
<el-select-tree
style=
"width:100%"
ref=
"yt"
v-if=
"show"
:default-expand-all=
"defaultExpandAll"
:multiple=
"multiple"
:placeholder=
"placeholder"
:data=
"$store.state.fwytList"
:props=
"treeProps"
:check-strictly=
"checkStrictly"
:clearable=
"clearable"
v-model=
"item1.fwytzdbsm"
></el-select-tree>
</td>
</tr>
...
...
@@ -145,15 +148,18 @@
<span
@
click=
"deleteFwjgInfo(index)"
>
删除
</span>
</td>
<td
colspan=
"9"
>
<el-select
v-model=
"item1.fwjgzdbsm"
placeholder=
"请选择"
>
<el-option
v-for=
"item in $store.state.jgOptions"
:key=
"item.bsm"
:label=
"item.mc"
:value=
"item.bsm"
>
</el-option>
</el-select>
<el-select-tree
style=
"width:100%"
ref=
"yt"
v-if=
"show"
:default-expand-all=
"defaultExpandAll"
:multiple=
"multiple"
:placeholder=
"placeholder"
:data=
"$store.state.jgOptions"
:props=
"treeProps"
:check-strictly=
"checkStrictly"
:clearable=
"clearable"
v-model=
"item1.fwjgzdbsm"
></el-select-tree>
</td>
</tr>
...
...
@@ -192,6 +198,7 @@
<
script
>
import
{
insertLjzInfo
}
from
"@api/lpb"
;
import
{
getQjLjzDetailById
,
updateQjLjz
}
from
"@api/ljz"
;
import
{
formdate
}
from
"@libs/function"
;
export
default
{
name
:
"ljz"
,
...
...
@@ -204,6 +211,21 @@ export default {
},
data
()
{
return
{
//树型结构
show
:
true
,
clearable
:
true
,
defaultExpandAll
:
true
,
multiple
:
false
,
placeholder
:
'请选择'
,
disabled
:
false
,
checkStrictly
:
true
,
treeProps
:
{
value
:
'bsm'
,
children
:
'children'
,
label
:
'mc'
},
form
:
{
zrzbsm
:
""
,
ljzh
:
""
,
//逻辑幢号
...
...
@@ -336,6 +358,11 @@ export default {
}
else
{
//逻辑幢更新接口调用 TODO
console
.
log
(
'保存'
);
updateQjLjz
(
this
.
form
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
){
this
.
$message
.
success
(
"修改成功"
)
}
})
}
},
onSubmit
()
{
...
...
@@ -343,8 +370,48 @@ export default {
},
//根据逻辑幢bsm查询逻辑幢信息
getLjzInfo
(
bsm
){
//逻辑幢信息查询接口调用 bsm为逻辑幢bsm TODO
this
.
form
=
{
zrzh
:
'11111111'
};
//逻辑幢信息查询接口调用 bsm为逻辑幢bsm
getQjLjzDetailById
(
bsm
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
){
this
.
form
=
res
.
result
;
this
.
form
.
zrzh
=
this
.
$store
.
state
.
zrzh
;
this
.
form
.
fwjgList
=
[
{
fwjgzdbsm
:
""
,
//房屋结构字典标识码
glbsm
:
""
,
//关联标识码
sx
:
""
,
//顺序
},
];
this
.
form
.
ytList
=
[
{
glbsm
:
""
,
//关联标识码
fwytzdbsm
:
""
,
//房屋用途字典标识码
sx
:
""
,
//顺序
},
];
if
(
this
.
form
.
qjfwjg
.
length
>
0
){
this
.
form
.
fwjgList
=
[];
for
(
let
i
=
0
;
i
<
this
.
form
.
qjfwjg
.
length
;
i
++
){
this
.
form
.
fwjgList
.
push
({
fwjgzdbsm
:
this
.
form
.
qjfwjg
[
i
].
fwjgzdbsm
,
//房屋结构字典标识码
glbsm
:
this
.
form
.
qjfwjg
[
i
].
glbsm
,
//关联标识码
sx
:
this
.
form
.
qjfwjg
[
i
].
sx
,
//顺序
})
}
}
if
(
this
.
form
.
qjfwyt
.
length
>
0
){
this
.
form
.
ytList
=
[];
for
(
let
i
=
0
;
i
<
this
.
form
.
qjfwyt
.
length
;
i
++
){
this
.
form
.
ytList
.
push
({
fwytzdbsm
:
this
.
form
.
qjfwyt
[
i
].
fwytzdbsm
,
//房屋结构字典标识码
glbsm
:
this
.
form
.
qjfwyt
[
i
].
glbsm
,
//关联标识码
sx
:
this
.
form
.
qjfwyt
[
i
].
sx
,
//顺序
})
}
}
console
.
log
(
JSON
.
stringify
(
this
.
form
)
+
":this.form"
)
}
})
this
.
$forceUpdate
();
}
},
...
...
Please
register
or
sign in
to post a comment