diff --git a/jeecgboot-vue3-master/src/views/comptype/CompType.api.ts b/jeecgboot-vue3-master/src/views/comptype/CompType.api.ts deleted file mode 100644 index 95b6dfb0..00000000 --- a/jeecgboot-vue3-master/src/views/comptype/CompType.api.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { defHttp } from '/@/utils/http/axios'; -import { useMessage } from "/@/hooks/web/useMessage"; - -const { createConfirm } = useMessage(); - -enum Api { - list = '/CompType/compType/list', - save='/CompType/compType/add', - edit='/CompType/compType/edit', - deleteOne = '/CompType/compType/delete', - deleteBatch = '/CompType/compType/deleteBatch', - importExcel = '/CompType/compType/importExcel', - exportXls = '/CompType/compType/exportXls', -} - -/** - * 导出api - * @param params - */ -export const getExportUrl = Api.exportXls; - -/** - * 导入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 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/comptype/CompType.data.ts b/jeecgboot-vue3-master/src/views/comptype/CompType.data.ts deleted file mode 100644 index b39397de..00000000 --- a/jeecgboot-vue3-master/src/views/comptype/CompType.data.ts +++ /dev/null @@ -1,54 +0,0 @@ -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: 'typeName' - }, - { - title: '权值上限', - align: "center", - dataIndex: 'score' - }, - - { - title: '权值下限', - align: "center", - dataIndex: 'scorel' - }, -]; - -//查询数据 -export const searchFormSchema: FormSchema[] = [ -]; - -//表单数据 -export const formSchema: FormSchema[] = [ - { - label: '类型名称', - field: 'typeName', - component: 'Input', - }, - { - label: '权值上限', - field: 'score', - component: 'InputNumber', - }, - - { - label: '权值下限', - field: 'scorel', - component: 'InputNumber', - }, - // TODO 主键隐藏字段,目前写死为ID - { - label: '', - field: 'id', - component: 'Input', - show: false, - }, -]; diff --git a/jeecgboot-vue3-master/src/views/comptype/CompTypeList.vue b/jeecgboot-vue3-master/src/views/comptype/CompTypeList.vue deleted file mode 100644 index 71e15234..00000000 --- a/jeecgboot-vue3-master/src/views/comptype/CompTypeList.vue +++ /dev/null @@ -1,223 +0,0 @@ - - - - - diff --git a/jeecgboot-vue3-master/src/views/comptype/CompType_menu_insert.sql b/jeecgboot-vue3-master/src/views/comptype/CompType_menu_insert.sql deleted file mode 100644 index e4b9fe19..00000000 --- a/jeecgboot-vue3-master/src/views/comptype/CompType_menu_insert.sql +++ /dev/null @@ -1,26 +0,0 @@ --- 注意:该页面对应的前台目录为views/comptype1文件夹下 --- 如果你想更改到其他目录,请修改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 ('2023092105176760260', NULL, '比赛类型', '/comptype1/compTypeList', 'comptype1/CompTypeList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-09-21 17:17:26', 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 ('2023092105176770261', '2023092105176760260', '添加比赛类型', NULL, NULL, 0, NULL, NULL, 2, 'comptype1:comp_type:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-09-21 17:17:26', 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 ('2023092105176770262', '2023092105176760260', '编辑比赛类型', NULL, NULL, 0, NULL, NULL, 2, 'comptype1:comp_type:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-09-21 17:17:26', 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 ('2023092105176770263', '2023092105176760260', '删除比赛类型', NULL, NULL, 0, NULL, NULL, 2, 'comptype1:comp_type:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-09-21 17:17:26', 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 ('2023092105176770264', '2023092105176760260', '批量删除比赛类型', NULL, NULL, 0, NULL, NULL, 2, 'comptype1:comp_type:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-09-21 17:17:26', 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 ('2023092105176770265', '2023092105176760260', '导出excel_比赛类型', NULL, NULL, 0, NULL, NULL, 2, 'comptype1:comp_type:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-09-21 17:17:26', 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 ('2023092105176770266', '2023092105176760260', '导入excel_比赛类型', NULL, NULL, 0, NULL, NULL, 2, 'comptype1:comp_type:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-09-21 17:17:26', NULL, NULL, 0, 0, '1', 0); diff --git a/jeecgboot-vue3-master/src/views/comptype/components/CompTypeForm.vue b/jeecgboot-vue3-master/src/views/comptype/components/CompTypeForm.vue deleted file mode 100644 index c6b29010..00000000 --- a/jeecgboot-vue3-master/src/views/comptype/components/CompTypeForm.vue +++ /dev/null @@ -1,139 +0,0 @@ - - - - - diff --git a/jeecgboot-vue3-master/src/views/comptype/components/CompTypeModal.vue b/jeecgboot-vue3-master/src/views/comptype/components/CompTypeModal.vue deleted file mode 100644 index 302c67e2..00000000 --- a/jeecgboot-vue3-master/src/views/comptype/components/CompTypeModal.vue +++ /dev/null @@ -1,75 +0,0 @@ - - - - -