|
@@ -25,6 +25,11 @@
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
<el-table-column label="主题" align="center" prop="title" :show-overflow-tooltip="true"/>
|
|
<el-table-column label="主题" align="center" prop="title" :show-overflow-tooltip="true"/>
|
|
<el-table-column label="文件名" align="center" prop="fileName" :show-overflow-tooltip="true"/>
|
|
<el-table-column label="文件名" align="center" prop="fileName" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column label="累计学习时长" align="center" prop="learnTime" :show-overflow-tooltip="true">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <span>{{ scope.row.learnTime }}</span> min
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
<el-table-column label="操作" align="center" fixed="right" width="240" class-name="small-padding fixed-width">
|
|
<el-table-column label="操作" align="center" fixed="right" width="240" class-name="small-padding fixed-width">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
@@ -32,14 +37,12 @@
|
|
type="text"
|
|
type="text"
|
|
@click="handleStudy(scope.row)"
|
|
@click="handleStudy(scope.row)"
|
|
icon="el-icon-video-play"
|
|
icon="el-icon-video-play"
|
|
- v-hasPermi="['elearn:resource:edit']"
|
|
|
|
>开始学习</el-button>
|
|
>开始学习</el-button>
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="text"
|
|
type="text"
|
|
@click="handleHistory(scope.row)"
|
|
@click="handleHistory(scope.row)"
|
|
icon="el-icon-document"
|
|
icon="el-icon-document"
|
|
- v-hasPermi="['elearn:resource:remove']"
|
|
|
|
>学习记录</el-button>
|
|
>学习记录</el-button>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -298,7 +301,7 @@
|
|
handleHistory(row) {
|
|
handleHistory(row) {
|
|
this.history.title = row.fileName + " 学习记录";
|
|
this.history.title = row.fileName + " 学习记录";
|
|
this.history.open = true;
|
|
this.history.open = true;
|
|
- listLearn({"resourceId": row.resourceId}).then(response => {
|
|
|
|
|
|
+ listLearn({"resourceId": row.id}).then(response => {
|
|
this.historyList = response.data;
|
|
this.historyList = response.data;
|
|
this.historyLoading = false;
|
|
this.historyLoading = false;
|
|
});
|
|
});
|