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
333c48aa
Commit
333c48aa
authored
Oct 20, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增页面
parent
5cdd043e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
834 additions
and
70 deletions
+834
-70
classmanage.vue
src/pages/school/classmanage.vue
+377
-0
student.vue
src/pages/school/student.vue
+377
-0
routes.js
src/router/routes.js
+80
-70
No files found.
src/pages/school/classmanage.vue
0 → 100644
View file @
333c48aa
<
template
>
<div
class=
"page-body"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
<q-input
@
change=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.AssistName"
label=
"班级名称"
/>
</div>
<div
class=
"col-3"
>
<q-input
@
change=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.AssistTel"
label=
"助教电话"
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
clearable
filled
stack-label
option-value=
"SId"
option-label=
"SName"
v-model=
"schoolTemp"
ref=
"School_Id"
:options=
"schoolList"
label=
"所属校区"
:dense=
"false"
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
standout=
"bg-primary text-white"
v-model=
"msg.AuditStatus"
:options=
"AuditOpts"
emit-value
map-options
label=
"审核状态"
/>
</div>
</div>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
class=
"q-mr-md"
icon=
"add"
label=
"新增助教"
@
click=
"addObj(null)"
/>
<q-btn-dropdown
outline
color=
"dark"
label=
"更多"
>
<q-list>
<q-item
clickable
v-close-popup
>
<q-item-section>
<q-item-label>
批量导入
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
>
<q-item-section>
<q-item-label>
批量导出
</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</div>
</div>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-right-column-table sticky-tow-column-table"
separator=
"none"
title=
"班级信息"
:data=
"data"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:body-cell-AssistIcon=
"props"
>
<q-td
auto-width
:props=
"props"
>
<q-avatar
size=
"md"
v-if=
"props.value"
>
<img
:src=
"props.value"
/>
</q-avatar>
<q-avatar
size=
"md"
color=
"teal-10"
text-color=
"white"
v-if=
"!props.value"
>
{{
props
.
row
.
AssistName
.
substring
(
0
,
1
)
}}
</q-avatar>
</q-td>
</
template
>
<
template
v-slot:body-cell-AssistName=
"props"
>
<q-td
:props=
"props"
>
<div
class=
"text-blue cursor-pointer"
>
{{
props
.
value
}}
</div>
</q-td>
</
template
>
<
template
v-slot:body-cell-AuditStatus=
"props"
>
<q-td
:props=
"props"
>
<q-badge
v-if=
"props.value==1"
color=
"dark"
label=
"审核中"
/>
<div
v-if=
"props.value==3"
>
<q-badge
color=
"warning"
class=
"cursor-pointer"
label=
"审核不通过"
/>
<q-popup-proxy>
<q-banner
class=
"bg-dark text-white"
>
{{
props
.
row
.
Remark
}}
</q-banner>
</q-popup-proxy>
</div>
<div
v-if=
"props.value==2"
>
<q-badge
v-if=
"props.value==2"
class=
"cursor-pointer"
color=
"primary"
label=
"审核通过"
/>
<q-popup-proxy>
<q-banner
class=
"bg-dark text-white"
>
{{
props
.
row
.
Remark
}}
</q-banner>
</q-popup-proxy>
</div>
</q-td>
</
template
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</
template
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<div
style=
"min-width:190px;width:100%"
>
<q-btn
v-if=
"props.row.AuditStatus==1"
flat
size=
"xs"
icon=
"iconfont icon-shenhe"
color=
"info"
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=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
@
click=
"addObj(props.row)"
/>
</div>
</q-td>
</
template
>
</q-table>
<assistant-form
v-if=
"persistent"
:save-obj=
"objOption"
@
close=
"closeSaveForm"
@
success=
"addAfterQuery"
>
</assistant-form>
<assistant-shenhe
v-if=
"persistentExamine"
:show-obj=
"objOption"
@
close=
"closeSaveForm"
@
success=
"addAfterQuery"
>
</assistant-shenhe>
</div>
</div>
</template>
<
script
>
import
{
getAssistPage
,
getSchoolDropdown
,
deleteAssist
}
from
'../../api/school/index'
import
{
resetPassword
}
from
'../../api/users/user.js'
import
assistantForm
from
'../../components/school/assistant/assistant-form'
import
assistantShenhe
from
'../../components/school/assistant/assistant-shenhe'
export
default
{
meta
:
{
title
:
"助教管理"
},
components
:
{
assistantForm
,
assistantShenhe
},
data
()
{
return
{
currentUrl
:
""
,
columns
:
[{
name
:
'AssistIcon'
,
label
:
''
,
field
:
'AssistIcon'
,
align
:
'left'
,
},
{
name
:
'AssistName'
,
required
:
true
,
label
:
'助教名称'
,
align
:
'left'
,
field
:
row
=>
row
.
AssistName
},
{
name
:
'AssistTel'
,
label
:
'助教电话'
,
field
:
'AssistTel'
,
align
:
'left'
},
{
name
:
'SName'
,
label
:
'所属校区'
,
field
:
'SName'
,
align
:
'left'
,
},
{
name
:
'AuditStatus'
,
label
:
'审核状态'
,
align
:
'left'
,
field
:
'AuditStatus'
},
{
name
:
'ClassCount'
,
label
:
'带班数量'
,
align
:
'left'
,
field
:
'ClassCount'
},
{
name
:
'OnlineClassCount'
,
label
:
'网课产品'
,
align
:
'left'
,
field
:
'OnlineClassCount'
},
{
name
:
'OnlineOrderCount'
,
label
:
'网课订单'
,
align
:
'left'
,
field
:
'OnlineOrderCount'
},
{
name
:
'CreateTimeStr'
,
label
:
'入职时间'
,
align
:
'left'
,
field
:
'CreateTimeStr'
},
{
name
:
'optioned'
,
label
:
'操作'
,
field
:
'AId'
}
],
data
:
[],
loading
:
true
,
AuditOpts
:
[{
label
:
'全部'
,
value
:
'-1'
},
{
label
:
'审核中'
,
value
:
'1'
},
{
label
:
'审核通过'
,
value
:
'2'
},
{
label
:
'审核不通过'
,
value
:
'3'
}
],
msg
:
{
pageIndex
:
1
,
pageSize
:
12
,
rowsPerPage
:
12
,
AssistName
:
""
,
AssistTel
:
""
,
AuditStatus
:
"-1"
,
School_Id
:
0
},
pageCount
:
0
,
persistent
:
false
,
objOption
:
null
,
schoolList
:
[],
schoolTemp
:
null
,
persistentExamine
:
false
,
resetLoading
:
false
}
},
mounted
()
{
this
.
currentUrl
=
this
.
$route
.
path
this
.
getSchool
()
this
.
getAssistant
()
},
methods
:
{
resetSearch
()
{
this
.
pageIndex
=
1
//this.pageCount = 0
this
.
loading
=
true
if
(
this
.
schoolTemp
)
{
this
.
msg
.
School_Id
=
this
.
schoolTemp
.
SId
}
else
{
this
.
msg
.
School_Id
=
0
}
this
.
getAssistant
()
},
resetPw
(
id
)
{
let
that
=
this
this
.
$q
.
dialog
({
title
:
"重置密码"
,
message
:
"你正在进行重置密码行为,是否确认执行"
,
persistent
:
true
,
cancel
:
{
label
:
"取消"
,
flat
:
true
},
ok
:
{
label
:
"确认重置"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
that
.
resetLoading
=
true
resetPassword
({
AccountType
:
3
,
AccountId
:
id
}).
then
(
res
=>
{
that
.
resetLoading
=
false
that
.
$q
.
dialog
({
title
:
"密码重置成功"
,
message
:
res
.
Message
,
persistent
:
true
,
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
})
}).
catch
(()
=>
{
that
.
resetLoading
=
false
});
});
},
deleteUser
(
id
)
{
let
that
=
this
this
.
$q
.
dialog
({
title
:
"删除助教"
,
message
:
"你正在进行删除助教行为,一旦执行无法找回,是否确认执行?"
,
persistent
:
true
,
cancel
:
{
label
:
"取消"
,
flat
:
true
},
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
that
.
resetLoading
=
true
deleteAssist
({
AId
:
id
}).
then
(
res
=>
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'数据删除成功!'
,
position
:
'top'
})
this
.
getAssistant
()
})
});
},
changePage
(
val
)
{
this
.
msg
.
Status
=
this
.
StatusTemp
?
this
.
StatusTemp
.
value
:
'-1'
this
.
msg
.
pageIndex
=
1
this
.
loading
=
true
this
.
getAssistant
()
},
getSchool
()
{
getSchoolDropdown
({}).
then
(
res
=>
{
this
.
schoolList
=
res
.
Data
if
(
this
.
msg
.
School_Id
!=
0
)
{
this
.
schoolTemp
=
this
.
schoolList
.
filter
(
x
=>
{
if
(
this
.
objOption
.
School_Id
==
x
.
SId
)
{
return
x
}
})[
0
]
}
})
},
getAssistant
()
{
getAssistPage
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
this
.
data
=
res
.
Data
.
PageData
this
.
pageCount
=
res
.
Data
.
PageCount
}).
catch
(()
=>
{
this
.
loading
=
false
})
},
addAfterQuery
()
{
if
(
!
this
.
objOption
)
{
this
.
msg
=
{
pageIndex
:
1
,
pageSize
:
12
,
rowsPerPage
:
12
,
TeacherName
:
""
,
TeacherTel
:
""
,
AuditStatus
:
"-1"
,
IsShow
:
"-1"
}
}
this
.
getAssistant
()
},
addObj
(
obj
)
{
if
(
obj
)
{
this
.
objOption
=
obj
}
else
{
this
.
objOption
=
null
}
this
.
persistent
=
true
},
showExamine
(
obj
)
{
this
.
objOption
=
obj
this
.
persistentExamine
=
true
},
closeSaveForm
()
{
this
.
persistent
=
false
this
.
persistentExamine
=
false
}
},
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass');
</
style
>
src/pages/school/student.vue
0 → 100644
View file @
333c48aa
<
template
>
<div
class=
"page-body"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
<q-input
@
change=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.AssistName"
label=
"学员名称"
/>
</div>
<div
class=
"col-3"
>
<q-input
@
change=
"resetSearch"
clearable
standout=
"bg-primary text-white"
v-model=
"msg.AssistTel"
label=
"学员电话"
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
clearable
filled
stack-label
option-value=
"SId"
option-label=
"SName"
v-model=
"schoolTemp"
ref=
"School_Id"
:options=
"schoolList"
label=
"所属校区"
:dense=
"false"
/>
</div>
<div
class=
"col-3"
>
<q-select
@
input=
"resetSearch"
standout=
"bg-primary text-white"
v-model=
"msg.AuditStatus"
:options=
"AuditOpts"
emit-value
map-options
label=
"审核状态"
/>
</div>
</div>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
class=
"q-mr-md"
icon=
"add"
label=
"新增助教"
@
click=
"addObj(null)"
/>
<q-btn-dropdown
outline
color=
"dark"
label=
"更多"
>
<q-list>
<q-item
clickable
v-close-popup
>
<q-item-section>
<q-item-label>
批量导入
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
>
<q-item-section>
<q-item-label>
批量导出
</q-item-label>
</q-item-section>
</q-item>
</q-list>
</q-btn-dropdown>
</div>
</div>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-right-column-table sticky-tow-column-table"
separator=
"none"
title=
"学员新"
:data=
"data"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:body-cell-AssistIcon=
"props"
>
<q-td
auto-width
:props=
"props"
>
<q-avatar
size=
"md"
v-if=
"props.value"
>
<img
:src=
"props.value"
/>
</q-avatar>
<q-avatar
size=
"md"
color=
"teal-10"
text-color=
"white"
v-if=
"!props.value"
>
{{
props
.
row
.
AssistName
.
substring
(
0
,
1
)
}}
</q-avatar>
</q-td>
</
template
>
<
template
v-slot:body-cell-AssistName=
"props"
>
<q-td
:props=
"props"
>
<div
class=
"text-blue cursor-pointer"
>
{{
props
.
value
}}
</div>
</q-td>
</
template
>
<
template
v-slot:body-cell-AuditStatus=
"props"
>
<q-td
:props=
"props"
>
<q-badge
v-if=
"props.value==1"
color=
"dark"
label=
"审核中"
/>
<div
v-if=
"props.value==3"
>
<q-badge
color=
"warning"
class=
"cursor-pointer"
label=
"审核不通过"
/>
<q-popup-proxy>
<q-banner
class=
"bg-dark text-white"
>
{{
props
.
row
.
Remark
}}
</q-banner>
</q-popup-proxy>
</div>
<div
v-if=
"props.value==2"
>
<q-badge
v-if=
"props.value==2"
class=
"cursor-pointer"
color=
"primary"
label=
"审核通过"
/>
<q-popup-proxy>
<q-banner
class=
"bg-dark text-white"
>
{{
props
.
row
.
Remark
}}
</q-banner>
</q-popup-proxy>
</div>
</q-td>
</
template
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</
template
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<div
style=
"min-width:190px;width:100%"
>
<q-btn
v-if=
"props.row.AuditStatus==1"
flat
size=
"xs"
icon=
"iconfont icon-shenhe"
color=
"info"
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=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
@
click=
"addObj(props.row)"
/>
</div>
</q-td>
</
template
>
</q-table>
<assistant-form
v-if=
"persistent"
:save-obj=
"objOption"
@
close=
"closeSaveForm"
@
success=
"addAfterQuery"
>
</assistant-form>
<assistant-shenhe
v-if=
"persistentExamine"
:show-obj=
"objOption"
@
close=
"closeSaveForm"
@
success=
"addAfterQuery"
>
</assistant-shenhe>
</div>
</div>
</template>
<
script
>
import
{
getAssistPage
,
getSchoolDropdown
,
deleteAssist
}
from
'../../api/school/index'
import
{
resetPassword
}
from
'../../api/users/user.js'
import
assistantForm
from
'../../components/school/assistant/assistant-form'
import
assistantShenhe
from
'../../components/school/assistant/assistant-shenhe'
export
default
{
meta
:
{
title
:
"助教管理"
},
components
:
{
assistantForm
,
assistantShenhe
},
data
()
{
return
{
currentUrl
:
""
,
columns
:
[{
name
:
'AssistIcon'
,
label
:
''
,
field
:
'AssistIcon'
,
align
:
'left'
,
},
{
name
:
'AssistName'
,
required
:
true
,
label
:
'助教名称'
,
align
:
'left'
,
field
:
row
=>
row
.
AssistName
},
{
name
:
'AssistTel'
,
label
:
'助教电话'
,
field
:
'AssistTel'
,
align
:
'left'
},
{
name
:
'SName'
,
label
:
'所属校区'
,
field
:
'SName'
,
align
:
'left'
,
},
{
name
:
'AuditStatus'
,
label
:
'审核状态'
,
align
:
'left'
,
field
:
'AuditStatus'
},
{
name
:
'ClassCount'
,
label
:
'带班数量'
,
align
:
'left'
,
field
:
'ClassCount'
},
{
name
:
'OnlineClassCount'
,
label
:
'网课产品'
,
align
:
'left'
,
field
:
'OnlineClassCount'
},
{
name
:
'OnlineOrderCount'
,
label
:
'网课订单'
,
align
:
'left'
,
field
:
'OnlineOrderCount'
},
{
name
:
'CreateTimeStr'
,
label
:
'入职时间'
,
align
:
'left'
,
field
:
'CreateTimeStr'
},
{
name
:
'optioned'
,
label
:
'操作'
,
field
:
'AId'
}
],
data
:
[],
loading
:
true
,
AuditOpts
:
[{
label
:
'全部'
,
value
:
'-1'
},
{
label
:
'审核中'
,
value
:
'1'
},
{
label
:
'审核通过'
,
value
:
'2'
},
{
label
:
'审核不通过'
,
value
:
'3'
}
],
msg
:
{
pageIndex
:
1
,
pageSize
:
12
,
rowsPerPage
:
12
,
AssistName
:
""
,
AssistTel
:
""
,
AuditStatus
:
"-1"
,
School_Id
:
0
},
pageCount
:
0
,
persistent
:
false
,
objOption
:
null
,
schoolList
:
[],
schoolTemp
:
null
,
persistentExamine
:
false
,
resetLoading
:
false
}
},
mounted
()
{
this
.
currentUrl
=
this
.
$route
.
path
this
.
getSchool
()
this
.
getAssistant
()
},
methods
:
{
resetSearch
()
{
this
.
pageIndex
=
1
//this.pageCount = 0
this
.
loading
=
true
if
(
this
.
schoolTemp
)
{
this
.
msg
.
School_Id
=
this
.
schoolTemp
.
SId
}
else
{
this
.
msg
.
School_Id
=
0
}
this
.
getAssistant
()
},
resetPw
(
id
)
{
let
that
=
this
this
.
$q
.
dialog
({
title
:
"重置密码"
,
message
:
"你正在进行重置密码行为,是否确认执行"
,
persistent
:
true
,
cancel
:
{
label
:
"取消"
,
flat
:
true
},
ok
:
{
label
:
"确认重置"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
that
.
resetLoading
=
true
resetPassword
({
AccountType
:
3
,
AccountId
:
id
}).
then
(
res
=>
{
that
.
resetLoading
=
false
that
.
$q
.
dialog
({
title
:
"密码重置成功"
,
message
:
res
.
Message
,
persistent
:
true
,
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
})
}).
catch
(()
=>
{
that
.
resetLoading
=
false
});
});
},
deleteUser
(
id
)
{
let
that
=
this
this
.
$q
.
dialog
({
title
:
"删除助教"
,
message
:
"你正在进行删除助教行为,一旦执行无法找回,是否确认执行?"
,
persistent
:
true
,
cancel
:
{
label
:
"取消"
,
flat
:
true
},
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
that
.
resetLoading
=
true
deleteAssist
({
AId
:
id
}).
then
(
res
=>
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'数据删除成功!'
,
position
:
'top'
})
this
.
getAssistant
()
})
});
},
changePage
(
val
)
{
this
.
msg
.
Status
=
this
.
StatusTemp
?
this
.
StatusTemp
.
value
:
'-1'
this
.
msg
.
pageIndex
=
1
this
.
loading
=
true
this
.
getAssistant
()
},
getSchool
()
{
getSchoolDropdown
({}).
then
(
res
=>
{
this
.
schoolList
=
res
.
Data
if
(
this
.
msg
.
School_Id
!=
0
)
{
this
.
schoolTemp
=
this
.
schoolList
.
filter
(
x
=>
{
if
(
this
.
objOption
.
School_Id
==
x
.
SId
)
{
return
x
}
})[
0
]
}
})
},
getAssistant
()
{
getAssistPage
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
this
.
data
=
res
.
Data
.
PageData
this
.
pageCount
=
res
.
Data
.
PageCount
}).
catch
(()
=>
{
this
.
loading
=
false
})
},
addAfterQuery
()
{
if
(
!
this
.
objOption
)
{
this
.
msg
=
{
pageIndex
:
1
,
pageSize
:
12
,
rowsPerPage
:
12
,
TeacherName
:
""
,
TeacherTel
:
""
,
AuditStatus
:
"-1"
,
IsShow
:
"-1"
}
}
this
.
getAssistant
()
},
addObj
(
obj
)
{
if
(
obj
)
{
this
.
objOption
=
obj
}
else
{
this
.
objOption
=
null
}
this
.
persistent
=
true
},
showExamine
(
obj
)
{
this
.
objOption
=
obj
this
.
persistentExamine
=
true
},
closeSaveForm
()
{
this
.
persistent
=
false
this
.
persistentExamine
=
false
}
},
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass');
</
style
>
src/router/routes.js
View file @
333c48aa
const
routes
=
[{
const
routes
=
[{
path
:
"/"
,
path
:
"/"
,
component
:
()
=>
import
(
"pages/user/login.vue"
)
},
{
path
:
"/login"
,
component
:
()
=>
import
(
"pages/user/login.vue"
)
},
{
path
:
"/home"
,
component
:
()
=>
import
(
"layouts/MainLayout.vue"
),
children
:
[{
path
:
""
,
component
:
()
=>
component
:
()
=>
import
(
"pages/user/login
.vue"
)
import
(
"pages/Index
.vue"
)
},
},
{
{
path
:
"/
login
"
,
path
:
"/
school/manager
"
,
component
:
()
=>
component
:
()
=>
import
(
"pages/user/login
.vue"
)
import
(
"pages/school/manager
.vue"
)
},
},
{
{
path
:
"/
home
"
,
path
:
"/
school/teacher
"
,
component
:
()
=>
component
:
()
=>
import
(
"layouts/MainLayout.vue"
),
import
(
"pages/school/teacher.vue"
)
children
:
[{
},
path
:
""
,
{
component
:
()
=>
path
:
"/school/assistant"
,
import
(
"pages/Index.vue"
)
component
:
()
=>
},
import
(
"pages/school/assistant.vue"
)
{
},
path
:
"/school/manager"
,
{
component
:
()
=>
path
:
"/school/classmanage"
,
//班级管理
import
(
"pages/school/manager.vue"
)
component
:
()
=>
},
import
(
"pages/school/classmanage.vue"
)
{
},
path
:
"/school/teacher"
,
{
component
:
()
=>
path
:
"/school/student"
,
//学员管理
import
(
"pages/school/teacher.vue"
)
component
:
()
=>
},
import
(
"pages/school/student.vue"
)
{
},
path
:
"/school/assistant"
,
{
component
:
()
=>
path
:
"/system/menu"
,
//菜单管理
import
(
"pages/school/assistant.vue"
)
component
:
()
=>
},
import
(
"pages/system/menu.vue"
)
{
},
path
:
"/system/menu"
,
//菜单管理
{
component
:
()
=>
path
:
"/system/role"
,
//角色管理
import
(
"pages/system/menu.vue"
)
},
{
path
:
"/system/role"
,
//角色管理
component
:
()
=>
import
(
"pages/system/role.vue"
)
},
{
path
:
"/course/catagory"
,
//课程分类
component
:
()
=>
import
(
"pages/course/catagory.vue"
)
},
{
path
:
"/course/course"
,
//课程管理
component
:
()
=>
import
(
"pages/course/course.vue"
)
},
{
path
:
"/course/teachplan"
,
//教案管理
component
:
()
=>
import
(
"pages/course/teachplan.vue"
)
},
{
path
:
"/test"
,
//API测试
component
:
()
=>
import
(
"pages/test.vue"
)
},
]
},
// Always leave this as last one,
// but you can also remove it
{
path
:
"*"
,
component
:
()
=>
component
:
()
=>
import
(
"pages/Error404.vue"
)
import
(
"pages/system/role.vue"
)
}
},
{
path
:
"/course/catagory"
,
//课程分类
component
:
()
=>
import
(
"pages/course/catagory.vue"
)
},
{
path
:
"/course/course"
,
//课程管理
component
:
()
=>
import
(
"pages/course/course.vue"
)
},
{
path
:
"/course/teachplan"
,
//教案管理
component
:
()
=>
import
(
"pages/course/teachplan.vue"
)
},
{
path
:
"/test"
,
//API测试
component
:
()
=>
import
(
"pages/test.vue"
)
},
]
},
// Always leave this as last one,
// but you can also remove it
{
path
:
"*"
,
component
:
()
=>
import
(
"pages/Error404.vue"
)
}
];
];
export
default
routes
;
export
default
routes
;
\ No newline at end of file
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