BUG 27673

This commit is contained in:
aixianling
2022-03-08 17:19:32 +08:00
parent 61f8d7fea4
commit 4718b60941
2 changed files with 5 additions and 9 deletions

View File

@@ -7,7 +7,7 @@
<template slot="content">
<ai-card title="基本信息">
<template #content>
<el-form ref="form" class="ai-form" :model="form" label-width="110px" label-position="right">
<el-form ref="CBookForm" class="ai-form" :model="form" label-width="110px" label-position="right">
<el-form-item label="地区" style="width: 100%;" prop="codeName">
<span style="color: #666;">{{ form.areaName }}</span>
</el-form-item>
@@ -93,7 +93,7 @@
methods: {
getInfo (id) {
this.instance.post(`/app/appconvenientaddressbook/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
if (res?.data) {
this.form = res.data
}
})
@@ -117,7 +117,7 @@
},
confirm () {
this.$refs.form.validate((valid) => {
this.$refs.CBookForm.validate((valid) => {
if (valid) {
this.instance.post(`/app/appconvenientaddressbook/addOrUpdate`, {
...this.form,

View File

@@ -587,11 +587,7 @@
},
onheadPictureChange (e) {
if (e.length) {
this.form.isShowheadPicture = true
} else {
this.form.isShowheadPicture = false
}
this.form.isShowheadPicture = !!e.length;
},
init () {
@@ -757,7 +753,7 @@
onConfirm (status) {
if (this.params.templateType == 1) {
this.submitTemp()
// this.submitTemp()
}
if (this.form.periodValidityType === '1') {