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
c2bc35e2
authored
2020-12-03 10:23:50 +0800
by
weimo934
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(hb):合并将宗地.多幢.户数据隔离
1 parent
b588a832
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
76 additions
and
38 deletions
src/views/panel/change/hb/index.vue
src/views/panel/change/hb/index.vue
View file @
c2bc35e
...
...
@@ -16,12 +16,12 @@
<td
class=
"qlr"
>
权利人
</td>
<td
class=
"zl"
>
坐落
</td>
</tr>
<tr
v-if=
"
bg
qData.length==0"
>
<tr
v-if=
"
zdhb
qData.length==0"
>
<td
colspan=
"7"
>
<span
class=
"noData"
>
暂无数据
</span>
</td>
</tr>
<tr
v-else
v-for=
"(item,index) in
bg
qData"
:key=
"index"
>
<tr
v-else
v-for=
"(item,index) in
zdhb
qData"
:key=
"index"
>
<td
class=
"xh"
>
{{
index
+
1
}}
</td>
<td
class=
"zddm"
><input
type=
"text"
class=
"formInput"
v-model=
"item.zddm"
readonly=
"readonly"
/></td>
...
...
@@ -52,7 +52,7 @@
</tr>
<tr>
<td
class=
"xzq"
>
<el-select
v-model=
"
hbhData.xzqbsm"
@
change=
"changeXzq(
hbhData.xzqbsm)"
>
<el-select
v-model=
"
zdhbhData.xzqbsm"
@
change=
"changeXzq(zd
hbhData.xzqbsm)"
>
<el-option
v-for=
"i in xzq"
:key=
"i.bsm"
...
...
@@ -62,7 +62,7 @@
</el-select>
</td>
<td
class=
"djq"
>
<el-select
v-model=
"
hbhData.djqbsm"
@
change=
"changeDjq(
hbhData.djqbsm)"
>
<el-select
v-model=
"
zdhbhData.djqbsm"
@
change=
"changeDjq(zd
hbhData.djqbsm)"
>
<el-option
v-for=
"i in djq"
:key=
"i.bsm"
...
...
@@ -72,7 +72,7 @@
</el-select>
</td>
<td
class=
"syqlx"
>
<el-select
v-model=
"hbhData.djzqbsm"
>
<el-select
v-model=
"
zd
hbhData.djzqbsm"
>
<el-option
v-for=
"i in djzq"
:key=
"i.bsm"
...
...
@@ -82,7 +82,7 @@
</el-select>
</td>
<td
class=
"tdtzm"
>
<el-select
v-model=
"hbhData.syqlxbsm"
>
<el-select
v-model=
"
zd
hbhData.syqlxbsm"
>
<el-option
v-for=
"i in syq"
:key=
"i.value"
...
...
@@ -92,7 +92,7 @@
</el-select>
</td>
<td
class=
"syqlx"
>
<el-select
v-model=
"hbhData.zdtzmbsm"
>
<el-select
v-model=
"
zd
hbhData.zdtzmbsm"
>
<el-option
v-for=
"i in tdtzm"
:key=
"i.bsm"
...
...
@@ -102,7 +102,7 @@
</el-select>
</td>
<td
class=
"xmmc"
>
<input
type=
"text"
v-model=
"hbhData.xmmc"
class=
"formInput"
/>
<input
type=
"text"
v-model=
"
zd
hbhData.xmmc"
class=
"formInput"
/>
</td>
<td
class=
"zxx"
>
<span
class=
"xz"
>
选择
</span>
...
...
@@ -122,7 +122,7 @@
<div
class=
"hb-tabs"
>
<el-button
type=
"primary"
class=
"addBtn"
@
click=
"newAdd"
>
新增
</el-button>
<div
class=
"hbq"
>
<span
class=
"tips"
>
合并前
宗地
信息
</span>
<span
class=
"tips"
>
合并前
多幢
信息
</span>
<table
border=
"1"
>
<tr>
<td
class=
"xh"
>
序号
</td>
...
...
@@ -133,12 +133,12 @@
<td
class=
"qlr"
>
权利人
</td>
<td
class=
"zl"
>
坐落
</td>
</tr>
<tr
v-if=
"
bg
qData.length==0"
>
<tr
v-if=
"
dzhb
qData.length==0"
>
<td
colspan=
"7"
>
<span
class=
"noData"
>
暂无数据
</span>
</td>
</tr>
<tr
v-else
v-for=
"(item,index) in
bg
qData"
:key=
"index"
>
<tr
v-else
v-for=
"(item,index) in
dzhb
qData"
:key=
"index"
>
<td
class=
"xh"
>
{{
index
+
1
}}
</td>
<td
class=
"zddm"
><input
type=
"text"
class=
"formInput"
v-model=
"item.zddm"
readonly=
"readonly"
/></td>
...
...
@@ -156,7 +156,7 @@
</table>
</div>
<div
class=
"hbh"
>
<span
class=
"tips"
>
合并后
宗地
信息
</span>
<span
class=
"tips"
>
合并后
多幢
信息
</span>
<table
border=
"1"
>
<tr>
<th
class=
"xzq"
>
行政区
</th>
...
...
@@ -169,7 +169,7 @@
</tr>
<tr>
<td
class=
"xzq"
>
<el-select
v-model=
"
hbhData.xzqbsm"
@
change=
"changeXzq(
hbhData.xzqbsm)"
>
<el-select
v-model=
"
dzhbhData.xzqbsm"
@
change=
"changeXzq(dz
hbhData.xzqbsm)"
>
<el-option
v-for=
"i in xzq"
:key=
"i.bsm"
...
...
@@ -179,7 +179,7 @@
</el-select>
</td>
<td
class=
"djq"
>
<el-select
v-model=
"
hbhData.djqbsm"
@
change=
"changeDjq(
hbhData.djqbsm)"
>
<el-select
v-model=
"
dzhbhData.djqbsm"
@
change=
"changeDjq(dz
hbhData.djqbsm)"
>
<el-option
v-for=
"i in djq"
:key=
"i.bsm"
...
...
@@ -189,7 +189,7 @@
</el-select>
</td>
<td
class=
"syqlx"
>
<el-select
v-model=
"hbhData.djzqbsm"
>
<el-select
v-model=
"
dz
hbhData.djzqbsm"
>
<el-option
v-for=
"i in djzq"
:key=
"i.bsm"
...
...
@@ -199,7 +199,7 @@
</el-select>
</td>
<td
class=
"tdtzm"
>
<el-select
v-model=
"hbhData.syqlxbsm"
>
<el-select
v-model=
"
dz
hbhData.syqlxbsm"
>
<el-option
v-for=
"i in syq"
:key=
"i.value"
...
...
@@ -209,7 +209,7 @@
</el-select>
</td>
<td
class=
"syqlx"
>
<el-select
v-model=
"hbhData.zdtzmbsm"
>
<el-select
v-model=
"
dz
hbhData.zdtzmbsm"
>
<el-option
v-for=
"i in tdtzm"
:key=
"i.bsm"
...
...
@@ -219,7 +219,7 @@
</el-select>
</td>
<td
class=
"xmmc"
>
<input
type=
"text"
v-model=
"hbhData.xmmc"
class=
"formInput"
/>
<input
type=
"text"
v-model=
"
dz
hbhData.xmmc"
class=
"formInput"
/>
</td>
<td
class=
"zxx"
>
<span
class=
"xz"
>
选择
</span>
...
...
@@ -238,7 +238,7 @@
<div
class=
"hb-tabs"
>
<el-button
type=
"primary"
class=
"addBtn"
@
click=
"newAdd"
>
新增
</el-button>
<div
class=
"hbq"
>
<span
class=
"tips"
>
合并前
宗地
信息
</span>
<span
class=
"tips"
>
合并前
户
信息
</span>
<table
border=
"1"
>
<tr>
<td
class=
"xh"
>
序号
</td>
...
...
@@ -249,12 +249,12 @@
<td
class=
"qlr"
>
权利人
</td>
<td
class=
"zl"
>
坐落
</td>
</tr>
<tr
v-if=
"
bg
qData.length==0"
>
<tr
v-if=
"
hhb
qData.length==0"
>
<td
colspan=
"7"
>
<span
class=
"noData"
>
暂无数据
</span>
</td>
</tr>
<tr
v-else
v-for=
"(item,index) in
bg
qData"
:key=
"index"
>
<tr
v-else
v-for=
"(item,index) in
hhb
qData"
:key=
"index"
>
<td
class=
"xh"
>
{{
index
+
1
}}
</td>
<td
class=
"zddm"
><input
type=
"text"
class=
"formInput"
v-model=
"item.zddm"
readonly=
"readonly"
/></td>
...
...
@@ -272,7 +272,7 @@
</table>
</div>
<div
class=
"hbh"
>
<span
class=
"tips"
>
合并后
宗地
信息
</span>
<span
class=
"tips"
>
合并后
户
信息
</span>
<table
border=
"1"
>
<tr>
<th
class=
"xzq"
>
行政区
</th>
...
...
@@ -285,7 +285,7 @@
</tr>
<tr>
<td
class=
"xzq"
>
<el-select
v-model=
"h
bhData.xzqbsm"
@
change=
"changeXzq(
hbhData.xzqbsm)"
>
<el-select
v-model=
"h
hbhData.xzqbsm"
@
change=
"changeXzq(h
hbhData.xzqbsm)"
>
<el-option
v-for=
"i in xzq"
:key=
"i.bsm"
...
...
@@ -295,7 +295,7 @@
</el-select>
</td>
<td
class=
"djq"
>
<el-select
v-model=
"h
bhData.djqbsm"
@
change=
"changeDjq(
hbhData.djqbsm)"
>
<el-select
v-model=
"h
hbhData.djqbsm"
@
change=
"changeDjq(h
hbhData.djqbsm)"
>
<el-option
v-for=
"i in djq"
:key=
"i.bsm"
...
...
@@ -305,7 +305,7 @@
</el-select>
</td>
<td
class=
"syqlx"
>
<el-select
v-model=
"hbhData.djzqbsm"
>
<el-select
v-model=
"h
h
bhData.djzqbsm"
>
<el-option
v-for=
"i in djzq"
:key=
"i.bsm"
...
...
@@ -315,7 +315,7 @@
</el-select>
</td>
<td
class=
"tdtzm"
>
<el-select
v-model=
"hbhData.syqlxbsm"
>
<el-select
v-model=
"h
h
bhData.syqlxbsm"
>
<el-option
v-for=
"i in syq"
:key=
"i.value"
...
...
@@ -325,7 +325,7 @@
</el-select>
</td>
<td
class=
"syqlx"
>
<el-select
v-model=
"hbhData.zdtzmbsm"
>
<el-select
v-model=
"h
h
bhData.zdtzmbsm"
>
<el-option
v-for=
"i in tdtzm"
:key=
"i.bsm"
...
...
@@ -335,7 +335,7 @@
</el-select>
</td>
<td
class=
"xmmc"
>
<input
type=
"text"
v-model=
"hbhData.xmmc"
class=
"formInput"
/>
<input
type=
"text"
v-model=
"h
h
bhData.xmmc"
class=
"formInput"
/>
</td>
<td
class=
"zxx"
>
<span
class=
"xz"
>
选择
</span>
...
...
@@ -372,8 +372,12 @@
return
{
tabName
:
'zd'
,
centerDialogVisible
:
false
,
zdFgqData
:
[],
hbhData
:
{},
zdhbqData
:
[],
// 宗地合并前数据
dzhbqData
:
[],
// 多幢合并前数据
hhbqData
:
[],
// 户合并前数据
zdhbhData
:
{},
// 宗地合并后数据
dzhbhData
:
{},
// 多幢合并后数据
hhbhData
:
{},
// 户合并后数据
fgBoxWidth
:
0
,
xzq
:
[],
djq
:
[],
...
...
@@ -421,8 +425,22 @@
changeXzq
(
id
)
{
this
.
djq
=
[];
this
.
djzq
=
[];
this
.
hbhData
.
djqbsm
=
''
this
.
hbhData
.
djzqbsm
=
''
switch
(
this
.
tabName
)
{
case
"zd"
:
this
.
zdhbqData
.
djqbsm
=
''
;
this
.
zdhbqData
.
djzqbsm
=
''
;
break
case
"dz"
:
this
.
dzhbqData
.
djqbsm
=
''
;
this
.
dzhbqData
.
djzqbsm
=
''
;
break
case
"h"
:
this
.
hhbqData
.
djqbsm
=
''
;
this
.
hhbqData
.
djzqbsm
=
''
;
break
default
:
break
}
getListByXzqbsm
(
id
)
.
then
((
res
)
=>
{
if
(
res
.
result
==
null
)
{
...
...
@@ -436,7 +454,19 @@
},
changeDjq
(
item
)
{
this
.
djzq
=
[];
this
.
hbhData
.
djzqbsm
=
''
switch
(
this
.
tabName
)
{
case
"zd"
:
this
.
zdhbqData
.
djzqbsm
=
''
;
break
case
"dz"
:
this
.
dzhbqData
.
djzqbsm
=
''
;
break
case
"h"
:
this
.
hhbqData
.
djzqbsm
=
''
;
break
default
:
break
}
if
(
item
==
null
)
{
}
else
{
getListByPbsm
(
item
)
...
...
@@ -460,12 +490,20 @@
newAdd
:
function
()
{
this
.
centerDialogVisible
=
true
;
},
addData
:
function
(
val
)
{
this
.
centerDialogVisible
=
false
;
this
.
zdFgqData
.
push
(
val
)
},
getData
:
function
(
data
)
{
this
.
zdFgqData
.
push
(
data
)
switch
(
this
.
tabName
)
{
case
"zd"
:
this
.
zdhbqData
.
push
(
data
)
break
case
"dz"
:
this
.
dzhbqData
.
push
(
data
)
break
case
"h"
:
this
.
hhbqData
.
push
(
data
)
break
default
:
break
;
}
},
},
computed
:
{},
...
...
Please
register
or
sign in
to post a comment