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
923e88c3
authored
2020-10-21 13:59:53 +0800
by
杨威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
权利人选择不同共有方式对应处理
1 parent
10966f5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
32 deletions
src/components/formMenu/qlr.vue
src/components/formMenu/qlr.vue
View file @
923e88c
...
...
@@ -7,10 +7,10 @@
<td
colspan=
"8"
>
<el-row>
<el-col
:span=
"12"
class=
"fl"
>
<el-radio
v-model=
"
radio
"
label=
"1"
>
单独所有
</el-radio>
<el-radio
v-model=
"
radio
"
label=
"2"
>
共同所有
</el-radio>
<el-radio
v-model=
"
radio
"
label=
"3"
>
按份共有
</el-radio>
<el-radio
v-model=
"
radio
"
label=
"4"
>
其他共有
</el-radio>
<el-radio
v-model=
"
gyfs
"
label=
"1"
>
单独所有
</el-radio>
<el-radio
v-model=
"
gyfs
"
label=
"2"
>
共同所有
</el-radio>
<el-radio
v-model=
"
gyfs
"
label=
"3"
>
按份共有
</el-radio>
<el-radio
v-model=
"
gyfs
"
label=
"4"
>
其他共有
</el-radio>
</el-col>
<el-col
:span=
"4"
class=
"fr"
>
<span
class=
"span"
@
click=
"addRow"
>
新增
</span>
...
...
@@ -32,34 +32,16 @@
<el-table-column
type=
"selection"
width=
"40"
align=
"center"
>
</el-table-column>
<el-table-column
prop=
"qlrmc"
label=
"权利人名称"
align=
"center"
>
<template
slot-scope=
"scope"
>
<el-input
size=
"small"
v-model=
"scope.row.qlrmc"
></el-input>
</
template
>
</el-table-column>
<el-table-column
prop=
"qlrlx"
label=
"权利人类型"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-input
size=
"small"
v-model=
"scope.row.qlrlx"
></el-input>
</
template
>
</el-table-column>
<el-table-column
prop=
"zjzl"
label=
"证件种类"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-input
size=
"small"
v-model=
"scope.row.zjzl"
></el-input>
</
template
>
</el-table-column>
<el-table-column
prop=
"zjh"
label=
"证件号"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-input
size=
"small"
v-model=
"scope.row.zjh"
></el-input>
</
template
>
</el-table-column>
<el-table-column
prop=
"txdz"
label=
"通讯地址"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-input
size=
"small"
v-model=
"scope.row.txdz"
></el-input>
</
template
>
</el-table-column>
<el-table-column
prop=
"lxdh"
label=
"联系电话"
align=
"center"
>
<
template
slot-scope=
"scope"
>
<el-input
size=
"small"
v-model=
"scope.row.lxdh"
></el-input>
</
template
>
</el-table-column>
</el-table>
<el-dialog
...
...
@@ -259,7 +241,7 @@ export default {
},
data
()
{
return
{
radio
:
"1"
,
gyfs
:
"1"
,
tableData
:
[],
//表格选中项
multipleSelection
:
{},
...
...
@@ -269,7 +251,7 @@ export default {
djq
:
""
,
djzq
:
""
,
qllx
:
""
,
zdtzm
:
""
,
zdtzm
:
""
,
qlsdfs
:
""
,
zddm
:
""
,
djh
:
""
,
...
...
@@ -302,16 +284,38 @@ export default {
methods
:
{
//新增行数据
addRow
()
{
this
.
dialogVisible
=
true
;
if
(
this
.
gyfs
==
"1"
)
{
this
.
$message
({
message
:
"当前共有方式不可新增权利人"
,
type
:
"warning"
,
});
}
else
{
this
.
dialogVisible
=
true
;
}
},
//修改行数据
changeRow
()
{
this
.
dialogVisible
=
this
.
multipleSelection
.
length
==
1
?
true
:
false
;
if
(
this
.
multipleSelection
.
length
==
1
)
{
this
.
dialogVisible
=
true
;
}
else
{
this
.
$message
({
message
:
"请选择一条信息后继续操作"
,
type
:
"warning"
,
});
}
},
//删除行数据
delRow
()
{
for
(
var
i
=
0
;
i
<
this
.
multipleSelection
.
length
;
i
++
)
{
this
.
deleteArrOption
(
this
.
tableData
,
this
.
multipleSelection
[
i
].
id
);
if
(
this
.
multipleSelection
.
length
>
0
)
{
for
(
var
i
=
0
;
i
<
this
.
multipleSelection
.
length
;
i
++
)
{
this
.
deleteArrOption
(
this
.
tableData
,
this
.
multipleSelection
[
i
].
id
);
}
//调用删除接口 TO DO
}
else
{
this
.
$message
({
message
:
"请至少选择一条信息后继续操作"
,
type
:
"warning"
,
});
}
},
//选中表格某一项
...
...
@@ -330,7 +334,7 @@ export default {
//供父组件调用来获取共有方式
getQlgyfsData
()
{
return
this
.
radio
;
return
this
.
gyfs
;
},
//供父组件调用来获取权利人表格数据
getQlrxxData
()
{
...
...
@@ -436,13 +440,13 @@ export default {
float
:
left
;
}
.percent68
{
width
:
68%
!important
;
width
:
68%
!important
;
float
:
left
;
position
:
relative
;
top
:
7px
;
}
.percent30
{
width
:
30%
!important
;
width
:
30%
!important
;
float
:
left
;
}
.createBtn
{
...
...
@@ -456,7 +460,7 @@ export default {
line-height
:
37px
;
}
.el-select
{
width
:
100%
;
width
:
100%
;
}
}
}
...
...
Please
register
or
sign in
to post a comment