管理端无法修改会员信息问题处理

master
Chopper 2022-03-18 17:41:29 +08:00
parent 403ae0a963
commit baaeef0978
1 changed files with 5 additions and 1 deletions

View File

@ -51,6 +51,9 @@
<!-- 修改模态框 --> <!-- 修改模态框 -->
<Modal v-model="descFlag" :title="descTitle" @on-ok="handleSubmitModal" width="500"> <Modal v-model="descFlag" :title="descTitle" @on-ok="handleSubmitModal" width="500">
<Form ref="form" :model="form" :rules="ruleValidate" :label-width="80"> <Form ref="form" :model="form" :rules="ruleValidate" :label-width="80">
<Input v-model="form.id" v-show="false"/>
<FormItem label="头像"> <FormItem label="头像">
<img :src="form.face" class="face" /> <img :src="form.face" class="face" />
<Button type="text" class="upload" @click="() => { <Button type="text" class="upload" @click="() => {
@ -462,7 +465,7 @@ export default {
// //
handleSubmitModal() { handleSubmitModal() {
const { nickName, sex, username, face, newPassword } = this.form; const { nickName, sex, username, face, newPassword,id } = this.form;
let time = new Date(this.form.birthday); let time = new Date(this.form.birthday);
let birthday = let birthday =
time.getFullYear() + "-" + (time.getMonth() + 1) + "-" + time.getDate(); time.getFullYear() + "-" + (time.getMonth() + 1) + "-" + time.getDate();
@ -474,6 +477,7 @@ export default {
sex, sex,
birthday, birthday,
face, face,
id
}; };
if (this.region != "undefined") { if (this.region != "undefined") {
submit.regionId = this.regionId; submit.regionId = this.regionId;