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
af4a4fa6
Commit
af4a4fa6
authored
Jan 31, 2019
by
青山
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
今日需召回人数及全勤人数
parent
5118289e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
1 deletion
+64
-1
task.vue
src/components/teacherDetail/task.vue
+52
-1
api.js
src/service/api.js
+12
-0
No files found.
src/components/teacherDetail/task.vue
View file @
af4a4fa6
...
...
@@ -93,6 +93,14 @@
<span
v-if=
"item.is_start_course === 1"
>
{{item.work_rate}}
</span>
</div>
</div>
<div
class=
"over_work"
>
<div
class=
"header bg-h"
>
全勤人数
</div>
<el-button
size=
"mini"
type=
"text"
@
click=
"showOverWorkDetail(scope.row)"
>
{{data.need_recall_user_num}}
</el-button>
</div>
>
<div
class=
"recall"
>
<div
class=
"header bg-h"
>
今日需召回人数
</div>
<el-button
size=
"mini"
type=
"text"
@
click=
"showRecallDetail(scope.row)"
>
{{data.need_recall_user_num}}
</el-button>
</div>
</div>
</div>
...
...
@@ -302,7 +310,7 @@
</div>
</template>
<
script
>
import
{
task1Api
,
getWatchUserApi
,
task2Api
,
task3Api
,
addPeriodsClassUserDescApi
,
getUserDescListApi
,
changeAddTeacherApi
,
editUserWeightApi
,
editUserViewCourseApi
}
from
"../../service/api"
;
import
{
task1Api
,
getWatchUserApi
,
task2Api
,
task3Api
,
getOverWatchListApi
,
getRecallListApi
,
addPeriodsClassUserDescApi
,
getUserDescListApi
,
changeAddTeacherApi
,
editUserWeightApi
,
editUserViewCourseApi
}
from
"../../service/api"
;
export
default
{
name
:
"task"
,
props
:[
...
...
@@ -324,6 +332,16 @@
list
:[],
weight
:
''
},
recallDetail
:{
show
:
false
,
list
:[],
weight
:
''
},
overWorkDetail
:{
show
:
false
,
list
:[],
weight
:
''
},
descDialog
:{
show
:
false
,
id
:
''
,
...
...
@@ -360,7 +378,30 @@
this
.
task3Detail
.
loading
=
false
;
this
.
task3Detail
.
list
=
res
})
getRecallListApi
(
data
.
periods_id
,
this
.
id
,
json
).
then
(
res
=>
{
this
.
task3Detail
.
loading
=
false
;
this
.
task3Detail
.
list
=
res
})
getOverWatchListApi
(
data
.
periods_id
,
this
.
id
,
json
).
then
(
res
=>
{
this
.
task3Detail
.
loading
=
false
;
this
.
task3Detail
.
list
=
res
})
},
showOverWorkDetail
(
data
){
this
.
overWorkDetail
=
{
show
:
true
,
list
:
data
.
detail
,
weight
:
data
.
weight
}
},
showRecallDetail
(
data
)
{
this
.
recallDetail
=
{
show
:
true
,
list
:
data
.
detail
,
weight
:
data
.
weight
}
},
editComment
(
id
)
{
this
.
$prompt
(
''
,
'添加备注'
,
{
confirmButtonText
:
'确定'
,
...
...
@@ -393,6 +434,16 @@
this
.
task3Detail
.
show
=
true
;
this
.
task3Detail
.
list
=
res
})
getOverWatchListApi
(
this
.
task3Detail
.
periods_id
,
this
.
id
,
json
).
then
(
res
=>
{
this
.
task3Detail
.
loading
=
false
;
this
.
task3Detail
.
show
=
true
;
this
.
task3Detail
.
list
=
res
})
getRecallListApi
(
this
.
task3Detail
.
periods_id
,
this
.
id
,
json
).
then
(
res
=>
{
this
.
task3Detail
.
loading
=
false
;
this
.
task3Detail
.
show
=
true
;
this
.
task3Detail
.
list
=
res
})
},
showTask2Detail
(
data
){
this
.
task2Detail
=
{
...
...
src/service/api.js
View file @
af4a4fa6
...
...
@@ -905,6 +905,18 @@ export const task3Api = function (id) {
return
Vue
.
prototype
.
$fetch
(
task3Url
+
id
)
};
// 取出当前老师当前期数全勤的用户
const
getOverWatchListUrl
=
`/api/admin/class/user/over/watch/list/`
;
export
const
getOverWatchListApi
=
function
(
periods_id
,
teacher_id
,
json
)
{
return
Vue
.
prototype
.
$fetch
(
`
${
getOverWatchListUrl
}${
periods_id
}
/
${
teacher_id
}
`
,
json
)
};
// 需要召回的用户(今日没看且去除前两天都没看的用户)
const
getRecallUrl
=
`/api/admin/class/user/recall/list/`
;
export
const
getRecallListApi
=
function
(
periods_id
,
teacher_id
,
json
)
{
return
Vue
.
prototype
.
$fetch
(
`
${
getRecallUrl
}${
periods_id
}
/
${
teacher_id
}
`
,
json
)
};
//通过用户是否看课取出用户
const
getWatchUserUrl
=
`/api/admin/class/user/watch/list/`
;
export
const
getWatchUserApi
=
function
(
periods_id
,
teacher_id
,
json
)
{
...
...
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