|
|
@ -11,6 +11,7 @@ const route = useRoute()
|
|
|
|
const dialogFormVisible = ref(false)
|
|
|
|
const dialogFormVisible = ref(false)
|
|
|
|
import { useUserStore } from '@/pinia/modules/user'
|
|
|
|
import { useUserStore } from '@/pinia/modules/user'
|
|
|
|
const userStore = useUserStore()
|
|
|
|
const userStore = useUserStore()
|
|
|
|
|
|
|
|
import {parseTime} from '@/utils'
|
|
|
|
// 变量
|
|
|
|
// 变量
|
|
|
|
const path = ref(import.meta.env.VITE_BASE_API)
|
|
|
|
const path = ref(import.meta.env.VITE_BASE_API)
|
|
|
|
const queryParams = ref({
|
|
|
|
const queryParams = ref({
|
|
|
@ -198,11 +199,15 @@ function handleSizeChange(val) {
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column align="left" label="是否启用" min-width="150" prop="status" >
|
|
|
|
<el-table-column align="left" label="是否启用" min-width="150" prop="status" >
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
{{scope.row.status === 1?'启用':'禁用'}}
|
|
|
|
{{scope.row.status === '1'?'启用':'禁用'}}
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column align="left" label="说明" min-width="150" prop="lbtIntroduction" />
|
|
|
|
<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">
|
|
|
|
<el-table-column align="left" label="操作" min-width="150" prop="status">
|
|
|
|
<template #default="scope">
|
|
|
|
<template #default="scope">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
@ -249,7 +254,7 @@ function handleSizeChange(val) {
|
|
|
|
:on-success="handleAvatarSuccess"
|
|
|
|
:on-success="handleAvatarSuccess"
|
|
|
|
:before-upload="beforeAvatarUpload"
|
|
|
|
: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-icon v-else class="avatar-uploader-icon"><Plus /></el-icon>
|
|
|
|
</el-upload>
|
|
|
|
</el-upload>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
@ -291,11 +296,15 @@ function handleSizeChange(val) {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<style scoped>
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
|
.img-container{
|
|
|
|
|
|
|
|
width: 200px;
|
|
|
|
|
|
|
|
height: 150px;
|
|
|
|
|
|
|
|
}
|
|
|
|
.gva-btn-list{
|
|
|
|
.gva-btn-list{
|
|
|
|
justify-content: end;
|
|
|
|
justify-content: end;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.lbt-thumb{
|
|
|
|
.lbt-thumb{
|
|
|
|
width: 150px;
|
|
|
|
width: 100px;
|
|
|
|
height: 50px;
|
|
|
|
height: 50px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|