Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
df780689
Commit
df780689
authored
Oct 23, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增页面
parent
12db0472
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
7 deletions
+57
-7
index.js
src/api/school/index.js
+11
-1
manager-form.vue
src/components/school/manager/manager-form.vue
+0
-2
assistant.vue
src/pages/school/assistant.vue
+8
-2
student.vue
src/pages/school/student.vue
+31
-1
teacher.vue
src/pages/school/teacher.vue
+7
-1
No files found.
src/api/school/index.js
View file @
df780689
...
...
@@ -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
})
}
src/components/school/manager/manager-form.vue
View file @
df780689
...
...
@@ -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
/>
...
...
src/pages/school/assistant.vue
View file @
df780689
...
...
@@ -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
:
'操作'
,
...
...
src/pages/school/student.vue
View file @
df780689
...
...
@@ -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
({
...
...
src/pages/school/teacher.vue
View file @
df780689
...
...
@@ -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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment