解决构建报错问题

This commit is contained in:
2026-01-29 16:38:09 +08:00
parent c1d9f0467a
commit 679b21ef25
36 changed files with 576 additions and 521 deletions

View File

@@ -7,7 +7,7 @@
<div class="card-header">
<span class="card-title">
<el-icon class="title-icon"><Search /></el-icon>
筛选条
筛选条<EFBFBD><EFBFBD>?
</span>
</div>
</template>
@@ -34,10 +34,10 @@
clearable
style="width: 200px" />
</el-form-item>
<el-form-item label="所属类别" prop="type">
<el-form-item label="所属类<EFBFBD><EFBFBD>? prop="type">
<el-select
v-model="state.queryForm.type"
placeholder="请选择所属类别"
placeholder="请选择所属类<EFBFBD><EFBFBD>?
clearable
style="width: 200px">
<el-option
@@ -84,7 +84,7 @@
@order-change="handleColumnOrderChange"
>
<template #trigger>
<el-tooltip class="item" effect="dark" content="列设置" placement="top">
<el-tooltip class="item" effect="dark" content="列设<EFBFBD><EFBFBD>? placement="top">
<el-button circle style="margin-left: 0;">
<el-icon><Menu /></el-icon>
</el-button>
@@ -125,14 +125,14 @@
<el-icon><component :is="columnConfigMap[col.prop]?.icon || Calendar" /></el-icon>
<span style="margin-left: 4px">{{ col.label }}</span>
</template>
<!-- 人数列特殊模 -->
<!-- 人数列特殊模<EFBFBD><EFBFBD>?-->
<template v-if="col.prop === 'num'" #default="scope">
<el-tag v-if="scope.row.num !== undefined && scope.row.num !== null" size="small" type="success" effect="plain">
{{ scope.row.num }}
</el-tag>
<span v-else>-</span>
</template>
<!-- 成立时间列特殊模 -->
<!-- 成立时间列特殊模<EFBFBD><EFBFBD>?-->
<template v-else-if="col.prop === 'openTime'" #default="scope">
<span>{{ parseTime(scope.row.openTime, '{y}-{m}-{d}') }}</span>
</template>
@@ -210,7 +210,7 @@ import {
Phone, Collection, Document, Files, Setting, Menu, Search
} from '@element-plus/icons-vue'
import { useTableColumnControl } from '/@/hooks/tableColumn'
import '/@/styles/modern-page.scss'
// 定义变量内容
const route = useRoute()
@@ -222,21 +222,21 @@ const showSearch = ref(true)
const deptList = ref<any[]>([])
const typeList = ref<any[]>([])
// 表格列配
// 表格列配<EFBFBD><EFBFBD>?
const tableColumns = [
{ prop: 'associationName', label: '社团名称', minWidth: 200 },
{ prop: 'deptName', label: '学院', minWidth: 150 },
{ prop: 'teacherRealName', label: '指导老师姓名', width: 120 },
{ prop: 'maintainer', label: '负责人', width: 100 },
{ prop: 'maintainer', label: '负责<EFBFBD><EFBFBD>?, width: 100 },
{ prop: 'num', label: '人数', width: 80 },
{ prop: 'openTime', label: '成立时间', width: 120 },
{ prop: 'tel', label: '联系电话', width: 120 },
{ prop: 'type', label: '所属类别', width: 120 },
{ prop: 'type', label: '所属类<EFBFBD><EFBFBD>?, width: 120 },
{ prop: 'applyNote', label: '成立申请', minWidth: 200 },
{ prop: 'ruleNote', label: '社团章程', minWidth: 200 }
]
// 列配置映射(用于图标
// 列配置映射(用于图标<EFBFBD><EFBFBD>?
const columnConfigMap: Record<string, { icon: any }> = {
associationName: { icon: Trophy },
deptName: { icon: OfficeBuilding },
@@ -277,7 +277,7 @@ const state: BasicTableProps = reactive<BasicTableProps>({
item: 'records',
totalCount: 'total'
},
createdIsNeed: true // 页面加载时自动获取数
createdIsNeed: true // 页面加载时自动获取数<EFBFBD><EFBFBD>?
})
// table hook
@@ -288,7 +288,7 @@ const {
tableStyle: _tableStyle
} = useTable(state)
// 格式化类
// 格式化类<EFBFBD><EFBFBD>?
const formatType = (value: string | number) => {
if (value === null || value === undefined || value === '') {
return '-'
@@ -362,7 +362,7 @@ const getTypeDict = async () => {
}
}
// 初始
// 初始<EFBFBD><EFBFBD>?
onMounted(() => {
getDeptListData()
getTypeDict()
@@ -374,5 +374,6 @@ onMounted(() => {
</script>
<style scoped lang="scss">
@import '/@/assets/styles/modern-page.scss';
</style>