fd7a10b8 by 任超

style:家庭房产

1 parent f9656a4c
......@@ -13,10 +13,10 @@ export default {
dataList: {
type: Array,
default: () => [{
name: '',
zjzl: '',
zjh: '',
xldh: ''
sqrxm: '',
sqrzjlxbm: '',
sqrzjhm: '',
lxdh: ''
}]
}
},
......@@ -49,7 +49,7 @@ export default {
}
},
{
prop: 'name',
prop: 'sqrxm',
label: '姓名/名称',
render: (h, scope) => {
return (
......@@ -59,7 +59,7 @@ export default {
}
},
{
prop: 'zjzl',
prop: 'sqrzjlxbm',
label: '证件种类',
render: (h, scope) => {
return (
......@@ -77,7 +77,7 @@ export default {
}
},
{
prop: 'zjh',
prop: 'sqrzjhm',
label: '证件号',
render: (h, scope) => {
return (
......@@ -87,7 +87,7 @@ export default {
}
},
{
prop: 'xldh',
prop: 'lxdh',
label: '联系电话',
render: (h, scope) => {
return (
......@@ -121,7 +121,12 @@ export default {
},
methods: {
handleAdd () {
this.tableData.data.push({})
this.tableData.data.push({
sqrxm: '',
sqrzjlxbm: '',
sqrzjhm: '',
lxdh: ''
})
},
handleMinus (index, row) {
this.tableData.data.splice(index, 1)
......
......@@ -3,7 +3,7 @@
<div class="jtfccx-edit">
<div class="jtfccx-edit-con">
<b class="title">申请信息</b>
<personInfoTable @getInfoList="handleGetSqList" />
<personInfoTable @getInfoList="handleGetSqList" :dataList="sqdataList" />
<el-form :model="ruleForm" label-width="100px">
<el-row>
<el-col :span="12">
......@@ -26,12 +26,12 @@
<personInfoTable :dataList="qldataList" />
<div class="submit-button">
<el-button type="primary" icon="el-icon-search">查询</el-button>
<el-button icon="el-icon-refresh-left">重置</el-button>
<el-button icon="el-icon-refresh-left" @click="handleReset">重置</el-button>
</div>
<b class="title">查询结果</b>
<p>查询编号:202200409</p>
<lb-table :column="searchData.columns" :dataList="qldataList" :data="searchData.data" :maxHeight="200"
heightNumSetting :pagination="false">
<lb-table :column="searchData.columns" :data="searchData.data" :maxHeight="200" heightNumSetting
:pagination="false">
</lb-table>
</div>
......@@ -55,12 +55,14 @@ export default {
data () {
return {
myValue: this.value,
qldataList: [{
name: '',
zjzl: '',
zjh: '',
xldh: ''
dataList: [{
sqrxm: '',
sqrzjlxbm: '',
sqrzjhm: '',
lxdh: ''
}],
qldataList: [],
sqdataList: [],
options: [{
name: '1',
value: 1
......@@ -141,15 +143,12 @@ export default {
watch: {
value (val) {
this.myValue = val
this.qldataList = _.cloneDeep(this.dataList)
this.sqdataList = _.cloneDeep(this.dataList)
},
'ruleForm.radi' (val) {
'ruleForm.radio' (val) {
if (val != 1) {
this.sqdataList = [{
name: '',
zjzl: '',
zjh: '',
xldh: ''
}]
this.qldataList = _.cloneDeep(this.dataList)
}
}
},
......@@ -158,7 +157,13 @@ export default {
this.$emit('input', false)
},
handleGetSqList (val) {
console.log(val);
if (!_.isEqual(val, this.dataList) && this.ruleForm.radio == 1) {
this.qldataList = val
}
},
handleReset () {
this.qldataList = _.cloneDeep(this.dataList)
this.sqdataList = _.cloneDeep(this.dataList)
},
handleRead (row) { }
}
......