解决构建报错问题

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>
@@ -74,14 +74,14 @@
<el-form-item label="姓名" prop="realName">
<el-input
v-model="state.queryForm.realName"
placeholder="请输入姓名"
placeholder="请输入姓<EFBFBD><EFBFBD>?
clearable
style="width: 200px" />
</el-form-item>
<el-form-item label="学号" prop="stuNo">
<el-input
v-model="state.queryForm.stuNo"
placeholder="请输入学号"
placeholder="请输入学<EFBFBD><EFBFBD>?
clearable
style="width: 200px" />
</el-form-item>
@@ -121,7 +121,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>
@@ -162,23 +162,23 @@
<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 === 'schoolTerm'" #default="scope">
<el-tag size="small" type="primary" effect="plain">
{{ formatSchoolTerm(scope.row.schoolTerm) }}
</el-tag>
</template>
<!-- 需关爱类型列特殊模 -->
<!-- 需关爱类型列特殊模<EFBFBD><EFBFBD>?-->
<template v-else-if="col.prop === 'careType'" #default="scope">
<el-tag size="small" type="danger" effect="plain">
{{ formatCareType(scope.row.careType) }}
</el-tag>
</template>
<!-- 记录时间列特殊模 -->
<!-- 记录时间列特殊模<EFBFBD><EFBFBD>?-->
<template v-else-if="col.prop === 'recordDate'" #default="scope">
<span>{{ scope.row.recordDate || '-' }}</span>
</template>
<!-- 干预结果列特殊模 -->
<!-- 干预结果列特殊模<EFBFBD><EFBFBD>?-->
<template v-else-if="col.prop === 'result'" #default="scope">
<span>{{ scope.row.result || '-' }}</span>
</template>
@@ -248,7 +248,7 @@ import FormDialog from './form.vue'
import ResultDialog from './result.vue'
import { List, Calendar, Clock, OfficeBuilding, Grid, Avatar, UserFilled, Phone, Heart, Warning, CircleCheck, Setting, Menu, Search, Document } from '@element-plus/icons-vue'
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
import '/@/styles/modern-page.scss'
// 定义变量内容
const route = useRoute()
@@ -263,22 +263,22 @@ const deptList = ref<any[]>([])
const classList = ref<any[]>([])
const careTypeList = ref<any[]>([])
// 表格列配
// 表格列配<EFBFBD><EFBFBD>?
const tableColumns = [
{ prop: 'schoolYear', label: '学年' },
{ prop: 'schoolTerm', label: '学期' },
{ prop: 'deptName', label: '学院' },
{ prop: 'classNo', label: '班级' },
{ prop: 'realName', label: '姓名' },
{ prop: 'teacherRealName', label: '班主任姓名' },
{ prop: 'teacherTel', label: '班主任电话' },
{ prop: 'teacherRealName', label: '班主任姓<EFBFBD><EFBFBD>? },
{ prop: 'teacherTel', label: '班主任电<EFBFBD><EFBFBD>? },
{ prop: 'careType', label: '需关爱类型' },
{ prop: 'present', label: '危机表现', minWidth: 150 },
{ prop: 'recordDate', label: '记录时间', width: 120 },
{ prop: 'result', label: '干预结果', minWidth: 150 }
]
// 列配置映射(用于图标
// 列配置映射(用于图标<EFBFBD><EFBFBD>?
const columnConfigMap: Record<string, { icon: any }> = {
schoolYear: { icon: Calendar },
schoolTerm: { icon: Clock },
@@ -328,7 +328,7 @@ const {
tableStyle
} = useTable(state)
// 格式化学
// 格式化学<EFBFBD><EFBFBD>?
const formatSchoolTerm = (value: string | number) => {
if (value === null || value === undefined || value === '') {
return '-'
@@ -457,7 +457,7 @@ const getCareTypeDict = async () => {
}
}
// 初始
// 初始<EFBFBD><EFBFBD>?
onMounted(() => {
getSchoolYearList()
getSchoolTermDict()
@@ -472,5 +472,6 @@ onMounted(() => {
</script>
<style scoped lang="scss">
@import '/@/assets/styles/modern-page.scss';
</style>