Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
roncoo
roncoo-education-admin
提交
a012bb9a
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 搜索 >>
提交
a012bb9a
编写于
4月 27, 2023
作者:
F
fengyw
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加用户数据功能
上级
cfcdf969
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
48 addition
and
39 deletion
+48
-39
src/views/course/list/record/index.vue
src/views/course/list/record/index.vue
+48
-39
未找到文件。
src/views/course/list/record/index.vue
浏览文件 @
a012bb9a
<
template
>
<div
class=
"app-container"
>
<div
class=
"page_head"
>
<div
class=
"search_bar clearfix"
>
<el-form
:model=
"seekForm"
inline
label-width=
"80px"
>
<el-form-item>
<el-button
@
click=
"seek()"
type=
"primary"
>
查询
</el-button>
<el-button
@
click=
"resetSeek()"
>
重置
</el-button>
</el-form-item>
</el-form>
</div>
</div>
<el-table
v-loading=
"tableData.loading"
:data=
"tableData.list"
border
>
<el-table-column
align=
"center"
label=
"序号"
type=
"index"
width=
"60"
/>
<el-table-column
label=
"手机号码"
prop=
"mobile"
min-width=
"20"
/>
<el-table-column
label=
"用户昵称"
prop=
"nickname"
min-width=
"20"
/>
<el-table-column
label=
"学习进度"
prop=
"courseProgress"
>
<template
#default
="
scope
"
>
<el-progress
:percentage=
"scope.row.courseProgress"
:stroke-width=
"25"
:text-inside=
"true"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"开始学习时间"
prop=
"gmtCreate"
min-width=
"30"
/>
<el-table-column
width=
"100"
label=
"操作"
>
<
template
#default=
"scope"
>
<el-button
plain
type=
"primary"
@
click=
"studyRecord(scope.row)"
>
明细
</el-button>
</
template
>
</el-table-column>
</el-table>
<el-pagination
:current-page=
"page.pageCurrent"
:layout=
"page.layout"
:page-size=
"page.pageSize"
:page-sizes=
"[20, 50, 100, 200]"
:total=
"page.totalCount"
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
/>
<study
v-model=
"study.visible"
:info=
"study.info"
@
close=
"studyCallback"
/>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"课程记录"
name=
"course"
>
<div
class=
"page_head"
>
<div
class=
"search_bar clearfix"
>
<el-form
:model=
"seekForm"
inline
label-width=
"80px"
>
<el-form-item>
<el-button
@
click=
"seek()"
type=
"primary"
>
查询
</el-button>
<el-button
@
click=
"resetSeek()"
>
重置
</el-button>
</el-form-item>
</el-form>
</div>
</div>
<el-table
v-loading=
"tableData.loading"
:data=
"tableData.list"
border
>
<el-table-column
align=
"center"
label=
"序号"
type=
"index"
width=
"60"
/>
<el-table-column
label=
"手机号码"
prop=
"mobile"
min-width=
"20"
/>
<el-table-column
label=
"用户昵称"
prop=
"nickname"
min-width=
"20"
/>
<el-table-column
label=
"学习进度"
prop=
"courseProgress"
>
<template
#default
="
scope
"
>
<el-progress
:percentage=
"scope.row.courseProgress"
:stroke-width=
"25"
:text-inside=
"true"
/>
</
template
>
</el-table-column>
<el-table-column
label=
"开始学习时间"
prop=
"gmtCreate"
min-width=
"30"
/>
<el-table-column
width=
"100"
label=
"操作"
>
<
template
#default=
"scope"
>
<el-button
plain
type=
"primary"
@
click=
"studyRecord(scope.row)"
>
明细
</el-button>
</
template
>
</el-table-column>
</el-table>
<el-pagination
:current-page=
"page.pageCurrent"
:layout=
"page.layout"
:page-size=
"page.pageSize"
:page-sizes=
"[20, 50, 100, 200]"
:total=
"page.totalCount"
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
/>
<study
v-model=
"study.visible"
:info=
"study.info"
@
close=
"studyCallback"
/>
</el-tab-pane>
<el-tab-pane
label=
"课程评论"
name=
"comment"
>
ttt
</el-tab-pane>
<el-tab-pane
label=
"课程收藏"
name=
"collect"
>
sss
</el-tab-pane>
</el-tabs>
</div>
</template>
<
script
>
...
...
@@ -52,14 +62,9 @@ export default defineComponent({
})
const
state
=
reactive
({
...
UseTable
(
apis
,
{
courseId
:
route
.
query
.
courseId
}),
loginStatusEnums
:
{}
activeName
:
'
course
'
});
const
store
=
useStore
();
onMounted
(()
=>
{
store
.
dispatch
(
'
GetOpts
'
,
{
enumName
:
'
LoginStatusEnum
'
,
type
:
'
obj
'
}).
then
((
res
)
=>
{
state
.
loginStatusEnums
=
res
;
});
});
let
study
=
reactive
({
visible
:
false
,
...
...
@@ -74,12 +79,16 @@ export default defineComponent({
const
studyCallback
=
()
=>
{
study
.
visible
=
false
}
const
handleClick
=
(
target
,
action
)
=>
{
console
.
log
(
target
.
props
.
name
)
}
return
{
...
toRefs
(
state
),
study
,
studyRecord
,
studyCallback
studyCallback
,
handleClick
};
}
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录