1
Showing
3 changed files
with
18 additions
and
6 deletions
... | @@ -66,7 +66,7 @@ | ... | @@ -66,7 +66,7 @@ |
66 | <el-row> | 66 | <el-row> |
67 | <el-col :span="16"> | 67 | <el-col :span="16"> |
68 | <el-form-item label="地址"> | 68 | <el-form-item label="地址"> |
69 | <el-input v-model="ruleForm.dz"></el-input> | 69 | <el-input v-model="ruleForm.txdz"></el-input> |
70 | </el-form-item> | 70 | </el-form-item> |
71 | </el-col> | 71 | </el-col> |
72 | <el-col :span="8"> | 72 | <el-col :span="8"> |
... | @@ -160,7 +160,7 @@ export default { | ... | @@ -160,7 +160,7 @@ export default { |
160 | frmc: "", | 160 | frmc: "", |
161 | gjdq: "", | 161 | gjdq: "", |
162 | szss: "", | 162 | szss: "", |
163 | dz: "", | 163 | txdz: "", |
164 | yb: "", | 164 | yb: "", |
165 | fzjg: "", | 165 | fzjg: "", |
166 | dzyj: "", | 166 | dzyj: "", | ... | ... |
... | @@ -32,6 +32,7 @@ export default { | ... | @@ -32,6 +32,7 @@ export default { |
32 | key: 0, | 32 | key: 0, |
33 | dataIndex: 0, | 33 | dataIndex: 0, |
34 | dialog: false, | 34 | dialog: false, |
35 | isaddupdate:false, | ||
35 | details: {}, | 36 | details: {}, |
36 | tableDataList: [], | 37 | tableDataList: [], |
37 | InformationTable: [ | 38 | InformationTable: [ |
... | @@ -147,16 +148,24 @@ export default { | ... | @@ -147,16 +148,24 @@ export default { |
147 | }, | 148 | }, |
148 | methods: { | 149 | methods: { |
149 | handleupdateDetail (value) { | 150 | handleupdateDetail (value) { |
150 | if (!_.isEqual(value, this.tableData)) { | 151 | debugger |
151 | this.tableDataList[this.dataIndex] = _.cloneDeep(value); | 152 | if(this.isaddupdate){ |
152 | // this.key++ | 153 | if (!_.isEqual(value, this.tableData)) { |
153 | this.$emit('upDateQlrxxList', this.tableDataList) | 154 | this.tableDataList[this.tableDataList.length] = _.cloneDeep(value); |
155 | this.$emit('upDateQlrxxList', this.tableDataList) | ||
156 | } | ||
157 | }else{ | ||
158 | if (!_.isEqual(value, this.tableData)) { | ||
159 | this.tableDataList[this.dataIndex] = _.cloneDeep(value); | ||
160 | this.$emit('upDateQlrxxList', this.tableDataList) | ||
161 | } | ||
154 | } | 162 | } |
155 | }, | 163 | }, |
156 | 164 | ||
157 | // 新增 | 165 | // 新增 |
158 | addClick () { | 166 | addClick () { |
159 | this.dialog = true | 167 | this.dialog = true |
168 | this.isaddupdate=true | ||
160 | }, | 169 | }, |
161 | 170 | ||
162 | // 删除 | 171 | // 删除 |
... | @@ -172,6 +181,7 @@ export default { | ... | @@ -172,6 +181,7 @@ export default { |
172 | this.dataIndex = index | 181 | this.dataIndex = index |
173 | this.dialog = true | 182 | this.dialog = true |
174 | this.details = row | 183 | this.details = row |
184 | this.isaddupdate=false | ||
175 | }, | 185 | }, |
176 | queryViewClick () { | 186 | queryViewClick () { |
177 | this.dialog = true | 187 | this.dialog = true | ... | ... |
... | @@ -147,6 +147,8 @@ | ... | @@ -147,6 +147,8 @@ |
147 | </el-row> | 147 | </el-row> |
148 | <qlrCommonTable :tableData="ruleForm.qlrList" @upDateQlrxxList="upDateQlrxxList" | 148 | <qlrCommonTable :tableData="ruleForm.qlrList" @upDateQlrxxList="upDateQlrxxList" |
149 | :viewtype="$route.query.viewtype" :gyfs="ruleForm.slywxx.gyfs" /> | 149 | :viewtype="$route.query.viewtype" :gyfs="ruleForm.slywxx.gyfs" /> |
150 | |||
151 | |||
150 | <div v-if="ruleForm.ywrList && ruleForm.ywrList.length > 0"> | 152 | <div v-if="ruleForm.ywrList && ruleForm.ywrList.length > 0"> |
151 | <div class="slxx_title title-block"> | 153 | <div class="slxx_title title-block"> |
152 | 义务人信息 | 154 | 义务人信息 | ... | ... |
-
Please register or sign in to post a comment