Commit df780689 authored by 黄奎's avatar 黄奎

新增页面

parent 12db0472
...@@ -301,6 +301,17 @@ export function UpdateStudentIsDisable(data) { ...@@ -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) { ...@@ -345,4 +356,3 @@ export function deleteManagerInfo(data) {
data data
}) })
} }
...@@ -18,12 +18,10 @@ ...@@ -18,12 +18,10 @@
:factory="uploadFile" no-thumbnails> :factory="uploadFile" no-thumbnails>
</q-uploader> </q-uploader>
</div> </div>
</div> </div>
<div class="text-caption q-my-md q-px-xs text-grey-6">选择角色</div> <div class="text-caption q-my-md q-px-xs text-grey-6">选择角色</div>
<div class="q-pa-md"> <div class="q-pa-md">
<q-option-group type="checkbox" :options="roleList" v-model="tempRole" emit-value map-options /> <q-option-group type="checkbox" :options="roleList" v-model="tempRole" emit-value map-options />
</div> </div>
</q-card-section> </q-card-section>
<q-separator /> <q-separator />
......
...@@ -87,8 +87,8 @@ ...@@ -87,8 +87,8 @@
style="font-weight:400" class="q-mr-xs" label="审核" @click="showExamine(props.row)" /> 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" <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)" /> 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" <q-btn flat size="xs" icon="iconfont icon-shanchu" color="negative" style="font-weight:400"
style="font-weight:400" class="q-mr-xs" label="删除" @click="deleteUser(props.row.AId)" /> 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" <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)" /> 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="编辑" <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
...@@ -183,6 +183,12 @@ ...@@ -183,6 +183,12 @@
align: 'left', align: 'left',
field: 'CreateTimeStr' field: 'CreateTimeStr'
}, },
{
name: 'AssistAccount',
label: '账号',
align: 'left',
field: 'AssistAccount'
},
{ {
name: 'optioned', name: 'optioned',
label: '操作', label: '操作',
......
...@@ -57,6 +57,8 @@ ...@@ -57,6 +57,8 @@
<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.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" <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)" /> label="重置密码" @click="resetPw(props.row.StuId)" />
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑" <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑"
...@@ -74,7 +76,8 @@ ...@@ -74,7 +76,8 @@
import { import {
getStudentPage, getStudentPage,
getSchoolDropdown, getSchoolDropdown,
deleteStudent deleteStudent,
createStudentAccount
} from '../../api/school/index' } from '../../api/school/index'
import { import {
resetPassword resetPassword
...@@ -151,6 +154,12 @@ ...@@ -151,6 +154,12 @@
align: 'left', align: 'left',
field: 'CreateTimeStr' field: 'CreateTimeStr'
}, },
{
name: 'StudentAccount',
label: '账号',
align: 'left',
field: 'StudentAccount'
},
{ {
name: 'optioned', name: 'optioned',
label: '操作', label: '操作',
...@@ -204,6 +213,27 @@ ...@@ -204,6 +213,27 @@
} }
this.getStudent() 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) { resetPw(id) {
let that = this let that = this
this.$q.dialog({ this.$q.dialog({
......
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
style="font-weight:400" class="q-mr-xs" label="审核" @click="showExamine(props.row)" /> 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" <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)" /> 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)" /> 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" <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)" /> style="font-weight:400" class="q-mr-xs" label="重新申请" @click="reApplyTeacher(props.row.TId)" />
...@@ -214,6 +214,12 @@ ...@@ -214,6 +214,12 @@
label: '入职时间', label: '入职时间',
align: 'left', align: 'left',
field: 'CreateTimeStr' field: 'CreateTimeStr'
},
{
name: 'TeacherAccount',
label: '账号',
align: 'left',
field: 'TeacherAccount'
}, },
{ {
name: 'optioned', 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