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
d1b0d129
Commit
d1b0d129
authored
Jul 30, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Plain Diff
1
parents
cd2ec11f
4131000f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
131 deletions
+2
-131
classManage.vue
src/pages/course/classManage.vue
+2
-131
No files found.
src/pages/course/classManage.vue
View file @
d1b0d129
...
...
@@ -67,28 +67,17 @@
import
{
queryClassPage
,
queryClassStatusList
,
saveClassStatus
,
//修改班级状态
}
from
'../../api/course/class'
;
//获取校区列表
import
{
getSchoolDropdown
,
deleteClass
}
from
'../../api/school/index'
;
import
classForm
from
'../../components/course/class-form'
;
import
classinfoForm
from
'../../components/course/classinfo-form'
;
import
othercourseForm
from
'../../components/course/othercourse-form'
;
import
classconflictForm
from
'../../components/course/classconflict-form'
;
import
classlist
from
'../../components/course/classlist'
;
export
default
{
meta
:
{
title
:
"班级管理"
},
components
:
{
classForm
,
classinfoForm
,
othercourseForm
,
classconflictForm
,
classlist
},
data
()
{
...
...
@@ -183,12 +172,6 @@
//关联校区列表
schoolList
:
[],
pageCount
:
0
,
isShowEdit
:
false
,
statusMsg
:
{
ClassId
:
0
,
ClassStatus
:
0
},
isShowConflict
:
false
,
//是否显示上课计划冲突
ClassId
:
0
,
//传入到冲突表单参数
//权限判断
authObj
:
{
...
...
@@ -199,9 +182,10 @@
isShowLessonCost
:
true
,
//显示月度课耗
isShowStatusChange
:
true
,
//显示状态变更
isShowStudentMenu
:
true
,
//显示未完成学员名单
isShowApply
:
true
//显示调课申请
isShowApply
:
true
//显示调课申请
},
loading
:
false
}
},
created
()
{
...
...
@@ -215,100 +199,6 @@
this
.
getClassList
();
},
methods
:
{
closeClassConflictForm
()
{
this
.
isShowConflict
=
false
;
},
//删除班级
removeClass
(
item
,
status
)
{
let
delMsg
=
{
ClassId
:
item
.
ClassId
,
Status
:
status
};
var
message
=
"是否要删除该班级?"
;
if
(
status
==
0
)
{
message
=
"是否要恢复该班级?"
;
}
this
.
$q
.
dialog
({
title
:
'提示信息'
,
message
:
message
,
cancel
:
true
,
persistent
:
true
,
ok
:
"确定"
,
cancel
:
"取消"
,
}).
onOk
(()
=>
{
deleteClass
(
delMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'删除成功!'
,
position
:
'top'
})
this
.
getClassList
();
}
else
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
res
.
Message
,
position
:
'top'
})
}
})
}).
onCancel
(()
=>
{
});
},
//当前点击的班级
getClassItem
(
item
)
{
this
.
isShowEdit
=
true
;
var
Obj
=
JSON
.
parse
(
JSON
.
stringify
(
item
));
this
.
statusMsg
.
ClassStatus
=
Obj
.
ClassStatus
;
this
.
statusMsg
.
ClassId
=
Obj
.
ClassId
;
},
//更新班级状态
setClassStatus
()
{
saveClassStatus
(
this
.
statusMsg
).
then
(
res
=>
{
this
.
isShowEdit
=
false
;
if
(
res
.
Code
==
1
)
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'设置成功!'
,
position
:
'top'
})
this
.
getClassList
();
}
else
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
res
.
Message
,
position
:
'top'
})
}
});
},
gotoOrder
(
item
)
{
var
tempStr
=
'/course/classorder?ClassId='
+
item
.
ClassId
;
this
.
$router
.
push
({
path
:
tempStr
});
},
//跳转到收支明细
goPayment
(
item
)
{
this
.
$router
.
push
({
path
:
'paymentDetail'
,
query
:
{
ClassId
:
item
.
ClassId
,
School_Id
:
item
.
School_Id
,
ClassName
:
encodeURI
(
item
.
ClassName
),
blank
:
'y'
}
})
},
//获取校区列表
getSchool
()
{
getSchoolDropdown
({}).
then
(
res
=>
{
...
...
@@ -352,27 +242,8 @@
},
//刷新页面
refreshPage
()
{
this
.
isShowClassForm
=
false
;
this
.
getClassList
();
},
GetFirst
(
val
)
{
if
(
val
)
{
return
val
.
substr
(
0
,
1
);
}
},
//获取进度条
getProgress
(
num
,
total
)
{
if
(
num
==
0
||
total
==
0
)
{
return
0
;
}
return
(
Math
.
round
(
num
/
total
*
100
)
/
100.00
);
},
//跳转到课程大纲
goChapter
(
CouseId
)
{
this
.
OpenNewUrl
(
'/course/chapter'
,
{
CourseId
:
CouseId
});
}
}
}
...
...
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