Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
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
new-sing
admin-base
Commits
08bc2738
Commit
08bc2738
authored
Sep 18, 2018
by
王
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
班级列表增加统计字断
parent
3d7e4312
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
8 deletions
+37
-8
index.vue
src/components/class/index.vue
+36
-7
newDialog.vue
src/components/periods/newDialog.vue
+1
-1
No files found.
src/components/class/index.vue
View file @
08bc2738
...
...
@@ -32,13 +32,36 @@
</el-form-item>
</el-form>
</div>
<div
v-if=
"classList && classList.length > 0"
>
<el-form
label-width=
"90px"
inline
>
<el-form-item
label=
"期数"
>
{{
title
.
title
}}
</el-form-item>
<el-form-item
label=
"开始时间"
>
{{
title
.
start_at
}}
</el-form-item>
<el-form-item
label=
"结束时间"
>
{{
title
.
over_at
}}
</el-form-item>
<el-form-item
label=
"可看课包数"
>
{{
title
.
watch_num
}}
</el-form-item>
<el-form-item
label=
"已看课包数"
>
{{
title
.
has_watch_num
}}
</el-form-item>
<div
v-if=
"classList && classList.length > 0"
class=
"intro"
>
<el-form
label-width=
"100px"
>
<el-row>
<el-col
:span=
"6"
>
<el-form-item
label=
"期数名称"
>
{{
title
.
title
}}
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"可看课包数"
>
{{
title
.
watch_num
}}
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"已看课包数"
>
{{
title
.
has_watch_num
}}
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"开始时间"
>
{{
title
.
start_at
}}
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"6"
>
<el-form-item
label=
"老师数量"
>
{{
countObj
.
count_teacher_num
}}
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"预计学生总数"
>
{{
countObj
.
count_max_join_num
}}
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"班级学生总数"
>
{{
countObj
.
count_join_num
}}
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"结束时间"
>
{{
title
.
over_at
}}
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<div
v-if=
"!classList || classList.length === 0"
>
...
...
@@ -98,6 +121,7 @@
teacher_id
:
''
,
classList
:[],
title
:
''
,
countObj
:
''
,
teacherList
:[],
userObj
:{
classId
:
''
,
...
...
@@ -188,6 +212,7 @@
}
getClassListApi
(
this
.
periods
.
id
,
json
).
then
(
res
=>
{
this
.
title
=
res
.
periods
;
this
.
countObj
=
res
.
count
?
res
.
count
:
''
;
this
.
classList
=
res
.
list
;
this
.
total
=
res
.
total
;
})
...
...
@@ -239,4 +264,8 @@
.class{
padding: 20px 0;
}
.intro .el-form-item{
margin-bottom: 0;
}
</
style
>
src/components/periods/newDialog.vue
View file @
08bc2738
...
...
@@ -55,7 +55,7 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"
周几不上课
"
>
<el-form-item
label=
"
不上课日期
"
>
<el-select
v-model=
"form.rest_week_day"
multiple
placeholder=
"请选择"
>
<el-option
v-for=
"item in options"
...
...
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