|
@@ -79,18 +79,18 @@
|
|
|
<el-table-column label="用户过往看课记录" align="center" width="200px">
|
|
|
<template slot-scope="scope">
|
|
|
<div style="display: flex; gap: 4px; justify-content: center;">
|
|
|
- <span
|
|
|
- v-for="(log, index) in scope.row.logs"
|
|
|
+ <span
|
|
|
+ v-for="(log, index) in scope.row.logs"
|
|
|
:key="index"
|
|
|
:style="{
|
|
|
display: 'inline-block',
|
|
|
width: '16px',
|
|
|
height: '16px',
|
|
|
borderRadius: '2px',
|
|
|
- backgroundColor:
|
|
|
- log === 2 ? '#67C23A' :
|
|
|
- log === 3 ? '#f55a4f' :
|
|
|
- log === 4 ? '#FFD700' :
|
|
|
+ backgroundColor:
|
|
|
+ log === 2 ? '#67C23A' :
|
|
|
+ log === 3 ? '#f55a4f' :
|
|
|
+ log === 4 ? '#FFD700' :
|
|
|
'#909399'
|
|
|
}"
|
|
|
></span>
|
|
@@ -102,7 +102,7 @@
|
|
|
{{ formatTime(scope.row.lastWatchTime) }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
-
|
|
|
+
|
|
|
<el-table-column label="sopId" align="center" prop="sopId" />
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" />
|
|
|
<el-table-column label="修改时间" align="center" prop="updateTime" />
|
|
@@ -220,7 +220,7 @@ export default {
|
|
|
} else {
|
|
|
backgroundColor = '#ffffff'; // 白色
|
|
|
}
|
|
|
- return {
|
|
|
+ return {
|
|
|
'background-color': backgroundColor,
|
|
|
'padding': '5px 10px',
|
|
|
'border-radius': '4px'
|
|
@@ -228,17 +228,17 @@ export default {
|
|
|
},
|
|
|
formatTime(timeStr) {
|
|
|
if (!timeStr && timeStr !== 0) return '';
|
|
|
-
|
|
|
+
|
|
|
// 处理数字和字符串输入
|
|
|
const str = String(timeStr).padStart(4, '0');
|
|
|
-
|
|
|
+
|
|
|
// 提取有效部分
|
|
|
const hours = str.substring(0, 2);
|
|
|
const minutes = str.substring(2, 4);
|
|
|
-
|
|
|
+
|
|
|
// 简单验证
|
|
|
if (hours > 23 || minutes > 59) return '无效时间';
|
|
|
-
|
|
|
+
|
|
|
return `${hours}:${minutes}`;
|
|
|
},
|
|
|
/** 查询企微任务看板列表 */
|