|
@@ -47,7 +47,7 @@
|
|
|
<input v-model="form.mobile" placeholder-class="phcolor" class="tui-input" name="mobile" placeholder="请输入手机号" maxlength="50" type="number" />
|
|
<input v-model="form.mobile" placeholder-class="phcolor" class="tui-input" name="mobile" placeholder="请输入手机号" maxlength="50" type="number" />
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
<tui-list-cell class="line-cell" :hover="false">
|
|
|
- <div class="tui-title required">登录密码</div>
|
|
|
|
|
|
|
+ <div class="tui-title">登录密码</div>
|
|
|
<input v-model="form.password" placeholder-class="phcolor" class="tui-input" name="password" placeholder="请输入" maxlength="50" type="password" />
|
|
<input v-model="form.password" placeholder-class="phcolor" class="tui-input" name="password" placeholder="请输入" maxlength="50" type="password" />
|
|
|
</tui-list-cell>
|
|
</tui-list-cell>
|
|
|
<tui-list-cell class="line-cell remark-wrap" :hover="false">
|
|
<tui-list-cell class="line-cell remark-wrap" :hover="false">
|
|
@@ -205,7 +205,12 @@
|
|
|
hostFn(this.form).then(res => {
|
|
hostFn(this.form).then(res => {
|
|
|
let promptText = this.option.id ? '修改成功!' : '添加成功!'
|
|
let promptText = this.option.id ? '修改成功!' : '添加成功!'
|
|
|
this.$msg(promptText)
|
|
this.$msg(promptText)
|
|
|
- this.$util.pageTo('/admin/staff/list')
|
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ this.$util.pageTo({
|
|
|
|
|
+ url: '/admin/staff/list',
|
|
|
|
|
+ type: 2
|
|
|
|
|
+ })
|
|
|
|
|
+ }, 1000)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
// 表单验证
|
|
// 表单验证
|
|
@@ -231,12 +236,12 @@
|
|
|
name: 'userId',
|
|
name: 'userId',
|
|
|
rule: ['required'],
|
|
rule: ['required'],
|
|
|
msg: ['请选择关联微信']
|
|
msg: ['请选择关联微信']
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- name: 'password',
|
|
|
|
|
- rule: ['required'],
|
|
|
|
|
- msg: ['请输入密码']
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+ // {
|
|
|
|
|
+ // name: 'password',
|
|
|
|
|
+ // rule: ['required'],
|
|
|
|
|
+ // msg: ['请输入密码']
|
|
|
|
|
+ // }
|
|
|
]
|
|
]
|
|
|
// 进行表单检查
|
|
// 进行表单检查
|
|
|
let formData = e.detail.value
|
|
let formData = e.detail.value
|