解决构建报错问题
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>
|
||||
@@ -56,10 +56,10 @@
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="原班级" prop="oldClassCode">
|
||||
<el-form-item label="原班<EFBFBD><EFBFBD>? prop="oldClassCode">
|
||||
<el-select
|
||||
v-model="searchForm.oldClassCode"
|
||||
placeholder="请选择原班级"
|
||||
placeholder="请选择原班<EFBFBD><EFBFBD>?
|
||||
clearable
|
||||
filterable
|
||||
style="width: 200px">
|
||||
@@ -74,14 +74,14 @@
|
||||
<el-form-item label="学号" prop="stuNo">
|
||||
<el-input
|
||||
v-model="searchForm.stuNo"
|
||||
placeholder="请输入学号"
|
||||
placeholder="请输入学<EFBFBD><EFBFBD>?
|
||||
clearable
|
||||
style="width: 200px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="姓名" prop="realName">
|
||||
<el-input
|
||||
v-model="searchForm.realName"
|
||||
placeholder="请输入姓名"
|
||||
placeholder="请输入姓<EFBFBD><EFBFBD>?
|
||||
clearable
|
||||
style="width: 200px" />
|
||||
</el-form-item>
|
||||
@@ -126,7 +126,7 @@
|
||||
type="success"
|
||||
class="ml10"
|
||||
@click="handleExport">
|
||||
导 出
|
||||
<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?
|
||||
</el-button>
|
||||
<right-toolbar
|
||||
v-model:showSearch="showSearch"
|
||||
@@ -142,7 +142,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>
|
||||
@@ -183,23 +183,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 === 'turnoverDate'" #default="scope">
|
||||
<span>{{ scope.row.turnoverDate ? formatDate(scope.row.turnoverDate) : '-' }}</span>
|
||||
</template>
|
||||
<!-- 异动类型列特殊模板 -->
|
||||
<!-- 异动类型列特殊模<EFBFBD><EFBFBD>?-->
|
||||
<template v-else-if="col.prop === 'turnoverType'" #default="scope">
|
||||
<el-tag size="small" type="warning" effect="plain">
|
||||
{{ formatTurnoverType(scope.row.turnoverType) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
<!-- 转制类型列特殊模板 -->
|
||||
<!-- 转制类型列特殊模<EFBFBD><EFBFBD>?-->
|
||||
<template v-else-if="col.prop === 'turnYear'" #default="scope">
|
||||
<el-tag size="small" type="info" effect="plain">
|
||||
{{ formatTurnYear(scope.row.turnYear) }}
|
||||
@@ -260,7 +260,7 @@ import TableColumnControl from '/@/components/TableColumnControl/index.vue'
|
||||
import FormDialog from './form.vue'
|
||||
import { List, Calendar, Clock, OfficeBuilding, Grid, CreditCard, Avatar, Collection, Document, Setting, Menu, Search } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
|
||||
|
||||
// 定义变量内容
|
||||
const route = useRoute()
|
||||
@@ -275,13 +275,13 @@ const turnoverTypeList = ref<any[]>([])
|
||||
const turnYearList = ref<any[]>([])
|
||||
const formDialogRef = ref()
|
||||
|
||||
// 表格列配置
|
||||
// 表格列配<EFBFBD><EFBFBD>?
|
||||
const tableColumns = [
|
||||
{ prop: 'schoolYear', label: '学年' },
|
||||
{ prop: 'schoolTerm', label: '学期' },
|
||||
{ prop: 'deptName', label: '学院' },
|
||||
{ prop: 'oldClassNo', label: '原班级' },
|
||||
{ prop: 'newClassNo', label: '现班级' },
|
||||
{ prop: 'oldClassNo', label: '原班<EFBFBD><EFBFBD>? },
|
||||
{ prop: 'newClassNo', label: '现班<EFBFBD><EFBFBD>? },
|
||||
{ prop: 'stuNo', label: '学号' },
|
||||
{ prop: 'realName', label: '姓名' },
|
||||
{ prop: 'turnoverDate', label: '异动时间', width: 180 },
|
||||
@@ -290,7 +290,7 @@ const tableColumns = [
|
||||
{ prop: 'remarks', label: '异动原因', minWidth: 150 }
|
||||
]
|
||||
|
||||
// 列配置映射(用于图标)
|
||||
// 列配置映射(用于图标<EFBFBD><EFBFBD>?
|
||||
const columnConfigMap: Record<string, { icon: any }> = {
|
||||
schoolYear: { icon: Calendar },
|
||||
schoolTerm: { icon: Clock },
|
||||
@@ -344,7 +344,7 @@ const {
|
||||
tableStyle
|
||||
} = useTable(state)
|
||||
|
||||
// 格式化学期
|
||||
// 格式化学<EFBFBD><EFBFBD>?
|
||||
const formatSchoolTerm = (value: string | number) => {
|
||||
if (value === null || value === undefined || value === '') {
|
||||
return '-'
|
||||
@@ -353,7 +353,7 @@ const formatSchoolTerm = (value: string | number) => {
|
||||
return dictItem ? dictItem.label : value
|
||||
}
|
||||
|
||||
// 格式化日期
|
||||
// 格式化日<EFBFBD><EFBFBD>?
|
||||
const formatDate = (dateStr: string) => {
|
||||
if (!dateStr) return '-'
|
||||
// 如果包含时间部分,只显示日期部分
|
||||
@@ -363,14 +363,14 @@ const formatDate = (dateStr: string) => {
|
||||
return dateStr
|
||||
}
|
||||
|
||||
// 格式化异动类型
|
||||
// 格式化异动类<EFBFBD><EFBFBD>?
|
||||
const formatTurnoverType = (value: string) => {
|
||||
if (!value) return '-'
|
||||
const item = turnoverTypeList.value.find((item: any) => item.value === value)
|
||||
return item ? item.label : value
|
||||
}
|
||||
|
||||
// 格式化转制类型
|
||||
// 格式化转制类<EFBFBD><EFBFBD>?
|
||||
const formatTurnYear = (value: string) => {
|
||||
if (!value) return '-'
|
||||
const item = turnYearList.value.find((item: any) => item.value === value)
|
||||
@@ -403,7 +403,7 @@ const handleEdit = (row: any) => {
|
||||
// 删除
|
||||
const handleDelete = async (row: any) => {
|
||||
try {
|
||||
await useMessageBox().confirm('确定要删除这条记录吗?')
|
||||
await useMessageBox().confirm('确定要删除这条记录吗<EFBFBD><EFBFBD>?)
|
||||
await delObj([row.id])
|
||||
useMessage().success('删除成功')
|
||||
getDataList()
|
||||
@@ -515,7 +515,7 @@ const getTurnYearDict = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 初始化
|
||||
// 初始<EFBFBD><EFBFBD>?
|
||||
onMounted(() => {
|
||||
getSchoolYearList()
|
||||
getSchoolTermDict()
|
||||
@@ -530,3 +530,7 @@ onMounted(() => {
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user