解决构建报错问题

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>
@@ -108,7 +108,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>
@@ -163,14 +163,14 @@
</el-tag>
<span v-else>-</span>
</template>
<!-- 个人奖项列特殊模 -->
<!-- 个人奖项列特殊模<EFBFBD><EFBFBD>?-->
<template v-else-if="col.prop === 'ruleName'" #default="scope">
<el-tag v-if="scope.row.ruleName && Array.isArray(scope.row.ruleName) && scope.row.ruleName.length > 0" size="small" type="warning" effect="light">
{{ scope.row.ruleName.join('') }}
{{ scope.row.ruleName.join('<EFBFBD><EFBFBD>?) }}
</el-tag>
<span v-else>-</span>
</template>
<!-- 保存时间列特殊模 -->
<!-- 保存时间列特殊模<EFBFBD><EFBFBD>?-->
<template v-else-if="col.prop === 'upDateTime'" #default="scope">
<span>{{ parseTime(scope.row.upDateTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
</template>
@@ -195,7 +195,7 @@ import { parseTime } from "/@/utils/formatTime";
import TableColumnControl from '/@/components/TableColumnControl/index.vue'
import { List, OfficeBuilding, Grid, CreditCard, Avatar, DataAnalysis, Warning, Trophy, Clock, Menu, Search, Document } from '@element-plus/icons-vue'
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
import '/@/styles/modern-page.scss'
// 定义变量内容
const route = useRoute()
@@ -209,20 +209,20 @@ const schoolTermList = ref<any[]>([])
const deptList = ref<any[]>([])
const classList = ref<any[]>([])
// 表格列配
// 表格列配<EFBFBD><EFBFBD>?
const tableColumns = [
{ prop: 'departName', label: '学院' },
{ prop: 'classNo', label: '班级' },
{ prop: 'stuNo', label: '学号' },
{ prop: 'realName', label: '姓名' },
{ prop: 'averageConduct', label: '操行平均分' },
{ prop: 'averageScore', label: '总评成绩平均分' },
{ prop: 'averageConduct', label: '操行平均<EFBFBD><EFBFBD>? },
{ prop: 'averageScore', label: '总评成绩平均<EFBFBD><EFBFBD>? },
{ prop: 'violation', label: '违规情况', minWidth: 150 },
{ prop: 'ruleName', label: '个人奖项', minWidth: 200 },
{ prop: 'upDateTime', label: '保存时间', width: 180 }
]
// 列配置映射(用于图标
// 列配置映射(用于图标<EFBFBD><EFBFBD>?
const columnConfigMap: Record<string, { icon: any }> = {
departName: { icon: OfficeBuilding },
classNo: { icon: Grid },
@@ -258,7 +258,7 @@ const tableStyle = {
headerCellStyle: { background: '#f5f7fa', color: '#606266', fontWeight: 'bold' }
}
// 格式化学
// 格式化学<EFBFBD><EFBFBD>?
const formatSchoolTerm = (value: string | number) => {
if (value === null || value === undefined || value === '') {
return '-'
@@ -311,7 +311,7 @@ const handleExport = async () => {
const link = document.createElement('a')
link.href = url
// 设置文件
// 设置文件<EFBFBD><EFBFBD>?
const fileName = `学生评优评先_${new Date().getTime()}.xlsx`
link.setAttribute('download', fileName)
@@ -390,7 +390,7 @@ const getClassListData = async () => {
}
}
// 初始
// 初始<EFBFBD><EFBFBD>?
onMounted(() => {
getSchoolYearList()
getSchoolTermDict()
@@ -406,5 +406,6 @@ onMounted(() => {
</script>
<style scoped lang="scss">
@import '/@/assets/styles/modern-page.scss';
</style>