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

页面修改

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