From 29b8d1e2d934387af81004ca0c711705ff855864 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8E=8B=E5=AE=B6=E4=B8=9C?= <1654135867@qq.com>
Date: Thu, 30 Nov 2023 17:38:34 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=A6=E7=94=9F=E7=AB=AF?=
=?UTF-8?q?=E8=8E=B7=E5=A5=96=E5=92=8C=E6=88=90=E7=BB=A9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../stu/awardpersion/AwardPersion.api.ts | 107 +++++++
.../stu/awardpersion/AwardPersion.data.ts | 168 +++++++++++
.../stu/awardpersion/AwardPersionList.vue | 278 ++++++++++++++++++
.../awardpersion/AwardPersion_menu_insert.sql | 26 ++
.../components/AwardPersionForm.vue | 217 ++++++++++++++
.../components/AwardPersionForm1.vue | 185 ++++++++++++
.../components/AwardPersionModal.vue | 75 +++++
.../components/AwardPersionModal1.vue | 75 +++++
.../stu/scorepersion/ScorePersion.api.ts | 87 ++++++
.../stu/scorepersion/ScorePersion.data.ts | 139 +++++++++
.../stu/scorepersion/ScorePersionList.vue | 257 ++++++++++++++++
.../scorepersion/ScorePersion_menu_insert.sql | 26 ++
.../components/ScorePersionForm.vue | 191 ++++++++++++
.../components/ScorePersionForm1.vue | 172 +++++++++++
.../components/ScorePersionModal.vue | 75 +++++
.../components/ScorePersionModal1.vue | 75 +++++
16 files changed, 2153 insertions(+)
create mode 100644 jeecgboot-vue3-master/src/views/stu/awardpersion/AwardPersion.api.ts
create mode 100644 jeecgboot-vue3-master/src/views/stu/awardpersion/AwardPersion.data.ts
create mode 100644 jeecgboot-vue3-master/src/views/stu/awardpersion/AwardPersionList.vue
create mode 100644 jeecgboot-vue3-master/src/views/stu/awardpersion/AwardPersion_menu_insert.sql
create mode 100644 jeecgboot-vue3-master/src/views/stu/awardpersion/components/AwardPersionForm.vue
create mode 100644 jeecgboot-vue3-master/src/views/stu/awardpersion/components/AwardPersionForm1.vue
create mode 100644 jeecgboot-vue3-master/src/views/stu/awardpersion/components/AwardPersionModal.vue
create mode 100644 jeecgboot-vue3-master/src/views/stu/awardpersion/components/AwardPersionModal1.vue
create mode 100644 jeecgboot-vue3-master/src/views/stu/scorepersion/ScorePersion.api.ts
create mode 100644 jeecgboot-vue3-master/src/views/stu/scorepersion/ScorePersion.data.ts
create mode 100644 jeecgboot-vue3-master/src/views/stu/scorepersion/ScorePersionList.vue
create mode 100644 jeecgboot-vue3-master/src/views/stu/scorepersion/ScorePersion_menu_insert.sql
create mode 100644 jeecgboot-vue3-master/src/views/stu/scorepersion/components/ScorePersionForm.vue
create mode 100644 jeecgboot-vue3-master/src/views/stu/scorepersion/components/ScorePersionForm1.vue
create mode 100644 jeecgboot-vue3-master/src/views/stu/scorepersion/components/ScorePersionModal.vue
create mode 100644 jeecgboot-vue3-master/src/views/stu/scorepersion/components/ScorePersionModal1.vue
diff --git a/jeecgboot-vue3-master/src/views/stu/awardpersion/AwardPersion.api.ts b/jeecgboot-vue3-master/src/views/stu/awardpersion/AwardPersion.api.ts
new file mode 100644
index 00000000..9a92d568
--- /dev/null
+++ b/jeecgboot-vue3-master/src/views/stu/awardpersion/AwardPersion.api.ts
@@ -0,0 +1,107 @@
+import { defHttp } from '/@/utils/http/axios';
+import { useMessage } from "/@/hooks/web/useMessage";
+
+const { createConfirm } = useMessage();
+
+enum Api {
+ list = '/awardpersion/awardPersion/liststu',
+ save='/awardpersion/awardPersion/add',
+ save1='/AnnualCompPoint/annualCompPoint/cxhq',
+ edit='/awardpersion/awardPersion/edit',
+ deleteOne = '/awardpersion/awardPersion/delete',
+ deleteBatch = '/awardpersion/awardPersion/deleteBatch',
+ importExcel = '/awardpersion/awardPersion/importExcel',
+ exportXls = '/awardpersion/awardPersion/exportXls',
+ exportXlsMb = '/awardpersion/awardPersion/exportXlsMb',
+ queryCompId = '/annualcompgroup/annualCompGroup/queryCompId',
+ queryOptions = '/awardpersion/awardPersion/queryOptions',
+ personalAbilityEvaluation = '/abilityEvaluation/personalAbilityEvaluation/personalAbilityEvaluation2',
+
+}
+
+/**
+ * 导出api
+ * @param params
+ */
+export const getExportUrl = Api.exportXls;
+export const getExportUrlMb = Api.exportXlsMb;
+
+/**
+ * 导入api
+ */
+export const getImportUrl = Api.importExcel;
+
+/**
+ * 列表接口
+ * @param params
+ */
+export const list = (params) => defHttp.get({ url: Api.list, params });
+
+export const queryCompId = (params) => defHttp.get({ url: Api.queryCompId, params }, { successMessageMode: 'none' });
+export const queryOptions = (params) => defHttp.get({ url: Api.queryOptions, params }, { successMessageMode: 'none' });
+/**
+ * 删除单个
+ * @param params
+ * @param handleSuccess
+ */
+export const deleteOne = (params,handleSuccess) => {
+ return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => {
+ handleSuccess();
+ });
+}
+
+/**
+ * 批量删除
+ * @param params
+ * @param handleSuccess
+ */
+export const batchDelete = (params, handleSuccess) => {
+ createConfirm({
+ iconType: 'warning',
+ title: '确认删除',
+ content: '是否删除选中数据',
+ okText: '确认',
+ cancelText: '取消',
+ onOk: () => {
+ return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => {
+ handleSuccess();
+ });
+ }
+ });
+}
+
+/**
+ * 保存或者更新
+ * @param params
+ * @param isUpdate
+ */
+export const saveOrUpdate = (params, isUpdate) => {
+ let url = isUpdate ? Api.edit : Api.save;
+ return defHttp.post({ url: url, params }, { isTransformResponse: false });
+}
+
+/**
+ * 重新获取
+ * @param params
+ * @param isUpdate
+ */
+export const saveOrUpdate1 = (params, isUpdate) => {
+ let url = isUpdate ? Api.edit : Api.save1;
+ return defHttp.post({ url: url, params }, { isTransformResponse: false });
+}
+
+// 个人能力量化
+export const personalAbilityEvaluation = (params,handleSuccess) => {
+ createConfirm({
+ iconType: 'warning',
+ title: '确认操作',
+ content: '确认发送请求吗',
+ okText: '确认',
+ cancelText: '取消',
+ onOk: () => {
+ return defHttp.post({url: Api.personalAbilityEvaluation,params}, {joinParamsToUrl: true}).then(() => {
+ handleSuccess();
+ });
+ }
+ });
+}
diff --git a/jeecgboot-vue3-master/src/views/stu/awardpersion/AwardPersion.data.ts b/jeecgboot-vue3-master/src/views/stu/awardpersion/AwardPersion.data.ts
new file mode 100644
index 00000000..9a384a3f
--- /dev/null
+++ b/jeecgboot-vue3-master/src/views/stu/awardpersion/AwardPersion.data.ts
@@ -0,0 +1,168 @@
+import {BasicColumn} from '/@/components/Table';
+import {FormSchema} from '/@/components/Table';
+import { rules} from '/@/utils/helper/validator';
+import { render } from '/@/utils/common/renderUtils';
+//列表数据
+export const columns: BasicColumn[] = [
+ {
+ title: '年度',
+ align: "center",
+ dataIndex: 'annualid_dictText'
+ },
+ {
+ title: '年度比赛',
+ align: "center",
+ dataIndex: 'annalComp_dictText'
+ },
+ {
+ title: '年度比赛项目',
+ align: "center",
+ dataIndex: 'annualCompP_dictText'
+ },
+ {
+ title: '报名编号',
+ align: "center",
+ dataIndex: 'enrollCode'
+ },
+ {
+ title: '奖项名称',
+ align: "center",
+ dataIndex: 'awardname'
+ },
+ {
+ title: '学生学号',
+ align: "center",
+ dataIndex: 'studentcode'
+ },
+ {
+ title: '学生姓名',
+ align: "center",
+ dataIndex: 'studentname'
+ },
+/* {
+ title: '状态',
+ align: "center",
+ dataIndex: 'status_dictText'
+ },
+ {
+ title: '奖项顺序',
+ align: "center",
+ dataIndex: 'awardsort'
+ },
+ {
+ title: '奖项',
+ align: "center",
+ dataIndex: 'awardid'
+ },*/
+];
+
+//查询数据
+export const searchFormSchema: FormSchema[] = [
+ {
+ label: "年度",
+ field: 'annualid',
+ component: 'JDictSelectTag',
+ componentProps:{
+ dictCode: "annual,annual_name,id"
+ },
+ colProps: {span: 6},
+ },
+ {
+ label: "报名编号",
+ field: 'enrollCode',
+ component: 'Input',
+ colProps: {span: 6},
+ },
+];
+
+//表单数据
+export const formSchema: FormSchema[] = [
+ {
+ label: '年度',
+ field: 'annualid',
+ component: 'JDictSelectTag',
+ componentProps:{
+ dictCode: "annual,annual_name,id"
+ },
+ dynamicRules: ({model,schema}) => {
+ return [
+ { required: true, message: '请输入年度!'},
+ ];
+ },
+ },
+ {
+ label: '年度比赛',
+ field: 'annalComp',
+ component: 'JSearchSelect',
+ componentProps:{
+ dict: "annual_comp,name,id"
+ },
+ dynamicRules: ({model,schema}) => {
+ return [
+ { required: true, message: '请输入年度比赛!'},
+ ];
+ },
+ },
+ {
+ label: '年度比赛项目',
+ field: 'annualCompP',
+ component: 'JSearchSelect',
+ componentProps:{
+ dict: "annual_comp_point,obj_name,id"
+ },
+ dynamicRules: ({model,schema}) => {
+ return [
+ { required: true, message: '请输入年度比赛项目!'},
+ ];
+ },
+ },
+ {
+ label: '报名编号',
+ field: 'enrollCode',
+ component: 'Input',
+ dynamicRules: ({model,schema}) => {
+ return [
+ { required: true, message: '请输入报名编号!'},
+ {...rules.duplicateCheckRule('award_persion', 'enroll_code',model,schema)[0]},
+ ];
+ },
+ },
+ {
+ label: '奖项名称',
+ field: 'awardname',
+ component: 'JDictSelectTag',
+ componentProps:{
+ dictCode: ""
+ },
+ dynamicRules: ({model,schema}) => {
+ return [
+ { required: true, message: '请输入奖项名称!'},
+ ];
+ },
+ },
+ {
+ label: '状态',
+ field: 'status',
+ component: 'JDictSelectTag',
+ componentProps:{
+ dictCode: "sh_status"
+ },
+ },
+ {
+ label: '奖项顺序',
+ field: 'awardsort',
+ component: 'InputNumber',
+ },
+ {
+ label: '奖项',
+ field: 'awardid',
+ component: 'Input',
+ },
+ // TODO 主键隐藏字段,目前写死为ID
+ {
+ label: '',
+ field: 'id',
+ component: 'Input',
+ show: false,
+ },
+];
diff --git a/jeecgboot-vue3-master/src/views/stu/awardpersion/AwardPersionList.vue b/jeecgboot-vue3-master/src/views/stu/awardpersion/AwardPersionList.vue
new file mode 100644
index 00000000..41c2b544
--- /dev/null
+++ b/jeecgboot-vue3-master/src/views/stu/awardpersion/AwardPersionList.vue
@@ -0,0 +1,278 @@
+
+
+
+
+
+
+
+
+
+ 重新获取
+ 导出
+
+
+
+
+
+
+ 删除
+
+
+
+ 批量操作
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ getAreaTextByCode(text) }}
+
+
+ 无文件
+ 下载
+
+
+
+
+
+
+
+
+
+
+
diff --git a/jeecgboot-vue3-master/src/views/stu/awardpersion/AwardPersion_menu_insert.sql b/jeecgboot-vue3-master/src/views/stu/awardpersion/AwardPersion_menu_insert.sql
new file mode 100644
index 00000000..8dcc2488
--- /dev/null
+++ b/jeecgboot-vue3-master/src/views/stu/awardpersion/AwardPersion_menu_insert.sql
@@ -0,0 +1,26 @@
+-- 注意:该页面对应的前台目录为views/awardpersion文件夹下
+-- 如果你想更改到其他目录,请修改sql中component字段对应的值
+
+
+INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
+VALUES ('2023103103306200480', NULL, '获奖管理', '/awardpersion/awardPersionList', 'awardpersion/AwardPersionList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-10-31 15:30:48', NULL, NULL, 0);
+
+-- 权限控制sql
+-- 新增
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023103103306200481', '2023103103306200480', '添加获奖管理', NULL, NULL, 0, NULL, NULL, 2, 'awardpersion:award_persion:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-10-31 15:30:48', NULL, NULL, 0, 0, '1', 0);
+-- 编辑
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023103103306200482', '2023103103306200480', '编辑获奖管理', NULL, NULL, 0, NULL, NULL, 2, 'awardpersion:award_persion:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-10-31 15:30:48', NULL, NULL, 0, 0, '1', 0);
+-- 删除
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023103103306200483', '2023103103306200480', '删除获奖管理', NULL, NULL, 0, NULL, NULL, 2, 'awardpersion:award_persion:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-10-31 15:30:48', NULL, NULL, 0, 0, '1', 0);
+-- 批量删除
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023103103306200484', '2023103103306200480', '批量删除获奖管理', NULL, NULL, 0, NULL, NULL, 2, 'awardpersion:award_persion:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-10-31 15:30:48', NULL, NULL, 0, 0, '1', 0);
+-- 导出excel
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023103103306200485', '2023103103306200480', '导出excel_获奖管理', NULL, NULL, 0, NULL, NULL, 2, 'awardpersion:award_persion:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-10-31 15:30:48', NULL, NULL, 0, 0, '1', 0);
+-- 导入excel
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023103103306200486', '2023103103306200480', '导入excel_获奖管理', NULL, NULL, 0, NULL, NULL, 2, 'awardpersion:award_persion:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-10-31 15:30:48', NULL, NULL, 0, 0, '1', 0);
\ No newline at end of file
diff --git a/jeecgboot-vue3-master/src/views/stu/awardpersion/components/AwardPersionForm.vue b/jeecgboot-vue3-master/src/views/stu/awardpersion/components/AwardPersionForm.vue
new file mode 100644
index 00000000..d058abb2
--- /dev/null
+++ b/jeecgboot-vue3-master/src/views/stu/awardpersion/components/AwardPersionForm.vue
@@ -0,0 +1,217 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/jeecgboot-vue3-master/src/views/stu/awardpersion/components/AwardPersionForm1.vue b/jeecgboot-vue3-master/src/views/stu/awardpersion/components/AwardPersionForm1.vue
new file mode 100644
index 00000000..4a051fba
--- /dev/null
+++ b/jeecgboot-vue3-master/src/views/stu/awardpersion/components/AwardPersionForm1.vue
@@ -0,0 +1,185 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/jeecgboot-vue3-master/src/views/stu/awardpersion/components/AwardPersionModal.vue b/jeecgboot-vue3-master/src/views/stu/awardpersion/components/AwardPersionModal.vue
new file mode 100644
index 00000000..ffc9d9a2
--- /dev/null
+++ b/jeecgboot-vue3-master/src/views/stu/awardpersion/components/AwardPersionModal.vue
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
+
+
diff --git a/jeecgboot-vue3-master/src/views/stu/awardpersion/components/AwardPersionModal1.vue b/jeecgboot-vue3-master/src/views/stu/awardpersion/components/AwardPersionModal1.vue
new file mode 100644
index 00000000..b40e77e4
--- /dev/null
+++ b/jeecgboot-vue3-master/src/views/stu/awardpersion/components/AwardPersionModal1.vue
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
+
+
diff --git a/jeecgboot-vue3-master/src/views/stu/scorepersion/ScorePersion.api.ts b/jeecgboot-vue3-master/src/views/stu/scorepersion/ScorePersion.api.ts
new file mode 100644
index 00000000..024e7b3e
--- /dev/null
+++ b/jeecgboot-vue3-master/src/views/stu/scorepersion/ScorePersion.api.ts
@@ -0,0 +1,87 @@
+import { defHttp } from '/@/utils/http/axios';
+import { useMessage } from "/@/hooks/web/useMessage";
+
+const { createConfirm } = useMessage();
+
+enum Api {
+ list = '/scorepersion/scorePersion/liststu',
+ save='/scorepersion/scorePersion/add',
+ edit='/scorepersion/scorePersion/edit',
+ deleteOne = '/scorepersion/scorePersion/delete',
+ deleteBatch = '/scorepersion/scorePersion/deleteBatch',
+ importExcel = '/scorepersion/scorePersion/importExcel',
+ exportXls = '/scorepersion/scorePersion/exportXls',
+ exportXlsMb = '/scorepersion/scorePersion/exportXlsMb',
+ queryCompId = '/annualcompgroup/annualCompGroup/queryCompId',
+ save1='/AnnualCompPoint/annualCompPoint/cjcxhq',
+}
+
+export const queryCompId = (params) => defHttp.get({ url: Api.queryCompId, params }, { successMessageMode: 'none' });
+
+/**
+ * 导出api
+ * @param params
+ */
+export const getExportUrl = Api.exportXls;
+export const getExportUrlMb = Api.exportXlsMb;
+
+/**
+ * 导入api
+ */
+export const getImportUrl = Api.importExcel;
+
+/**
+ * 列表接口
+ * @param params
+ */
+export const list = (params) => defHttp.get({ url: Api.list, params });
+
+/**
+ * 删除单个
+ * @param params
+ * @param handleSuccess
+ */
+export const deleteOne = (params,handleSuccess) => {
+ return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => {
+ handleSuccess();
+ });
+}
+/**
+ * 重新获取
+ * @param params
+ * @param isUpdate
+ */
+export const saveOrUpdate1 = (params, isUpdate) => {
+ let url = isUpdate ? Api.edit : Api.save1;
+ return defHttp.post({ url: url, params }, { isTransformResponse: false });
+}
+
+/**
+ * 批量删除
+ * @param params
+ * @param handleSuccess
+ */
+export const batchDelete = (params, handleSuccess) => {
+ createConfirm({
+ iconType: 'warning',
+ title: '确认删除',
+ content: '是否删除选中数据',
+ okText: '确认',
+ cancelText: '取消',
+ onOk: () => {
+ return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => {
+ handleSuccess();
+ });
+ }
+ });
+}
+
+/**
+ * 保存或者更新
+ * @param params
+ * @param isUpdate
+ */
+export const saveOrUpdate = (params, isUpdate) => {
+ let url = isUpdate ? Api.edit : Api.save;
+ return defHttp.post({ url: url, params }, { isTransformResponse: false });
+}
diff --git a/jeecgboot-vue3-master/src/views/stu/scorepersion/ScorePersion.data.ts b/jeecgboot-vue3-master/src/views/stu/scorepersion/ScorePersion.data.ts
new file mode 100644
index 00000000..27273ff3
--- /dev/null
+++ b/jeecgboot-vue3-master/src/views/stu/scorepersion/ScorePersion.data.ts
@@ -0,0 +1,139 @@
+import {BasicColumn} from '/@/components/Table';
+import {FormSchema} from '/@/components/Table';
+import { rules} from '/@/utils/helper/validator';
+import { render } from '/@/utils/common/renderUtils';
+//列表数据
+export const columns: BasicColumn[] = [
+ {
+ title: '年度',
+ align: "center",
+ dataIndex: 'annualid_dictText'
+ },
+ {
+ title: '年度比赛',
+ align: "center",
+ dataIndex: 'annualCompid_dictText'
+ },
+ {
+ title: '年度比赛项目',
+ align: "center",
+ dataIndex: 'annualCompP_dictText'
+ },
+ {
+ title: '报名编号',
+ align: "center",
+ dataIndex: 'enrollCode'
+ },
+ {
+ title: '得分',
+ align: "center",
+ dataIndex: 'score'
+ },
+ {
+ title: '排名',
+ align: "center",
+ dataIndex: 'sort'
+ },
+];
+
+//查询数据
+export const searchFormSchema: FormSchema[] = [
+ {
+ label: "年度",
+ field: 'annualid',
+ component: 'JDictSelectTag',
+ componentProps:{
+ dictCode: "annual,annual_name,id"
+ },
+ colProps: {span: 6},
+ },
+ {
+ label: "报名编号",
+ field: 'enrollCode',
+ component: 'Input',
+ colProps: {span: 6},
+ },
+];
+
+//表单数据
+export const formSchema: FormSchema[] = [
+ {
+ label: '年度',
+ field: 'annualid',
+ component: 'JDictSelectTag',
+ componentProps:{
+ dictCode: "annual,annual_name,id"
+ },
+ dynamicRules: ({model,schema}) => {
+ return [
+ { required: true, message: '请输入年度!'},
+ ];
+ },
+ },
+ {
+ label: '年度比赛',
+ field: 'annualCompid',
+ component: 'JSearchSelect',
+ componentProps:{
+ dict: "annual_comp,name,id"
+ },
+ dynamicRules: ({model,schema}) => {
+ return [
+ { required: true, message: '请输入年度比赛!'},
+ ];
+ },
+ },
+ {
+ label: '年度比赛项目',
+ field: 'annualCompP',
+ component: 'JSearchSelect',
+ componentProps:{
+ dict: "annual_comp_point,obj_name,id"
+ },
+ dynamicRules: ({model,schema}) => {
+ return [
+ { required: true, message: '请输入年度比赛项目!'},
+ ];
+ },
+ },
+ {
+ label: '报名编号',
+ field: 'enrollCode',
+ component: 'Input',
+ dynamicRules: ({model,schema}) => {
+ return [
+ { required: true, message: '请输入报名编号!'},
+ {...rules.duplicateCheckRule('score_persion', 'enroll_code',model,schema)[0]},
+ ];
+ },
+ },
+ {
+ label: '得分',
+ field: 'score',
+ component: 'Input',
+ dynamicRules: ({model,schema}) => {
+ return [
+ { required: true, message: '请输入得分!'},
+ { pattern: /^-?\d+\.?\d*$/, message: '请输入数字!'},
+ ];
+ },
+ },
+ {
+ label: '排名',
+ field: 'sort',
+ component: 'InputNumber',
+ dynamicRules: ({model,schema}) => {
+ return [
+ { required: true, message: '请输入排名!'},
+ { pattern: /^-?\d+$/, message: '请输入整数!'},
+ ];
+ },
+ },
+ // TODO 主键隐藏字段,目前写死为ID
+ {
+ label: '',
+ field: 'id',
+ component: 'Input',
+ show: false,
+ },
+];
diff --git a/jeecgboot-vue3-master/src/views/stu/scorepersion/ScorePersionList.vue b/jeecgboot-vue3-master/src/views/stu/scorepersion/ScorePersionList.vue
new file mode 100644
index 00000000..4dbe02cb
--- /dev/null
+++ b/jeecgboot-vue3-master/src/views/stu/scorepersion/ScorePersionList.vue
@@ -0,0 +1,257 @@
+
+
+
+
+
+
+
+
+
+ 重新获取
+ 导出
+
+
+
+
+
+
+ 删除
+
+
+
+ 批量操作
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ getAreaTextByCode(text) }}
+
+
+ 无文件
+ 下载
+
+
+
+
+
+
+
+
+
+
+
diff --git a/jeecgboot-vue3-master/src/views/stu/scorepersion/ScorePersion_menu_insert.sql b/jeecgboot-vue3-master/src/views/stu/scorepersion/ScorePersion_menu_insert.sql
new file mode 100644
index 00000000..5fa350af
--- /dev/null
+++ b/jeecgboot-vue3-master/src/views/stu/scorepersion/ScorePersion_menu_insert.sql
@@ -0,0 +1,26 @@
+-- 注意:该页面对应的前台目录为views/scorepersion文件夹下
+-- 如果你想更改到其他目录,请修改sql中component字段对应的值
+
+
+INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external)
+VALUES ('2023110203506870240', NULL, '成绩管理', '/scorepersion/scorePersionList', 'scorepersion/ScorePersionList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-11-02 15:50:24', NULL, NULL, 0);
+
+-- 权限控制sql
+-- 新增
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023110203506870241', '2023110203506870240', '添加成绩管理', NULL, NULL, 0, NULL, NULL, 2, 'scorepersion:score_persion:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-11-02 15:50:24', NULL, NULL, 0, 0, '1', 0);
+-- 编辑
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023110203506870242', '2023110203506870240', '编辑成绩管理', NULL, NULL, 0, NULL, NULL, 2, 'scorepersion:score_persion:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-11-02 15:50:24', NULL, NULL, 0, 0, '1', 0);
+-- 删除
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023110203506870243', '2023110203506870240', '删除成绩管理', NULL, NULL, 0, NULL, NULL, 2, 'scorepersion:score_persion:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-11-02 15:50:24', NULL, NULL, 0, 0, '1', 0);
+-- 批量删除
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023110203506870244', '2023110203506870240', '批量删除成绩管理', NULL, NULL, 0, NULL, NULL, 2, 'scorepersion:score_persion:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-11-02 15:50:24', NULL, NULL, 0, 0, '1', 0);
+-- 导出excel
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023110203506870245', '2023110203506870240', '导出excel_成绩管理', NULL, NULL, 0, NULL, NULL, 2, 'scorepersion:score_persion:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-11-02 15:50:24', NULL, NULL, 0, 0, '1', 0);
+-- 导入excel
+INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external)
+VALUES ('2023110203506870246', '2023110203506870240', '导入excel_成绩管理', NULL, NULL, 0, NULL, NULL, 2, 'scorepersion:score_persion:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-11-02 15:50:24', NULL, NULL, 0, 0, '1', 0);
\ No newline at end of file
diff --git a/jeecgboot-vue3-master/src/views/stu/scorepersion/components/ScorePersionForm.vue b/jeecgboot-vue3-master/src/views/stu/scorepersion/components/ScorePersionForm.vue
new file mode 100644
index 00000000..fcef9e07
--- /dev/null
+++ b/jeecgboot-vue3-master/src/views/stu/scorepersion/components/ScorePersionForm.vue
@@ -0,0 +1,191 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/jeecgboot-vue3-master/src/views/stu/scorepersion/components/ScorePersionForm1.vue b/jeecgboot-vue3-master/src/views/stu/scorepersion/components/ScorePersionForm1.vue
new file mode 100644
index 00000000..8f4d1835
--- /dev/null
+++ b/jeecgboot-vue3-master/src/views/stu/scorepersion/components/ScorePersionForm1.vue
@@ -0,0 +1,172 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/jeecgboot-vue3-master/src/views/stu/scorepersion/components/ScorePersionModal.vue b/jeecgboot-vue3-master/src/views/stu/scorepersion/components/ScorePersionModal.vue
new file mode 100644
index 00000000..c3a322bb
--- /dev/null
+++ b/jeecgboot-vue3-master/src/views/stu/scorepersion/components/ScorePersionModal.vue
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
+
+
diff --git a/jeecgboot-vue3-master/src/views/stu/scorepersion/components/ScorePersionModal1.vue b/jeecgboot-vue3-master/src/views/stu/scorepersion/components/ScorePersionModal1.vue
new file mode 100644
index 00000000..0414d41d
--- /dev/null
+++ b/jeecgboot-vue3-master/src/views/stu/scorepersion/components/ScorePersionModal1.vue
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
+
+