diff --git a/src/api/apiDefinitions.ts b/src/api/apiDefinitions.ts index 59daf86..0cf3f17 100644 --- a/src/api/apiDefinitions.ts +++ b/src/api/apiDefinitions.ts @@ -28,10 +28,10 @@ export default { 'SysUser.add': ['POST', '/api/sysuser/Add'], 'SysGroup.sortChildren': ['POST', '/api/sysgroup/SortChildren'], 'SysGroup.move': ['POST', '/api/sysgroup/Move'], - 'SysGroup.edit_1': ['POST', '/api/sysgroup/Edit/{id}'], - 'SysGroup.delete_': ['POST', '/api/sysgroup/Delete/{id}'], + 'SysGroup.sysGroupEdit': ['POST', '/api/sysgroup/Edit/{id}'], + 'SysGroup.sysGroupRemove': ['POST', '/api/sysgroup/Delete/{id}'], 'SysGroup.batchAdd': ['POST', '/api/sysgroup/BatchAdd'], - 'SysGroup.add_1': ['POST', '/api/sysgroup/Add'], + 'SysGroup.sysGroupAdd': ['POST', '/api/sysgroup/Add'], 'PushSubscription.test': ['POST', '/api/push/Test'], 'PushSubscription.retry': ['POST', '/api/push/Retry/{id}'], 'Identity.switchIdentity': ['POST', '/api/identity/switch'], @@ -62,19 +62,19 @@ export default { 'AppSettings.addModule': ['POST', '/api/app/AddModule'], 'AppSettings.addApp': ['POST', '/api/app/AddApp'], 'User.moveToGroup': ['POST', '/oapi/user/moveToGroup'], - 'User.edit_2': ['POST', '/oapi/user/edit/{id}'], - 'User.delete_1': ['POST', '/oapi/user/delete/{id}/{groupId}'], + 'User.edit_1': ['POST', '/oapi/user/edit/{id}'], + 'User.delete_': ['POST', '/oapi/user/delete/{id}/{groupId}'], 'User.batchAdd_1': ['POST', '/oapi/user/batchAdd'], - 'User.add_2': ['POST', '/oapi/user/add'], - 'Group.edit_3': ['POST', '/oapi/group/edit/{id}'], - 'Group.delete_2': ['POST', '/oapi/group/delete/{id}'], + 'User.add_1': ['POST', '/oapi/user/add'], + 'Group.edit_2': ['POST', '/oapi/group/edit/{id}'], + 'Group.delete_1': ['POST', '/oapi/group/delete/{id}'], 'Group.batchAdd_2': ['POST', '/oapi/group/batchAdd'], - 'Group.add_3': ['POST', '/oapi/group/add'], + 'Group.add_2': ['POST', '/oapi/group/add'], 'SysUser.list': ['GET', '/api/sysuser/List'], 'SysUser.getUserGroups': ['GET', '/api/sysuser/Groups/{userId}'], 'SysUser.export_': ['GET', '/api/sysuser/Export'], 'SysUser.downloadTemplate': ['GET', '/api/sysuser/DownloadTemplate'], - 'SysGroup.list_1': ['GET', '/api/sysgroup/List'], + 'SysGroup.sysGroupList': ['GET', '/api/sysgroup/List'], 'SysGroup.getTree': ['GET', '/api/sysgroup/GetTree'], 'SysGroup.getSchoolTree': ['GET', '/api/sysgroup/GetSchoolTree'], 'PushSubscription.recordList': ['GET', '/api/push/RecordList'], @@ -112,6 +112,6 @@ export default { 'User.byId': ['GET', '/oapi/user/byId'], 'SignKeyInternal.signKey': ['GET', '/oapi/internal/sign-key/{appId}'], 'Group.tree': ['GET', '/oapi/group/tree'], - 'Group.list_2': ['GET', '/oapi/group/list'], + 'Group.list_1': ['GET', '/oapi/group/list'], 'Group.byId_1': ['GET', '/oapi/group/byId'] }; diff --git a/src/api/globals.d.ts b/src/api/globals.d.ts index 293d8dc..8c472fe 100644 --- a/src/api/globals.d.ts +++ b/src/api/globals.d.ts @@ -481,33 +481,47 @@ export interface RedirectView { attributeNames?: object; majorVersion?: number; contextPath?: string; + minorVersion?: number; + initParameterNames?: object; + sessionTimeout?: number; /** * @deprecated */ servletNames?: object; - minorVersion?: number; - initParameterNames?: object; - sessionTimeout?: number; - serverInfo?: string; - /** - * @deprecated - */ - servlets?: object; requestCharacterEncoding?: string; + jspConfigDescriptor?: { + taglibs?: Array<{ + taglibLocation?: string; + taglibURI?: string; + }>; + jspPropertyGroups?: Array<{ + buffer?: string; + defaultContentType?: string; + urlPatterns?: string[]; + includePreludes?: string[]; + trimDirectiveWhitespaces?: string; + scriptingInvalid?: string; + errorOnUndeclaredNamespace?: string; + includeCodas?: string[]; + elIgnored?: string; + pageEncoding?: string; + isXml?: string; + deferredSyntaxAllowedAsLiteral?: string; + }>; + }; + effectiveMajorVersion?: number; + servletContextName?: string; + virtualServerName?: string; filterRegistrations?: Record< string, { - urlPatternMappings?: string[]; servletNameMappings?: string[]; + urlPatternMappings?: string[]; name?: string; className?: string; initParameters?: Record; } >; - servletContextName?: string; - sessionTrackingModes?: ('COOKIE' | 'URL' | 'SSL')[]; - effectiveMinorVersion?: number; - defaultSessionTrackingModes?: ('COOKIE' | 'URL' | 'SSL')[]; servletRegistrations?: Record< string, { @@ -518,8 +532,11 @@ export interface RedirectView { initParameters?: Record; } >; - effectiveMajorVersion?: number; - virtualServerName?: string; + effectiveMinorVersion?: number; + sessionTrackingModes?: ('COOKIE' | 'URL' | 'SSL')[]; + effectiveSessionTrackingModes?: ('COOKIE' | 'URL' | 'SSL')[]; + defaultSessionTrackingModes?: ('COOKIE' | 'URL' | 'SSL')[]; + responseCharacterEncoding?: string; sessionCookieConfig?: { name?: string; path?: string; @@ -529,28 +546,11 @@ export interface RedirectView { maxAge?: number; httpOnly?: boolean; }; - jspConfigDescriptor?: { - taglibs?: Array<{ - taglibURI?: string; - taglibLocation?: string; - }>; - jspPropertyGroups?: Array<{ - buffer?: string; - urlPatterns?: string[]; - defaultContentType?: string; - elIgnored?: string; - pageEncoding?: string; - isXml?: string; - includeCodas?: string[]; - trimDirectiveWhitespaces?: string; - includePreludes?: string[]; - scriptingInvalid?: string; - errorOnUndeclaredNamespace?: string; - deferredSyntaxAllowedAsLiteral?: string; - }>; - }; - responseCharacterEncoding?: string; - effectiveSessionTrackingModes?: ('COOKIE' | 'URL' | 'SSL')[]; + serverInfo?: string; + /** + * @deprecated + */ + servlets?: object; }; contentType?: string; requestContextAttribute?: string; @@ -1412,7 +1412,7 @@ declare global { * type Response = null * ``` */ - edit_1< + sysGroupEdit< Config extends Alova2MethodConfig & { pathParams: { id: number; @@ -1421,7 +1421,7 @@ declare global { } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * @@ -1445,7 +1445,7 @@ declare global { * type Response = null * ``` */ - delete_< + sysGroupRemove< Config extends Alova2MethodConfig & { pathParams: { id: number; @@ -1453,7 +1453,7 @@ declare global { } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * @@ -1517,13 +1517,13 @@ declare global { * type Response = null * ``` */ - add_1< + sysGroupAdd< Config extends Alova2MethodConfig & { data: SysGroupRequest; } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * @@ -1559,7 +1559,7 @@ declare global { * }> * ``` */ - list_1< + sysGroupList< Config extends Alova2MethodConfig & { params: { query: SysGroupQuery; @@ -1567,7 +1567,7 @@ declare global { } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * @@ -2550,37 +2550,59 @@ declare global { * attributeNames?: object * majorVersion?: number * contextPath?: string - * // [deprecated] - * servletNames?: object * minorVersion?: number * initParameterNames?: object * sessionTimeout?: number - * serverInfo?: string * // [deprecated] - * servlets?: object + * servletNames?: object * requestCharacterEncoding?: string + * jspConfigDescriptor?: { + * // [items] start + * // [items] end + * taglibs?: Array<{ + * taglibLocation?: string + * taglibURI?: string + * }> + * // [items] start + * // [items] end + * jspPropertyGroups?: Array<{ + * buffer?: string + * defaultContentType?: string + * // [items] start + * // [items] end + * urlPatterns?: string[] + * // [items] start + * // [items] end + * includePreludes?: string[] + * trimDirectiveWhitespaces?: string + * scriptingInvalid?: string + * errorOnUndeclaredNamespace?: string + * // [items] start + * // [items] end + * includeCodas?: string[] + * elIgnored?: string + * pageEncoding?: string + * isXml?: string + * deferredSyntaxAllowedAsLiteral?: string + * }> + * } + * effectiveMajorVersion?: number + * servletContextName?: string + * virtualServerName?: string * filterRegistrations?: Record< * string, * { * // [items] start * // [items] end - * urlPatternMappings?: string[] + * servletNameMappings?: string[] * // [items] start * // [items] end - * servletNameMappings?: string[] + * urlPatternMappings?: string[] * name?: string * className?: string * initParameters?: Record * } * > - * servletContextName?: string - * // [items] start - * // [items] end - * sessionTrackingModes?: ('COOKIE' | 'URL' | 'SSL')[] - * effectiveMinorVersion?: number - * // [items] start - * // [items] end - * defaultSessionTrackingModes?: ('COOKIE' | 'URL' | 'SSL')[] * servletRegistrations?: Record< * string, * { @@ -2593,8 +2615,17 @@ declare global { * initParameters?: Record * } * > - * effectiveMajorVersion?: number - * virtualServerName?: string + * effectiveMinorVersion?: number + * // [items] start + * // [items] end + * sessionTrackingModes?: ('COOKIE' | 'URL' | 'SSL')[] + * // [items] start + * // [items] end + * effectiveSessionTrackingModes?: ('COOKIE' | 'URL' | 'SSL')[] + * // [items] start + * // [items] end + * defaultSessionTrackingModes?: ('COOKIE' | 'URL' | 'SSL')[] + * responseCharacterEncoding?: string * sessionCookieConfig?: { * name?: string * path?: string @@ -2604,40 +2635,9 @@ declare global { * maxAge?: number * httpOnly?: boolean * } - * jspConfigDescriptor?: { - * // [items] start - * // [items] end - * taglibs?: Array<{ - * taglibURI?: string - * taglibLocation?: string - * }> - * // [items] start - * // [items] end - * jspPropertyGroups?: Array<{ - * buffer?: string - * // [items] start - * // [items] end - * urlPatterns?: string[] - * defaultContentType?: string - * elIgnored?: string - * pageEncoding?: string - * isXml?: string - * // [items] start - * // [items] end - * includeCodas?: string[] - * trimDirectiveWhitespaces?: string - * // [items] start - * // [items] end - * includePreludes?: string[] - * scriptingInvalid?: string - * errorOnUndeclaredNamespace?: string - * deferredSyntaxAllowedAsLiteral?: string - * }> - * } - * responseCharacterEncoding?: string - * // [items] start - * // [items] end - * effectiveSessionTrackingModes?: ('COOKIE' | 'URL' | 'SSL')[] + * serverInfo?: string + * // [deprecated] + * servlets?: object * } * contentType?: string * requestContextAttribute?: string @@ -4196,7 +4196,7 @@ declare global { * } * ``` */ - edit_2< + edit_1< Config extends Alova2MethodConfig & { pathParams: { id: number; @@ -4205,7 +4205,7 @@ declare global { } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * @@ -4230,7 +4230,7 @@ declare global { * type Response = null * ``` */ - delete_1< + delete_< Config extends Alova2MethodConfig & { pathParams: { id: number; @@ -4239,7 +4239,7 @@ declare global { } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * @@ -4473,13 +4473,13 @@ declare global { * } * ``` */ - add_2< + add_1< Config extends Alova2MethodConfig & { data: SysUserRequest; } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * @@ -4889,7 +4889,7 @@ declare global { * } * ``` */ - edit_3< + edit_2< Config extends Alova2MethodConfig & { pathParams: { id: number; @@ -4898,7 +4898,7 @@ declare global { } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * @@ -4922,7 +4922,7 @@ declare global { * type Response = null * ``` */ - delete_2< + delete_1< Config extends Alova2MethodConfig & { pathParams: { id: number; @@ -4930,7 +4930,7 @@ declare global { } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * @@ -5014,13 +5014,13 @@ declare global { * } * ``` */ - add_3< + add_2< Config extends Alova2MethodConfig & { data: SysGroupRequest; } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * @@ -5080,7 +5080,7 @@ declare global { * }> * ``` */ - list_2< + list_1< Config extends Alova2MethodConfig & { params: { ids: string; @@ -5089,7 +5089,7 @@ declare global { } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * diff --git a/src/views/Textbook/Manage/EditModel.vue b/src/views/Textbook/Manage/EditModel.vue deleted file mode 100644 index d767486..0000000 --- a/src/views/Textbook/Manage/EditModel.vue +++ /dev/null @@ -1,158 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/Textbook/Manage/Index.vue b/src/views/Textbook/Manage/Index.vue deleted file mode 100644 index e9f00e9..0000000 --- a/src/views/Textbook/Manage/Index.vue +++ /dev/null @@ -1,301 +0,0 @@ - - - - - diff --git a/src/views/Textbook/Manage/Knowledge.vue b/src/views/Textbook/Manage/Knowledge.vue deleted file mode 100644 index 389513a..0000000 --- a/src/views/Textbook/Manage/Knowledge.vue +++ /dev/null @@ -1,301 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/Textbook/useBookInfo.ts b/src/views/Textbook/useBookInfo.ts deleted file mode 100644 index eee6ac3..0000000 --- a/src/views/Textbook/useBookInfo.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { computed } from "vue"; -export default function useBookInfo() { - const bookInfo = computed(() => { - return { identity: 2, baseModId: 2000, name: "教材", path: "textbook", type: 1 }; - }); - return { bookInfo }; -} diff --git a/src/views/group-user/group/index.vue b/src/views/group-user/group/index.vue index 78d5f3b..51782c0 100644 --- a/src/views/group-user/group/index.vue +++ b/src/views/group-user/group/index.vue @@ -291,7 +291,7 @@ function showDeleteNode() { info: '删除后不可恢复!', async onOk() { try { - await Apis.SysGroup.delete({ pathParams: { id: node?.id } }); + await Apis.SysGroup.sysGroupRemove({ pathParams: { id: node?.id } }); Message.success('删除成功!'); refTreePanel.value?.removeNode(node?.id); } catch (e: any) { @@ -313,11 +313,11 @@ async function saveEditNode() { if (!id) { const parentId = editNodeModal.parentId; const data: any = { name, parentId, type: Number(editNodeModal.type) }; - await Apis.SysGroup.add({ data }); + await Apis.SysGroup.sysGroupAdd({ data }); Message.success('新增成功'); await refTreePanel.value?.refreshTree(parentId); } else { - await Apis.SysGroup.edit({ pathParams: { id }, data: { name, type: Number(editNodeModal.type) } }); + await Apis.SysGroup.sysGroupEdit({ pathParams: { id }, data: { name, type: Number(editNodeModal.type) } }); Message.success('编辑成功'); await refTreePanel.value?.refreshTree(id); }