Commit 3cdc0a4a authored by zhengke's avatar zhengke

修改

parent 22685299
...@@ -320,7 +320,23 @@ ...@@ -320,7 +320,23 @@
this.persistent = false this.persistent = false
}, },
setStudent() { setStudent() {
this.saveLoading = true if(this.objOption.Email==''){
this.$q.notify({
type: 'negative',
position: "top",
message: `请填写邮箱`
})
return;
}
if(this.objOption.Account==''){
this.$q.notify({
type: 'negative',
position: "top",
message: `请填写账号`
})
return;
}
this.saveLoading = true;
saveManager(this.objOption).then(res => { saveManager(this.objOption).then(res => {
this.saveLoading = false this.saveLoading = false
this.$q.notify({ this.$q.notify({
......
...@@ -159,6 +159,11 @@ ...@@ -159,6 +159,11 @@
<q-item-label>账户</q-item-label> <q-item-label>账户</q-item-label>
</q-item-section> </q-item-section>
</q-item> </q-item>
<q-item clickable v-close-popup @click="resetSinglePwd(props.row)">
<q-item-section>
<q-item-label>重置密码</q-item-label>
</q-item-section>
</q-item>
</q-list> </q-list>
</q-btn-dropdown> </q-btn-dropdown>
</div> </div>
...@@ -416,6 +421,47 @@ ...@@ -416,6 +421,47 @@
}); });
}) })
}, },
//单个重置密码
resetSinglePwd(item){
let that = this
this.$q.dialog({
title: "重置密码",
message: "你正在进行重置密码行为,是否确认执行",
persistent: true,
cancel: {
label: "取消",
flat: true
},
ok: {
label: "确认重置",
flat: true,
focus: true
}
}).onOk(() => {
that.resetLoading = true;
let Msg = [];
let obj = {
AccountType: item.AccountType,
AccountId: item.AccountId
}
Msg.push(obj);
BatchResetUserPassword(Msg).then(res => {
that.resetLoading = false
that.$q.dialog({
title: "密码重置成功",
message: res.Message,
persistent: true,
ok: {
label: "确认",
flat: true,
focus: true
}
})
}).catch(() => {
that.resetLoading = false
});
})
},
DeleteManager(obj) { DeleteManager(obj) {
let that = this; let that = this;
var str = (obj.Status == 1 ? "【禁用】" : "【启用】"); var str = (obj.Status == 1 ? "【禁用】" : "【启用】");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment