| | |
| | | </Radio> |
| | | </RadioGroup> |
| | | </FormItem> |
| | | <FormItem label="修改密码" prop="password"> |
| | | <Input type="password" style="width: 220px" password v-model="form.newPassword" /> |
| | | </FormItem> |
| | | <!-- <FormItem label="修改密码" prop="password">--> |
| | | <!-- <Input type="password" style="width: 220px" password v-model="form.newPassword" />--> |
| | | <!-- </FormItem>--> |
| | | <FormItem label="生日" prop="birthday"> |
| | | <DatePicker type="date" format="yyyy-MM-dd" v-model="form.birthday" style="width: 220px"></DatePicker> |
| | | </FormItem> |
| | |
| | | }, |
| | | // 选中的图片 |
| | | callbackSelected(val) { |
| | | console.log(val) |
| | | this.picModelFlag = false; |
| | | this.form.face = val.url; |
| | | }, |
| | |
| | | {validator: validateMobile, trigger: "blur"} |
| | | ], |
| | | email: [ |
| | | {required: true, message: "请输入邮箱地址"}, |
| | | {required: false, message: "请输入邮箱地址"}, |
| | | {type: "email", message: "邮箱格式不正确"} |
| | | ] |
| | | }, |
| | |
| | | //todo |
| | | params.password = this.md5(params.password) |
| | | this.submitLoading = true; |
| | | console.log(params) |
| | | addUser(params).then(res => { |
| | | this.submitLoading = false; |
| | | if (res.success) { |
| | |
| | | } else { |
| | | // 编辑 |
| | | this.submitLoading = true; |
| | | console.log(this.form) |
| | | editOtherUser(this.form).then(res => { |
| | | this.submitLoading = false; |
| | | if (res.success) { |