4e6414d8 by jiaozeping@pashanhoo.com

1

1 parent c5776848
......@@ -66,7 +66,7 @@
<el-row>
<el-col :span="16">
<el-form-item label="地址">
<el-input v-model="ruleForm.dz"></el-input>
<el-input v-model="ruleForm.txdz"></el-input>
</el-form-item>
</el-col>
<el-col :span="8">
......@@ -160,7 +160,7 @@ export default {
frmc: "",
gjdq: "",
szss: "",
dz: "",
txdz: "",
yb: "",
fzjg: "",
dzyj: "",
......
......@@ -32,6 +32,7 @@ export default {
key: 0,
dataIndex: 0,
dialog: false,
isaddupdate:false,
details: {},
tableDataList: [],
InformationTable: [
......@@ -147,16 +148,24 @@ export default {
},
methods: {
handleupdateDetail (value) {
if (!_.isEqual(value, this.tableData)) {
this.tableDataList[this.dataIndex] = _.cloneDeep(value);
// this.key++
this.$emit('upDateQlrxxList', this.tableDataList)
debugger
if(this.isaddupdate){
if (!_.isEqual(value, this.tableData)) {
this.tableDataList[this.tableDataList.length] = _.cloneDeep(value);
this.$emit('upDateQlrxxList', this.tableDataList)
}
}else{
if (!_.isEqual(value, this.tableData)) {
this.tableDataList[this.dataIndex] = _.cloneDeep(value);
this.$emit('upDateQlrxxList', this.tableDataList)
}
}
},
// 新增
addClick () {
this.dialog = true
this.isaddupdate=true
},
// 删除
......@@ -172,6 +181,7 @@ export default {
this.dataIndex = index
this.dialog = true
this.details = row
this.isaddupdate=false
},
queryViewClick () {
this.dialog = true
......
......@@ -147,6 +147,8 @@
</el-row>
<qlrCommonTable :tableData="ruleForm.qlrList" @upDateQlrxxList="upDateQlrxxList"
:viewtype="$route.query.viewtype" :gyfs="ruleForm.slywxx.gyfs" />
<div v-if="ruleForm.ywrList && ruleForm.ywrList.length > 0">
<div class="slxx_title title-block">
义务人信息
......