bug
This commit is contained in:
@@ -8,6 +8,9 @@
|
|||||||
<AiSidebar :tabTitle="tabList" v-model="currIndex"></AiSidebar>
|
<AiSidebar :tabTitle="tabList" v-model="currIndex"></AiSidebar>
|
||||||
<div v-show="currIndex === 0">
|
<div v-show="currIndex === 0">
|
||||||
<ai-card title="基本信息" v-show="currIndex === 0">
|
<ai-card title="基本信息" v-show="currIndex === 0">
|
||||||
|
<template #right>
|
||||||
|
<el-button type="primary" @click="(form.idNumber = info.idNumber, isShow = true)">编辑</el-button>
|
||||||
|
</template>
|
||||||
<template #content>
|
<template #content>
|
||||||
<ai-wrapper
|
<ai-wrapper
|
||||||
label-width="120px">
|
label-width="120px">
|
||||||
@@ -118,6 +121,18 @@
|
|||||||
</template>
|
</template>
|
||||||
</ai-card>
|
</ai-card>
|
||||||
</div>
|
</div>
|
||||||
|
<ai-dialog
|
||||||
|
:visible.sync="isShow"
|
||||||
|
width="590px"
|
||||||
|
title="编辑"
|
||||||
|
@close="form.idNumber = ''"
|
||||||
|
@onConfirm="onConfirm">
|
||||||
|
<el-form ref="form" :model="form" label-width="110px" label-position="right">
|
||||||
|
<el-form-item label="身份证" prop="idNumber" :rules="[{required: true, message: '请输入身份证', trigger: 'blur'}]">
|
||||||
|
<el-input size="small" placeholder="请输入身份证" v-model="form.idNumber"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
</ai-dialog>
|
||||||
</template>
|
</template>
|
||||||
</ai-detail>
|
</ai-detail>
|
||||||
</template>
|
</template>
|
||||||
@@ -139,6 +154,9 @@
|
|||||||
currIndex: 0,
|
currIndex: 0,
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
tableData: [],
|
tableData: [],
|
||||||
|
form: {
|
||||||
|
idNumber: ''
|
||||||
|
},
|
||||||
colConfigs: [
|
colConfigs: [
|
||||||
{prop: 'remarks', label: '异常记录', align: 'center' },
|
{prop: 'remarks', label: '异常记录', align: 'center' },
|
||||||
{prop: 'createTime', label: '创建时间', align: 'center'},
|
{prop: 'createTime', label: '创建时间', align: 'center'},
|
||||||
@@ -174,6 +192,24 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
onConfirm () {
|
||||||
|
this.$refs.form.validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
this.instance.post(`/app/appepidemicpreventionregisterinfo/updateForAdmin`, {
|
||||||
|
...this.info,
|
||||||
|
...this.form,
|
||||||
|
id: this.params.id
|
||||||
|
}).then(res => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.isShow = false
|
||||||
|
this.getInfo(this.params.id)
|
||||||
|
this.$message.success('编辑成功')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
cancel () {
|
cancel () {
|
||||||
this.$emit('change', {
|
this.$emit('change', {
|
||||||
type: 'List',
|
type: 'List',
|
||||||
|
|||||||
Reference in New Issue
Block a user