sc
This commit is contained in:
@@ -49,7 +49,7 @@ export const useUserStore = defineStore('admin-user', {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
let userInfo = cache.local.get(CACHE_KEY.USER)
|
let userInfo = cache.local.get(CACHE_KEY.USER)
|
||||||
if (!userInfo) {
|
if (!userInfo || !userInfo?.menus || userInfo.menus.length == 0) {
|
||||||
userInfo = await getInfo({})
|
userInfo = await getInfo({})
|
||||||
}
|
}
|
||||||
this.permissions = userInfo.permissions
|
this.permissions = userInfo.permissions
|
||||||
|
|||||||
@@ -1,18 +1,44 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog width="800px" :title="title" v-model="show" append-to-body>
|
<el-dialog width="800px" :title="title" v-model="show" append-to-body>
|
||||||
|
<el-divider direction="horizontal" content-position="left" style="margin-top: 10px">
|
||||||
|
场地班型
|
||||||
|
</el-divider>
|
||||||
|
<el-table :data="tableList" border stripe size="small">
|
||||||
|
<el-table-column type="index" width="50" />
|
||||||
|
<el-table-column prop="typeName" label="班型名称" />
|
||||||
|
<el-table-column prop="licenseType" label="驾照类型" />
|
||||||
|
<el-table-column label="班型备注">
|
||||||
|
<template #default="{ row }">
|
||||||
|
<el-popover placement="top" width="500px" trigger="click">
|
||||||
|
<template #reference>
|
||||||
|
<el-button type="primary" style="padding: 0" text>点击查看</el-button>
|
||||||
|
</template>
|
||||||
|
<div v-dompurify-html="row.remark"></div>
|
||||||
|
</el-popover>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<el-divider direction="horizontal" content-position="left">场地详细信息</el-divider>
|
||||||
<div v-dompurify-html="detail" class="mb-20px"></div>
|
<div v-dompurify-html="detail" class="mb-20px"></div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="DialogSchoolInfo">
|
<script setup name="DialogSchoolInfo">
|
||||||
|
import { getClassTypeList } from '@/api/school/class'
|
||||||
const title = ref('')
|
const title = ref('')
|
||||||
const show = ref(false)
|
const show = ref(false)
|
||||||
const detail = ref('')
|
const detail = ref('')
|
||||||
|
|
||||||
|
const tableList = ref([])
|
||||||
function open(info) {
|
function open(info) {
|
||||||
title.value = `【${info.schoolName}】详细信息`
|
title.value = `【${info.schoolName}】详细信息`
|
||||||
show.value = true
|
show.value = true
|
||||||
detail.value = info.introduce || '该驾校暂未配置详细信息'
|
detail.value = info.introduce || '该驾校暂未配置详细信息'
|
||||||
|
|
||||||
|
getClassTypeList({ placeId: info.placeId, status: 0 }).then((data) => {
|
||||||
|
tableList.value = data
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
defineExpose({
|
defineExpose({
|
||||||
|
|||||||
Reference in New Issue
Block a user