| | |
| | | <u-input v-model="form.password" placeholder="请输入密码" border="none" type="password" /> |
| | | </u-form-item> |
| | | |
| | | <u-form-item label="超级管理员" prop="isSuper" borderBottom required="true"> |
| | | <u-form-item label="店铺管理员" prop="isSuper" borderBottom required="true"> |
| | | <view class="switch-wrapper"> |
| | | <u-switch v-model="form.isSuper"></u-switch> |
| | | </view> |
| | |
| | | id: this.form.id, |
| | | mobile: this.form.mobile, |
| | | realName: this.form.realName, |
| | | password: this.form.password, |
| | | password: this.md5(this.form.password), |
| | | role: this.form.role, |
| | | isSuper:this.form.isSuper, |
| | | departmentId:this.form.departmentId, |
| | | } |
| | | |
| | | if (form.id) { |
| | | update(form).then(res => { |
| | | this.loading = false; |
| | |
| | | setTimeout(() => uni.navigateBack(), 1500); |
| | | } |
| | | }) |
| | | } else { |
| | | } else {0 |
| | | add(form).then(res => { |
| | | this.loading = false; |
| | | if (res.statusCode === 200) { |