Commit df780689 authored by 黄奎's avatar 黄奎

新增页面

parent 12db0472
......@@ -301,6 +301,17 @@ export function UpdateStudentIsDisable(data) {
})
}
/**
* 创建学生账号
*/
export function createStudentAccount(data) {
return request({
url: '/User/CreateStudentAccount',
method: 'post',
data
})
}
/**
* 获取管理者分页列表
*/
......@@ -345,4 +356,3 @@ export function deleteManagerInfo(data) {
data
})
}
......@@ -18,12 +18,10 @@
:factory="uploadFile" no-thumbnails>
</q-uploader>
</div>
</div>
<div class="text-caption q-my-md q-px-xs text-grey-6">选择角色</div>
<div class="q-pa-md">
<q-option-group type="checkbox" :options="roleList" v-model="tempRole" emit-value map-options />
</div>
</q-card-section>
<q-separator />
......
......@@ -87,8 +87,8 @@
style="font-weight:400" class="q-mr-xs" label="审核" @click="showExamine(props.row)" />
<q-btn v-if="props.row.AuditStatus==2" flat size="xs" icon="iconfont icon-ziyuan" color="warning"
style="font-weight:400" class="q-mr-xs" label="重置密码" @click="resetPw(props.row.AId)" />
<q-btn v-if="props.row.AuditStatus==3" flat size="xs" icon="iconfont icon-shanchu" color="negative"
style="font-weight:400" class="q-mr-xs" label="删除" @click="deleteUser(props.row.AId)" />
<q-btn flat size="xs" icon="iconfont icon-shanchu" color="negative" style="font-weight:400"
class="q-mr-xs" label="删除" @click="deleteUser(props.row.AId)" />
<q-btn v-if="props.row.AuditStatus==3" flat size="xs" icon="iconfont icon-ziyuan" color="negative"
style="font-weight:400" class="q-mr-xs" label="重新申请" @click="reApplyAssisst(props.row.AId)" />
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
......@@ -183,6 +183,12 @@
align: 'left',
field: 'CreateTimeStr'
},
{
name: 'AssistAccount',
label: '账号',
align: 'left',
field: 'AssistAccount'
},
{
name: 'optioned',
label: '操作',
......
......@@ -57,6 +57,8 @@
<template v-slot:body-cell-optioned="props">
<q-td :props="props">
<div style="min-width:190px;width:100%">
<q-btn v-if="props.row.StudentAccount==''" flat size="xs" icon="iconfont icon-ziyuan" color="warning"
style="font-weight:400" class="q-mr-xs" label="创建账号" @click="createAccount(props.row.StuId)" />
<q-btn flat size="xs" icon="iconfont icon-ziyuan" color="warning" style="font-weight:400" class="q-mr-xs"
label="重置密码" @click="resetPw(props.row.StuId)" />
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
......@@ -74,7 +76,8 @@
import {
getStudentPage,
getSchoolDropdown,
deleteStudent
deleteStudent,
createStudentAccount
} from '../../api/school/index'
import {
resetPassword
......@@ -151,6 +154,12 @@
align: 'left',
field: 'CreateTimeStr'
},
{
name: 'StudentAccount',
label: '账号',
align: 'left',
field: 'StudentAccount'
},
{
name: 'optioned',
label: '操作',
......@@ -204,6 +213,27 @@
}
this.getStudent()
},
//创建账号
createAccount(id) {
let that = this
createStudentAccount({
StuId: id,
}).then(res => {
that.$q.dialog({
title: "创建账号",
message: res.Message,
persistent: true,
ok: {
label: "确认",
flat: true,
focus: true
}
})
this.getStudent();
}).catch(() => {
});
},
resetPw(id) {
let that = this
this.$q.dialog({
......
......@@ -102,7 +102,7 @@
style="font-weight:400" class="q-mr-xs" label="审核" @click="showExamine(props.row)" />
<q-btn v-if="props.row.AuditStatus==2" flat size="xs" icon="iconfont icon-ziyuan" color="warning"
style="font-weight:400" class="q-mr-xs" label="重置密码" @click="resetPw(props.row.TId)" />
<q-btn v-if="props.row.AuditStatus==3" flat size="xs" icon="iconfont icon-shanchu" color="negative"
<q-btn flat size="xs" icon="iconfont icon-shanchu" color="negative"
style="font-weight:400" class="q-mr-xs" label="删除" @click="deleteUser(props.row.TId)" />
<q-btn v-if="props.row.AuditStatus==3" flat size="xs" icon="iconfont icon-ziyuan" color="negative"
style="font-weight:400" class="q-mr-xs" label="重新申请" @click="reApplyTeacher(props.row.TId)" />
......@@ -214,6 +214,12 @@
label: '入职时间',
align: 'left',
field: 'CreateTimeStr'
},
{
name: 'TeacherAccount',
label: '账号',
align: 'left',
field: 'TeacherAccount'
},
{
name: 'optioned',
......
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