解决构建报错问题
This commit is contained in:
@@ -284,7 +284,6 @@ import { downBlobFile, adaptationUrl } from "/@/utils/other";
|
||||
import TableColumnControl from '/@/components/TableColumnControl/index.vue'
|
||||
import { List, OfficeBuilding, Grid, Document, UserFilled, Phone, User, Lock, CircleCheck, TrendCharts, Setting, Menu, Search } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumn'
|
||||
import '/@/styles/modern-page.scss'
|
||||
import { defineAsyncComponent as defineStatusTag } from 'vue'
|
||||
const StatusTag = defineStatusTag(() => import('/@/components/StatusTag/index.vue'))
|
||||
|
||||
@@ -529,3 +528,7 @@ onMounted(() => {
|
||||
getClassListData()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
@@ -139,7 +139,7 @@
|
||||
<el-button icon="Refresh" @click="handleReset">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-row>
|
||||
</el-card>
|
||||
|
||||
<!-- 操作按钮 -->
|
||||
<el-row>
|
||||
@@ -169,7 +169,7 @@
|
||||
icon="Picture"
|
||||
type="info"
|
||||
class="ml10"
|
||||
@click="handleExportAvatar">
|
||||
@click="handleExportAvatar">
|
||||
导出头像
|
||||
</el-button>
|
||||
<el-button
|
||||
|
||||
@@ -139,7 +139,6 @@ import { getClassListByRole } from "/@/api/basic/basicclass";
|
||||
import TableColumnControl from '/@/components/TableColumnControl/index.vue'
|
||||
import { Picture, List, Document, UserFilled, Grid, Menu, Search } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumn'
|
||||
import '/@/styles/modern-page.scss'
|
||||
|
||||
// 定义变量内容
|
||||
const route = useRoute()
|
||||
@@ -256,6 +255,8 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
|
||||
.image-slot {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
|
||||
@@ -244,7 +244,6 @@ import TableColumnControl from '/@/components/TableColumnControl/index.vue'
|
||||
import FormDialog from './form.vue'
|
||||
import { List, OfficeBuilding, Calendar, CircleCheck, Clock, Grid, Document, User, Setting, Menu, Search, EditPen } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumn'
|
||||
import '/@/styles/modern-page.scss'
|
||||
|
||||
// 定义变量内容
|
||||
const route = useRoute()
|
||||
@@ -473,6 +472,8 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
|
||||
.classplan-container {
|
||||
padding: 20px;
|
||||
background: #f5f7fa;
|
||||
|
||||
@@ -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 已准备好
|
||||
// 注意:visibleColumns 和 columnOrder 需要在组件挂载前初始化,以便传递给 TableColumnControl
|
||||
// 初始化函数会在onMounted中调用,确保 DOM 已准备好
|
||||
// 注意:visibleColumns和columnOrder需要在组件挂载前初始化,以便传递给 TableColumnControl
|
||||
|
||||
// 考核表单
|
||||
const checkForm = reactive({
|
||||
@@ -585,3 +584,7 @@ onMounted(() => {
|
||||
getSchoolTermDict()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
@@ -162,83 +162,84 @@
|
||||
<el-icon v-if="col.icon"><component :is="col.icon" /></el-icon>
|
||||
<span :style="{ marginLeft: col.icon ? '4px' : '0' }">{{ col.label }}</span>
|
||||
</template>
|
||||
<template #default="scope" v-if="col.prop === 'schoolTerm'">
|
||||
<el-tag size="small" type="primary" effect="plain">
|
||||
{{ formatSchoolTerm(scope.row.schoolTerm) }}
|
||||
</el-tag>
|
||||
<template #default="scope" v-if="col.prop === 'schoolTerm'">
|
||||
<el-tag size="small" type="primary" effect="plain">
|
||||
{{ formatSchoolTerm(scope.row.schoolTerm) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'totalCnt'">
|
||||
<el-tag v-if="scope.row.totalCnt" size="small" type="success" effect="plain">
|
||||
{{ scope.row.totalCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'boyCnt'">
|
||||
<el-tag v-if="scope.row.boyCnt" size="small" type="primary" effect="plain">
|
||||
{{ scope.row.boyCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'girlCnt'">
|
||||
<el-tag v-if="scope.row.girlCnt" size="small" type="danger" effect="plain">
|
||||
{{ scope.row.girlCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'boyDormCnt'">
|
||||
<el-tag v-if="scope.row.boyDormCnt" size="small" type="info" effect="plain">
|
||||
{{ scope.row.boyDormCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'girlDormCnt'">
|
||||
<el-tag v-if="scope.row.girlDormCnt" size="small" type="info" effect="plain">
|
||||
{{ scope.row.girlDormCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'keepSchoolCnt'">
|
||||
<el-tag v-if="scope.row.keepSchoolCnt" size="small" type="warning" effect="plain">
|
||||
{{ scope.row.keepSchoolCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'gigCnt'">
|
||||
<el-tag v-if="scope.row.gigCnt" size="small" type="warning" effect="plain">
|
||||
{{ scope.row.gigCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'seriousWarningCnt'">
|
||||
<el-tag v-if="scope.row.seriousWarningCnt" size="small" type="warning" effect="plain">
|
||||
{{ scope.row.seriousWarningCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'warningCnt'">
|
||||
<el-tag v-if="scope.row.warningCnt" size="small" type="warning" effect="plain">
|
||||
{{ scope.row.warningCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'revokeCnt'">
|
||||
<el-tag v-if="scope.row.revokeCnt" size="small" type="success" effect="plain">
|
||||
{{ scope.row.revokeCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'dropCnt'">
|
||||
<el-tag v-if="scope.row.dropCnt" size="small" type="danger" effect="plain">
|
||||
{{ scope.row.dropCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'status'">
|
||||
<el-tag size="small" :type="scope.row.status === '1' ? 'success' : 'warning'" effect="plain">
|
||||
{{ formatStatus(scope.row.status) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'totalCnt'">
|
||||
<el-tag v-if="scope.row.totalCnt" size="small" type="success" effect="plain">
|
||||
{{ scope.row.totalCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'boyCnt'">
|
||||
<el-tag v-if="scope.row.boyCnt" size="small" type="primary" effect="plain">
|
||||
{{ scope.row.boyCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'girlCnt'">
|
||||
<el-tag v-if="scope.row.girlCnt" size="small" type="danger" effect="plain">
|
||||
{{ scope.row.girlCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'boyDormCnt'">
|
||||
<el-tag v-if="scope.row.boyDormCnt" size="small" type="info" effect="plain">
|
||||
{{ scope.row.boyDormCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'girlDormCnt'">
|
||||
<el-tag v-if="scope.row.girlDormCnt" size="small" type="info" effect="plain">
|
||||
{{ scope.row.girlDormCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'keepSchoolCnt'">
|
||||
<el-tag v-if="scope.row.keepSchoolCnt" size="small" type="warning" effect="plain">
|
||||
{{ scope.row.keepSchoolCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'gigCnt'">
|
||||
<el-tag v-if="scope.row.gigCnt" size="small" type="warning" effect="plain">
|
||||
{{ scope.row.gigCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'seriousWarningCnt'">
|
||||
<el-tag v-if="scope.row.seriousWarningCnt" size="small" type="warning" effect="plain">
|
||||
{{ scope.row.seriousWarningCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'warningCnt'">
|
||||
<el-tag v-if="scope.row.warningCnt" size="small" type="warning" effect="plain">
|
||||
{{ scope.row.warningCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'revokeCnt'">
|
||||
<el-tag v-if="scope.row.revokeCnt" size="small" type="success" effect="plain">
|
||||
{{ scope.row.revokeCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'dropCnt'">
|
||||
<el-tag v-if="scope.row.dropCnt" size="small" type="danger" effect="plain">
|
||||
{{ scope.row.dropCnt }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'status'">
|
||||
<el-tag size="small" :type="scope.row.status === '1' ? 'success' : 'warning'" effect="plain">
|
||||
{{ formatStatus(scope.row.status) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="200" align="center" fixed="right">
|
||||
<template #header>
|
||||
<el-icon><Setting /></el-icon>
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
<template #header>
|
||||
<el-icon><component :is="columnConfigMap[col.prop]?.icon || Calendar" /></el-icon>
|
||||
<el-icon><component :is="columnConfigMap[col.prop || '']?.icon || Calendar" /></el-icon>
|
||||
<span style="margin-left: 4px">{{ col.label }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -102,8 +102,8 @@ import { fetchList, delObjs } from "/@/api/stuwork/dormbuildingmanger";
|
||||
import { useMessage, useMessageBox } from "/@/hooks/message";
|
||||
import TableColumnControl from '/@/components/TableColumnControl/index.vue'
|
||||
import { List, OfficeBuilding, CreditCard, UserFilled, Setting, Menu, Calendar, Document } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumn'
|
||||
|
||||
|
||||
// 定义变量内容
|
||||
const route = useRoute()
|
||||
@@ -130,7 +130,7 @@ const {
|
||||
checkColumnVisible,
|
||||
handleColumnChange,
|
||||
handleColumnOrderChange
|
||||
} = useTableColumnControl(tableColumns, route.path)
|
||||
} = useTableColumnControl(tableColumns)
|
||||
|
||||
// 配置 useTable
|
||||
const state: BasicTableProps = reactive<BasicTableProps>({
|
||||
@@ -168,11 +168,11 @@ const handleDelete = async (row: any) => {
|
||||
|
||||
// 初始化
|
||||
onMounted(() => {
|
||||
nextTick(() => {
|
||||
if (visibleColumns.value.length === 0) {
|
||||
loadSavedConfig()
|
||||
}
|
||||
})
|
||||
// 初始化时不需要额外操作,useTableColumnControl 会自动处理
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
|
||||
@@ -175,18 +175,19 @@
|
||||
<el-icon v-if="col.icon"><component :is="col.icon" /></el-icon>
|
||||
<span :style="{ marginLeft: col.icon ? '4px' : '0' }">{{ col.label }}</span>
|
||||
</template>
|
||||
<template #default="scope" v-if="col.prop === 'schoolTerm'">
|
||||
<el-tag size="small" type="primary" effect="plain">
|
||||
{{ formatSchoolTerm(scope.row.schoolTerm) }}
|
||||
</el-tag>
|
||||
<template #default="scope" v-if="col.prop === 'schoolTerm'">
|
||||
<el-tag size="small" type="primary" effect="plain">
|
||||
{{ formatSchoolTerm(scope.row.schoolTerm) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'liveType'">
|
||||
<span>{{ formatLiveType(scope.row.liveType) }}</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'auditStatus'">
|
||||
<span>{{ formatAuditStatus(scope.row.auditStatus) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'liveType'">
|
||||
<span>{{ formatLiveType(scope.row.liveType) }}</span>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'auditStatus'">
|
||||
<span>{{ formatAuditStatus(scope.row.auditStatus) }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="150" align="center" fixed="right">
|
||||
<template #header>
|
||||
<el-icon><Setting /></el-icon>
|
||||
|
||||
@@ -73,14 +73,14 @@
|
||||
icon="FolderAdd"
|
||||
type="primary"
|
||||
@click="formDialogRef.openDialog()">
|
||||
新 增
|
||||
新增
|
||||
</el-button>
|
||||
<el-button
|
||||
icon="Download"
|
||||
type="warning"
|
||||
class="ml10"
|
||||
@click="handleExport">
|
||||
导 出
|
||||
导出
|
||||
</el-button>
|
||||
<right-toolbar
|
||||
v-model:showSearch="showSearch"
|
||||
@@ -133,14 +133,14 @@
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
<template #header>
|
||||
<el-icon><component :is="columnConfigMap[col.prop]?.icon || Calendar" /></el-icon>
|
||||
<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 === 'reformDate'" #default="scope">
|
||||
<span>{{ scope.row.reformDate ? scope.row.reformDate.split(' ')[0] : '-' }}</span>
|
||||
</template>
|
||||
<!-- 整改结果列特殊模板 -->
|
||||
<!-- 整改结果列特殊模板-->
|
||||
<template v-else-if="col.prop === 'reformStatus'" #default="scope">
|
||||
<StatusTag
|
||||
:value="scope.row.reformStatus"
|
||||
@@ -205,7 +205,7 @@
|
||||
</el-card>
|
||||
</div>
|
||||
|
||||
<!-- 编辑、新增 -->
|
||||
<!-- 编辑、新增 -->
|
||||
<FormDialog ref="formDialogRef" @refresh="getDataList(false)" />
|
||||
</div>
|
||||
</template>
|
||||
@@ -226,7 +226,7 @@ import TableColumnControl from '/@/components/TableColumnControl/index.vue'
|
||||
const FormDialog = defineAsyncComponent(() => import('./form.vue'));
|
||||
import { List, OfficeBuilding, Grid, House, Calendar, Document, CircleCheck, EditPen, Setting, Menu, Search } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
|
||||
import { defineAsyncComponent as defineStatusTag } from 'vue'
|
||||
const StatusTag = defineStatusTag(() => import('/@/components/StatusTag/index.vue'))
|
||||
|
||||
@@ -269,7 +269,7 @@ const {
|
||||
checkColumnVisible,
|
||||
handleColumnChange,
|
||||
handleColumnOrderChange
|
||||
} = useTableColumnControl(tableColumns, route.path)
|
||||
} = useTableColumnControl(tableColumns)
|
||||
|
||||
// 搜索表单
|
||||
const searchForm = reactive({
|
||||
@@ -452,3 +452,7 @@ onMounted(() => {
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
icon="FolderAdd"
|
||||
type="primary"
|
||||
@click="formDialogRef.openDialog()">
|
||||
新 增
|
||||
新增
|
||||
</el-button>
|
||||
<el-button
|
||||
icon="OfficeBuilding"
|
||||
@@ -104,7 +104,7 @@
|
||||
type="warning"
|
||||
class="ml10"
|
||||
@click="handleExport">
|
||||
导 出
|
||||
导出
|
||||
</el-button>
|
||||
<right-toolbar
|
||||
v-model:showSearch="showSearch"
|
||||
@@ -159,7 +159,7 @@
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
<template #header>
|
||||
<el-icon><component :is="columnConfigMap[col.prop]?.icon || Calendar" /></el-icon>
|
||||
<el-icon><component :is="columnConfigMap[col.prop || '']?.icon || Calendar" /></el-icon>
|
||||
<span style="margin-left: 4px">{{ col.label }}</span>
|
||||
</template>
|
||||
<!-- 几人间列特殊模板 -->
|
||||
@@ -169,7 +169,7 @@
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<!-- 已住人数列特殊模板 -->
|
||||
<!-- 已住人数列特殊模板-->
|
||||
<template v-else-if="col.prop === 'livedNum'" #default="scope">
|
||||
<el-tag v-if="scope.row.livedNum !== undefined && scope.row.livedNum !== null" size="small" type="success" effect="plain">
|
||||
{{ scope.row.livedNum }}
|
||||
@@ -212,10 +212,10 @@
|
||||
</el-card>
|
||||
</div>
|
||||
|
||||
<!-- 编辑、新增 -->
|
||||
<!-- 编辑、新增 -->
|
||||
<FormDialog ref="formDialogRef" @refresh="getDataList(false)" />
|
||||
|
||||
<!-- 学院安排对话框 -->
|
||||
<!-- 学院安排对话框-->
|
||||
<el-dialog
|
||||
v-model="deptAssignDialogVisible"
|
||||
title="学院安排"
|
||||
@@ -239,8 +239,8 @@
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
<el-button @click="deptAssignDialogVisible = false">取 消</el-button>
|
||||
<el-button type="primary" @click="confirmDeptAssign" :loading="deptAssignLoading">确 认</el-button>
|
||||
<el-button @click="deptAssignDialogVisible = false">取消</el-button>
|
||||
<el-button type="primary" @click="confirmDeptAssign" :loading="deptAssignLoading">确定</el-button>
|
||||
</span>
|
||||
</template>
|
||||
</el-dialog>
|
||||
@@ -262,8 +262,8 @@ import TableColumnControl from '/@/components/TableColumnControl/index.vue'
|
||||
// 引入组件
|
||||
const FormDialog = defineAsyncComponent(() => import('./form.vue'));
|
||||
import { List, OfficeBuilding, House, UserFilled, EditPen, Setting, Menu, Calendar, Search, Document } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumn'
|
||||
|
||||
|
||||
// 定义变量内容
|
||||
const route = useRoute()
|
||||
@@ -297,7 +297,7 @@ const {
|
||||
checkColumnVisible,
|
||||
handleColumnChange,
|
||||
handleColumnOrderChange
|
||||
} = useTableColumnControl(tableColumns, route.path)
|
||||
} = useTableColumnControl(tableColumns)
|
||||
const searchFormRef = ref()
|
||||
const showSearch = ref(true)
|
||||
const deptList = ref<any[]>([])
|
||||
@@ -474,10 +474,9 @@ onMounted(() => {
|
||||
getDeptListData()
|
||||
getBuildingListData()
|
||||
getBedNumDict()
|
||||
nextTick(() => {
|
||||
if (visibleColumns.value.length === 0) {
|
||||
loadSavedConfig()
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
@@ -61,11 +61,11 @@
|
||||
@change="handleDormDataTypeChange">
|
||||
<el-option label="所有" value="" />
|
||||
<el-option label="空宿舍" value="0" />
|
||||
<el-option label="空1人宿舍" value="1" />
|
||||
<el-option label="空2人宿舍" value="2" />
|
||||
<el-option label="空3人宿舍" value="3" />
|
||||
<el-option label="空4人宿舍" value="4" />
|
||||
<el-option label="空5人宿舍" value="5" />
|
||||
<el-option label="1人宿舍" value="1" />
|
||||
<el-option label="2人宿舍" value="2" />
|
||||
<el-option label="3人宿舍" value="3" />
|
||||
<el-option label="4人宿舍" value="4" />
|
||||
<el-option label="5人宿舍" value="5" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="宿舍号" prop="roomNo">
|
||||
@@ -145,7 +145,7 @@
|
||||
type="info"
|
||||
class="ml10"
|
||||
@click="handleExport">
|
||||
导 出
|
||||
导出
|
||||
</el-button>
|
||||
<el-button
|
||||
icon="Document"
|
||||
@@ -208,7 +208,7 @@
|
||||
:min-width="col.minWidth"
|
||||
:width="col.width">
|
||||
<template #header>
|
||||
<el-icon><component :is="columnConfigMap[col.prop]?.icon || OfficeBuilding" /></el-icon>
|
||||
<el-icon><component :is="columnConfigMap[col.prop || '']?.icon || OfficeBuilding" /></el-icon>
|
||||
<span style="margin-left: 4px">{{ col.label }}</span>
|
||||
</template>
|
||||
<!-- 床位号列特殊模板 -->
|
||||
@@ -218,7 +218,7 @@
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<!-- 是否舍长列特殊模板 -->
|
||||
<!-- 是否舍长列特殊模板-->
|
||||
<template v-else-if="col.prop === 'isLeader'" #default="scope">
|
||||
<StatusTag
|
||||
:value="scope.row.isLeader"
|
||||
@@ -291,8 +291,8 @@ import FormDialog from './form.vue';
|
||||
import TransferDialog from './transfer.vue';
|
||||
import TreeSelect from '/@/components/TreeSelect/index.vue';
|
||||
import { List, OfficeBuilding, House, Grid, UserFilled, Phone, CreditCard, Avatar, User, Setting, Menu, Search, Document } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumn'
|
||||
|
||||
import { defineAsyncComponent } from 'vue'
|
||||
const StatusTag = defineAsyncComponent(() => import('/@/components/StatusTag/index.vue'))
|
||||
|
||||
@@ -344,7 +344,7 @@ const {
|
||||
checkColumnVisible,
|
||||
handleColumnChange,
|
||||
handleColumnOrderChange
|
||||
} = useTableColumnControl(tableColumns, route.path)
|
||||
} = useTableColumnControl(tableColumns)
|
||||
|
||||
// 树形选择器配置
|
||||
const treeProps = {
|
||||
@@ -517,10 +517,9 @@ onMounted(() => {
|
||||
getDeptListData()
|
||||
getBuildingListData()
|
||||
getDormRoomTreeListData()
|
||||
nextTick(() => {
|
||||
if (visibleColumns.value.length === 0) {
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
@@ -115,27 +115,27 @@
|
||||
show-overflow-tooltip
|
||||
align="center">
|
||||
<template #header>
|
||||
<el-icon><component :is="columnConfigMap[col.prop]?.icon || Calendar" /></el-icon>
|
||||
<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 === 'createTime'" #default="scope">
|
||||
<span>{{ scope.row.createTime ? scope.row.createTime.split(' ')[0] + ' ' + scope.row.createTime.split(' ')[1] : '-' }}</span>
|
||||
</template>
|
||||
<!-- 异动类型列特殊模板 -->
|
||||
<!-- 异动类型列特殊模板-->
|
||||
<template v-else-if="col.prop === 'changeType'" #default="scope">
|
||||
<el-tag size="small" type="warning" effect="plain">
|
||||
{{ formatChangeType(scope.row.changeType) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
<!-- 原床位号列特殊模板 -->
|
||||
<!-- 原床位号列特殊模板-->
|
||||
<template v-else-if="col.prop === 'bedNo'" #default="scope">
|
||||
<el-tag v-if="scope.row.bedNo" size="small" type="info" effect="plain">
|
||||
{{ scope.row.bedNo }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<!-- 新床位号列特殊模板 -->
|
||||
<!-- 新床位号列特殊模板-->
|
||||
<template v-else-if="col.prop === 'newBedNo'" #default="scope">
|
||||
<el-tag v-if="scope.row.newBedNo" size="small" type="success" effect="plain">
|
||||
{{ scope.row.newBedNo }}
|
||||
@@ -183,8 +183,8 @@ import { useMessage } from "/@/hooks/message";
|
||||
import { getDicts } from "/@/api/admin/dict";
|
||||
import TableColumnControl from '/@/components/TableColumnControl/index.vue'
|
||||
import { List, Calendar, OfficeBuilding, Grid, CreditCard, Avatar, Collection, House, Setting, Menu, Search, Document } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumn'
|
||||
|
||||
|
||||
// 定义变量内容
|
||||
const route = useRoute()
|
||||
@@ -229,7 +229,7 @@ const {
|
||||
checkColumnVisible,
|
||||
handleColumnChange,
|
||||
handleColumnOrderChange
|
||||
} = useTableColumnControl(tableColumns, route.path)
|
||||
} = useTableColumnControl(tableColumns)
|
||||
|
||||
// 搜索表单
|
||||
const searchForm = reactive({
|
||||
@@ -317,10 +317,9 @@ const getChangeTypeDict = async () => {
|
||||
onMounted(() => {
|
||||
getDeptListData()
|
||||
getChangeTypeDict()
|
||||
nextTick(() => {
|
||||
if (visibleColumns.value.length === 0) {
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
@@ -14,8 +14,7 @@
|
||||
icon="FolderAdd"
|
||||
type="primary"
|
||||
@click="formDialogRef.openDialog()">
|
||||
新 增
|
||||
</el-button>
|
||||
新增 </el-button>
|
||||
<right-toolbar
|
||||
v-model:showSearch="showSearch"
|
||||
class="ml10"
|
||||
@@ -69,7 +68,7 @@
|
||||
<el-icon><component :is="columnConfigMap[col.prop]?.icon || Document" /></el-icon>
|
||||
<span style="margin-left: 4px">{{ col.label }}</span>
|
||||
</template>
|
||||
<!-- 假期模式列特殊模板 -->
|
||||
<!-- 假期模式列特殊模板-->
|
||||
<template v-if="col.prop === 'isHoliday'" #default="scope">
|
||||
<StatusTag
|
||||
:value="scope.row.isHoliday"
|
||||
@@ -127,10 +126,10 @@
|
||||
</el-card>
|
||||
</div>
|
||||
|
||||
<!-- 编辑、新增 -->
|
||||
<!-- 编辑、新增 -->
|
||||
<FormDialog ref="formDialogRef" @refresh="getDataList(false)" />
|
||||
|
||||
<!-- 详情对话框 -->
|
||||
<!-- 详情对话框-->
|
||||
<el-dialog
|
||||
title="门禁规则详情"
|
||||
v-model="detailDialogVisible"
|
||||
@@ -145,11 +144,11 @@
|
||||
{{ detailData.isHoliday === '1' ? '开启' : '关闭' }}
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
<!-- 这里可以根据需要展示更多详情信息 -->
|
||||
<!-- 这里可以根据需要展示更多详情信息-->
|
||||
</div>
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
<el-button @click="detailDialogVisible = false">关 闭</el-button>
|
||||
<el-button @click="detailDialogVisible = false">关闭</el-button>
|
||||
</span>
|
||||
</template>
|
||||
</el-dialog>
|
||||
@@ -168,7 +167,7 @@ import TableColumnControl from '/@/components/TableColumnControl/index.vue'
|
||||
const FormDialog = defineAsyncComponent(() => import('./form.vue'));
|
||||
import { List, Document, Grid, CircleCheck, Setting, Menu } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
|
||||
import { defineAsyncComponent as defineStatusTag } from 'vue'
|
||||
const StatusTag = defineStatusTag(() => import('/@/components/StatusTag/index.vue'))
|
||||
|
||||
@@ -277,10 +276,9 @@ const handleViewDetail = async (row: any) => {
|
||||
// 初始化
|
||||
onMounted(() => {
|
||||
getDataList()
|
||||
nextTick(() => {
|
||||
if (visibleColumns.value.length === 0) {
|
||||
loadSavedConfig()
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
@@ -114,16 +114,16 @@
|
||||
<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 === 'nums'" #default="scope">
|
||||
<el-tag type="warning" v-if="scope.row.nums > 0">{{ scope.row.nums }}</el-tag>
|
||||
<span v-else>{{ scope.row.nums || 0 }}</span>
|
||||
</template>
|
||||
<!-- 创建时间列特殊模板 -->
|
||||
<!-- 创建时间列特殊模板-->
|
||||
<template v-else-if="col.prop === 'createTime'" #default="scope">
|
||||
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
|
||||
</template>
|
||||
<!-- 更新时间列特殊模板 -->
|
||||
<!-- 更新时间列特殊模板-->
|
||||
<template v-else-if="col.prop === 'updateTime'" #default="scope">
|
||||
<span>{{ parseTime(scope.row.updateTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
|
||||
</template>
|
||||
@@ -170,7 +170,7 @@ import { parseTime } from "/@/utils/formatTime";
|
||||
import TableColumnControl from '/@/components/TableColumnControl/index.vue'
|
||||
import { List, OfficeBuilding, Grid, Document, DataAnalysis, Calendar, Clock, Setting, Menu, Search } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
|
||||
|
||||
// 定义变量内容
|
||||
const route = useRoute()
|
||||
@@ -304,5 +304,6 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
|
||||
@@ -156,18 +156,19 @@
|
||||
<el-icon v-if="col.icon"><component :is="col.icon" /></el-icon>
|
||||
<span :style="{ marginLeft: col.icon ? '4px' : '0' }">{{ col.label }}</span>
|
||||
</template>
|
||||
<template #default="scope" v-if="col.prop === 'schoolTerm'">
|
||||
<el-tag size="small" type="primary" effect="plain">
|
||||
{{ formatSchoolTerm(scope.row.schoolTerm) }}
|
||||
</el-tag>
|
||||
<template #default="scope" v-if="col.prop === 'schoolTerm'">
|
||||
<el-tag size="small" type="primary" effect="plain">
|
||||
{{ formatSchoolTerm(scope.row.schoolTerm) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'ruleName'">
|
||||
<el-tag v-if="scope.row.ruleName" size="small" type="warning" effect="light">
|
||||
{{ scope.row.ruleName }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</template>
|
||||
<template #default="scope" v-else-if="col.prop === 'ruleName'">
|
||||
<el-tag v-if="scope.row.ruleName" size="small" type="warning" effect="light">
|
||||
{{ scope.row.ruleName }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="150" align="center" fixed="right">
|
||||
<template #header>
|
||||
<el-icon><Setting /></el-icon>
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
@@ -62,7 +62,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>
|
||||
@@ -166,7 +166,7 @@ import TableColumnControl from '/@/components/TableColumnControl/index.vue'
|
||||
import FormDialog from './form.vue'
|
||||
import { List, Trophy, Collection, EditPen, Setting, Menu, Search, Document } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
|
||||
|
||||
// 定义变量内容
|
||||
const route = useRoute()
|
||||
@@ -176,7 +176,7 @@ const columnControlRef = ref()
|
||||
const showSearch = ref(true)
|
||||
const ruleTypeList = ref<any[]>([])
|
||||
|
||||
// 表格列配置
|
||||
// 表格列配<EFBFBD><EFBFBD>?
|
||||
const tableColumns = [
|
||||
{ prop: 'ruleName', label: '奖项名称', icon: Trophy, minWidth: 200 },
|
||||
{ prop: 'ruleType', label: '奖项类型', icon: Collection },
|
||||
@@ -208,7 +208,7 @@ const state: BasicTableProps = reactive<BasicTableProps>({
|
||||
item: 'records',
|
||||
totalCount: 'total'
|
||||
},
|
||||
createdIsNeed: true // 页面加载时自动获取数据
|
||||
createdIsNeed: true // 页面加载时自动获取数<EFBFBD><EFBFBD>?
|
||||
})
|
||||
|
||||
// table hook
|
||||
@@ -219,7 +219,7 @@ const {
|
||||
tableStyle: _tableStyle
|
||||
} = useTable(state)
|
||||
|
||||
// 格式化奖项类型
|
||||
// 格式化奖项类<EFBFBD><EFBFBD>?
|
||||
const formatRuleType = (value: string | number) => {
|
||||
if (value === null || value === undefined || value === '') {
|
||||
return '-'
|
||||
@@ -272,9 +272,13 @@ const getRuleTypeDict = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 初始化
|
||||
// 初始<EFBFBD><EFBFBD>?
|
||||
onMounted(() => {
|
||||
getRuleTypeDict()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
@@ -54,7 +54,7 @@
|
||||
<div class="card-header">
|
||||
<span class="card-title">
|
||||
<el-icon class="title-icon"><Document /></el-icon>
|
||||
助学金批次列表
|
||||
助学金批次列<EFBFBD><EFBFBD>?
|
||||
</span>
|
||||
<div class="header-actions">
|
||||
<el-button
|
||||
@@ -77,7 +77,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>
|
||||
@@ -201,7 +201,7 @@ import {
|
||||
Money, EditPen, Setting, Menu, Search
|
||||
} from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumn'
|
||||
import '/@/styles/modern-page.scss'
|
||||
|
||||
|
||||
// 定义变量内容
|
||||
const route = useRoute()
|
||||
@@ -214,7 +214,7 @@ const schoolTermList = ref<any[]>([])
|
||||
const quarterList = ref<any[]>([])
|
||||
const classifyList = ref<any[]>([])
|
||||
|
||||
// 表格列配置
|
||||
// 表格列配<EFBFBD><EFBFBD>?
|
||||
const tableColumns = [
|
||||
{ prop: 'title', label: '批次名称', icon: Document, minWidth: 200 },
|
||||
{ prop: 'schoolYear', label: '学年', icon: Calendar, width: 120 },
|
||||
@@ -222,7 +222,7 @@ const tableColumns = [
|
||||
{ prop: 'type', label: '季度', icon: Timer, width: 100 },
|
||||
{ prop: 'classify', label: '类别', icon: Collection, width: 100 },
|
||||
{ prop: 'moneyValue', label: '补助金额', icon: Money, width: 120 },
|
||||
{ prop: 'startTime', label: '开始日期', icon: Calendar, width: 120 },
|
||||
{ prop: 'startTime', label: '开始日<EFBFBD><EFBFBD>?, icon: Calendar, width: 120 },
|
||||
{ prop: 'endTime', label: '截止日期', icon: Calendar, width: 120 },
|
||||
{ prop: 'remarks', label: '备注', icon: EditPen, minWidth: 150 }
|
||||
]
|
||||
@@ -264,7 +264,7 @@ const {
|
||||
tableStyle: _tableStyle
|
||||
} = useTable(state)
|
||||
|
||||
// 格式化学期
|
||||
// 格式化学<EFBFBD><EFBFBD>?
|
||||
const formatSchoolTerm = (value: string | number) => {
|
||||
if (value === null || value === undefined || value === '') {
|
||||
return '-'
|
||||
@@ -273,7 +273,7 @@ const formatSchoolTerm = (value: string | number) => {
|
||||
return dictItem ? dictItem.label : value
|
||||
}
|
||||
|
||||
// 格式化季度
|
||||
// 格式化季<EFBFBD><EFBFBD>?
|
||||
const formatQuarter = (value: string | number) => {
|
||||
if (value === null || value === undefined || value === '') {
|
||||
return '-'
|
||||
@@ -282,7 +282,7 @@ const formatQuarter = (value: string | number) => {
|
||||
return dictItem ? dictItem.label : value
|
||||
}
|
||||
|
||||
// 格式化类别
|
||||
// 格式化类<EFBFBD><EFBFBD>?
|
||||
const formatClassify = (value: string | number) => {
|
||||
if (value === null || value === undefined || value === '') {
|
||||
return '-'
|
||||
@@ -313,7 +313,7 @@ const handleEdit = (row: any) => {
|
||||
const handleDelete = async (row: any) => {
|
||||
try {
|
||||
const { confirm } = useMessageBox()
|
||||
await confirm(`确定要删除批次 "${row.title}" 吗?`)
|
||||
await confirm(`确定要删除批<E999A4><E689B9>?"${row.title}" 吗?`)
|
||||
await delObj([row.id])
|
||||
useMessage().success('删除成功')
|
||||
getDataList()
|
||||
@@ -389,7 +389,7 @@ const getClassifyDict = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 初始化
|
||||
// 初始<EFBFBD><EFBFBD>?
|
||||
onMounted(() => {
|
||||
getSchoolYearList()
|
||||
getSchoolTermDict()
|
||||
@@ -399,5 +399,6 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
|
||||
@@ -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>
|
||||
@@ -34,10 +34,10 @@
|
||||
clearable
|
||||
style="width: 200px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="所属类别" prop="type">
|
||||
<el-form-item label="所属类<EFBFBD><EFBFBD>? prop="type">
|
||||
<el-select
|
||||
v-model="state.queryForm.type"
|
||||
placeholder="请选择所属类别"
|
||||
placeholder="请选择所属类<EFBFBD><EFBFBD>?
|
||||
clearable
|
||||
style="width: 200px">
|
||||
<el-option
|
||||
@@ -84,7 +84,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>
|
||||
@@ -125,14 +125,14 @@
|
||||
<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 === 'num'" #default="scope">
|
||||
<el-tag v-if="scope.row.num !== undefined && scope.row.num !== null" size="small" type="success" effect="plain">
|
||||
{{ scope.row.num }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<!-- 成立时间列特殊模板 -->
|
||||
<!-- 成立时间列特殊模<EFBFBD><EFBFBD>?-->
|
||||
<template v-else-if="col.prop === 'openTime'" #default="scope">
|
||||
<span>{{ parseTime(scope.row.openTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
@@ -210,7 +210,7 @@ import {
|
||||
Phone, Collection, Document, Files, Setting, Menu, Search
|
||||
} from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumn'
|
||||
import '/@/styles/modern-page.scss'
|
||||
|
||||
|
||||
// 定义变量内容
|
||||
const route = useRoute()
|
||||
@@ -222,21 +222,21 @@ const showSearch = ref(true)
|
||||
const deptList = ref<any[]>([])
|
||||
const typeList = ref<any[]>([])
|
||||
|
||||
// 表格列配置
|
||||
// 表格列配<EFBFBD><EFBFBD>?
|
||||
const tableColumns = [
|
||||
{ prop: 'associationName', label: '社团名称', minWidth: 200 },
|
||||
{ prop: 'deptName', label: '学院', minWidth: 150 },
|
||||
{ prop: 'teacherRealName', label: '指导老师姓名', width: 120 },
|
||||
{ prop: 'maintainer', label: '负责人', width: 100 },
|
||||
{ prop: 'maintainer', label: '负责<EFBFBD><EFBFBD>?, width: 100 },
|
||||
{ prop: 'num', label: '人数', width: 80 },
|
||||
{ prop: 'openTime', label: '成立时间', width: 120 },
|
||||
{ prop: 'tel', label: '联系电话', width: 120 },
|
||||
{ prop: 'type', label: '所属类别', width: 120 },
|
||||
{ prop: 'type', label: '所属类<EFBFBD><EFBFBD>?, width: 120 },
|
||||
{ prop: 'applyNote', label: '成立申请', minWidth: 200 },
|
||||
{ prop: 'ruleNote', label: '社团章程', minWidth: 200 }
|
||||
]
|
||||
|
||||
// 列配置映射(用于图标)
|
||||
// 列配置映射(用于图标<EFBFBD><EFBFBD>?
|
||||
const columnConfigMap: Record<string, { icon: any }> = {
|
||||
associationName: { icon: Trophy },
|
||||
deptName: { icon: OfficeBuilding },
|
||||
@@ -277,7 +277,7 @@ const state: BasicTableProps = reactive<BasicTableProps>({
|
||||
item: 'records',
|
||||
totalCount: 'total'
|
||||
},
|
||||
createdIsNeed: true // 页面加载时自动获取数据
|
||||
createdIsNeed: true // 页面加载时自动获取数<EFBFBD><EFBFBD>?
|
||||
})
|
||||
|
||||
// table hook
|
||||
@@ -288,7 +288,7 @@ const {
|
||||
tableStyle: _tableStyle
|
||||
} = useTable(state)
|
||||
|
||||
// 格式化类型
|
||||
// 格式化类<EFBFBD><EFBFBD>?
|
||||
const formatType = (value: string | number) => {
|
||||
if (value === null || value === undefined || value === '') {
|
||||
return '-'
|
||||
@@ -362,7 +362,7 @@ const getTypeDict = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 初始化
|
||||
// 初始<EFBFBD><EFBFBD>?
|
||||
onMounted(() => {
|
||||
getDeptListData()
|
||||
getTypeDict()
|
||||
@@ -374,5 +374,6 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
@@ -75,7 +75,7 @@
|
||||
<el-form-item label="姓名" prop="realName">
|
||||
<el-input
|
||||
v-model="state.queryForm.realName"
|
||||
placeholder="请输入姓名"
|
||||
placeholder="请输入姓<EFBFBD><EFBFBD>?
|
||||
clearable
|
||||
style="width: 200px" />
|
||||
</el-form-item>
|
||||
@@ -136,7 +136,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>
|
||||
@@ -177,23 +177,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 === 'conductType'" #default="scope">
|
||||
<el-tag size="small" type="warning" effect="plain">
|
||||
{{ formatType(scope.row.conductType) }}
|
||||
</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 === 'attachment'" #default="scope">
|
||||
<el-button
|
||||
v-if="scope.row.attachment"
|
||||
@@ -261,7 +261,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">
|
||||
@@ -271,8 +271,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>
|
||||
@@ -292,7 +292,7 @@ import { useMessage, useMessageBox } from "/@/hooks/message";
|
||||
import TableColumnControl from '/@/components/TableColumnControl/index.vue'
|
||||
import { UploadFilled, List, CreditCard, Calendar, Clock, OfficeBuilding, Grid, Avatar, Collection, Document, Setting, Menu, Search } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
|
||||
import FormDialog from './form.vue'
|
||||
|
||||
// 定义变量内容
|
||||
@@ -311,7 +311,7 @@ const importDialogVisible = ref(false)
|
||||
const importFile = ref<File | null>(null)
|
||||
const importLoading = ref(false)
|
||||
|
||||
// 表格列配置
|
||||
// 表格列配<EFBFBD><EFBFBD>?
|
||||
const tableColumns = [
|
||||
{ prop: 'stuNo', label: '学号' },
|
||||
{ prop: 'schoolYear', label: '学年' },
|
||||
@@ -325,7 +325,7 @@ const tableColumns = [
|
||||
{ prop: 'attachment', label: '附件', width: 100 }
|
||||
]
|
||||
|
||||
// 列配置映射(用于图标)
|
||||
// 列配置映射(用于图标<EFBFBD><EFBFBD>?
|
||||
const columnConfigMap: Record<string, { icon: any }> = {
|
||||
stuNo: { icon: CreditCard },
|
||||
schoolYear: { icon: Calendar },
|
||||
@@ -374,7 +374,7 @@ const {
|
||||
tableStyle
|
||||
} = useTable(state)
|
||||
|
||||
// 格式化学期
|
||||
// 格式化学<EFBFBD><EFBFBD>?
|
||||
const formatSchoolTerm = (value: string | number) => {
|
||||
if (value === null || value === undefined || value === '') {
|
||||
return '-'
|
||||
@@ -383,7 +383,7 @@ const formatSchoolTerm = (value: string | number) => {
|
||||
return dictItem ? dictItem.label : value
|
||||
}
|
||||
|
||||
// 格式化类型
|
||||
// 格式化类<EFBFBD><EFBFBD>?
|
||||
const formatType = (value: string) => {
|
||||
if (!value) return '-'
|
||||
const item = typeList.value.find((item: any) => item.value === value)
|
||||
@@ -392,7 +392,7 @@ const formatType = (value: string) => {
|
||||
|
||||
// 学院变化
|
||||
const handleDeptChange = () => {
|
||||
// 可以根据学院筛选班级,这里暂时不实现
|
||||
// 可以根据学院筛选班级,这里暂时不实<EFBFBD><EFBFBD>?
|
||||
}
|
||||
|
||||
// 重置
|
||||
@@ -549,7 +549,7 @@ const getTypeDict = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 初始化
|
||||
// 初始<EFBFBD><EFBFBD>?
|
||||
onMounted(() => {
|
||||
getSchoolYearList()
|
||||
getSchoolTermDict()
|
||||
@@ -564,5 +564,6 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
|
||||
@@ -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>
|
||||
@@ -47,7 +47,7 @@
|
||||
icon="FolderAdd"
|
||||
type="primary"
|
||||
@click="formDialogRef.openDialog()">
|
||||
新 增
|
||||
<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?
|
||||
</el-button>
|
||||
<right-toolbar
|
||||
v-model:showSearch="showSearch"
|
||||
@@ -63,7 +63,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,7 +162,7 @@ import TableColumnControl from '/@/components/TableColumnControl/index.vue'
|
||||
import FormDialog from './form.vue'
|
||||
import { List, Calendar, Document, OfficeBuilding, Setting, Menu, Search } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
|
||||
|
||||
// 定义变量内容
|
||||
const route = useRoute()
|
||||
@@ -172,9 +172,9 @@ const showSearch = ref(true)
|
||||
const deptList = ref<any[]>([])
|
||||
const formDialogRef = ref()
|
||||
|
||||
// 表格列配置
|
||||
// 表格列配<EFBFBD><EFBFBD>?
|
||||
const tableColumns = [
|
||||
{ prop: 'startTime', label: '开始时间', icon: Calendar, width: 180 },
|
||||
{ prop: 'startTime', label: '开始时<EFBFBD><EFBFBD>?, icon: Calendar, width: 180 },
|
||||
{ prop: 'endTime', label: '结束时间', icon: Calendar, width: 180 },
|
||||
{ prop: 'reason', label: '请假事由', icon: Document },
|
||||
{ prop: 'deptName', label: '发起部门', icon: OfficeBuilding }
|
||||
@@ -213,7 +213,7 @@ const {
|
||||
tableStyle
|
||||
} = useTable(state)
|
||||
|
||||
// 格式化日期时间
|
||||
// 格式化日期时<EFBFBD><EFBFBD>?
|
||||
const formatDateTime = (dateTime: string) => {
|
||||
if (!dateTime) return '-'
|
||||
// 如果包含时间部分,只显示日期部分
|
||||
@@ -243,7 +243,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()
|
||||
@@ -266,8 +266,12 @@ const getDeptListData = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 初始化
|
||||
// 初始<EFBFBD><EFBFBD>?
|
||||
onMounted(() => {
|
||||
getDeptListData()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
@@ -98,8 +98,8 @@
|
||||
placeholder="请选择住宿类型"
|
||||
clearable
|
||||
style="width: 200px">
|
||||
<el-option label="走读生" value="0" />
|
||||
<el-option label="住宿生" value="1" />
|
||||
<el-option label="走读" value="0" />
|
||||
<el-option label="住宿" value="1" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="是否住宿" prop="stayDorm">
|
||||
@@ -144,10 +144,10 @@
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="学工处审批" prop="schoolAudit">
|
||||
<el-form-item label="学工处审核" prop="schoolAudit">
|
||||
<el-select
|
||||
v-model="searchForm.schoolAudit"
|
||||
placeholder="请选择学工处审批"
|
||||
placeholder="请选择学工处审核"
|
||||
clearable
|
||||
style="width: 200px">
|
||||
<el-option
|
||||
@@ -178,14 +178,14 @@
|
||||
icon="FolderAdd"
|
||||
type="primary"
|
||||
@click="formDialogRef.openDialog()">
|
||||
新 增
|
||||
新增
|
||||
</el-button>
|
||||
<el-button
|
||||
icon="Download"
|
||||
type="success"
|
||||
class="ml10"
|
||||
@click="handleExport">
|
||||
导 出
|
||||
导出
|
||||
</el-button>
|
||||
<right-toolbar
|
||||
v-model:showSearch="showSearch"
|
||||
@@ -239,10 +239,10 @@
|
||||
:min-width="col.minWidth"
|
||||
:width="col.width">
|
||||
<template #header>
|
||||
<el-icon><component :is="columnConfigMap[col.prop]?.icon || Calendar" /></el-icon>
|
||||
<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) }}
|
||||
@@ -252,17 +252,17 @@
|
||||
<template v-else-if="col.prop === 'startTime'" #default="scope">
|
||||
<span>{{ scope.row.startTime ? formatDateTime(scope.row.startTime) : '-' }}</span>
|
||||
</template>
|
||||
<!-- 请假结束时间列特殊模板 -->
|
||||
<!-- 请假结束时间列特殊模板-->
|
||||
<template v-else-if="col.prop === 'endTime'" #default="scope">
|
||||
<span>{{ scope.row.endTime ? formatDateTime(scope.row.endTime) : '-' }}</span>
|
||||
</template>
|
||||
<!-- 请假类型列特殊模板 -->
|
||||
<!-- 请假类型列特殊模板-->
|
||||
<template v-else-if="col.prop === 'leaveType'" #default="scope">
|
||||
<el-tag size="small" type="info" effect="plain">
|
||||
{{ formatLeaveType(scope.row.leaveType) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
<!-- 是否住宿列特殊模板 -->
|
||||
<!-- 是否住宿列特殊模板-->
|
||||
<template v-else-if="col.prop === 'stayDorm'" #default="scope">
|
||||
<StatusTag
|
||||
:value="scope.row.stayDorm"
|
||||
@@ -270,7 +270,7 @@
|
||||
:type-map="{ '1': { type: 'success', effect: 'light' }, '0': { type: 'info', effect: 'light' } }"
|
||||
/>
|
||||
</template>
|
||||
<!-- 是否发热列特殊模板 -->
|
||||
<!-- 是否发热列特殊模板-->
|
||||
<template v-else-if="col.prop === 'isFever'" #default="scope">
|
||||
<StatusTag
|
||||
:value="scope.row.isFever"
|
||||
@@ -304,8 +304,6 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</template>
|
||||
<el-table-column label="操作" width="100" align="center" fixed="right">
|
||||
<template #header>
|
||||
<el-icon><Setting /></el-icon>
|
||||
@@ -351,8 +349,8 @@ import { useMessage, useMessageBox } from "/@/hooks/message";
|
||||
import TableColumnControl from '/@/components/TableColumnControl/index.vue'
|
||||
import FormDialog from './form.vue'
|
||||
import { List, Calendar, Clock, OfficeBuilding, Avatar, Collection, Document, House, Warning, CircleCheck, EditPen, Setting, Menu, Search } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumn'
|
||||
|
||||
import { defineAsyncComponent } from 'vue'
|
||||
const StatusTag = defineAsyncComponent(() => import('/@/components/StatusTag/index.vue'))
|
||||
|
||||
@@ -384,7 +382,7 @@ const tableColumns = [
|
||||
{ prop: 'isFever', label: '是否发热' },
|
||||
{ prop: 'classAudit', label: '班主任审核' },
|
||||
{ prop: 'deptAudit', label: '学生科审核' },
|
||||
{ prop: 'schoolAudit', label: '学工处审批' },
|
||||
{ prop: 'schoolAudit', label: '学工处审核' },
|
||||
{ prop: 'remarks', label: '备注', minWidth: 150 },
|
||||
{ prop: 'rejectReason', label: '驳回原因', minWidth: 150 }
|
||||
]
|
||||
@@ -415,7 +413,7 @@ const {
|
||||
checkColumnVisible,
|
||||
handleColumnChange,
|
||||
handleColumnOrderChange
|
||||
} = useTableColumnControl(tableColumns, route.path)
|
||||
} = useTableColumnControl(tableColumns)
|
||||
|
||||
// 搜索表单
|
||||
const searchForm = reactive({
|
||||
@@ -652,10 +650,10 @@ onMounted(() => {
|
||||
getLeaveTypeDict()
|
||||
getYesNoDict()
|
||||
getAuditTypeDict()
|
||||
nextTick(() => {
|
||||
if (visibleColumns.value.length === 0) {
|
||||
}
|
||||
})
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
|
||||
@@ -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="searchForm.realName"
|
||||
placeholder="请输入姓名"
|
||||
placeholder="请输入姓<EFBFBD><EFBFBD>?
|
||||
clearable
|
||||
style="width: 200px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="学号" prop="stuNo">
|
||||
<el-input
|
||||
v-model="searchForm.stuNo"
|
||||
placeholder="请输入学号"
|
||||
placeholder="请输入学<EFBFBD><EFBFBD>?
|
||||
clearable
|
||||
style="width: 200px" />
|
||||
</el-form-item>
|
||||
@@ -129,14 +129,14 @@
|
||||
icon="FolderAdd"
|
||||
type="primary"
|
||||
@click="formDialogRef.openDialog()">
|
||||
新 增
|
||||
<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?
|
||||
</el-button>
|
||||
<el-button
|
||||
icon="Download"
|
||||
type="success"
|
||||
class="ml10"
|
||||
@click="handleExport">
|
||||
导 出
|
||||
<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?
|
||||
</el-button>
|
||||
<right-toolbar
|
||||
v-model:showSearch="showSearch"
|
||||
@@ -152,7 +152,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>
|
||||
@@ -193,13 +193,13 @@
|
||||
<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 === 'punlishStartDate'" #default="scope">
|
||||
<span>{{ scope.row.punlishStartDate ? formatDate(scope.row.punlishStartDate) : '-' }}</span>
|
||||
</template>
|
||||
@@ -207,7 +207,7 @@
|
||||
<template v-else-if="col.prop === 'punlishEndDate'" #default="scope">
|
||||
<span>{{ scope.row.punlishEndDate ? formatDate(scope.row.punlishEndDate) : '-' }}</span>
|
||||
</template>
|
||||
<!-- 处分级别列特殊模板 -->
|
||||
<!-- 处分级别列特殊模<EFBFBD><EFBFBD>?-->
|
||||
<template v-else-if="col.prop === 'punlishLevel'" #default="scope">
|
||||
<el-tag size="small" type="danger" effect="plain">
|
||||
{{ formatPunlishLevel(scope.row.punlishLevel) }}
|
||||
@@ -217,7 +217,7 @@
|
||||
<template v-else-if="col.prop === 'publishStatus'" #default="scope">
|
||||
<StatusTag
|
||||
:value="scope.row.publishStatus"
|
||||
:options="[{ label: '有效', value: '1' }, { label: '已撤销', value: '2' }, { label: '已到期', value: '3' }]"
|
||||
:options="[{ label: '有效', value: '1' }, { label: '已撤销', value: '2' }, { label: '已到<EFBFBD><EFBFBD>?, value: '3' }]"
|
||||
:type-map="{ '1': { type: 'danger', effect: 'light' }, '2': { type: 'success', effect: 'light' }, '3': { type: 'info', effect: 'light' } }"
|
||||
/>
|
||||
</template>
|
||||
@@ -290,7 +290,7 @@ import TableColumnControl from '/@/components/TableColumnControl/index.vue'
|
||||
import FormDialog from './form.vue'
|
||||
import { List, Calendar, Clock, OfficeBuilding, Grid, Avatar, CreditCard, Warning, Document, CircleCheck, Setting, Menu, Search } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
|
||||
import { defineAsyncComponent } from 'vue'
|
||||
const StatusTag = defineAsyncComponent(() => import('/@/components/StatusTag/index.vue'))
|
||||
|
||||
@@ -307,7 +307,7 @@ const punlishLevelList = ref<any[]>([])
|
||||
const publishStatusList = ref<any[]>([])
|
||||
const formDialogRef = ref()
|
||||
|
||||
// 表格列配置
|
||||
// 表格列配<EFBFBD><EFBFBD>?
|
||||
const tableColumns = [
|
||||
{ prop: 'schoolYear', label: '学年' },
|
||||
{ prop: 'schoolTerm', label: '学期' },
|
||||
@@ -316,13 +316,13 @@ const tableColumns = [
|
||||
{ prop: 'stuRealName', label: '姓名' },
|
||||
{ prop: 'stuNo', label: '学号' },
|
||||
{ prop: 'punlishStartDate', label: '处分时间', width: 180 },
|
||||
{ prop: 'punlishEndDate', label: '到期日', width: 180 },
|
||||
{ prop: 'punlishEndDate', label: '到期<EFBFBD><EFBFBD>?, width: 180 },
|
||||
{ prop: 'punlishLevel', label: '处分级别' },
|
||||
{ prop: 'punlishContent', label: '处分内容', minWidth: 150 },
|
||||
{ prop: 'publishStatus', label: '处分状态' }
|
||||
{ prop: 'publishStatus', label: '处分状<EFBFBD><EFBFBD>? }
|
||||
]
|
||||
|
||||
// 列配置映射(用于图标)
|
||||
// 列配置映射(用于图标<EFBFBD><EFBFBD>?
|
||||
const columnConfigMap: Record<string, { icon: any }> = {
|
||||
schoolYear: { icon: Calendar },
|
||||
schoolTerm: { icon: Clock },
|
||||
@@ -363,7 +363,7 @@ const searchForm = reactive({
|
||||
const state: BasicTableProps = reactive<BasicTableProps>({
|
||||
queryForm: searchForm,
|
||||
pageList: async (params: any) => {
|
||||
// 处理处分月份参数,API需要数组格式
|
||||
// 处理处分月份参数,API需要数组格<EFBFBD><EFBFBD>?
|
||||
const queryParams = { ...params }
|
||||
if (queryParams.punlishMonth) {
|
||||
queryParams.punlishMonth = [queryParams.punlishMonth]
|
||||
@@ -388,7 +388,7 @@ const {
|
||||
tableStyle
|
||||
} = useTable(state)
|
||||
|
||||
// 格式化学期
|
||||
// 格式化学<EFBFBD><EFBFBD>?
|
||||
const formatSchoolTerm = (value: string | number) => {
|
||||
if (value === null || value === undefined || value === '') {
|
||||
return '-'
|
||||
@@ -397,7 +397,7 @@ const formatSchoolTerm = (value: string | number) => {
|
||||
return dictItem ? dictItem.label : value
|
||||
}
|
||||
|
||||
// 格式化日期
|
||||
// 格式化日<EFBFBD><EFBFBD>?
|
||||
const formatDate = (dateStr: string) => {
|
||||
if (!dateStr) return '-'
|
||||
// 如果包含时间部分,只显示日期部分
|
||||
@@ -407,14 +407,14 @@ const formatDate = (dateStr: string) => {
|
||||
return dateStr
|
||||
}
|
||||
|
||||
// 格式化处分级别
|
||||
// 格式化处分级<EFBFBD><EFBFBD>?
|
||||
const formatPunlishLevel = (value: string) => {
|
||||
if (!value) return '-'
|
||||
const item = punlishLevelList.value.find((item: any) => item.value === value)
|
||||
return item ? item.label : value
|
||||
}
|
||||
|
||||
// 格式化处分状态
|
||||
// 格式化处分状<EFBFBD><EFBFBD>?
|
||||
const formatPublishStatus = (value: string) => {
|
||||
if (!value) return '-'
|
||||
const item = publishStatusList.value.find((item: any) => item.value === value)
|
||||
@@ -448,7 +448,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()
|
||||
@@ -461,7 +461,7 @@ const handleDelete = async (row: any) => {
|
||||
|
||||
// 思想汇报
|
||||
const handleReport = (row: any) => {
|
||||
useMessage().info('思想汇报功能待实现')
|
||||
useMessage().info('思想汇报功能待实<EFBFBD><EFBFBD>?)
|
||||
// TODO: 实现思想汇报功能
|
||||
}
|
||||
|
||||
@@ -469,16 +469,16 @@ const handleReport = (row: any) => {
|
||||
const handleCancel = async (row: any) => {
|
||||
const { confirm } = useMessageBox()
|
||||
try {
|
||||
await confirm('确定要撤销该处分吗?')
|
||||
await confirm('确定要撤销该处分吗<EFBFBD><EFBFBD>?)
|
||||
|
||||
// 获取完整的处分信息
|
||||
// 获取完整的处分信<EFBFBD><EFBFBD>?
|
||||
const res = await getDetail(row.id)
|
||||
if (!res.data) {
|
||||
useMessage().error('获取处分信息失败')
|
||||
return
|
||||
}
|
||||
|
||||
// 更新publishStatus为"0"来撤销处分
|
||||
// 更新publishStatus<EFBFBD><EFBFBD>?0"来撤销处分
|
||||
const updateData = {
|
||||
...res.data,
|
||||
publishStatus: '0'
|
||||
@@ -498,7 +498,7 @@ const handleCancel = async (row: any) => {
|
||||
const handleExport = async () => {
|
||||
try {
|
||||
const params: any = { ...searchForm }
|
||||
// 处理处分月份参数,API需要数组格式
|
||||
// 处理处分月份参数,API需要数组格<EFBFBD><EFBFBD>?
|
||||
if (params.punlishMonth) {
|
||||
params.punlishMonth = [params.punlishMonth]
|
||||
} else {
|
||||
@@ -588,7 +588,7 @@ const getPunlishLevelDict = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 获取处分状态字典
|
||||
// 获取处分状态字<EFBFBD><EFBFBD>?
|
||||
const getPublishStatusDict = async () => {
|
||||
try {
|
||||
const res = await getDicts('publish_status')
|
||||
@@ -603,7 +603,7 @@ const getPublishStatusDict = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 初始化
|
||||
// 初始<EFBFBD><EFBFBD>?
|
||||
onMounted(() => {
|
||||
getSchoolYearList()
|
||||
getSchoolTermDict()
|
||||
@@ -618,3 +618,7 @@ onMounted(() => {
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
|
||||
@@ -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>
|
||||
@@ -45,7 +45,7 @@
|
||||
<el-form-item label="学号" prop="stuNo">
|
||||
<el-input
|
||||
v-model="searchForm.stuNo"
|
||||
placeholder="请输入学号"
|
||||
placeholder="请输入学<EFBFBD><EFBFBD>?
|
||||
clearable
|
||||
style="width: 200px" />
|
||||
</el-form-item>
|
||||
@@ -85,7 +85,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>
|
||||
@@ -184,7 +184,7 @@ import TableColumnControl from '/@/components/TableColumnControl/index.vue'
|
||||
import FormDialog from './form.vue'
|
||||
import { List, Calendar, Clock, OfficeBuilding, Grid, CreditCard, Avatar, Document, UserFilled, Phone, EditPen, Setting, Menu, Search } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
|
||||
|
||||
// 定义变量内容
|
||||
const route = useRoute()
|
||||
@@ -196,7 +196,7 @@ const classList = ref<any[]>([])
|
||||
const schoolTermList = ref<any[]>([])
|
||||
const formDialogRef = ref()
|
||||
|
||||
// 表格列配置
|
||||
// 表格列配<EFBFBD><EFBFBD>?
|
||||
const tableColumns = [
|
||||
{ prop: 'schoolYear', label: '学年', icon: Calendar },
|
||||
{ prop: 'schoolTerm', label: '学期', icon: Clock },
|
||||
@@ -204,10 +204,10 @@ const tableColumns = [
|
||||
{ prop: 'classCode', label: '班级代码', icon: Grid },
|
||||
{ prop: 'stuNo', label: '学号', icon: CreditCard },
|
||||
{ prop: 'realName', label: '姓名', icon: Avatar },
|
||||
{ prop: 'startTime', label: '请假开始时间', icon: Calendar, width: 180 },
|
||||
{ prop: 'startTime', label: '请假开始时<EFBFBD><EFBFBD>?, icon: Calendar, width: 180 },
|
||||
{ prop: 'endTime', label: '请假结束时间', icon: Calendar, width: 180 },
|
||||
{ prop: 'reason', label: '请假事由', icon: Document, minWidth: 150 },
|
||||
{ prop: 'classTeach', label: '班主任', icon: UserFilled },
|
||||
{ prop: 'classTeach', label: '班主<EFBFBD><EFBFBD>?, icon: UserFilled },
|
||||
{ prop: 'stuPhote', label: '联系方式', icon: Phone },
|
||||
{ prop: 'remarks', label: '备注', icon: EditPen, minWidth: 150 }
|
||||
]
|
||||
@@ -247,7 +247,7 @@ const {
|
||||
tableStyle
|
||||
} = useTable(state)
|
||||
|
||||
// 格式化学期
|
||||
// 格式化学<EFBFBD><EFBFBD>?
|
||||
const formatSchoolTerm = (value: string | number) => {
|
||||
if (value === null || value === undefined || value === '') {
|
||||
return '-'
|
||||
@@ -256,10 +256,10 @@ const formatSchoolTerm = (value: string | number) => {
|
||||
return dictItem ? dictItem.label : value
|
||||
}
|
||||
|
||||
// 格式化日期时间
|
||||
// 格式化日期时<EFBFBD><EFBFBD>?
|
||||
const formatDateTime = (dateTime: string) => {
|
||||
if (!dateTime) return '-'
|
||||
// 如果包含时间部分,只显示日期和时间
|
||||
// 如果包含时间部分,只显示日期和时<EFBFBD><EFBFBD>?
|
||||
if (dateTime.includes(' ')) {
|
||||
return dateTime.split('.')[0] // 移除毫秒部分
|
||||
}
|
||||
@@ -331,7 +331,7 @@ const getSchoolTermDict = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 初始化
|
||||
// 初始<EFBFBD><EFBFBD>?
|
||||
onMounted(() => {
|
||||
getDeptListData()
|
||||
getClassListData()
|
||||
@@ -340,5 +340,6 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
@@ -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>
|
||||
@@ -30,21 +30,21 @@
|
||||
<el-form-item label="班号" prop="classNo">
|
||||
<el-input
|
||||
v-model="state.queryForm.classNo"
|
||||
placeholder="请输入班号"
|
||||
placeholder="请输入班<EFBFBD><EFBFBD>?
|
||||
clearable
|
||||
style="width: 200px" />
|
||||
</el-form-item>
|
||||
<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="serNo">
|
||||
<el-input
|
||||
v-model="state.queryForm.serNo"
|
||||
placeholder="请输入团员编号"
|
||||
placeholder="请输入团员编<EFBFBD><EFBFBD>?
|
||||
clearable
|
||||
style="width: 200px" />
|
||||
</el-form-item>
|
||||
@@ -112,7 +112,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>
|
||||
@@ -153,11 +153,11 @@
|
||||
<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 === 'enterTime'" #default="scope">
|
||||
<span>{{ parseTime(scope.row.enterTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
<!-- 团内职务列特殊模板 -->
|
||||
<!-- 团内职务列特殊模<EFBFBD><EFBFBD>?-->
|
||||
<template v-else-if="col.prop === 'position'" #default="scope">
|
||||
<el-tag v-if="scope.row.position" size="small" type="primary" effect="plain">
|
||||
{{ scope.row.position }}
|
||||
@@ -220,7 +220,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">
|
||||
@@ -230,8 +230,8 @@
|
||||
</el-upload>
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
<el-button @click="importDialogVisible = false">取 消</el-button>
|
||||
<el-button type="primary" @click="handleImportSubmit" :loading="importLoading">确 认</el-button>
|
||||
<el-button @click="importDialogVisible = false"><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?/el-button>
|
||||
<el-button type="primary" @click="handleImportSubmit" :loading="importLoading"><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?/el-button>
|
||||
</span>
|
||||
</template>
|
||||
</el-dialog>
|
||||
@@ -250,7 +250,7 @@ import { parseTime } from "/@/utils/formatTime";
|
||||
import TableColumnControl from '/@/components/TableColumnControl/index.vue'
|
||||
import { UploadFilled, List, OfficeBuilding, Grid, CreditCard, Avatar, Phone, Calendar, Postcard, Briefcase, Setting, Menu, Search, Document } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
|
||||
import type { UploadFile, UploadFiles } from 'element-plus';
|
||||
import FormDialog from './form.vue'
|
||||
|
||||
@@ -267,7 +267,7 @@ const importDialogVisible = ref(false)
|
||||
const importLoading = ref(false)
|
||||
const fileList = ref<UploadFile[]>([])
|
||||
|
||||
// 表格列配置
|
||||
// 表格列配<EFBFBD><EFBFBD>?
|
||||
const tableColumns = [
|
||||
{ prop: 'deptName', label: '学院', minWidth: 150 },
|
||||
{ prop: 'classNo', label: '班级', width: 120 },
|
||||
@@ -279,7 +279,7 @@ const tableColumns = [
|
||||
{ prop: 'position', label: '团内职务', width: 120 }
|
||||
]
|
||||
|
||||
// 列配置映射(用于图标)
|
||||
// 列配置映射(用于图标<EFBFBD><EFBFBD>?
|
||||
const columnConfigMap: Record<string, { icon: any }> = {
|
||||
deptName: { icon: OfficeBuilding },
|
||||
classNo: { icon: Grid },
|
||||
@@ -375,7 +375,7 @@ const handleFileChange = (file: UploadFile, files: UploadFiles) => {
|
||||
|
||||
// 文件超出限制
|
||||
const handleExceed = () => {
|
||||
useMessage().warning('只能上传一个文件')
|
||||
useMessage().warning('只能上传一个文<EFBFBD><EFBFBD>?)
|
||||
}
|
||||
|
||||
// 提交导入
|
||||
@@ -387,7 +387,7 @@ const handleImportSubmit = async () => {
|
||||
|
||||
const file = fileList.value[0].raw
|
||||
if (!file) {
|
||||
useMessage().warning('文件不存在')
|
||||
useMessage().warning('文件不存<EFBFBD><EFBFBD>?)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -452,7 +452,7 @@ const getGradeListData = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 初始化
|
||||
// 初始<EFBFBD><EFBFBD>?
|
||||
onMounted(() => {
|
||||
getClassListData()
|
||||
getGradeListData()
|
||||
@@ -464,5 +464,6 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
|
||||
@@ -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>
|
||||
@@ -59,21 +59,21 @@
|
||||
<el-form-item label="班号" prop="classNo">
|
||||
<el-input
|
||||
v-model="searchForm.classNo"
|
||||
placeholder="请输入班号"
|
||||
placeholder="请输入班<EFBFBD><EFBFBD>?
|
||||
clearable
|
||||
style="width: 200px" />
|
||||
</el-form-item>
|
||||
<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>
|
||||
@@ -81,8 +81,8 @@
|
||||
<el-date-picker
|
||||
v-model="searchForm.dateRange"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
range-separator="<EFBFBD><EFBFBD>?
|
||||
start-placeholder="开始日<EFBFBD><EFBFBD>?
|
||||
end-placeholder="结束日期"
|
||||
format="YYYY-MM-DD"
|
||||
value-format="YYYY-MM-DD"
|
||||
@@ -109,7 +109,7 @@
|
||||
icon="FolderAdd"
|
||||
type="primary"
|
||||
@click="formDialogRef.openDialog()">
|
||||
新 增
|
||||
<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?
|
||||
</el-button>
|
||||
<el-button
|
||||
icon="User"
|
||||
@@ -132,7 +132,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>
|
||||
@@ -173,7 +173,7 @@
|
||||
<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) }}
|
||||
@@ -183,11 +183,11 @@
|
||||
<template v-else-if="col.prop === 'startTime'" #default="scope">
|
||||
<span>{{ scope.row.startTime ? scope.row.startTime.split(' ')[0] : '-' }}</span>
|
||||
</template>
|
||||
<!-- 工学交替结束时间列特殊模板 -->
|
||||
<!-- 工学交替结束时间列特殊模<EFBFBD><EFBFBD>?-->
|
||||
<template v-else-if="col.prop === 'endTime'" #default="scope">
|
||||
<span>{{ scope.row.endTime ? scope.row.endTime.split(' ')[0] : '-' }}</span>
|
||||
</template>
|
||||
<!-- 带班教师列特殊模板 -->
|
||||
<!-- 带班教师列特殊模<EFBFBD><EFBFBD>?-->
|
||||
<template v-else-if="col.prop === 'attendanceTeacherName'" #default="scope">
|
||||
<span>{{ scope.row.attendanceTeacherName || '-' }}</span>
|
||||
</template>
|
||||
@@ -242,7 +242,7 @@ import FormDialog from './form.vue'
|
||||
import TeacherDialog from './teacher.vue'
|
||||
import { List, Calendar, Clock, OfficeBuilding, CreditCard, Avatar, Grid, UserFilled, Setting, Menu, Search, Document } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
|
||||
|
||||
// 定义变量内容
|
||||
const route = useRoute()
|
||||
@@ -255,7 +255,7 @@ const schoolTermList = ref<any[]>([])
|
||||
const formDialogRef = ref()
|
||||
const teacherDialogRef = ref()
|
||||
|
||||
// 表格列配置
|
||||
// 表格列配<EFBFBD><EFBFBD>?
|
||||
const tableColumns = [
|
||||
{ prop: 'schoolYear', label: '学年' },
|
||||
{ prop: 'schoolTerm', label: '学期' },
|
||||
@@ -263,13 +263,13 @@ const tableColumns = [
|
||||
{ prop: 'stuNo', label: '学号' },
|
||||
{ prop: 'realName', label: '姓名' },
|
||||
{ prop: 'classNo', label: '班号' },
|
||||
{ prop: 'className', label: '班级简称' },
|
||||
{ prop: 'startTime', label: '工学交替开始时间', width: 180 },
|
||||
{ prop: 'className', label: '班级简<EFBFBD><EFBFBD>? },
|
||||
{ prop: 'startTime', label: '工学交替开始时<EFBFBD><EFBFBD>?, width: 180 },
|
||||
{ prop: 'endTime', label: '工学交替结束时间', width: 180 },
|
||||
{ prop: 'attendanceTeacherName', label: '带班教师' }
|
||||
]
|
||||
|
||||
// 列配置映射(用于图标)
|
||||
// 列配置映射(用于图标<EFBFBD><EFBFBD>?
|
||||
const columnConfigMap: Record<string, { icon: any }> = {
|
||||
schoolYear: { icon: Calendar },
|
||||
schoolTerm: { icon: Clock },
|
||||
@@ -357,7 +357,7 @@ const handleReset = () => {
|
||||
// 删除
|
||||
const handleDelete = async (row: any) => {
|
||||
try {
|
||||
await useMessageBox().confirm('确定要删除这条记录吗?')
|
||||
await useMessageBox().confirm('确定要删除这条记录吗<EFBFBD><EFBFBD>?)
|
||||
await delObj([row.id])
|
||||
useMessage().success('删除成功')
|
||||
getDataList()
|
||||
@@ -404,7 +404,7 @@ const getSchoolTermList = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 初始化
|
||||
// 初始<EFBFBD><EFBFBD>?
|
||||
onMounted(() => {
|
||||
getDeptListData()
|
||||
getSchoolYearList()
|
||||
@@ -416,3 +416,7 @@ onMounted(() => {
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<div class="card-header">
|
||||
<span class="card-title">
|
||||
<el-icon class="title-icon"><Document /></el-icon>
|
||||
教学楼管理列表
|
||||
教学楼管理列<EFBFBD><EFBFBD>?
|
||||
</span>
|
||||
<div class="header-actions">
|
||||
<el-button
|
||||
@@ -29,7 +29,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>
|
||||
@@ -121,20 +121,20 @@ import TableColumnControl from '/@/components/TableColumnControl/index.vue'
|
||||
import FormDialog from './form.vue'
|
||||
import { List, OfficeBuilding, EditPen, Setting, Menu, Calendar, Document } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
|
||||
|
||||
// 定义变量内容
|
||||
const route = useRoute()
|
||||
const formDialogRef = ref()
|
||||
const columnControlRef = ref<any>()
|
||||
|
||||
// 表格列配置
|
||||
// 表格列配<EFBFBD><EFBFBD>?
|
||||
const tableColumns = [
|
||||
{ prop: 'buildingNo', label: '楼号' },
|
||||
{ prop: 'remarks', label: '备注', minWidth: 200 }
|
||||
]
|
||||
|
||||
// 列配置映射(用于图标)
|
||||
// 列配置映射(用于图标<EFBFBD><EFBFBD>?
|
||||
const columnConfigMap: Record<string, { icon: any }> = {
|
||||
buildingNo: { icon: OfficeBuilding },
|
||||
remarks: { icon: EditPen }
|
||||
@@ -177,7 +177,7 @@ const handleEdit = (row: any) => {
|
||||
const handleDelete = async (row: any) => {
|
||||
const { confirm } = useMessageBox()
|
||||
try {
|
||||
await confirm('确定要删除该教学楼吗?')
|
||||
await confirm('确定要删除该教学楼吗<EFBFBD><EFBFBD>?)
|
||||
await delObj([row.id])
|
||||
useMessage().success('删除成功')
|
||||
getDataList()
|
||||
@@ -188,7 +188,7 @@ const handleDelete = async (row: any) => {
|
||||
}
|
||||
}
|
||||
|
||||
// 初始化
|
||||
// 初始<EFBFBD><EFBFBD>?
|
||||
onMounted(() => {
|
||||
nextTick(() => {
|
||||
if (visibleColumns.value.length === 0) {
|
||||
@@ -198,5 +198,6 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
|
||||
@@ -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>
|
||||
@@ -86,7 +86,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>
|
||||
@@ -187,7 +187,7 @@ import FormDialog from './form.vue'
|
||||
import BatchDialog from './batch.vue'
|
||||
import { List, OfficeBuilding, Location, Setting, Menu, Calendar, Search, Document } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
|
||||
|
||||
// 定义变量内容
|
||||
const route = useRoute()
|
||||
@@ -200,14 +200,14 @@ const formDialogRef = ref()
|
||||
const batchDialogRef = ref()
|
||||
const selectedRows = ref<any[]>([])
|
||||
|
||||
// 表格列配置
|
||||
// 表格列配<EFBFBD><EFBFBD>?
|
||||
const tableColumns = [
|
||||
{ prop: 'deptName', label: '学院' },
|
||||
{ prop: 'buildingNo', label: '楼号' },
|
||||
{ prop: 'position', label: '教室位置' }
|
||||
]
|
||||
|
||||
// 列配置映射(用于图标)
|
||||
// 列配置映射(用于图标<EFBFBD><EFBFBD>?
|
||||
const columnConfigMap: Record<string, { icon: any }> = {
|
||||
deptName: { icon: OfficeBuilding },
|
||||
buildingNo: { icon: OfficeBuilding },
|
||||
@@ -317,7 +317,7 @@ const getBuildingListData = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 初始化
|
||||
// 初始<EFBFBD><EFBFBD>?
|
||||
onMounted(() => {
|
||||
getDeptListData()
|
||||
getBuildingListData()
|
||||
@@ -329,5 +329,6 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
|
||||
@@ -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>
|
||||
@@ -60,7 +60,7 @@
|
||||
<el-form-item label="年纪" prop="gradeCurr">
|
||||
<el-input-number
|
||||
v-model="state.queryForm.gradeCurr"
|
||||
placeholder="请输入年纪"
|
||||
placeholder="请输入年<EFBFBD><EFBFBD>?
|
||||
:min="1"
|
||||
:max="10"
|
||||
clearable
|
||||
@@ -81,10 +81,10 @@
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="审核状态" prop="checkStatus">
|
||||
<el-form-item label="审核状<EFBFBD><EFBFBD>? prop="checkStatus">
|
||||
<el-select
|
||||
v-model="state.queryForm.checkStatus"
|
||||
placeholder="请选择审核状态"
|
||||
placeholder="请选择审核状<EFBFBD><EFBFBD>?
|
||||
clearable
|
||||
style="width: 200px">
|
||||
<el-option
|
||||
@@ -108,7 +108,7 @@
|
||||
<div class="card-header">
|
||||
<span class="card-title">
|
||||
<el-icon class="title-icon"><Document /></el-icon>
|
||||
免学费学生列表
|
||||
免学费学生列<EFBFBD><EFBFBD>?
|
||||
</span>
|
||||
<div class="header-actions">
|
||||
<el-button
|
||||
@@ -139,7 +139,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>
|
||||
@@ -180,32 +180,32 @@
|
||||
<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 === 'gradeCurr'" #default="scope">
|
||||
<el-tag v-if="scope.row.gradeCurr !== undefined && scope.row.gradeCurr !== null" size="small" type="primary" effect="plain">
|
||||
{{ scope.row.gradeCurr }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<!-- 性别列特殊模板 -->
|
||||
<!-- 性别列特殊模<EFBFBD><EFBFBD>?-->
|
||||
<template v-else-if="col.prop === 'gender'" #default="scope">
|
||||
<GenderTag :sex="scope.row.gender" />
|
||||
</template>
|
||||
<!-- 生源列特殊模板 -->
|
||||
<!-- 生源列特殊模<EFBFBD><EFBFBD>?-->
|
||||
<template v-else-if="col.prop === 'education'" #default="scope">
|
||||
<el-tag v-if="scope.row.education" size="small" type="info" effect="plain">
|
||||
{{ formatEducation(scope.row.education) }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<!-- 层次列特殊模板 -->
|
||||
<!-- 层次列特殊模<EFBFBD><EFBFBD>?-->
|
||||
<template v-else-if="col.prop === 'majorLevel'" #default="scope">
|
||||
<el-tag v-if="scope.row.majorLevel" size="small" type="warning" effect="plain">
|
||||
{{ formatMajorLevel(scope.row.majorLevel) }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<!-- 金额列特殊模板 -->
|
||||
<!-- 金额列特殊模<EFBFBD><EFBFBD>?-->
|
||||
<template v-else-if="col.prop === 'money'" #default="scope">
|
||||
<el-tag v-if="scope.row.money !== undefined && scope.row.money !== null" size="small" type="success" effect="plain">
|
||||
¥{{ scope.row.money }}
|
||||
@@ -280,7 +280,7 @@ import {
|
||||
CreditCard, Avatar, Setting, Menu, Search, Document
|
||||
} from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
|
||||
|
||||
// 引入组件
|
||||
const GenderTag = defineAsyncComponent(() => import('/@/components/GenderTag/index.vue'))
|
||||
@@ -301,15 +301,15 @@ const genderList = ref<any[]>([])
|
||||
const educationList = ref<any[]>([])
|
||||
const majorLevelList = ref<any[]>([])
|
||||
const checkStatusList = ref<any[]>([
|
||||
{ label: '待审核', value: '0' },
|
||||
{ label: '待审<EFBFBD><EFBFBD>?, value: '0' },
|
||||
{ label: '审核通过', value: '1' }
|
||||
])
|
||||
|
||||
// 表格列配置
|
||||
// 表格列配<EFBFBD><EFBFBD>?
|
||||
const tableColumns = [
|
||||
{ prop: 'deptName', label: '学院', minWidth: 150 },
|
||||
{ prop: 'majorName', label: '专业', minWidth: 150 },
|
||||
{ prop: 'teacherName', label: '班主任', width: 100 },
|
||||
{ prop: 'teacherName', label: '班主<EFBFBD><EFBFBD>?, width: 100 },
|
||||
{ prop: 'grade', label: '入学年份', width: 100 },
|
||||
{ prop: 'gradeCurr', label: '年级', width: 80 },
|
||||
{ prop: 'classNo', label: '班级', width: 120 },
|
||||
@@ -320,10 +320,10 @@ const tableColumns = [
|
||||
{ prop: 'majorLevel', label: '层次', width: 100 },
|
||||
{ prop: 'phone', label: '联系电话', width: 120 },
|
||||
{ prop: 'money', label: '金额', width: 100 },
|
||||
{ prop: 'checkStatus', label: '审核状态', width: 100 }
|
||||
{ prop: 'checkStatus', label: '审核状<EFBFBD><EFBFBD>?, width: 100 }
|
||||
]
|
||||
|
||||
// 列配置映射(用于图标)
|
||||
// 列配置映射(用于图标<EFBFBD><EFBFBD>?
|
||||
const columnConfigMap: Record<string, { icon: any }> = {
|
||||
deptName: { icon: OfficeBuilding },
|
||||
majorName: { icon: Reading },
|
||||
@@ -391,7 +391,7 @@ const formatGender = (value: string | number) => {
|
||||
return dictItem ? dictItem.label : value
|
||||
}
|
||||
|
||||
// 格式化生源
|
||||
// 格式化生<EFBFBD><EFBFBD>?
|
||||
const formatEducation = (value: string | number) => {
|
||||
if (value === null || value === undefined || value === '') {
|
||||
return '-'
|
||||
@@ -400,7 +400,7 @@ const formatEducation = (value: string | number) => {
|
||||
return dictItem ? dictItem.label : value
|
||||
}
|
||||
|
||||
// 格式化层次
|
||||
// 格式化层<EFBFBD><EFBFBD>?
|
||||
const formatMajorLevel = (value: string | number) => {
|
||||
if (value === null || value === undefined || value === '') {
|
||||
return '-'
|
||||
@@ -409,7 +409,7 @@ const formatMajorLevel = (value: string | number) => {
|
||||
return dictItem ? dictItem.label : value
|
||||
}
|
||||
|
||||
// 格式化审核状态
|
||||
// 格式化审核状<EFBFBD><EFBFBD>?
|
||||
const formatCheckStatus = (value: string | number) => {
|
||||
if (value === null || value === undefined || value === '') {
|
||||
return '-'
|
||||
@@ -432,13 +432,13 @@ const handleReset = () => {
|
||||
|
||||
// 新增
|
||||
const handleAdd = () => {
|
||||
useMessage().info('新增功能待开发')
|
||||
useMessage().info('新增功能待开<EFBFBD><EFBFBD>?)
|
||||
// formDialogRef.value?.openDialog('add')
|
||||
}
|
||||
|
||||
// 编辑
|
||||
const handleEdit = (row: any) => {
|
||||
useMessage().info('编辑功能待开发')
|
||||
useMessage().info('编辑功能待开<EFBFBD><EFBFBD>?)
|
||||
// formDialogRef.value?.openDialog('edit', row.id)
|
||||
}
|
||||
|
||||
@@ -590,7 +590,7 @@ const getMajorLevelDict = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 初始化
|
||||
// 初始<EFBFBD><EFBFBD>?
|
||||
onMounted(() => {
|
||||
getTermList()
|
||||
getDeptListData()
|
||||
@@ -607,4 +607,5 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
@@ -191,8 +191,7 @@ import { parseTime } from "/@/utils/formatTime";
|
||||
import TableColumnControl from '/@/components/TableColumnControl/index.vue'
|
||||
import FormDialog from './form.vue'
|
||||
import { List, Document, Calendar, Clock, Collection, Setting, Menu, Search } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumn'
|
||||
|
||||
// 定义变量内容
|
||||
const route = useRoute()
|
||||
@@ -368,5 +367,6 @@ onMounted(() => {
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
|
||||
@@ -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>
|
||||
@@ -46,7 +46,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="searchForm.roomNo"
|
||||
placeholder="请输入宿舍号"
|
||||
@@ -73,21 +73,21 @@
|
||||
icon="FolderAdd"
|
||||
type="primary"
|
||||
@click="formDialogRef.openDialog()">
|
||||
新 增
|
||||
<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?
|
||||
</el-button>
|
||||
<el-button
|
||||
icon="Download"
|
||||
type="success"
|
||||
class="ml10"
|
||||
@click="handleExport">
|
||||
导 出
|
||||
<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?
|
||||
</el-button>
|
||||
<el-button
|
||||
icon="Setting"
|
||||
type="warning"
|
||||
class="ml10"
|
||||
@click="handleInitWaterOrder">
|
||||
初始化本期水电补贴
|
||||
初始化本期水电补<EFBFBD><EFBFBD>?
|
||||
</el-button>
|
||||
<right-toolbar
|
||||
v-model:showSearch="showSearch"
|
||||
@@ -103,7 +103,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>
|
||||
@@ -152,14 +152,14 @@
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<!-- 已住人数列特殊模板 -->
|
||||
<!-- 已住人数列特殊模<EFBFBD><EFBFBD>?-->
|
||||
<template v-else-if="col.prop === 'liveNum'" #default="scope">
|
||||
<el-tag v-if="scope.row.liveNum !== undefined && scope.row.liveNum !== null" size="small" type="success" effect="plain">
|
||||
{{ scope.row.liveNum }}
|
||||
</el-tag>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<!-- 校园补贴列特殊模板 -->
|
||||
<!-- 校园补贴列特殊模<EFBFBD><EFBFBD>?-->
|
||||
<template v-else-if="col.prop === 'oddbMoney'" #default="scope">
|
||||
<el-tag v-if="scope.row.oddbMoney" size="small" type="success" effect="plain">
|
||||
¥{{ Number(scope.row.oddbMoney).toFixed(2) }}
|
||||
@@ -173,14 +173,14 @@
|
||||
</el-tag>
|
||||
<span v-else>¥0.00</span>
|
||||
</template>
|
||||
<!-- 消费金额列特殊模板 -->
|
||||
<!-- 消费金额列特殊模<EFBFBD><EFBFBD>?-->
|
||||
<template v-else-if="col.prop === 'costMoney'" #default="scope">
|
||||
<el-tag v-if="scope.row.costMoney" size="small" type="warning" effect="plain">
|
||||
¥{{ Number(scope.row.costMoney).toFixed(2) }}
|
||||
</el-tag>
|
||||
<span v-else>¥0.00</span>
|
||||
</template>
|
||||
<!-- 可用余额列特殊模板 -->
|
||||
<!-- 可用余额列特殊模<EFBFBD><EFBFBD>?-->
|
||||
<template v-else-if="col.prop === 'effectiveMoney'" #default="scope">
|
||||
<el-tag size="small" :type="Number(scope.row.effectiveMoney) < 0 ? 'danger' : 'success'" effect="plain">
|
||||
¥{{ scope.row.effectiveMoney ? Number(scope.row.effectiveMoney).toFixed(2) : '0.00' }}
|
||||
@@ -235,22 +235,22 @@
|
||||
<!-- 明细弹窗 -->
|
||||
<DetailDialog ref="detailDialogRef" />
|
||||
|
||||
<!-- 初始化水电补贴弹窗 -->
|
||||
<el-dialog v-model="initDialogVisible" title="初始化本期水电补贴" :width="500" :close-on-click-modal="false" draggable>
|
||||
<!-- 初始化水电补贴弹<EFBFBD><EFBFBD>?-->
|
||||
<el-dialog v-model="initDialogVisible" title="初始化本期水电补<EFBFBD><EFBFBD>? :width="500" :close-on-click-modal="false" draggable>
|
||||
<el-form ref="initFormRef" :model="initForm" :rules="initRules" label-width="120px">
|
||||
<el-form-item label="补贴金额" prop="costMoney">
|
||||
<el-input-number
|
||||
v-model="initForm.costMoney"
|
||||
:precision="2"
|
||||
:min="0"
|
||||
placeholder="请输入补贴金额"
|
||||
placeholder="请输入补贴金<EFBFBD><EFBFBD>?
|
||||
style="width: 100%" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
<el-button @click="initDialogVisible = false">取 消</el-button>
|
||||
<el-button type="primary" @click="confirmInit" :loading="initLoading">确 认</el-button>
|
||||
<el-button @click="initDialogVisible = false"><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?/el-button>
|
||||
<el-button type="primary" @click="confirmInit" :loading="initLoading"><EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?/el-button>
|
||||
</span>
|
||||
</template>
|
||||
</el-dialog>
|
||||
@@ -269,7 +269,7 @@ import FormDialog from './form.vue';
|
||||
import DetailDialog from './detail.vue';
|
||||
import { List, OfficeBuilding, House, UserFilled, Money, Setting, Menu, Search, Document } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
|
||||
|
||||
// 定义变量内容
|
||||
const route = useRoute()
|
||||
@@ -283,19 +283,19 @@ const buildingList = ref<any[]>([])
|
||||
const initDialogVisible = ref(false)
|
||||
const initLoading = ref(false)
|
||||
|
||||
// 表格列配置
|
||||
// 表格列配<EFBFBD><EFBFBD>?
|
||||
const tableColumns = [
|
||||
{ prop: 'buildNo', label: '楼号' },
|
||||
{ prop: 'roomNo', label: '宿舍号' },
|
||||
{ prop: 'bedNum', label: '几人间' },
|
||||
{ prop: 'roomNo', label: '宿舍<EFBFBD><EFBFBD>? },
|
||||
{ prop: 'bedNum', label: '几人<EFBFBD><EFBFBD>? },
|
||||
{ prop: 'liveNum', label: '已住人数' },
|
||||
{ prop: 'oddbMoney', label: '校园补贴' },
|
||||
{ prop: 'rechargeMoney', label: '充值金额' },
|
||||
{ prop: 'rechargeMoney', label: '充值金<EFBFBD><EFBFBD>? },
|
||||
{ prop: 'costMoney', label: '消费金额' },
|
||||
{ prop: 'effectiveMoney', label: '可用余额' }
|
||||
]
|
||||
|
||||
// 列配置映射(用于图标)
|
||||
// 列配置映射(用于图标<EFBFBD><EFBFBD>?
|
||||
const columnConfigMap: Record<string, { icon: any }> = {
|
||||
buildNo: { icon: OfficeBuilding },
|
||||
roomNo: { icon: House },
|
||||
@@ -324,15 +324,15 @@ const searchForm = reactive({
|
||||
roomNo: ''
|
||||
})
|
||||
|
||||
// 初始化表单
|
||||
// 初始化表<EFBFBD><EFBFBD>?
|
||||
const initForm = reactive({
|
||||
costMoney: 0
|
||||
})
|
||||
|
||||
// 初始化表单验证规则
|
||||
// 初始化表单验证规<EFBFBD><EFBFBD>?
|
||||
const initRules = {
|
||||
costMoney: [
|
||||
{ required: true, message: '请输入补贴金额', trigger: 'blur' },
|
||||
{ required: true, message: '请输入补贴金<EFBFBD><EFBFBD>?, trigger: 'blur' },
|
||||
{ type: 'number', min: 0, message: '补贴金额必须大于等于0', trigger: 'blur' }
|
||||
]
|
||||
}
|
||||
@@ -402,13 +402,13 @@ const handleExport = () => {
|
||||
useMessage().warning('导出功能开发中')
|
||||
}
|
||||
|
||||
// 初始化本期水电补贴
|
||||
// 初始化本期水电补<EFBFBD><EFBFBD>?
|
||||
const handleInitWaterOrder = () => {
|
||||
initDialogVisible.value = true
|
||||
initForm.costMoney = 0
|
||||
}
|
||||
|
||||
// 确认初始化
|
||||
// 确认初始<EFBFBD><EFBFBD>?
|
||||
const confirmInit = async () => {
|
||||
if (!initFormRef.value) return
|
||||
|
||||
@@ -418,11 +418,11 @@ const confirmInit = async () => {
|
||||
initLoading.value = true
|
||||
try {
|
||||
await initWaterOrder({ costMoney: initForm.costMoney })
|
||||
useMessage().success('初始化成功')
|
||||
useMessage().success('初始化成<EFBFBD><EFBFBD>?)
|
||||
initDialogVisible.value = false
|
||||
getDataList()
|
||||
} catch (err: any) {
|
||||
useMessage().error(err.msg || '初始化失败')
|
||||
useMessage().error(err.msg || '初始化失<EFBFBD><EFBFBD>?)
|
||||
} finally {
|
||||
initLoading.value = false
|
||||
}
|
||||
@@ -441,7 +441,7 @@ const getBuildingListData = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 初始化
|
||||
// 初始<EFBFBD><EFBFBD>?
|
||||
onMounted(() => {
|
||||
getBuildingListData()
|
||||
nextTick(() => {
|
||||
@@ -451,3 +451,7 @@ onMounted(() => {
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
|
||||
@@ -7,12 +7,12 @@
|
||||
<div class="card-header">
|
||||
<span class="card-title">
|
||||
<el-icon class="title-icon"><Search /></el-icon>
|
||||
筛选条件
|
||||
筛选条<EFBFBD><EFBFBD>?
|
||||
</span>
|
||||
</div>
|
||||
</template>
|
||||
<el-form :model="searchForm" ref="searchFormRef" :inline="true" @keyup.enter="handleSearch" class="search-form">
|
||||
<el-form-item label="宿舍号" prop="roomNo">
|
||||
<el-form-item label="宿舍<EFBFBD><EFBFBD>? prop="roomNo">
|
||||
<el-input
|
||||
v-model="searchForm.roomNo"
|
||||
placeholder="请输入宿舍号"
|
||||
@@ -68,7 +68,7 @@
|
||||
icon="FolderAdd"
|
||||
type="primary"
|
||||
@click="formDialogRef.openDialog()">
|
||||
新 增
|
||||
<EFBFBD><EFBFBD>?<EFBFBD><EFBFBD>?
|
||||
</el-button>
|
||||
<right-toolbar
|
||||
v-model:showSearch="showSearch"
|
||||
@@ -84,7 +84,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>
|
||||
@@ -124,13 +124,13 @@
|
||||
<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 === 'period'" #default="scope">
|
||||
<el-tag size="small" type="primary" effect="plain">
|
||||
{{ formatSchoolTerm(scope.row.period) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
<!-- 类型列特殊模板 -->
|
||||
<!-- 类型列特殊模<EFBFBD><EFBFBD>?-->
|
||||
<template v-else-if="col.prop === 'type'" #default="scope">
|
||||
<el-tag size="small" type="info" effect="plain">
|
||||
{{ formatType(scope.row.type) }}
|
||||
@@ -142,7 +142,7 @@
|
||||
{{ formatPaymentType(scope.row.paymentCode) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
<!-- 金额列特殊模板 -->
|
||||
<!-- 金额列特殊模<EFBFBD><EFBFBD>?-->
|
||||
<template v-else-if="col.prop === 'money'" #default="scope">
|
||||
<el-tag v-if="scope.row.money" size="small" type="success" effect="plain">
|
||||
¥{{ scope.row.money }}
|
||||
@@ -216,7 +216,7 @@ import TableColumnControl from '/@/components/TableColumnControl/index.vue'
|
||||
import FormDialog from './form.vue';
|
||||
import { List, House, Calendar, Clock, Document, Collection, CreditCard, Money, User, Avatar, CircleCheck, Setting, Menu, Search } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
|
||||
import { defineAsyncComponent } from 'vue'
|
||||
const StatusTag = defineAsyncComponent(() => import('/@/components/StatusTag/index.vue'))
|
||||
|
||||
@@ -233,22 +233,22 @@ const paymentTypeList = ref<any[]>([])
|
||||
const chargeStateList = ref<any[]>([])
|
||||
const stateList = ref<any[]>([])
|
||||
|
||||
// 表格列配置
|
||||
// 表格列配<EFBFBD><EFBFBD>?
|
||||
const tableColumns = [
|
||||
{ prop: 'roomNo', label: '宿舍号' },
|
||||
{ prop: 'roomNo', label: '宿舍<EFBFBD><EFBFBD>? },
|
||||
{ prop: 'year', label: '学年' },
|
||||
{ prop: 'period', label: '学期' },
|
||||
{ prop: 'orderNum', label: '订单号' },
|
||||
{ prop: 'orderNum', label: '订单<EFBFBD><EFBFBD>? },
|
||||
{ prop: 'type', label: '类型' },
|
||||
{ prop: 'paymentCode', label: '充值类型' },
|
||||
{ prop: 'paymentCode', label: '充值类<EFBFBD><EFBFBD>? },
|
||||
{ prop: 'money', label: '金额' },
|
||||
{ prop: 'chargeAccount', label: '充值人的账户' },
|
||||
{ prop: 'chargeRealname', label: '充值人的真实姓名' },
|
||||
{ prop: 'chargeState', label: '充值结果' },
|
||||
{ prop: 'state', label: '状态' }
|
||||
{ prop: 'chargeAccount', label: '充值人的账<EFBFBD><EFBFBD>? },
|
||||
{ prop: 'chargeRealname', label: '充值人的真实姓<EFBFBD><EFBFBD>? },
|
||||
{ prop: 'chargeState', label: '充值结<EFBFBD><EFBFBD>? },
|
||||
{ prop: 'state', label: '状<EFBFBD><EFBFBD>? }
|
||||
]
|
||||
|
||||
// 列配置映射(用于图标)
|
||||
// 列配置映射(用于图标<EFBFBD><EFBFBD>?
|
||||
const columnConfigMap: Record<string, { icon: any }> = {
|
||||
roomNo: { icon: House },
|
||||
year: { icon: Calendar },
|
||||
@@ -333,7 +333,7 @@ const handleDelete = async (row: any) => {
|
||||
}
|
||||
}
|
||||
|
||||
// 格式化学期
|
||||
// 格式化学<EFBFBD><EFBFBD>?
|
||||
const formatSchoolTerm = (value: string | number) => {
|
||||
if (value === null || value === undefined || value === '') {
|
||||
return '-'
|
||||
@@ -342,7 +342,7 @@ const formatSchoolTerm = (value: string | number) => {
|
||||
return dictItem ? dictItem.label : value
|
||||
}
|
||||
|
||||
// 格式化类型
|
||||
// 格式化类<EFBFBD><EFBFBD>?
|
||||
const formatType = (value: string | number) => {
|
||||
if (value === null || value === undefined || value === '') {
|
||||
return '-'
|
||||
@@ -351,7 +351,7 @@ const formatType = (value: string | number) => {
|
||||
return dictItem ? dictItem.label : value
|
||||
}
|
||||
|
||||
// 格式化充值类型
|
||||
// 格式化充值类<EFBFBD><EFBFBD>?
|
||||
const formatPaymentType = (value: string | number) => {
|
||||
if (value === null || value === undefined || value === '') {
|
||||
return '-'
|
||||
@@ -360,7 +360,7 @@ const formatPaymentType = (value: string | number) => {
|
||||
return dictItem ? dictItem.label : value
|
||||
}
|
||||
|
||||
// 格式化充值结果
|
||||
// 格式化充值结<EFBFBD><EFBFBD>?
|
||||
const formatChargeState = (value: string | number) => {
|
||||
if (value === null || value === undefined || value === '') {
|
||||
return '-'
|
||||
@@ -369,7 +369,7 @@ const formatChargeState = (value: string | number) => {
|
||||
return dictItem ? dictItem.label : value
|
||||
}
|
||||
|
||||
// 格式化状态
|
||||
// 格式化状<EFBFBD><EFBFBD>?
|
||||
const formatState = (value: string | number) => {
|
||||
if (value === null || value === undefined || value === '') {
|
||||
return '-'
|
||||
@@ -420,7 +420,7 @@ const getTypeDict = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 获取充值类型字典
|
||||
// 获取充值类型字<EFBFBD><EFBFBD>?
|
||||
const getPaymentTypeDict = async () => {
|
||||
try {
|
||||
const res = await getDicts('dorm_water_payment_type')
|
||||
@@ -435,7 +435,7 @@ const getPaymentTypeDict = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 获取充值结果字典
|
||||
// 获取充值结果字<EFBFBD><EFBFBD>?
|
||||
const getChargeStateDict = async () => {
|
||||
try {
|
||||
const res = await getDicts('dorm_water_charge_state')
|
||||
@@ -450,7 +450,7 @@ const getChargeStateDict = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 获取状态字典
|
||||
// 获取状态字<EFBFBD><EFBFBD>?
|
||||
const getStateDict = async () => {
|
||||
try {
|
||||
const res = await getDicts('dorm_water_state')
|
||||
@@ -465,7 +465,7 @@ const getStateDict = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 初始化
|
||||
// 初始<EFBFBD><EFBFBD>?
|
||||
onMounted(() => {
|
||||
getSchoolYearList()
|
||||
getSchoolTermDict()
|
||||
@@ -480,3 +480,7 @@ onMounted(() => {
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
|
||||
@@ -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>
|
||||
@@ -84,7 +84,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>
|
||||
@@ -125,19 +125,19 @@
|
||||
<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 === 'attendanceType'" #default="scope">
|
||||
<el-tag size="small" type="warning" effect="plain">
|
||||
{{ formatAttendanceType(scope.row.attendanceType) }}
|
||||
</el-tag>
|
||||
</template>
|
||||
<!-- 落实情况列特殊模板 -->
|
||||
<!-- 落实情况列特殊模<EFBFBD><EFBFBD>?-->
|
||||
<template v-else-if="col.prop === 'remarks'" #default="scope">
|
||||
<span>{{ scope.row.remarks || '-' }}</span>
|
||||
</template>
|
||||
@@ -183,7 +183,7 @@ import { useMessage } from "/@/hooks/message";
|
||||
import TableColumnControl from '/@/components/TableColumnControl/index.vue'
|
||||
import { List, Calendar, Clock, OfficeBuilding, Grid, Document, CreditCard, Avatar, Collection, Setting, Menu, Search } from '@element-plus/icons-vue'
|
||||
import { useTableColumnControl } from '/@/hooks/tableColumnControl'
|
||||
import '/@/styles/modern-page.scss'
|
||||
|
||||
|
||||
// 定义变量内容
|
||||
const route = useRoute()
|
||||
@@ -194,13 +194,13 @@ const deptList = ref<any[]>([])
|
||||
const classList = ref<any[]>([])
|
||||
const showRemarks = ref(false) // 控制落实情况列的显示
|
||||
|
||||
// 表格列配置
|
||||
// 表格列配<EFBFBD><EFBFBD>?
|
||||
const tableColumns = [
|
||||
{ prop: 'schoolYear', label: '学年' },
|
||||
{ prop: 'schoolTerm', label: '学期' },
|
||||
{ prop: 'deptName', label: '系部名称' },
|
||||
{ prop: 'classCode', label: '班级代码' },
|
||||
{ prop: 'classNo', label: '班级简称' },
|
||||
{ prop: 'classNo', label: '班级简<EFBFBD><EFBFBD>? },
|
||||
{ prop: 'classProName', label: '班级规范名称', minWidth: 200 },
|
||||
{ prop: 'stuNo', label: '学号' },
|
||||
{ prop: 'realName', label: '姓名' },
|
||||
@@ -208,7 +208,7 @@ const tableColumns = [
|
||||
{ prop: 'remarks', label: '落实情况', minWidth: 150 }
|
||||
]
|
||||
|
||||
// 列配置映射(用于图标)
|
||||
// 列配置映射(用于图标<EFBFBD><EFBFBD>?
|
||||
const columnConfigMap: Record<string, { icon: any }> = {
|
||||
schoolYear: { icon: Calendar },
|
||||
schoolTerm: { icon: Clock },
|
||||
@@ -260,12 +260,12 @@ const {
|
||||
// 格式化考勤类型
|
||||
const formatAttendanceType = (value: string | number) => {
|
||||
if (value === '1' || value === 1) return '到岗'
|
||||
if (value === '2' || value === 2) return '未到岗'
|
||||
if (value === '2' || value === 2) return '未到<EFBFBD><EFBFBD>?
|
||||
if (value === '3' || value === 3) return '请假'
|
||||
return '-'
|
||||
}
|
||||
|
||||
// 学院变化时更新班级列表
|
||||
// 学院变化时更新班级列<EFBFBD><EFBFBD>?
|
||||
const handleDeptChange = () => {
|
||||
searchForm.classCode = ''
|
||||
getClassListData()
|
||||
@@ -274,7 +274,7 @@ const handleDeptChange = () => {
|
||||
// 来源选择变化
|
||||
const handleSourceChange = async (value: string) => {
|
||||
if (value === 'history') {
|
||||
// 选择考勤记录时,显示落实情况列
|
||||
// 选择考勤记录时,显示落实情况<EFBFBD><EFBFBD>?
|
||||
showRemarks.value = true
|
||||
// 查询考勤记录(不强制要求学院和班级)
|
||||
try {
|
||||
@@ -308,7 +308,7 @@ const handleSourceChange = async (value: string) => {
|
||||
state.loading = false
|
||||
}
|
||||
} else if (value === 'attendance') {
|
||||
// 选择考勤时,不显示落实情况列,使用普通列表接口
|
||||
// 选择考勤时,不显示落实情况列,使用普通列表接<EFBFBD><EFBFBD>?
|
||||
showRemarks.value = false
|
||||
getDataList()
|
||||
} else {
|
||||
@@ -340,7 +340,7 @@ const handleReset = () => {
|
||||
|
||||
// 查看详情
|
||||
const handleView = (row: any) => {
|
||||
useMessage().warning('查看详情功能待实现')
|
||||
useMessage().warning('查看详情功能待实<EFBFBD><EFBFBD>?)
|
||||
}
|
||||
|
||||
// 获取学院列表
|
||||
@@ -372,7 +372,7 @@ const getClassListData = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
// 初始化
|
||||
// 初始<EFBFBD><EFBFBD>?
|
||||
onMounted(() => {
|
||||
getDeptListData()
|
||||
getClassListData()
|
||||
@@ -383,3 +383,7 @@ onMounted(() => {
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import '/@/assets/styles/modern-page.scss';
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user