解决构建报错问题

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>
@@ -41,7 +41,7 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item label="宿舍号" prop="roomNo">
<el-form-item label="宿舍<EFBFBD><EFBFBD>? prop="roomNo">
<el-input
v-model="state.queryForm.roomNo"
placeholder="请输入宿舍号"
@@ -51,7 +51,7 @@
<el-form-item label="奖项名称" prop="ruleName">
<el-input
v-model="state.queryForm.ruleName"
placeholder="请输入奖项名称"
placeholder="请输入奖项名<EFBFBD><EFBFBD>?
clearable
style="width: 200px" />
</el-form-item>
@@ -98,7 +98,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>
@@ -213,7 +213,7 @@
drag>
<el-icon class="el-icon--upload"><upload-filled /></el-icon>
<div class="el-upload__text">
将文件拖到此处<em>点击上传</em>
将文件拖到此处<EFBFBD><EFBFBD>?em>点击上传</em>
</div>
<template #tip>
<div class="el-upload__tip">
@@ -223,8 +223,8 @@
</el-upload>
<template #footer>
<span class="dialog-footer">
<el-button @click="importDialogVisible = false"> </el-button>
<el-button type="primary" @click="handleImportSubmit" :disabled="!importFile || importLoading"> </el-button>
<el-button @click="importDialogVisible = false"><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?/el-button>
<el-button type="primary" @click="handleImportSubmit" :disabled="!importFile || importLoading"><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?/el-button>
</span>
</template>
</el-dialog>
@@ -243,7 +243,7 @@ import TableColumnControl from '/@/components/TableColumnControl/index.vue'
import { UploadFilled, List, Calendar, Clock, House, Trophy, EditPen, Setting, Menu, Search, Document } from '@element-plus/icons-vue'
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
import FormDialog from './form.vue'
import '/@/styles/modern-page.scss'
// 定义变量内容
const route = useRoute()
@@ -258,11 +258,11 @@ const importDialogVisible = ref(false)
const importFile = ref<File | null>(null)
const importLoading = ref(false)
// 表格列配
// 表格列配<EFBFBD><EFBFBD>?
const tableColumns = [
{ prop: 'schoolYear', label: '学年', icon: Calendar },
{ prop: 'schoolTerm', label: '学期', icon: Clock },
{ prop: 'roomNo', label: '宿舍号', icon: House },
{ prop: 'roomNo', label: '宿舍<EFBFBD><EFBFBD>?, icon: House },
{ prop: 'ruleName', label: '奖项名称', icon: Trophy, minWidth: 150 },
{ prop: 'remarks', label: '备注', icon: EditPen, minWidth: 200 }
]
@@ -295,7 +295,7 @@ const state: BasicTableProps = reactive<BasicTableProps>({
item: 'records',
totalCount: 'total'
},
createdIsNeed: true // 页面加载时自动获取数
createdIsNeed: true // 页面加载时自动获取数<EFBFBD><EFBFBD>?
})
// table hook
@@ -306,7 +306,7 @@ const {
tableStyle: _tableStyle
} = useTable(state)
// 格式化学
// 格式化学<EFBFBD><EFBFBD>?
const formatSchoolTerm = (value: string | number) => {
if (value === null || value === undefined || value === '') {
return '-'
@@ -336,7 +336,7 @@ const handleImport = () => {
const handleDownloadTemplate = async () => {
try {
const fileName = '文明宿舍导入模板.xlsx'
// 使用动态导入获取文件URL从 views/stuwork/rewarddorm assets/file 的相对路
// 使用动态导入获取文件URL从 views/stuwork/rewarddorm <EFBFBD><EFBFBD>?assets/file 的相对路<EFBFBD><EFBFBD>?
const fileUrl = new URL(`../../../assets/file/${fileName}`, import.meta.url).href
const response = await fetch(fileUrl)
if (!response.ok) {
@@ -353,7 +353,7 @@ const handleDownloadTemplate = async () => {
document.body.removeChild(link)
useMessage().success('模板下载成功')
} catch (error) {
useMessage().error('模板下载失败请检查模板文件是否存在')
useMessage().error('模板下载失败请检查模板文件是否存<EFBFBD><EFBFBD>?)
}
}
@@ -435,10 +435,14 @@ const getSchoolTermDict = async () => {
}
}
// 初始
// 初始<EFBFBD><EFBFBD>?
onMounted(() => {
getSchoolYearList()
getSchoolTermDict()
})
</script>
<style scoped lang="scss">
@import '/@/assets/styles/modern-page.scss';
</style>