Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
roncoo
roncoo-education-admin
提交
b6b744a4
R
roncoo-education-admin
项目概览
roncoo
/
roncoo-education-admin
10 个月 前同步成功
通知
47
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roncoo-education-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
b6b744a4
编写于
11月 28, 2022
作者:
水
水边哇
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
课程数据查看明细
上级
41693106
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
31 addition
and
10 deletion
+31
-10
src/views/course/list/record/index.vue
src/views/course/list/record/index.vue
+2
-2
src/views/course/list/record/study.vue
src/views/course/list/record/study.vue
+29
-8
未找到文件。
src/views/course/list/record/index.vue
浏览文件 @
b6b744a4
...
...
@@ -67,9 +67,9 @@ export default defineComponent({
})
const
studyRecord
=
(
row
)
=>
{
userStudyePage
({
userId
:
row
.
userId
,
courseId
:
route
.
query
.
courseId
}).
then
((
res
)
=>
{
study
.
info
=
res
study
.
info
=
res
.
list
study
.
visible
=
true
});
study
.
visible
=
true
;
}
const
studyCallback
=
()
=>
{
study
.
visible
=
false
...
...
src/views/course/list/record/study.vue
浏览文件 @
b6b744a4
<
template
>
<el-dialog
v-model=
"visible"
:append-to-body=
"true"
:title=
"title"
width=
"600px"
@
close=
"handleClose
"
>
<el-table
:data=
"info"
:tree-props=
"
{ children: 'userStudyPeriodPageRespList' }" default-expand-all>
<el-dialog
:model-value=
"visible"
:append-to-body=
"true"
:title=
"title"
width=
"800px"
@
close=
"cloneDialog
"
>
<el-table
:data=
"info"
row-key=
"id"
:tree-props=
"
{ children: 'userStudyPeriodPageRespList' }" default-expand-all>
<el-table-column
label=
"章节名称"
prop=
"chapterName"
>
<template
#default
="
scope
"
>
<span>
{{
scope
.
row
.
chapterName
}}
</span>
<span>
{{
scope
.
row
.
periodName
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"观看进度"
prop=
"courseProgress"
>
<
template
#default=
"scope"
>
<el-progress
v-if=
"scope.row.progress"
:percentage=
"scope.row.progress"
:stroke-width=
"25"
:text-inside=
"true"
/>
</
template
>
</el-table-column>
</el-table>
</el-dialog>
</template>
<
script
>
import
{
defineComponent
,
onMounted
,
reactive
,
ref
,
toRefs
}
from
'
vue
'
;
import
{
defineComponent
,
reactive
,
ref
,
toRefs
,
watch
}
from
'
vue
'
;
export
default
defineComponent
({
props
:
{
visibl
e
:
{
modelValu
e
:
{
type
:
Boolean
,
default
:
false
default
:
()
=>
{
return
false
;
}
},
title
:
{
type
:
String
,
...
...
@@ -30,17 +42,26 @@ export default defineComponent({
}
}
},
setup
()
{
emits
:
[
'
update:modelValue
'
],
setup
(
props
,
{
emit
})
{
const
state
=
reactive
({});
const
visible
=
ref
(
false
);
let
{
modelValue
,
info
}
=
toRefs
(
props
);
// 弹窗是否要打开监控
watch
(
modelValue
,
async
(
val
)
=>
{
visible
.
value
=
val
;
});
console
.
log
(
'
info
'
,
info
)
const
handleClose
=
()
=>
{
const
cloneDialog
=
()
=>
{
visible
.
value
=
false
;
emit
(
'
update:modelValue
'
,
false
);
};
return
{
...
toRefs
(
state
),
visible
,
handleClose
cloneDialog
};
}
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录