解决构建报错问题

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,8 +7,7 @@
<div class="card-header">
<span class="card-title">
<el-icon class="title-icon"><Search /></el-icon>
筛选条件
</span>
筛选条件 </span>
</div>
</template>
<el-form :model="searchForm" ref="searchFormRef" :inline="true" @keyup.enter="handleSearch" class="search-form">
@@ -157,20 +156,20 @@
<el-icon><component :is="columnConfigMap[col.prop || '']?.icon || Calendar" /></el-icon>
<span style="margin-left: 4px">{{ col.label }}</span>
</template>
<!-- 学期列特殊模板 -->
<!-- 学期列特殊模板-->
<template v-if="col.prop === 'schoolTerm'" #default="scope">
<el-tag size="small" type="primary" effect="plain">
{{ formatSchoolTerm(scope.row.schoolTerm) }}
</el-tag>
</template>
<!-- 评分列特殊模板 -->
<!-- 评分列特殊模板-->
<template v-else-if="col.prop === 'score'" #default="scope">
<el-tag v-if="scope.row.score !== undefined && scope.row.score !== null" size="small" :type="scope.row.score >= 80 ? 'success' : scope.row.score >= 60 ? 'warning' : 'danger'" effect="plain">
{{ scope.row.score }}
</el-tag>
<span v-else>-</span>
</template>
<!-- 月份列特殊模板 -->
<!-- 月份列特殊模板-->
<template v-else-if="col.prop === 'month'" #default="scope">
<el-tag v-if="scope.row.month" size="small" type="info" effect="plain">
{{ scope.row.month }}
@@ -206,7 +205,7 @@
</el-card>
</div>
<!-- 导入对话框 -->
<!-- 导入对话框-->
<upload-excel
ref="uploadExcelRef"
:title="'导入教室月卫生'"
@@ -214,7 +213,7 @@
:temp-url="templateUrl"
@refreshDataList="getDataList" />
<!-- 考核对话框 -->
<!-- 考核对话框-->
<el-dialog
v-model="checkDialogVisible"
title="教室卫生考核"
@@ -259,8 +258,8 @@
</el-form>
<template #footer>
<span class="dialog-footer">
<el-button @click="checkDialogVisible = false"> </el-button>
<el-button type="primary" @click="confirmCheck"> </el-button>
<el-button @click="checkDialogVisible = false">取消</el-button>
<el-button type="primary" @click="confirmCheck"></el-button>
</span>
</template>
</el-dialog>
@@ -284,7 +283,7 @@ import type { TableInstance } from 'element-plus'
const UploadExcel = defineAsyncComponent(() => import('/@/components/Upload/Excel.vue'));
import { List, Calendar, Clock, OfficeBuilding, Grid, UserFilled, Location, DataAnalysis, Document, Setting, Menu, Search } from '@element-plus/icons-vue'
import { useTableColumnControl } from '/@/hooks/tableColumn'
import '/@/styles/modern-page.scss'
// 定义变量内容
const route = useRoute()
@@ -311,9 +310,9 @@ const tableColumns = [
{ prop: 'classNo', label: '班号' },
{ prop: 'classMasterName', label: '班主任' },
{ prop: 'buildingNo', label: '教学楼号' },
{ prop: 'position', label: '教室' },
{ prop: 'position', label: '教室位置' },
{ prop: 'score', label: '评分' },
{ prop: 'note', label: '检查记录' },
{ prop: 'note', label: '检查记录' },
{ prop: 'month', label: '月份' },
{ prop: '操作', label: '操作', alwaysShow: true, fixed: 'right' as const }
]
@@ -367,7 +366,7 @@ const columnConfigMap: Record<string, any> = {
},
position: {
prop: 'position',
label: '教室',
label: '教室位置',
icon: Location,
template: null
},
@@ -391,8 +390,8 @@ const columnConfigMap: Record<string, any> = {
}
}
// 初始化函数会在 onMounted 中调用,确保 DOM 已准备好
// 注意visibleColumnscolumnOrder 需要在组件挂载前初始化,以便传递给 TableColumnControl
// 初始化函数会在onMounted中调用确保 DOM 已准备好
// 注意visibleColumnscolumnOrder需要在组件挂载前初始化以便传递给 TableColumnControl
// 考核表单
const checkForm = reactive({
@@ -585,3 +584,7 @@ onMounted(() => {
getSchoolTermDict()
})
</script>
<style scoped lang="scss">
@import '/@/assets/styles/modern-page.scss';
</style>