mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-17 23:06:45 +08:00
[FIX]置顶修改、表格居中修改
This commit is contained in:
@@ -189,52 +189,52 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="课程时长" prop="courseDuration" min-width="110" align="center" sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
<span class="common-cell">{{ formatCourseDuration(scope.row) }}</span>
|
||||
<span class="common-cell common-cell-right">{{ formatCourseDuration(scope.row) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="学习人数" prop="studys" min-width="110" align="center" sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
<span class="common-cell">{{ scope.row.studys || '-' }}</span>
|
||||
<span class="common-cell common-cell-right">{{ scope.row.studys || '-' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="课程评分" prop="score" min-width="110" align="center" sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
<span class="common-cell">{{ formatScore(scope.row) }}</span>
|
||||
<span class="common-cell common-cell-right">{{ formatScore(scope.row) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="审核状态" prop="status" min-width="110" align="center" sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
<span class="common-cell" v-if="scope.row.status == 1">-</span>
|
||||
<span class="common-cell" v-if="scope.row.status == 2">审核中</span>
|
||||
<span :class="['common-cell', 'status--pass']" v-if="scope.row.status == 5">审核通过</span>
|
||||
<span :class="['common-cell', 'status--reject']" v-if="scope.row.status == 3">审核驳回</span>
|
||||
<span class="common-cell common-cell-right" v-if="scope.row.status == 1">-</span>
|
||||
<span class="common-cell common-cell-right" v-if="scope.row.status == 2">审核中</span>
|
||||
<span :class="['common-cell common-cell-right', 'status--pass']" v-if="scope.row.status == 5">审核通过</span>
|
||||
<span :class="['common-cell common-cell-right', 'status--reject']" v-if="scope.row.status == 3">审核驳回</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="发布状态" prop="published" min-width="110" align="center" sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
<span class="common-cell">{{ scope.row.published == true ? '已发布' : '未发布' }}</span>
|
||||
<span class="common-cell common-cell-right">{{ scope.row.published == true ? '已发布' : '未发布' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="启停用状态" prop="enabled" min-width="130" align="center" sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
<span class="common-cell">{{ scope.row.enabled == true ? '启用' : '停用' }}</span>
|
||||
<span class="common-cell common-cell-right">{{ scope.row.enabled == true ? '启用' : '停用' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="公开课" prop="openCourse" min-width="110" align="center" sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
<span class="common-cell">{{ scope.row.openCourse == 1 ? '是' : '否' }}</span>
|
||||
<span class="common-cell common-cell-right">{{ scope.row.openCourse == 1 ? '是' : '否' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="资源归属" prop="orgName" min-width="220" align="center" sortable="custom">
|
||||
<template slot-scope="scope">
|
||||
<el-tooltip :content="scope.row.orgFullName || scope.row.orgName" placement="top" effect="dark">
|
||||
<span class="common-cell">{{ scope.row.orgName }}</span>
|
||||
<span class="common-cell common-cell-right">{{ scope.row.orgName }}</span>
|
||||
</el-tooltip>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建人" prop="sysCreateBy" min-width="130" align="center" sortable="custom">
|
||||
<el-table-column label="创建人" prop="sysCreateBy" min-width="130" align="center" sortable="custom" show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<span class="common-cell">{{ scope.row.sysCreateBy }}</span>
|
||||
<span class="common-cell common-cell-right">{{ scope.row.sysCreateBy }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="创建来源" min-width="140" align="center">
|
||||
@@ -2097,6 +2097,9 @@ export default {
|
||||
font-size: 14px;
|
||||
color: #000000;
|
||||
}
|
||||
.common-cell-right {
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
.single-line-ellipsis {
|
||||
display: inline-block;
|
||||
|
||||
Reference in New Issue
Block a user