Commit 02992e64 authored by 黄奎's avatar 黄奎

页面修改

parent df780689
......@@ -356,3 +356,14 @@ export function deleteManagerInfo(data) {
data
})
}
/**
* 创建管理者账号
*/
export function createManagerAccount(data) {
return request({
url: '/User/CreateManagerAccount',
method: 'post',
data
})
}
......@@ -228,11 +228,12 @@
flat: true,
focus: true
}
}).onOk(() => {
that.getStudent();
}).onCancel(() => {
that.getStudent();
})
})
this.getStudent();
}).catch(() => {
});
},
resetPw(id) {
let that = this
......
......@@ -57,6 +57,9 @@
<template v-slot:body-cell-optioned="props">
<q-td :props="props">
<div style="min-width:190px;width:100%">
<q-btn v-if="props.row.ManagerAccount==''" flat size="xs" icon="iconfont icon-ziyuan" color="warning"
style="font-weight:400" class="q-mr-xs" label="创建账号" @click="createAccount(props.row.MId)" />
<q-btn flat size="xs" icon="iconfont icon-ziyuan" color="warning" style="font-weight:400" class="q-mr-xs"
label="重置密码" @click="resetPw(props.row.MId)" />
......@@ -75,7 +78,8 @@
import {
queryManagerPage,
getSchoolDropdown,
deleteManagerInfo
deleteManagerInfo,
createManagerAccount
} from '../../api/school/index'
import {
resetPassword
......@@ -135,6 +139,12 @@
align: 'left',
field: 'CreateTimeStr'
},
{
name: 'ManagerAccount',
label: '账号',
align: 'left',
field: 'ManagerAccount'
},
{
name: 'optioned',
label: '操作',
......@@ -188,6 +198,28 @@
}
this.getManager()
},
//创建账号
createAccount(id) {
let that = this
createManagerAccount({
MId: id,
}).then(res => {
that.$q.dialog({
title: "创建账号",
message: res.Message,
persistent: true,
ok: {
label: "确认",
flat: true,
focus: true
}
}).onOk(() => {
that.getManager();
}).onCancel(() => {
that.getManager();
})
})
},
resetPw(id) {
let that = this
this.$q.dialog({
......
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