Browse Source

查看编辑按钮点击逻辑

feature
dai 3 years ago
parent
commit
ec33dbd4ff
  1. 25
      src/views/modules/base/resi.vue

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

@ -297,6 +297,7 @@
ref="baseForm"
:fixed="true"
:form-list="formList"
:resi-id="editUserId"
@changegroup="handleChangeGroup"
/>
<!-- <div v-if="dialogVisible"
@ -331,6 +332,7 @@
>取消</el-button
>
<el-button
v-if="editUserId"
type="primary"
size="small"
:loading="btnLoading"
@ -338,6 +340,15 @@
class="diy-button--blue"
>保存</el-button
>
<el-button
v-else
type="primary"
size="small"
:loading="btnLoading"
@click="handleEditSUbmit"
>提交</el-button
>
</div>
</el-dialog>
@ -1056,19 +1067,21 @@ export default {
this.showedPeopleMoreInfo = false;
},
async handleEdit(row) {
this.disabled = false;
this.editAgencyId = row.ORG_ID;
this.editUserId = row.icResiUserId;
// this.disabled = false;
// this.editAgencyId = row.ORG_ID;
this.editUserId = row.resiId;
this.formName = "编辑居民";
await this.getFormList("edit");
await this.getrowInfo(row.icResiUserId);
this.dialogVisible = true;
// await this.getFormList("edit");
// await this.getrowInfo(row.icResiUserId);
},
handlerReset() {
this.$refs.baseForm.resetForm();
},
async handleAdd() {
this.formName = "新增居民";
await this.getFormList();
// await this.getFormList();
this.editUserId = "";
this.dialogVisible = true;
},
async handleChangeGroup(val) {

Loading…
Cancel
Save