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
09f70246
Commit
09f70246
authored
Jul 27, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
ef0faced
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
16 deletions
+79
-16
classlist.vue
src/components/course/classlist.vue
+68
-15
stuClassManage.vue
src/pages/stuMan/stuClassManage.vue
+11
-1
No files found.
src/components/course/classlist.vue
View file @
09f70246
...
...
@@ -40,8 +40,9 @@
</
style
>
<
template
>
<div
class=
"page-content"
>
<q-table
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table sticky-right-column-table"
separator=
"none"
:data=
"data"
:columns=
"columns"
row-key=
"name"
>
<q-table
:pagination=
"pageMsg"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-column-table sticky-right-column-table no-bottom-table"
separator=
"none"
:data=
"data"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
班级信息
</div>
<q-space
/>
...
...
@@ -141,37 +142,43 @@
<q-item-label>
收支明细
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"removeClass(props.row,1)"
v-if=
"props.row.Status==0"
>
<q-item
clickable
v-close-popup
@
click=
"removeClass(props.row,1)"
v-if=
"props.row.Status==0&&AuthorityObj.isShowDelBtn"
>
<q-item-section>
<q-item-label>
删除
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"removeClass(props.row,0)"
v-if=
"props.row.Status==1"
>
<q-item
clickable
v-close-popup
@
click=
"removeClass(props.row,0)"
v-if=
"props.row.Status==1&&AuthorityObj.isShowRestoreBtn"
>
<q-item-section>
<q-item-label>
恢复
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"showOtherCourse(props.row)"
>
<q-item
clickable
v-close-popup
@
click=
"showOtherCourse(props.row)"
v-if=
"AuthorityObj.isShowOtherCourseBtn"
>
<q-item-section>
<q-item-label>
关联其他课程
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click=
"gomonthLessonCost(props.row)"
>
<q-item
clickable
v-close-popup
@
click=
"gomonthLessonCost(props.row)"
v-if=
"AuthorityObj.isShowLessonCost"
>
<q-item-section>
<q-item-label>
月度课耗
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
v-if=
"props.row.ClassStatus!=3"
@
click
.
stop=
"getClassItem(props.row)"
>
<q-item
clickable
v-close-popup
v-if=
"props.row.ClassStatus!=3&&AuthorityObj.isShowStatusChange"
@
click
.
stop=
"getClassItem(props.row)"
>
<q-item-section>
<q-item-label>
状态变更
</q-item-label>
</q-item-section>
</q-item>
<q-item
clickable
v-close-popup
@
click
.
stop=
"goStudent(props.row)"
>
<q-item
clickable
v-close-popup
@
click
.
stop=
"goStudent(props.row)"
v-if=
"AuthorityObj.isShowStudentMenu"
>
<q-item-section>
<q-item-label>
未完成学员名单
</q-item-label>
</q-item-section>
</q-item>
<q-item
v-if=
"props.row.ClassStatus!=3"
clickable
v-close-popup
@
click=
"classApply(props.row)"
>
<q-item
v-if=
"props.row.ClassStatus!=3&&AuthorityObj.isShowApply"
clickable
v-close-popup
@
click=
"classApply(props.row)"
>
<q-item-section>
<q-item-label>
调课申请
</q-item-label>
</q-item-section>
...
...
@@ -197,12 +204,11 @@
</template>
<
script
>
//获取校区列表
import
{
deleteClass
,
}
from
'../../api/school/index'
;
import
classForm
from
'../../components/course/class-form'
;
...
...
@@ -219,6 +225,10 @@
type
:
Array
,
default
:
null
},
authObj
:
{
type
:
Object
,
default
:
null
}
},
components
:
{
classForm
,
...
...
@@ -313,16 +323,54 @@
TeacherList
:
[],
isShowStatusChange
:
false
,
//是否显示修改状态弹窗
isShowTiaoke
:
false
,
//是否显示调课申请
pageMsg
:
{
rowsPerPage
:
12
,
},
//权限显示对象
AuthorityObj
:
{
isShowDelBtn
:
true
,
//显示删除
isShowRestoreBtn
:
true
,
//显示恢复
isShowOtherCourseBtn
:
true
,
//显示关联其他课程
isShowLessonCost
:
true
,
//显示月度课耗
isShowStatusChange
:
true
,
//显示状态变更
isShowStudentMenu
:
true
,
//显示未完成学员名单
isShowApply
:
true
//显示调课申请
},
}
},
created
()
{
console
.
log
(
"this.data"
,
this
.
data
);
this
.
initAuth
();
},
mounted
()
{
},
methods
:
{
//初始化权限信息
initAuth
()
{
if
(
this
.
authObj
)
{
if
(
this
.
authObj
.
isShowDelBtn
!=
null
&&
this
.
authObj
.
isShowDelBtn
)
{
this
.
AuthorityObj
.
isShowDelBtn
=
this
.
authObj
.
isShowDelBtn
;
}
if
(
this
.
authObj
.
isShowRestoreBtn
!=
null
&&
this
.
authObj
.
isShowRestoreBtn
)
{
this
.
AuthorityObj
.
isShowRestoreBtn
=
this
.
authObj
.
isShowRestoreBtn
;
}
if
(
this
.
authObj
.
isShowOtherCourseBtn
!=
null
&&
this
.
authObj
.
isShowOtherCourseBtn
)
{
this
.
AuthorityObj
.
isShowOtherCourseBtn
=
this
.
authObj
.
isShowOtherCourseBtn
;
}
if
(
this
.
authObj
.
isShowLessonCost
!=
null
&&
this
.
authObj
.
isShowLessonCost
)
{
this
.
AuthorityObj
.
isShowLessonCost
=
this
.
authObj
.
isShowLessonCost
;
}
if
(
this
.
authObj
.
isShowStatusChange
!=
null
&&
this
.
authObj
.
isShowStatusChange
)
{
this
.
AuthorityObj
.
isShowStatusChange
=
this
.
authObj
.
isShowStatusChange
;
}
if
(
this
.
authObj
.
isShowStudentMenu
!=
null
&&
this
.
authObj
.
isShowStudentMenu
)
{
this
.
AuthorityObj
.
isShowStudentMenu
=
this
.
authObj
.
isShowStudentMenu
;
}
if
(
this
.
authObj
.
isShowApply
!=
null
&&
this
.
authObj
.
isShowApply
)
{
this
.
AuthorityObj
.
isShowApply
=
this
.
authObj
.
isShowApply
;
}
}
},
//删除班级
removeClass
(
item
,
status
)
{
let
delMsg
=
{
...
...
@@ -395,7 +443,12 @@
},
//刷新页面
refreshPage
()
{
//调用父页面成功方法
this
.
isShowClassForm
=
false
;
this
.
isShowClassInfo
=
false
;
this
.
IsShowOtherCourse
=
false
;
this
.
isShowStatusChange
=
false
;
this
.
isShowTiaoke
=
false
;
//调用父页面成功方法
this
.
$emit
(
'success'
);
},
//新增修改菜单
...
...
src/pages/stuMan/stuClassManage.vue
View file @
09f70246
...
...
@@ -69,7 +69,7 @@
</div>
</div>
<div
class=
"page-content"
>
<classlist
:data=
"data"
@
success=
"refreshPage"
></classlist>
<classlist
:data=
"data"
:authObj=
"authObj"
@
success=
"refreshPage"
></classlist>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</div>
...
...
@@ -112,6 +112,16 @@
classStatusList
:
[],
//班级状态列表
schoolList
:
[],
//校区列表
pageCount
:
0
,
//权限判断
authObj
:
{
isShowDelBtn
:
true
,
//显示删除
isShowRestoreBtn
:
true
,
//显示恢复
isShowOtherCourseBtn
:
true
,
//显示关联其他课程
isShowLessonCost
:
true
,
//显示月度课耗
isShowStatusChange
:
true
,
//显示状态变更
isShowStudentMenu
:
true
,
//显示未完成学员名单
isShowApply
:
true
//显示调课申请
}
}
},
created
()
{
...
...
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