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
7849453d
authored
2020-11-04 17:48:02 +0800
by
weimo934
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat(fg):添加分割后表单
1 parent
e26089d2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
207 additions
and
19 deletions
src/api/zd.js
src/views/panel/change/fg/index.vue
src/api/zd.js
View file @
7849453
...
...
@@ -18,13 +18,14 @@ export function savemjft(data) {
*/
export
function
getMjftInfo
(
zdBsm
)
{
return
request
({
url
:
"/zd/qjGygyzdmjft/getQjGygyzdmjftDetailById"
,
method
:
"get"
,
params
:{
url
:
"/zd/qjGygyzdmjft/getQjGygyzdmjftDetailById"
,
method
:
"get"
,
params
:
{
zdBsm
}
})
}
/**
* 新增宗地基本信息
*/
...
...
@@ -35,6 +36,7 @@ export function insertQjZdjbxx(data) {
data
:
data
,
});
}
/**
* 修改宗地基本信息
*/
...
...
@@ -85,6 +87,7 @@ export function queryjzx(glBsm) {
}
})
}
/**
* 根据zdbsm查询宗地基本信息
*/
...
...
@@ -108,6 +111,7 @@ export function jzdsingleModify(data) {
data
:
data
})
}
/**
* 界址点批量修改
*/
...
...
@@ -144,7 +148,7 @@ export function jzxsbatchModify(data) {
/**x
*根据宗地Bsm删除宗地信息
*/
export
function
deleteZdInfoByBsm
(
data
){
export
function
deleteZdInfoByBsm
(
data
)
{
return
request
({
url
:
'/zd/qjZdjbxx/deleteZdjbxxByBsm'
,
method
:
'delete'
,
...
...
@@ -152,4 +156,15 @@ export function deleteZdInfoByBsm(data){
})
}
/**
* 宗地分割
*/
export
function
zdfg
(
data
)
{
return
request
({
url
:
'/fg/zdFg'
,
method
:
'post'
,
data
:
data
})
}
...
...
src/views/panel/change/fg/index.vue
View file @
7849453
...
...
@@ -20,7 +20,6 @@
</td>
</tr>
<tr
v-else
>
<!--
<tr
v-else
v-for=
"(item,index) in bgqData"
:key=
"index"
>
-->
<td>
1
</td>
<td><input
type=
"text"
class=
"formInput"
v-model=
"bgqData.zddm"
readonly=
"readonly"
/></td>
<td><input
type=
"text"
class=
"formInput"
v-model=
"bgqData.bdcdyh"
readonly=
"readonly"
/></td>
...
...
@@ -39,11 +38,12 @@
<td>
行政区
</td>
<td>
地籍区
</td>
<td>
地籍子区
</td>
<td>
所有权类型
</td>
<td>
土地特征码
</td>
<td>
项目名称
</td>
<td>
幢信息
</td>
</tr>
<tr
v-for=
"(item,index) in fghData"
:key=
"index"
>
<tr
v-for=
"(item,index) in fghData
.newZdlist
"
:key=
"index"
>
<td
@
click=
"delRow(index)"
>
-
</td>
<td>
<el-select
v-model=
"item.xzqbsm"
@
change=
"changeXzq(item.xzqbsm)"
>
...
...
@@ -76,6 +76,16 @@
</el-select>
</td>
<td>
<el-select
v-model=
"item.syqlxbsm"
>
<el-option
v-for=
"i in syq"
:key=
"i.value"
:label=
"i.label"
:value=
"i.value"
></el-option>
</el-select>
</td>
<td>
<el-select
v-model=
"item.zdtzmbsm"
>
<el-option
v-for=
"i in tdtzm"
...
...
@@ -89,7 +99,8 @@
<input
type=
"text"
v-model=
"item.xmmc"
class=
"formInput"
/>
</td>
<td>
<input
type=
"text"
v-model=
"item.zxx"
class=
"formInput"
/>
<!--
{{
item
.
fwlist
.
zbsm
}}
-->
<span
@
click=
"xzzrz(index)"
class=
"xz"
>
选择
</span>
</td>
</tr>
<tr>
...
...
@@ -100,9 +111,49 @@
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
</div>
<el-dialog
v-if=
"fghData.newZdlist.length>0"
title=
"提示"
:visible
.
sync=
"isopenXz"
width=
"50%"
center
>
<div
class=
"xz-container"
>
<div
class=
"xz-main"
>
<table
border=
"1"
>
<tr>
<td>
幢类型
</td>
<td>
幢信息
</td>
</tr>
<tr
v-for=
"(item,index) in fghData.newZdlist[selectIndex].fwlist"
:key=
"index"
>
<td>
<el-select
v-model=
"item.ztype"
>
<el-option
v-for=
"i in ztypes"
:key=
"i.value"
:label=
"i.label"
:value=
"i.value"
></el-option>
</el-select>
</td>
<td>
<input
type=
"text"
class=
"formInput"
v-model=
"item.zbsm"
/>
</td>
</tr>
</table>
</div>
<div
class=
"xz-sidebar"
>
<el-tree
:data=
"zrzData"
:props=
"defaultProps"
@
node-click=
"handleNodeClick"
:default-expand-all=
"true"
></el-tree>
</div>
</div>
</el-dialog>
<query-data
@
getData=
"getData"
:centerDialogVisible
.
sync=
"centerDialogVisible"
@
close=
"close"
></query-data>
<div
class=
"header-button"
>
...
...
@@ -120,6 +171,8 @@
}
from
"./../../../../api/common"
;
import
{
getQjZdjbxxDetailById
}
from
'./../../../../api/zd'
import
QueryData
from
'./../../../../components/queryData/queryData'
import
{
zdfg
}
from
'./../../../../api/zd'
import
{
Message
}
from
'element-ui'
export
default
{
name
:
""
,
...
...
@@ -127,21 +180,90 @@
props
:
{},
data
()
{
return
{
isopenXz
:
false
,
centerDialogVisible
:
false
,
selectIndex
:
0
,
// 当前选中序号
bgqData
:
{},
xzq
:
[],
djq
:
[],
djzq
:
[],
tdtzm
:
[],
defaultProps
:
{
children
:
'children'
,
label
:
'label'
},
zrzData
:
[{
label
:
'一级 1'
,
children
:
[{
label
:
'二级 1-1'
,
children
:
[{
label
:
'三级 1-1-1'
}]
}]
},
{
label
:
'一级 2'
,
children
:
[{
label
:
'二级 2-1'
,
children
:
[{
label
:
'三级 2-1-1'
}]
},
{
label
:
'二级 2-2'
,
children
:
[{
label
:
'三级 2-2-1'
}]
}]
},
{
label
:
'一级 3'
,
children
:
[{
label
:
'二级 3-1'
,
children
:
[{
label
:
'三级 3-1-1'
}]
},
{
label
:
'二级 3-2'
,
children
:
[{
label
:
'三级 3-2-1'
}]
}]
}],
ztypes
:
[
{
label
:
'多幢'
,
value
:
'多幢'
},
{
label
:
'自然幢'
,
value
:
'自然幢'
}
],
syq
:
[
{
label
:
"国家所有"
,
value
:
"G"
,
},
{
label
:
"集体所有"
,
value
:
"J"
,
},
{
label
:
"土地所有权未确定或有争议"
,
value
:
"Z"
,
}
],
Data
:
{
xzqbsm
:
''
,
djqbsm
:
''
,
djzqbsm
:
''
,
zdtzmbsm
:
''
,
zmmc
:
''
,
zxx
:
''
xzqbsm
:
""
,
djqbsm
:
""
,
djzqbsm
:
""
,
xmmc
:
""
,
syqlxbsm
:
""
,
zdtzmbsm
:
""
,
userbsm
:
""
,
fwlist
:
[]
},
fghData
:
{
oldZdbsm
:
""
,
newZdlist
:
[]
},
fghData
:
[],
}
},
...
...
@@ -152,12 +274,32 @@
this
.
getzdtzm
();
},
methods
:
{
handleNodeClick
(
data
)
{
console
.
log
(
data
);
},
xzzrz
(
index
)
{
this
.
isopenXz
=
true
this
.
selectIndex
=
index
},
save
()
{
console
.
log
(
"save........"
)
console
.
log
(
this
.
fghData
)
zdfg
(
this
.
fghData
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
success
)
{
Message
.
success
(
'保存成功'
)
}
else
{
Message
.
error
(
res
.
message
)
}
})
},
getJbxx
(
id
)
{
getQjZdjbxxDetailById
(
id
).
then
(
res
=>
{
this
.
Data
=
res
.
result
// 用户bsm暂时传空
this
.
Data
.
userbsm
=
''
// fwlist 暂时传空
this
.
Data
.
fwlist
=
[{
zdbsm
:
''
,
ztype
:
''
}]
})
},
getzdtzm
()
{
...
...
@@ -168,7 +310,6 @@
getXzqList
()
{
getAllList
()
.
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
xzq
=
res
.
result
;
})
.
catch
((
error
)
=>
{
...
...
@@ -206,10 +347,26 @@
}
},
addRow
()
{
this
.
fghData
.
push
(
this
.
Data
)
this
.
fghData
.
newZdlist
.
push
({
xzqbsm
:
""
,
djqbsm
:
""
,
djzqbsm
:
""
,
xmmc
:
""
,
syqlxbsm
:
""
,
zdtzmbsm
:
""
,
userbsm
:
""
,
fwlist
:
[
{
zbsm
:
""
,
ztype
:
""
}
]
});
this
.
fghData
.
newZdlist
[
this
.
fghData
.
newZdlist
.
length
-
1
]
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
Data
));
},
delRow
(
index
)
{
this
.
fghData
.
splice
(
index
,
1
)
this
.
fghData
.
newZdlist
.
splice
(
index
,
1
)
},
close
:
function
()
{
this
.
centerDialogVisible
=
false
;
...
...
@@ -229,9 +386,17 @@
watch
:
{
bgqData
:
{
handler
:
function
(
item
)
{
this
.
fghData
.
oldZdbsm
=
item
.
glbsm
this
.
getJbxx
(
item
.
glbsm
)
},
deep
:
true
},
Data
:
{
handler
:
function
(
item
)
{
this
.
changeXzq
(
item
.
xzqbsm
)
this
.
changeDjq
(
item
.
djqbsm
)
},
deep
:
true
}
},
}
...
...
@@ -270,16 +435,24 @@
table
:hover
{
cursor
:
pointer
;
}
.xz
{
color
:
blue
;
}
.noData
{
color
:
#b2b2b2
;
}
.fgh
{
.fgh
{
margin-top
:
20px
;
}
.header-button
{
margin-top
:
20px
;
text-align
:
center
;
}
.xz-container
{
border
:
1px
solid
#000
;
display
:
grid
;
grid-template-columns
:
70%
30%
;
grid-template-rows
:
1
fr
;
}
}
</
style
>
...
...
Please
register
or
sign in
to post a comment