Browse Source

完善居民信息444

shibei_master
13176889840 4 years ago
parent
commit
6e0f9885d6
  1. 1
      src/views/components/editResi.vue
  2. 1
      src/views/components/resiSearch.vue
  3. 18
      src/views/modules/base/resi.vue

1
src/views/components/editResi.vue

@ -569,6 +569,7 @@ export default {
// console.log('handlerMuscForm----000', this.$refs['baseForms' + item.row || item][0].handleForm())
arr.push([ ...this.$refs['baseForms' + item.row][0].handleForm() ])
})
if (arr.length === 0) return arr
let arr2 = arr.reduce(function (a, b) { return a.concat(b) })
let hash = {}
let i = 0

1
src/views/components/resiSearch.vue

@ -516,6 +516,7 @@ export default {
margin-bottom: 20px;
}
.resi-search {
padding-right: 140px;
.el-col {
text-align: right;
}

18
src/views/modules/base/resi.vue

@ -85,7 +85,7 @@
</div>
<div class="resi-btns">
<el-button size="small" @click="handlerCancle">取消</el-button>
<el-button type="primary" size="small" @click="handleSUbmit">提交</el-button>
<el-button type="primary" size="small" :loading="btnLoading" @click="handleSUbmit">提交</el-button>
</div>
</el-dialog>
@ -111,7 +111,7 @@
</div>
<div class="resi-btns">
<el-button size="small" @click="handlerEditCancle">取消</el-button>
<el-button v-if="!disabled" type="primary" size="small" @click="handleEditSUbmit">提交</el-button>
<el-button v-if="!disabled" type="primary" size="small" :loading="btnLoading" @click="handleEditSUbmit">提交</el-button>
</div>
</el-dialog>
@ -130,6 +130,7 @@ export default {
},
data () {
return {
btnLoading: false,
disabled: false,
pageLoading: false,
dialogEditVisible: false,
@ -400,8 +401,9 @@ export default {
})
this.dialogVisible = false
},
submitAdd (arr) {
this.$http
async submitAdd (arr) {
this.btnLoading = true
await this.$http
.post('/epmetuser/icresiuser/add', arr)
.then(({ data: res }) => {
if (res.code !== 0) {
@ -420,12 +422,15 @@ export default {
.catch(() => {
return this.$message.error('网络错误')
})
this.btnLoading = false
},
submitEdit (arr) {
this.$http
async submitEdit (arr) {
this.btnLoading = true
await this.$http
.post('/epmetuser/icresiuser/edit', arr)
.then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
} else {
this.$message.success('提交成功')
@ -441,6 +446,7 @@ export default {
.catch(() => {
return this.$message.error('网络错误')
})
this.btnLoading = false
},
getTableHeader () {
this.$http

Loading…
Cancel
Save