修復打包問題
This commit is contained in:
@@ -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="所属类<EFBFBD><EFBFBD>? prop="type">
|
||||
<el-form-item label="所属类别" prop="type">
|
||||
<el-select
|
||||
v-model="state.queryForm.type"
|
||||
placeholder="请选择所属类<EFBFBD><EFBFBD>?
|
||||
placeholder="请选择所属类别"
|
||||
clearable
|
||||
style="width: 200px">
|
||||
<el-option
|
||||
@@ -84,7 +84,7 @@
|
||||
@order-change="handleColumnOrderChange"
|
||||
>
|
||||
<template #trigger>
|
||||
<el-tooltip class="item" effect="dark" content="列设<EFBFBD><EFBFBD>? placement="top">
|
||||
<el-tooltip class="item" effect="dark" content="列设置" 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>
|
||||
@@ -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: '负责<EFBFBD><EFBFBD>?, width: 100 },
|
||||
{ prop: 'maintainer', label: '负责人', width: 100 },
|
||||
{ prop: 'num', label: '人数', width: 80 },
|
||||
{ prop: 'openTime', label: '成立时间', width: 120 },
|
||||
{ prop: 'tel', label: '联系电话', width: 120 },
|
||||
{ prop: 'type', label: '所属类<EFBFBD><EFBFBD>?, width: 120 },
|
||||
{ prop: 'type', label: '所属类别', 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 // 页面加载时自动获取数<EFBFBD><EFBFBD>?
|
||||
createdIsNeed: true // 页面加载时自动获取数据
|
||||
})
|
||||
|
||||
// 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()
|
||||
|
||||
Reference in New Issue
Block a user