BUG 30139
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<section class="residentDetail">
|
||||
<ai-detail>
|
||||
<ai-title slot="title" :title="pageTitle" isShowBack @onBackClick="back" isShowBottomBorder>
|
||||
<template v-if="showDetail" #rightBtn>
|
||||
<template v-if="isEdit" #rightBtn>
|
||||
<el-button @click="beforeWriteOff()" icon="el-icon-switch-button" v-if="baseInfo.fileStatus==0">注销档案
|
||||
</el-button>
|
||||
<el-button icon="iconfont iconDelete" @click="handleDelete()" v-if="permissions('app_appresident_del')">
|
||||
@@ -13,7 +13,7 @@
|
||||
<template #content>
|
||||
<el-form class="content-right" :model="baseInfo" ref="ruleForm" :rules="rules" label-width="130px"
|
||||
label-position="right" size="small">
|
||||
<el-tabs tab-position="left" v-if="showDetail" v-model="currentTab">
|
||||
<el-tabs tab-position="left" v-if="isEdit" v-model="currentTab">
|
||||
<el-tab-pane label="基本信息">
|
||||
<ai-edit-card :title="baseInfo.name||'基本信息'" :show-btn="permissions('app_appresident_edit')"
|
||||
@save="saveFrom" @cancel="getDetail(baseInfo.id)">
|
||||
@@ -31,10 +31,10 @@
|
||||
</el-form-item>
|
||||
<el-form-item label="身份证号:" prop="idNumber">
|
||||
<el-input v-model="baseInfo.idNumber" placeholder="请输入身份证号" :maxlength="18" show-word-limit
|
||||
@change="idChange"/>
|
||||
@change="idChange" :disabled="isEdit"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="性别:" prop="sex">
|
||||
<ai-select v-model="baseInfo.sex" :selectList="dict.getDict('sex')"/>
|
||||
<ai-select v-model="baseInfo.sex" :selectList="dict.getDict('sex')" :disabled="isEdit"/>
|
||||
</el-form-item>
|
||||
</div>
|
||||
<el-form-item label="个人照片:" prop="photo" class="fill">
|
||||
@@ -357,7 +357,7 @@
|
||||
</template>
|
||||
</el-form>
|
||||
</template>
|
||||
<template v-if="!showDetail" #footer>
|
||||
<template v-if="!isEdit" #footer>
|
||||
<el-button @click="back">取消</el-button>
|
||||
<el-button type="primary" @click="saveFrom()">保存</el-button>
|
||||
</template>
|
||||
@@ -546,12 +546,12 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
...mapState(["user"]),
|
||||
showDetail() {
|
||||
isEdit() {
|
||||
return !!this.$route.query?.id
|
||||
},
|
||||
pageTitle() {
|
||||
let {name} = this
|
||||
return this.showDetail ? `${name}信息` : `添加${name}`
|
||||
return this.isEdit ? `${name}信息` : `添加${name}`
|
||||
},
|
||||
hasSpecial() {
|
||||
//是否有特殊人员信息
|
||||
@@ -693,7 +693,7 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.disabledLevel = this.user.info.areaMap[this.user.info.areaId].length;
|
||||
if (!this.showDetail) {
|
||||
if (!this.isEdit) {
|
||||
// this.baseInfo.householdAreaId = JSON.parse(JSON.stringify(this.user.info.areaId))
|
||||
this.baseInfo.currentAreaId = JSON.parse(JSON.stringify(this.user.info.areaId))
|
||||
this.$nextTick(() => this.$refs.ruleForm?.resetFields())
|
||||
|
||||
Reference in New Issue
Block a user