修改轮播图状态显示问题;课程分类leve字段不准确的bug
This commit is contained in:
@@ -11,6 +11,7 @@ const route = useRoute()
|
||||
const dialogFormVisible = ref(false)
|
||||
import { useUserStore } from '@/pinia/modules/user'
|
||||
const userStore = useUserStore()
|
||||
import {parseTime} from '@/utils'
|
||||
// 变量
|
||||
const path = ref(import.meta.env.VITE_BASE_API)
|
||||
const queryParams = ref({
|
||||
@@ -198,11 +199,15 @@ function handleSizeChange(val) {
|
||||
</el-table-column>
|
||||
<el-table-column align="left" label="是否启用" min-width="150" prop="status" >
|
||||
<template #default="scope">
|
||||
{{scope.row.status === 1?'启用':'禁用'}}
|
||||
{{scope.row.status === '1'?'启用':'禁用'}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="left" label="说明" min-width="150" prop="lbtIntroduction" />
|
||||
<el-table-column align="left" label="更新时间" min-width="150" prop="UpdatedAt" />
|
||||
<el-table-column align="left" label="更新时间" min-width="150" prop="UpdatedAt">
|
||||
<template #default="scope">
|
||||
{{parseTime(scope.row.UpdatedAt)}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="left" label="操作" min-width="150" prop="status">
|
||||
<template #default="scope">
|
||||
<el-button
|
||||
@@ -249,7 +254,7 @@ function handleSizeChange(val) {
|
||||
:on-success="handleAvatarSuccess"
|
||||
:before-upload="beforeAvatarUpload"
|
||||
>
|
||||
<img v-if="form.lbtUrl" :src="form.lbtUrl" class="avatar" />
|
||||
<img v-if="form.lbtUrl" :src="form.lbtUrl" class="img-container" />
|
||||
<el-icon v-else class="avatar-uploader-icon"><Plus /></el-icon>
|
||||
</el-upload>
|
||||
</el-form-item>
|
||||
@@ -291,11 +296,15 @@ function handleSizeChange(val) {
|
||||
</div>
|
||||
</template>
|
||||
<style scoped>
|
||||
.img-container{
|
||||
width: 200px;
|
||||
height: 150px;
|
||||
}
|
||||
.gva-btn-list{
|
||||
justify-content: end;
|
||||
}
|
||||
.lbt-thumb{
|
||||
width: 150px;
|
||||
width: 100px;
|
||||
height: 50px;
|
||||
}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user