@@ -223,8 +223,8 @@
@@ -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
(null)
const importLoading = ref(false)
-// 表格列配置
+// 表格列配?
const tableColumns = [
{ prop: 'schoolYear', label: '学年', icon: Calendar },
{ prop: 'schoolTerm', label: '学期', icon: Clock },
- { prop: 'roomNo', label: '宿舍号', icon: House },
+ { prop: 'roomNo', label: '宿舍?, icon: House },
{ prop: 'ruleName', label: '奖项名称', icon: Trophy, minWidth: 150 },
{ prop: 'remarks', label: '备注', icon: EditPen, minWidth: 200 }
]
@@ -295,7 +295,7 @@ const state: BasicTableProps = reactive({
item: 'records',
totalCount: 'total'
},
- createdIsNeed: true // 页面加载时自动获取数据
+ createdIsNeed: true // 页面加载时自动获取数?
})
// table hook
@@ -306,7 +306,7 @@ const {
tableStyle: _tableStyle
} = useTable(state)
-// 格式化学期
+// 格式化学?
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 ?assets/file 的相对路?
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('模板下载失败,请检查模板文件是否存?)
}
}
@@ -435,10 +435,14 @@ const getSchoolTermDict = async () => {
}
}
-// 初始化
+// 初始?
onMounted(() => {
getSchoolYearList()
getSchoolTermDict()
})
+
+
diff --git a/src/views/stuwork/rewardrule/index.vue b/src/views/stuwork/rewardrule/index.vue
index f887b9d..5cdb939 100644
--- a/src/views/stuwork/rewardrule/index.vue
+++ b/src/views/stuwork/rewardrule/index.vue
@@ -7,7 +7,7 @@
@@ -62,7 +62,7 @@
@order-change="handleColumnOrderChange"
>
-
+
@@ -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([])
-// 表格列配置
+// 表格列配?
const tableColumns = [
{ prop: 'ruleName', label: '奖项名称', icon: Trophy, minWidth: 200 },
{ prop: 'ruleType', label: '奖项类型', icon: Collection },
@@ -208,7 +208,7 @@ const state: BasicTableProps = reactive({
item: 'records',
totalCount: 'total'
},
- createdIsNeed: true // 页面加载时自动获取数据
+ createdIsNeed: true // 页面加载时自动获取数?
})
// table hook
@@ -219,7 +219,7 @@ const {
tableStyle: _tableStyle
} = useTable(state)
-// 格式化奖项类型
+// 格式化奖项类?
const formatRuleType = (value: string | number) => {
if (value === null || value === undefined || value === '') {
return '-'
@@ -272,9 +272,13 @@ const getRuleTypeDict = async () => {
}
}
-// 初始化
+// 初始?
onMounted(() => {
getRuleTypeDict()
})
+
+
diff --git a/src/views/stuwork/rewardstudent/index.vue b/src/views/stuwork/rewardstudent/index.vue
index 8f47d32..c35b5a7 100644
--- a/src/views/stuwork/rewardstudent/index.vue
+++ b/src/views/stuwork/rewardstudent/index.vue
@@ -7,7 +7,7 @@
@@ -108,7 +108,7 @@
@order-change="handleColumnOrderChange"
>
-
+
@@ -163,14 +163,14 @@
-
-
+
- {{ scope.row.ruleName.join('、') }}
+ {{ scope.row.ruleName.join('?) }}
-
-
+
{{ parseTime(scope.row.upDateTime, '{y}-{m}-{d} {h}:{i}:{s}') }}
@@ -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([])
const deptList = ref([])
const classList = ref([])
-// 表格列配置
+// 表格列配?
const tableColumns = [
{ prop: 'departName', label: '学院' },
{ prop: 'classNo', label: '班级' },
{ prop: 'stuNo', label: '学号' },
{ prop: 'realName', label: '姓名' },
- { prop: 'averageConduct', label: '操行平均分' },
- { prop: 'averageScore', label: '总评成绩平均分' },
+ { prop: 'averageConduct', label: '操行平均? },
+ { prop: 'averageScore', label: '总评成绩平均? },
{ prop: 'violation', label: '违规情况', minWidth: 150 },
{ prop: 'ruleName', label: '个人奖项', minWidth: 200 },
{ prop: 'upDateTime', label: '保存时间', width: 180 }
]
-// 列配置映射(用于图标)
+// 列配置映射(用于图标?
const columnConfigMap: Record = {
departName: { icon: OfficeBuilding },
classNo: { icon: Grid },
@@ -258,7 +258,7 @@ const tableStyle = {
headerCellStyle: { background: '#f5f7fa', color: '#606266', fontWeight: 'bold' }
}
-// 格式化学期
+// 格式化学?
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
- // 设置文件名
+ // 设置文件?
const fileName = `学生评优评先_${new Date().getTime()}.xlsx`
link.setAttribute('download', fileName)
@@ -390,7 +390,7 @@ const getClassListData = async () => {
}
}
-// 初始化
+// 初始?
onMounted(() => {
getSchoolYearList()
getSchoolTermDict()
@@ -406,5 +406,6 @@ onMounted(() => {
diff --git a/src/views/stuwork/stipendtermbatch/index.vue b/src/views/stuwork/stipendtermbatch/index.vue
index 42bf78b..f043cf5 100644
--- a/src/views/stuwork/stipendtermbatch/index.vue
+++ b/src/views/stuwork/stipendtermbatch/index.vue
@@ -7,7 +7,7 @@
@@ -54,7 +54,7 @@