first commit
This commit is contained in:
commit
6c871cbe9d
12
.editorconfig
Normal file
12
.editorconfig
Normal file
@ -0,0 +1,12 @@
|
||||
root = true
|
||||
[*.{js,ts,vue}]
|
||||
charset = utf-8 # 设置文件字符集为 utf-8
|
||||
end_of_line = lf # 控制换行类型(lf | cr | crlf)
|
||||
insert_final_newline = true # 始终在文件末尾插入一个新行
|
||||
indent_style = space # 缩进风格(tab | space)
|
||||
indent_size = 2 # 缩进大小
|
||||
max_line_length = 100 # 最大行长度
|
||||
|
||||
[*.md] # 仅 md 文件适用以下规则
|
||||
max_line_length = off # 关闭最大行长度限制
|
||||
trim_trailing_whitespace = false # 关闭末尾空格修剪
|
||||
26
.env
Normal file
26
.env
Normal file
@ -0,0 +1,26 @@
|
||||
# 标题
|
||||
VITE_APP_TITLE=金智桥药品注册管理系统
|
||||
VITE_APP_SUB_TITLE=药品注册管理系统
|
||||
|
||||
# 项目本地运行端口号
|
||||
VITE_PORT=80
|
||||
|
||||
# open 运行 npm run dev 时自动打开浏览器
|
||||
VITE_OPEN=true
|
||||
|
||||
# 租户开关
|
||||
VITE_APP_TENANT_ENABLE=true
|
||||
|
||||
# 验证码的开关
|
||||
VITE_APP_CAPTCHA_ENABLE=true
|
||||
|
||||
# 文档地址的开关
|
||||
VITE_APP_DOCALERT_ENABLE=false
|
||||
|
||||
# 百度统计
|
||||
VITE_APP_BAIDU_CODE = a1ff8825baa73c3a78eb96aa40325abc
|
||||
|
||||
# 默认账户密码
|
||||
VITE_APP_DEFAULT_LOGIN_TENANT = ''
|
||||
VITE_APP_DEFAULT_LOGIN_USERNAME = ''
|
||||
VITE_APP_DEFAULT_LOGIN_PASSWORD = ''
|
||||
37
.env.dev
Normal file
37
.env.dev
Normal file
@ -0,0 +1,37 @@
|
||||
# 开发环境:本地只启动前端项目,依赖开发环境(后端、APP)
|
||||
NODE_ENV=production
|
||||
|
||||
VITE_DEV=true
|
||||
|
||||
# 请求路径
|
||||
VITE_BASE_URL='http://test.jinzhiqiaotech.com:48080'
|
||||
|
||||
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务
|
||||
VITE_UPLOAD_TYPE=server
|
||||
|
||||
# 接口地址
|
||||
VITE_API_URL=/admin-api
|
||||
|
||||
# 是否删除debugger
|
||||
VITE_DROP_DEBUGGER=false
|
||||
|
||||
# 是否删除console.log
|
||||
VITE_DROP_CONSOLE=false
|
||||
|
||||
# 是否sourcemap
|
||||
VITE_SOURCEMAP=true
|
||||
|
||||
# 打包路径
|
||||
VITE_BASE_PATH=/
|
||||
|
||||
# 输出路径
|
||||
VITE_OUT_DIR=dist
|
||||
|
||||
# 商城H5会员端域名
|
||||
VITE_MALL_H5_DOMAIN='http://mall.yudao.iocoder.cn'
|
||||
|
||||
# 验证码的开关
|
||||
VITE_APP_CAPTCHA_ENABLE=true
|
||||
|
||||
# GoView域名
|
||||
VITE_GOVIEW_URL='http://127.0.0.1:3000'
|
||||
36
.env.local
Normal file
36
.env.local
Normal file
@ -0,0 +1,36 @@
|
||||
# 本地开发环境:本地启动所有项目(前端、后端、APP)时使用,不依赖外部环境
|
||||
NODE_ENV=development
|
||||
|
||||
VITE_DEV=true
|
||||
|
||||
# 请求路径
|
||||
VITE_BASE_URL='http://localhost:48081'
|
||||
|
||||
VITE_ONLYOFFICE_API_JS_URL='http://localhost:8082'
|
||||
|
||||
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持 S3 服务
|
||||
VITE_UPLOAD_TYPE=server
|
||||
|
||||
# 接口地址
|
||||
VITE_API_URL=/admin-api
|
||||
|
||||
# 是否删除debugger
|
||||
VITE_DROP_DEBUGGER=false
|
||||
|
||||
# 是否删除console.log
|
||||
VITE_DROP_CONSOLE=false
|
||||
|
||||
# 是否sourcemap
|
||||
VITE_SOURCEMAP=false
|
||||
|
||||
# 打包路径
|
||||
VITE_BASE_PATH=/
|
||||
|
||||
# 商城H5会员端域名
|
||||
VITE_MALL_H5_DOMAIN='http://localhost:3000'
|
||||
|
||||
# 验证码的开关
|
||||
VITE_APP_CAPTCHA_ENABLE=true
|
||||
|
||||
# GoView域名
|
||||
VITE_GOVIEW_URL='http://127.0.0.1:3000'
|
||||
37
.env.mydev
Normal file
37
.env.mydev
Normal file
@ -0,0 +1,37 @@
|
||||
# 开发环境:本地只启动前端项目,依赖开发环境(后端、APP)
|
||||
NODE_ENV=production
|
||||
|
||||
VITE_DEV=true
|
||||
|
||||
# 请求路径
|
||||
VITE_BASE_URL='http://1.95.202.243:48080'
|
||||
|
||||
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务
|
||||
VITE_UPLOAD_TYPE=server
|
||||
|
||||
# 接口地址
|
||||
VITE_API_URL=/admin-api
|
||||
|
||||
# 是否删除debugger
|
||||
VITE_DROP_DEBUGGER=false
|
||||
|
||||
# 是否删除console.log
|
||||
VITE_DROP_CONSOLE=false
|
||||
|
||||
# 是否sourcemap
|
||||
VITE_SOURCEMAP=true
|
||||
|
||||
# 打包路径
|
||||
VITE_BASE_PATH=/
|
||||
|
||||
# 输出路径
|
||||
VITE_OUT_DIR=dist
|
||||
|
||||
# 商城H5会员端域名
|
||||
VITE_MALL_H5_DOMAIN='http://mall.yudao.iocoder.cn'
|
||||
|
||||
# 验证码的开关
|
||||
VITE_APP_CAPTCHA_ENABLE=true
|
||||
|
||||
# GoView域名
|
||||
VITE_GOVIEW_URL='http://127.0.0.1:3000'
|
||||
37
.env.prod
Normal file
37
.env.prod
Normal file
@ -0,0 +1,37 @@
|
||||
# 生产环境:只在打包时使用
|
||||
NODE_ENV=production
|
||||
|
||||
VITE_DEV=false
|
||||
|
||||
# 请求路径
|
||||
VITE_BASE_URL='http://test.jinzhiqiaotech.com:48080'
|
||||
|
||||
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务
|
||||
VITE_UPLOAD_TYPE=server
|
||||
|
||||
# 接口地址
|
||||
VITE_API_URL=/admin-api
|
||||
|
||||
# 是否删除debugger
|
||||
VITE_DROP_DEBUGGER=true
|
||||
|
||||
# 是否删除console.log
|
||||
VITE_DROP_CONSOLE=true
|
||||
|
||||
# 是否sourcemap
|
||||
VITE_SOURCEMAP=false
|
||||
|
||||
# 打包路径
|
||||
VITE_BASE_PATH=/
|
||||
|
||||
# 输出路径
|
||||
VITE_OUT_DIR=dist
|
||||
|
||||
# 商城H5会员端域名
|
||||
VITE_MALL_H5_DOMAIN='http://mall.yudao.iocoder.cn'
|
||||
|
||||
# GoView域名
|
||||
VITE_GOVIEW_URL='http://127.0.0.1:3000'
|
||||
|
||||
# 验证码的开关
|
||||
VITE_APP_CAPTCHA_ENABLE=true
|
||||
34
.env.stage
Normal file
34
.env.stage
Normal file
@ -0,0 +1,34 @@
|
||||
# 预发布环境:只在打包时使用
|
||||
NODE_ENV=production
|
||||
|
||||
VITE_DEV=false
|
||||
|
||||
# 请求路径
|
||||
VITE_BASE_URL='http://api-dashboard.yudao.iocoder.cn'
|
||||
|
||||
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务
|
||||
VITE_UPLOAD_TYPE=server
|
||||
|
||||
# 接口地址
|
||||
VITE_API_URL=/admin-api
|
||||
|
||||
# 是否删除debugger
|
||||
VITE_DROP_DEBUGGER=true
|
||||
|
||||
# 是否删除console.log
|
||||
VITE_DROP_CONSOLE=true
|
||||
|
||||
# 是否sourcemap
|
||||
VITE_SOURCEMAP=false
|
||||
|
||||
# 打包路径
|
||||
VITE_BASE_PATH='http://static-vue3.yudao.iocoder.cn/'
|
||||
|
||||
# 输出路径
|
||||
VITE_OUT_DIR=dist-stage
|
||||
|
||||
# 商城H5会员端域名
|
||||
VITE_MALL_H5_DOMAIN='http://mall.yudao.iocoder.cn'
|
||||
|
||||
# GoView域名
|
||||
VITE_GOVIEW_URL='http://127.0.0.1:3000'
|
||||
34
.env.test
Normal file
34
.env.test
Normal file
@ -0,0 +1,34 @@
|
||||
# 测试环境:只在打包时使用
|
||||
NODE_ENV=production
|
||||
|
||||
VITE_DEV=false
|
||||
|
||||
# 请求路径
|
||||
VITE_BASE_URL='http://localhost:48080'
|
||||
|
||||
# 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持S3服务
|
||||
VITE_UPLOAD_TYPE=server
|
||||
|
||||
# 接口地址
|
||||
VITE_API_URL=/admin-api
|
||||
|
||||
# 是否删除debugger
|
||||
VITE_DROP_DEBUGGER=true
|
||||
|
||||
# 是否删除console.log
|
||||
VITE_DROP_CONSOLE=true
|
||||
|
||||
# 是否sourcemap
|
||||
VITE_SOURCEMAP=false
|
||||
|
||||
# 打包路径
|
||||
VITE_BASE_PATH=/admin-ui-vue3/
|
||||
|
||||
# 输出路径
|
||||
VITE_OUT_DIR=dist-test
|
||||
|
||||
# 商城H5会员端域名
|
||||
VITE_MALL_H5_DOMAIN='http://mall.yudao.iocoder.cn'
|
||||
|
||||
# GoView域名
|
||||
VITE_GOVIEW_URL='http://127.0.0.1:3000'
|
||||
8
.eslintignore
Normal file
8
.eslintignore
Normal file
@ -0,0 +1,8 @@
|
||||
/build/
|
||||
/config/
|
||||
/dist/
|
||||
/*.js
|
||||
/test/unit/coverage/
|
||||
/node_modules/*
|
||||
/dist*
|
||||
/src/main.ts
|
||||
259
.eslintrc-auto-import.json
Normal file
259
.eslintrc-auto-import.json
Normal file
@ -0,0 +1,259 @@
|
||||
{
|
||||
"globals": {
|
||||
"EffectScope": true,
|
||||
"ElMessage": true,
|
||||
"ElMessageBox": true,
|
||||
"ElTag": true,
|
||||
"asyncComputed": true,
|
||||
"autoResetRef": true,
|
||||
"computed": true,
|
||||
"computedAsync": true,
|
||||
"computedEager": true,
|
||||
"computedInject": true,
|
||||
"computedWithControl": true,
|
||||
"controlledComputed": true,
|
||||
"controlledRef": true,
|
||||
"createApp": true,
|
||||
"createEventHook": true,
|
||||
"createGlobalState": true,
|
||||
"createInjectionState": true,
|
||||
"createReactiveFn": true,
|
||||
"createSharedComposable": true,
|
||||
"createUnrefFn": true,
|
||||
"customRef": true,
|
||||
"debouncedRef": true,
|
||||
"debouncedWatch": true,
|
||||
"defineAsyncComponent": true,
|
||||
"defineComponent": true,
|
||||
"eagerComputed": true,
|
||||
"effectScope": true,
|
||||
"extendRef": true,
|
||||
"getCurrentInstance": true,
|
||||
"getCurrentScope": true,
|
||||
"h": true,
|
||||
"ignorableWatch": true,
|
||||
"inject": true,
|
||||
"isDefined": true,
|
||||
"isProxy": true,
|
||||
"isReactive": true,
|
||||
"isReadonly": true,
|
||||
"isRef": true,
|
||||
"makeDestructurable": true,
|
||||
"markRaw": true,
|
||||
"nextTick": true,
|
||||
"onActivated": true,
|
||||
"onBeforeMount": true,
|
||||
"onBeforeUnmount": true,
|
||||
"onBeforeUpdate": true,
|
||||
"onClickOutside": true,
|
||||
"onDeactivated": true,
|
||||
"onErrorCaptured": true,
|
||||
"onKeyStroke": true,
|
||||
"onLongPress": true,
|
||||
"onMounted": true,
|
||||
"onRenderTracked": true,
|
||||
"onRenderTriggered": true,
|
||||
"onScopeDispose": true,
|
||||
"onServerPrefetch": true,
|
||||
"onStartTyping": true,
|
||||
"onUnmounted": true,
|
||||
"onUpdated": true,
|
||||
"pausableWatch": true,
|
||||
"provide": true,
|
||||
"reactify": true,
|
||||
"reactifyObject": true,
|
||||
"reactive": true,
|
||||
"reactiveComputed": true,
|
||||
"reactiveOmit": true,
|
||||
"reactivePick": true,
|
||||
"readonly": true,
|
||||
"ref": true,
|
||||
"refAutoReset": true,
|
||||
"refDebounced": true,
|
||||
"refDefault": true,
|
||||
"refThrottled": true,
|
||||
"refWithControl": true,
|
||||
"resolveComponent": true,
|
||||
"resolveRef": true,
|
||||
"resolveUnref": true,
|
||||
"shallowReactive": true,
|
||||
"shallowReadonly": true,
|
||||
"shallowRef": true,
|
||||
"syncRef": true,
|
||||
"syncRefs": true,
|
||||
"templateRef": true,
|
||||
"throttledRef": true,
|
||||
"throttledWatch": true,
|
||||
"toRaw": true,
|
||||
"toReactive": true,
|
||||
"toRef": true,
|
||||
"toRefs": true,
|
||||
"triggerRef": true,
|
||||
"tryOnBeforeMount": true,
|
||||
"tryOnBeforeUnmount": true,
|
||||
"tryOnMounted": true,
|
||||
"tryOnScopeDispose": true,
|
||||
"tryOnUnmounted": true,
|
||||
"unref": true,
|
||||
"unrefElement": true,
|
||||
"until": true,
|
||||
"useActiveElement": true,
|
||||
"useArrayEvery": true,
|
||||
"useArrayFilter": true,
|
||||
"useArrayFind": true,
|
||||
"useArrayFindIndex": true,
|
||||
"useArrayJoin": true,
|
||||
"useArrayMap": true,
|
||||
"useArrayReduce": true,
|
||||
"useArraySome": true,
|
||||
"useAsyncQueue": true,
|
||||
"useAsyncState": true,
|
||||
"useAttrs": true,
|
||||
"useBase64": true,
|
||||
"useBattery": true,
|
||||
"useBluetooth": true,
|
||||
"useBreakpoints": true,
|
||||
"useBroadcastChannel": true,
|
||||
"useBrowserLocation": true,
|
||||
"useCached": true,
|
||||
"useClipboard": true,
|
||||
"useColorMode": true,
|
||||
"useConfirmDialog": true,
|
||||
"useCounter": true,
|
||||
"useCssModule": true,
|
||||
"useCssVar": true,
|
||||
"useCssVars": true,
|
||||
"useCurrentElement": true,
|
||||
"useCycleList": true,
|
||||
"useDark": true,
|
||||
"useDateFormat": true,
|
||||
"useDebounce": true,
|
||||
"useDebounceFn": true,
|
||||
"useDebouncedRefHistory": true,
|
||||
"useDeviceMotion": true,
|
||||
"useDeviceOrientation": true,
|
||||
"useDevicePixelRatio": true,
|
||||
"useDevicesList": true,
|
||||
"useDisplayMedia": true,
|
||||
"useDocumentVisibility": true,
|
||||
"useDraggable": true,
|
||||
"useDropZone": true,
|
||||
"useElementBounding": true,
|
||||
"useElementByPoint": true,
|
||||
"useElementHover": true,
|
||||
"useElementSize": true,
|
||||
"useElementVisibility": true,
|
||||
"useEventBus": true,
|
||||
"useEventListener": true,
|
||||
"useEventSource": true,
|
||||
"useEyeDropper": true,
|
||||
"useFavicon": true,
|
||||
"useFetch": true,
|
||||
"useFileDialog": true,
|
||||
"useFileSystemAccess": true,
|
||||
"useFocus": true,
|
||||
"useFocusWithin": true,
|
||||
"useFps": true,
|
||||
"useFullscreen": true,
|
||||
"useGamepad": true,
|
||||
"useGeolocation": true,
|
||||
"useIdle": true,
|
||||
"useImage": true,
|
||||
"useInfiniteScroll": true,
|
||||
"useIntersectionObserver": true,
|
||||
"useInterval": true,
|
||||
"useIntervalFn": true,
|
||||
"useKeyModifier": true,
|
||||
"useLastChanged": true,
|
||||
"useLocalStorage": true,
|
||||
"useMagicKeys": true,
|
||||
"useManualRefHistory": true,
|
||||
"useMediaControls": true,
|
||||
"useMediaQuery": true,
|
||||
"useMemoize": true,
|
||||
"useMemory": true,
|
||||
"useMounted": true,
|
||||
"useMouse": true,
|
||||
"useMouseInElement": true,
|
||||
"useMousePressed": true,
|
||||
"useMutationObserver": true,
|
||||
"useNavigatorLanguage": true,
|
||||
"useNetwork": true,
|
||||
"useNow": true,
|
||||
"useObjectUrl": true,
|
||||
"useOffsetPagination": true,
|
||||
"useOnline": true,
|
||||
"usePageLeave": true,
|
||||
"useParallax": true,
|
||||
"usePermission": true,
|
||||
"usePointer": true,
|
||||
"usePointerSwipe": true,
|
||||
"usePreferredColorScheme": true,
|
||||
"usePreferredDark": true,
|
||||
"usePreferredLanguages": true,
|
||||
"useRafFn": true,
|
||||
"useRefHistory": true,
|
||||
"useResizeObserver": true,
|
||||
"useRoute": true,
|
||||
"useRouter": true,
|
||||
"useScreenOrientation": true,
|
||||
"useScreenSafeArea": true,
|
||||
"useScriptTag": true,
|
||||
"useScroll": true,
|
||||
"useScrollLock": true,
|
||||
"useSessionStorage": true,
|
||||
"useShare": true,
|
||||
"useSlots": true,
|
||||
"useSpeechRecognition": true,
|
||||
"useSpeechSynthesis": true,
|
||||
"useStepper": true,
|
||||
"useStorage": true,
|
||||
"useStorageAsync": true,
|
||||
"useStyleTag": true,
|
||||
"useSupported": true,
|
||||
"useSwipe": true,
|
||||
"useTemplateRefsList": true,
|
||||
"useTextDirection": true,
|
||||
"useTextSelection": true,
|
||||
"useTextareaAutosize": true,
|
||||
"useThrottle": true,
|
||||
"useThrottleFn": true,
|
||||
"useThrottledRefHistory": true,
|
||||
"useTimeAgo": true,
|
||||
"useTimeout": true,
|
||||
"useTimeoutFn": true,
|
||||
"useTimeoutPoll": true,
|
||||
"useTimestamp": true,
|
||||
"useTitle": true,
|
||||
"useToggle": true,
|
||||
"useTransition": true,
|
||||
"useUrlSearchParams": true,
|
||||
"useUserMedia": true,
|
||||
"useVModel": true,
|
||||
"useVModels": true,
|
||||
"useVibrate": true,
|
||||
"useVirtualList": true,
|
||||
"useWakeLock": true,
|
||||
"useWebNotification": true,
|
||||
"useWebSocket": true,
|
||||
"useWebWorker": true,
|
||||
"useWebWorkerFn": true,
|
||||
"useWindowFocus": true,
|
||||
"useWindowScroll": true,
|
||||
"useWindowSize": true,
|
||||
"watch": true,
|
||||
"watchArray": true,
|
||||
"watchAtMost": true,
|
||||
"watchDebounced": true,
|
||||
"watchEffect": true,
|
||||
"watchIgnorable": true,
|
||||
"watchOnce": true,
|
||||
"watchPausable": true,
|
||||
"watchPostEffect": true,
|
||||
"watchSyncEffect": true,
|
||||
"watchThrottled": true,
|
||||
"watchTriggerable": true,
|
||||
"watchWithFilter": true,
|
||||
"whenever": true
|
||||
}
|
||||
}
|
||||
76
.eslintrc.js
Normal file
76
.eslintrc.js
Normal file
@ -0,0 +1,76 @@
|
||||
// @ts-check
|
||||
const { defineConfig } = require('eslint-define-config')
|
||||
module.exports = defineConfig({
|
||||
root: true,
|
||||
env: {
|
||||
browser: true,
|
||||
node: true,
|
||||
es6: true
|
||||
},
|
||||
parser: 'vue-eslint-parser',
|
||||
parserOptions: {
|
||||
parser: '@typescript-eslint/parser',
|
||||
ecmaVersion: 2020,
|
||||
sourceType: 'module',
|
||||
jsxPragma: 'React',
|
||||
ecmaFeatures: {
|
||||
jsx: true
|
||||
}
|
||||
},
|
||||
extends: [
|
||||
'plugin:vue/vue3-recommended',
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
'prettier',
|
||||
'plugin:prettier/recommended',
|
||||
'@unocss'
|
||||
],
|
||||
rules: {
|
||||
'vue/no-setup-props-destructure': 'off',
|
||||
'vue/script-setup-uses-vars': 'error',
|
||||
'vue/no-reserved-component-names': 'off',
|
||||
'@typescript-eslint/ban-ts-ignore': 'off',
|
||||
'@typescript-eslint/explicit-function-return-type': 'off',
|
||||
'@typescript-eslint/no-explicit-any': 'off',
|
||||
'@typescript-eslint/no-var-requires': 'off',
|
||||
'@typescript-eslint/no-empty-function': 'off',
|
||||
'vue/custom-event-name-casing': 'off',
|
||||
'no-use-before-define': 'off',
|
||||
'@typescript-eslint/no-use-before-define': 'off',
|
||||
'@typescript-eslint/ban-ts-comment': 'off',
|
||||
'@typescript-eslint/ban-types': 'off',
|
||||
'@typescript-eslint/no-non-null-assertion': 'off',
|
||||
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
||||
'@typescript-eslint/no-unused-vars': 'off',
|
||||
'@typescript-eslint/vue-super-flow': 'off',
|
||||
'no-unused-vars': 'off',
|
||||
'space-before-function-paren': 'off',
|
||||
|
||||
'vue/attributes-order': 'off',
|
||||
'vue/one-component-per-file': 'off',
|
||||
'vue/html-closing-bracket-newline': 'off',
|
||||
'vue/max-attributes-per-line': 'off',
|
||||
'vue/multiline-html-element-content-newline': 'off',
|
||||
'vue/singleline-html-element-content-newline': 'off',
|
||||
'vue/attribute-hyphenation': 'off',
|
||||
'vue/require-default-prop': 'off',
|
||||
'vue/require-explicit-emits': 'off',
|
||||
'vue/require-toggle-inside-transition': 'off',
|
||||
'vue/html-self-closing': [
|
||||
'error',
|
||||
{
|
||||
html: {
|
||||
void: 'always',
|
||||
normal: 'never',
|
||||
component: 'always'
|
||||
},
|
||||
svg: 'always',
|
||||
math: 'always'
|
||||
}
|
||||
],
|
||||
'vue/multi-word-component-names': 'off',
|
||||
'vue/no-v-html': 'off',
|
||||
'prettier/prettier': 'off', // 芋艿:默认关闭 prettier 的 ESLint 校验,因为我们使用的是 IDE 的 Prettier 插件
|
||||
'@unocss/order': 'off', // 芋艿:禁用 unocss 【css】顺序的提示,因为暂时不需要这么严格,警告也有点繁琐
|
||||
'@unocss/order-attributify': 'off' // 芋艿:禁用 unocss 【属性】顺序的提示,因为暂时不需要这么严格,警告也有点繁琐
|
||||
}
|
||||
})
|
||||
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
node_modules
|
||||
.DS_Store
|
||||
dist
|
||||
dist-ssr
|
||||
/dist*
|
||||
pnpm-debug
|
||||
auto-*.d.ts
|
||||
.idea
|
||||
.history
|
||||
11
.prettierignore
Normal file
11
.prettierignore
Normal file
@ -0,0 +1,11 @@
|
||||
/node_modules/**
|
||||
/dist/
|
||||
/dist*
|
||||
/public/*
|
||||
/docs/*
|
||||
/vite.config.ts
|
||||
/src/types/env.d.ts
|
||||
/src/types/auto-components.d.ts
|
||||
/src/types/auto-imports.d.ts
|
||||
/docs/**/*
|
||||
CHANGELOG
|
||||
6
.stylelintignore
Normal file
6
.stylelintignore
Normal file
@ -0,0 +1,6 @@
|
||||
/dist/*
|
||||
/public/*
|
||||
public/*
|
||||
/dist*
|
||||
/src/types/env.d.ts
|
||||
/docs/**/*
|
||||
18
.vscode/extensions.json
vendored
Normal file
18
.vscode/extensions.json
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"christian-kohler.path-intellisense",
|
||||
"vscode-icons-team.vscode-icons",
|
||||
"davidanson.vscode-markdownlint",
|
||||
"dbaeumer.vscode-eslint",
|
||||
"esbenp.prettier-vscode",
|
||||
"mrmlnc.vscode-less",
|
||||
"lokalise.i18n-ally",
|
||||
"redhat.vscode-yaml",
|
||||
"csstools.postcss",
|
||||
"mikestead.dotenv",
|
||||
"eamodio.gitlens",
|
||||
"antfu.iconify",
|
||||
"antfu.unocss",
|
||||
"Vue.volar"
|
||||
]
|
||||
}
|
||||
16
.vscode/launch.json
vendored
Normal file
16
.vscode/launch.json
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"type": "msedge",
|
||||
"request": "launch",
|
||||
"name": "Launch Edge against localhost",
|
||||
"url": "http://localhost",
|
||||
"webRoot": "${workspaceFolder}/src",
|
||||
"sourceMaps": true
|
||||
}
|
||||
]
|
||||
}
|
||||
145
.vscode/settings.json
vendored
Normal file
145
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,145 @@
|
||||
{
|
||||
"typescript.tsdk": "node_modules/typescript/lib",
|
||||
"npm.packageManager": "pnpm",
|
||||
"editor.tabSize": 2,
|
||||
"prettier.printWidth": 100, // 超过最大值换行
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||
"files.eol": "\n",
|
||||
"search.exclude": {
|
||||
"**/node_modules": true,
|
||||
"**/*.log": true,
|
||||
"**/*.log*": true,
|
||||
"**/bower_components": true,
|
||||
"**/dist": true,
|
||||
"**/elehukouben": true,
|
||||
"**/.git": true,
|
||||
"**/.gitignore": true,
|
||||
"**/.svn": true,
|
||||
"**/.DS_Store": true,
|
||||
"**/.idea": true,
|
||||
"**/.vscode": false,
|
||||
"**/yarn.lock": true,
|
||||
"**/tmp": true,
|
||||
"out": true,
|
||||
"dist": true,
|
||||
"node_modules": true,
|
||||
"CHANGELOG.md": true,
|
||||
"examples": true,
|
||||
"res": true,
|
||||
"screenshots": true,
|
||||
"yarn-error.log": true,
|
||||
"**/.yarn": true
|
||||
},
|
||||
"files.exclude": {
|
||||
"**/.cache": true,
|
||||
"**/.editorconfig": true,
|
||||
"**/.eslintcache": true,
|
||||
"**/bower_components": true,
|
||||
"**/.idea": true,
|
||||
"**/tmp": true,
|
||||
"**/.git": true,
|
||||
"**/.svn": true,
|
||||
"**/.hg": true,
|
||||
"**/CVS": true,
|
||||
"**/.DS_Store": true
|
||||
},
|
||||
"files.watcherExclude": {
|
||||
"**/.git/objects/**": true,
|
||||
"**/.git/subtree-cache/**": true,
|
||||
"**/.vscode/**": true,
|
||||
"**/node_modules/**": true,
|
||||
"**/tmp/**": true,
|
||||
"**/bower_components/**": true,
|
||||
"**/dist/**": true,
|
||||
"**/yarn.lock": true
|
||||
},
|
||||
"stylelint.enable": true,
|
||||
"stylelint.validate": ["css", "less", "postcss", "scss", "vue", "sass"],
|
||||
"path-intellisense.mappings": {
|
||||
"@/": "${workspaceRoot}/src"
|
||||
},
|
||||
"[javascriptreact]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"[typescript]": {
|
||||
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
|
||||
},
|
||||
"[typescriptreact]": {
|
||||
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
|
||||
},
|
||||
"[html]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"[css]": {
|
||||
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
|
||||
},
|
||||
"[less]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"[scss]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"[markdown]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.fixAll.eslint": "explicit",
|
||||
"source.fixAll.stylelint": "explicit"
|
||||
},
|
||||
"[vue]": {
|
||||
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||
},
|
||||
"i18n-ally.localesPaths": ["src/locales"],
|
||||
"i18n-ally.keystyle": "nested",
|
||||
"i18n-ally.sortKeys": true,
|
||||
"i18n-ally.namespace": false,
|
||||
"i18n-ally.enabledParsers": ["ts"],
|
||||
"i18n-ally.sourceLanguage": "en",
|
||||
"i18n-ally.displayLanguage": "zh-CN",
|
||||
"i18n-ally.enabledFrameworks": ["vue", "react"],
|
||||
"cSpell.words": [
|
||||
"brotli",
|
||||
"browserslist",
|
||||
"codemirror",
|
||||
"commitlint",
|
||||
"cropperjs",
|
||||
"echart",
|
||||
"echarts",
|
||||
"esnext",
|
||||
"esno",
|
||||
"iconify",
|
||||
"INTLIFY",
|
||||
"lintstagedrc",
|
||||
"logicflow",
|
||||
"nprogress",
|
||||
"pinia",
|
||||
"pnpm",
|
||||
"qrcode",
|
||||
"sider",
|
||||
"sortablejs",
|
||||
"stylelint",
|
||||
"svgs",
|
||||
"unocss",
|
||||
"unplugin",
|
||||
"unref",
|
||||
"videojs",
|
||||
"VITE",
|
||||
"vitejs",
|
||||
"vueuse",
|
||||
"wangeditor",
|
||||
"xingyu",
|
||||
"yudao",
|
||||
"zxcvbn"
|
||||
],
|
||||
// 控制相关文件嵌套展示
|
||||
"explorer.fileNesting.enabled": true,
|
||||
"explorer.fileNesting.expand": false,
|
||||
"explorer.fileNesting.patterns": {
|
||||
"*.ts": "$(capture).test.ts, $(capture).test.tsx",
|
||||
"*.tsx": "$(capture).test.ts, $(capture).test.tsx",
|
||||
"*.env": "$(capture).env.*",
|
||||
"package.json": "pnpm-lock.yaml,yarn.lock,LICENSE,README*,CHANGELOG*,CNAME,.gitattributes,.eslintrc-auto-import.json,.gitignore,prettier.config.js,stylelint.config.js,commitlint.config.js,.stylelintignore,.prettierignore,.gitpod.yml,.eslintrc.js,.eslintignore"
|
||||
},
|
||||
"terminal.integrated.scrollback": 10000,
|
||||
"nuxt.isNuxtApp": false
|
||||
}
|
||||
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021-present Archer
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
100
build/vite/index.ts
Normal file
100
build/vite/index.ts
Normal file
@ -0,0 +1,100 @@
|
||||
import { resolve } from 'path'
|
||||
import Vue from '@vitejs/plugin-vue'
|
||||
import VueJsx from '@vitejs/plugin-vue-jsx'
|
||||
import progress from 'vite-plugin-progress'
|
||||
import EslintPlugin from 'vite-plugin-eslint'
|
||||
import PurgeIcons from 'vite-plugin-purge-icons'
|
||||
import { ViteEjsPlugin } from 'vite-plugin-ejs'
|
||||
// @ts-ignore
|
||||
import ElementPlus from 'unplugin-element-plus/vite'
|
||||
import AutoImport from 'unplugin-auto-import/vite'
|
||||
import Components from 'unplugin-vue-components/vite'
|
||||
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
|
||||
import viteCompression from 'vite-plugin-compression'
|
||||
import topLevelAwait from 'vite-plugin-top-level-await'
|
||||
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
|
||||
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
|
||||
import UnoCSS from 'unocss/vite'
|
||||
|
||||
export function createVitePlugins() {
|
||||
const root = process.cwd()
|
||||
|
||||
// 路径查找
|
||||
function pathResolve(dir: string) {
|
||||
return resolve(root, '.', dir)
|
||||
}
|
||||
|
||||
return [
|
||||
Vue(),
|
||||
VueJsx(),
|
||||
UnoCSS(),
|
||||
progress(),
|
||||
PurgeIcons(),
|
||||
ElementPlus({}),
|
||||
AutoImport({
|
||||
include: [
|
||||
/\.[tj]sx?$/, // .ts, .tsx, .js, .jsx
|
||||
/\.vue$/,
|
||||
/\.vue\?vue/, // .vue
|
||||
/\.md$/ // .md
|
||||
],
|
||||
imports: [
|
||||
'vue',
|
||||
'vue-router',
|
||||
// 可额外添加需要 autoImport 的组件
|
||||
{
|
||||
'@/hooks/web/useI18n': ['useI18n'],
|
||||
'@/hooks/web/useMessage': ['useMessage'],
|
||||
'@/hooks/web/useTable': ['useTable'],
|
||||
'@/hooks/web/useCrudSchemas': ['useCrudSchemas'],
|
||||
'@/utils/formRules': ['required'],
|
||||
'@/utils/dict': ['DICT_TYPE']
|
||||
}
|
||||
],
|
||||
dts: 'src/types/auto-imports.d.ts',
|
||||
resolvers: [ElementPlusResolver()],
|
||||
eslintrc: {
|
||||
enabled: false, // Default `false`
|
||||
filepath: './.eslintrc-auto-import.json', // Default `./.eslintrc-auto-import.json`
|
||||
globalsPropValue: true // Default `true`, (true | false | 'readonly' | 'readable' | 'writable' | 'writeable')
|
||||
}
|
||||
}),
|
||||
Components({
|
||||
// 生成自定义 `auto-components.d.ts` 全局声明
|
||||
dts: 'src/types/auto-components.d.ts',
|
||||
// 自定义组件的解析器
|
||||
resolvers: [ElementPlusResolver()],
|
||||
globs: ["src/components/**/**.{vue, md}", '!src/components/DiyEditor/components/mobile/**']
|
||||
}),
|
||||
EslintPlugin({
|
||||
cache: false,
|
||||
include: ['src/**/*.vue', 'src/**/*.ts', 'src/**/*.tsx'] // 检查的文件
|
||||
}),
|
||||
VueI18nPlugin({
|
||||
runtimeOnly: true,
|
||||
compositionOnly: true,
|
||||
include: [resolve(__dirname, 'src/locales/**')]
|
||||
}),
|
||||
createSvgIconsPlugin({
|
||||
iconDirs: [pathResolve('src/assets/svgs')],
|
||||
symbolId: 'icon-[dir]-[name]',
|
||||
svgoOptions: true
|
||||
}),
|
||||
viteCompression({
|
||||
verbose: true, // 是否在控制台输出压缩结果
|
||||
disable: false, // 是否禁用
|
||||
threshold: 10240, // 体积大于 threshold 才会被压缩,单位 b
|
||||
algorithm: 'gzip', // 压缩算法,可选 [ 'gzip' , 'brotliCompress' ,'deflate' , 'deflateRaw']
|
||||
ext: '.gz', // 生成的压缩包后缀
|
||||
deleteOriginFile: false //压缩后是否删除源文件
|
||||
}),
|
||||
ViteEjsPlugin(),
|
||||
topLevelAwait({
|
||||
// https://juejin.cn/post/7152191742513512485
|
||||
// The export name of top-level await promise for each chunk module
|
||||
promiseExportName: '__tla',
|
||||
// The function to generate import names of top-level await promise in each chunk module
|
||||
promiseImportName: (i) => `__tla_${i}`
|
||||
})
|
||||
]
|
||||
}
|
||||
122
build/vite/optimize.ts
Normal file
122
build/vite/optimize.ts
Normal file
@ -0,0 +1,122 @@
|
||||
const include = [
|
||||
'qs',
|
||||
'url',
|
||||
'vue',
|
||||
'sass',
|
||||
'mitt',
|
||||
'axios',
|
||||
'pinia',
|
||||
'dayjs',
|
||||
'qrcode',
|
||||
'unocss',
|
||||
'vue-router',
|
||||
'vue-types',
|
||||
'vue-i18n',
|
||||
'crypto-js',
|
||||
'cropperjs',
|
||||
'lodash-es',
|
||||
'nprogress',
|
||||
'web-storage-cache',
|
||||
'@vueuse/core',
|
||||
'@zxcvbn-ts/core',
|
||||
'echarts/core',
|
||||
'echarts/charts',
|
||||
'echarts/components',
|
||||
'echarts/renderers',
|
||||
'echarts-wordcloud',
|
||||
'@wangeditor/editor',
|
||||
'@wangeditor/editor-for-vue',
|
||||
'@microsoft/fetch-event-source',
|
||||
'markdown-it',
|
||||
'markmap-view',
|
||||
'markmap-lib',
|
||||
'markmap-toolbar',
|
||||
'highlight.js',
|
||||
'element-plus',
|
||||
'element-plus/es',
|
||||
'element-plus/es/locale/lang/zh-cn',
|
||||
'element-plus/es/locale/lang/en',
|
||||
'element-plus/es/components/avatar/style/css',
|
||||
'element-plus/es/components/space/style/css',
|
||||
'element-plus/es/components/backtop/style/css',
|
||||
'element-plus/es/components/form/style/css',
|
||||
'element-plus/es/components/radio-group/style/css',
|
||||
'element-plus/es/components/radio/style/css',
|
||||
'element-plus/es/components/checkbox/style/css',
|
||||
'element-plus/es/components/checkbox-group/style/css',
|
||||
'element-plus/es/components/switch/style/css',
|
||||
'element-plus/es/components/time-picker/style/css',
|
||||
'element-plus/es/components/date-picker/style/css',
|
||||
'element-plus/es/components/descriptions/style/css',
|
||||
'element-plus/es/components/descriptions-item/style/css',
|
||||
'element-plus/es/components/link/style/css',
|
||||
'element-plus/es/components/tooltip/style/css',
|
||||
'element-plus/es/components/drawer/style/css',
|
||||
'element-plus/es/components/dialog/style/css',
|
||||
'element-plus/es/components/checkbox-button/style/css',
|
||||
'element-plus/es/components/option-group/style/css',
|
||||
'element-plus/es/components/radio-button/style/css',
|
||||
'element-plus/es/components/cascader/style/css',
|
||||
'element-plus/es/components/color-picker/style/css',
|
||||
'element-plus/es/components/input-number/style/css',
|
||||
'element-plus/es/components/rate/style/css',
|
||||
'element-plus/es/components/select-v2/style/css',
|
||||
'element-plus/es/components/tree-select/style/css',
|
||||
'element-plus/es/components/slider/style/css',
|
||||
'element-plus/es/components/time-select/style/css',
|
||||
'element-plus/es/components/autocomplete/style/css',
|
||||
'element-plus/es/components/image-viewer/style/css',
|
||||
'element-plus/es/components/upload/style/css',
|
||||
'element-plus/es/components/col/style/css',
|
||||
'element-plus/es/components/form-item/style/css',
|
||||
'element-plus/es/components/alert/style/css',
|
||||
'element-plus/es/components/breadcrumb/style/css',
|
||||
'element-plus/es/components/select/style/css',
|
||||
'element-plus/es/components/input/style/css',
|
||||
'element-plus/es/components/breadcrumb-item/style/css',
|
||||
'element-plus/es/components/tag/style/css',
|
||||
'element-plus/es/components/pagination/style/css',
|
||||
'element-plus/es/components/table/style/css',
|
||||
'element-plus/es/components/table-v2/style/css',
|
||||
'element-plus/es/components/table-column/style/css',
|
||||
'element-plus/es/components/card/style/css',
|
||||
'element-plus/es/components/row/style/css',
|
||||
'element-plus/es/components/button/style/css',
|
||||
'element-plus/es/components/menu/style/css',
|
||||
'element-plus/es/components/sub-menu/style/css',
|
||||
'element-plus/es/components/menu-item/style/css',
|
||||
'element-plus/es/components/option/style/css',
|
||||
'element-plus/es/components/dropdown/style/css',
|
||||
'element-plus/es/components/dropdown-menu/style/css',
|
||||
'element-plus/es/components/dropdown-item/style/css',
|
||||
'element-plus/es/components/skeleton/style/css',
|
||||
'element-plus/es/components/skeleton/style/css',
|
||||
'element-plus/es/components/backtop/style/css',
|
||||
'element-plus/es/components/menu/style/css',
|
||||
'element-plus/es/components/sub-menu/style/css',
|
||||
'element-plus/es/components/menu-item/style/css',
|
||||
'element-plus/es/components/dropdown/style/css',
|
||||
'element-plus/es/components/tree/style/css',
|
||||
'element-plus/es/components/dropdown-menu/style/css',
|
||||
'element-plus/es/components/dropdown-item/style/css',
|
||||
'element-plus/es/components/badge/style/css',
|
||||
'element-plus/es/components/breadcrumb/style/css',
|
||||
'element-plus/es/components/breadcrumb-item/style/css',
|
||||
'element-plus/es/components/image/style/css',
|
||||
'element-plus/es/components/collapse-transition/style/css',
|
||||
'element-plus/es/components/timeline/style/css',
|
||||
'element-plus/es/components/timeline-item/style/css',
|
||||
'element-plus/es/components/collapse/style/css',
|
||||
'element-plus/es/components/collapse-item/style/css',
|
||||
'element-plus/es/components/button-group/style/css',
|
||||
'element-plus/es/components/text/style/css',
|
||||
'element-plus/es/components/segmented/style/css',
|
||||
'@element-plus/icons-vue',
|
||||
'element-plus/es/components/footer/style/css',
|
||||
'element-plus/es/components/empty/style/css'
|
||||
]
|
||||
|
||||
// @iconify/iconify:预构建拆 chunk 时偶发异常(浏览器报 @iconify_iconify.js:1:1 SyntaxError),改为走包内 ESM
|
||||
const exclude = ['@iconify/json', '@iconify/iconify']
|
||||
|
||||
export { include, exclude }
|
||||
2
depley.sh
Normal file
2
depley.sh
Normal file
@ -0,0 +1,2 @@
|
||||
运行build:dev
|
||||
scp -r ./dist root@1.95.202.243:/work/projects/yudao-ui-admin
|
||||
371
eCTD3.2.2-权限说明.md
Normal file
371
eCTD3.2.2-权限说明.md
Normal file
@ -0,0 +1,371 @@
|
||||
# ECTD3.2.2 套餐功能说明
|
||||
|
||||
本文档说明:**系统里有哪些功能,以及每个功能具体能做什么。**
|
||||
|
||||
适合给客户、业务负责人阅读,用于了解「开什么、关什么、对用户有什么影响」。
|
||||
|
||||
---
|
||||
|
||||
## 一、先搞懂三件事
|
||||
|
||||
### 1. 角色决定「每个人能用到哪一步」
|
||||
|
||||
同一家公司里,不同岗位看到的功能可以不一样。
|
||||
例如:有人只能看文档,有人还能删文档、发版。
|
||||
|
||||
**最终效果** = 公司套餐里有的功能 ∩ 这个人角色里开放的功能。
|
||||
|
||||
### 2. 关掉「大功能」,下面全部跟着没有
|
||||
|
||||
系统里功能是分层的,像文件夹套文件夹:
|
||||
|
||||
```
|
||||
大模块(左侧菜单分组)
|
||||
└── 具体页面
|
||||
└── 页面上的按钮(新建、删除、下载等)
|
||||
```
|
||||
|
||||
**重要规则:关掉上一级,下面所有相关功能都会消失。**
|
||||
|
||||
**举例:**
|
||||
|
||||
|
||||
| 如果关闭 | 用户会看到什么 |
|
||||
| ------------------- | ------------------------------------------------ |
|
||||
| **eCTD申报系统** 整个模块 | 左侧没有 eCTD 入口;中国/欧盟项目、新建序列、导入、下载、归档、发布等 **全部不能用** |
|
||||
| **用户管理** 页面,但保留「查看」 | 能打开用户列表,但不能新建、改资料、删用户、导入、分配岗位 |
|
||||
| 只关闭「删除序列」 | 其他 eCTD 操作正常,只是不能删序列 |
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
||||
## 二、本套餐包含的五大模块
|
||||
|
||||
```
|
||||
├─ 系统管理 … 管账号、岗位、通知、操作记录
|
||||
├─ eCTD申报系统 … 药品电子申报(中国/欧盟等)
|
||||
├─ 文档管理系统 … 写文档、传文件、做任务
|
||||
├─ 文档管理设置 … 审批流程、模板、历史版本(偏管理配置)
|
||||
└─ 电子申报系统 … 另一类电子申报业务(与 eCTD 分开)
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
||||
## 三、各模块详细说明
|
||||
|
||||
|
||||
|
||||
### 模块一:系统管理
|
||||
|
||||
**这是干什么的:**
|
||||
公司管理员用来管人、管岗位、发通知、查谁什么时候登录/操作过系统。
|
||||
|
||||
**如果整个「系统管理」都不开:**
|
||||
没人能管账号和岗位,也看不到通知、操作记录等后台管理功能。
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
||||
#### 1.1 用户管理
|
||||
|
||||
**这是干什么的:**
|
||||
维护公司里的登录账号(谁可以登录、基本信息、密码等)。
|
||||
|
||||
|
||||
| 功能 | 用户能做什么 |
|
||||
| ------ | ------------------------------------------ |
|
||||
| 查看用户 | 打开用户列表,看有哪些同事、各自信息 |
|
||||
| 新增用户 | 给新同事开账号 |
|
||||
| 修改 | 改姓名、邮箱、手机号等资料 |
|
||||
| 删除 | 删掉不再使用的账号 |
|
||||
| 导出列表 | 把用户名单导出成表格文件 |
|
||||
| 批量导入 | 一次导入很多账号(适合 onboarding) |
|
||||
| 重置密码 | 同事忘记密码时,管理员帮重置 |
|
||||
| 设置用户岗位 | 决定这个人是 RA、Author 还是管理员等(**非常关键,决定他能干什么活**) |
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
||||
#### 1.2 角色管理(岗位权限设置)
|
||||
|
||||
**这是干什么的:**
|
||||
定义「RA」「Author」「管理员」等岗位,并勾选每个岗位能进哪些页面、能点哪些按钮。
|
||||
|
||||
|
||||
| 功能 | 用户能做什么 |
|
||||
| ---------- | -------------------------------- |
|
||||
| 查看 | 看有哪些岗位 |
|
||||
| 新增岗位 | 新建一种岗位类型 |
|
||||
| 修改 | 改岗位名称等 |
|
||||
| 删除 | 删掉不再用的岗位 |
|
||||
| 导出列表 | 导出岗位清单 |
|
||||
| **设置岗位功能** | 勾选这个岗位能用的菜单和操作(**给同事分配能力的主要入口**) |
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
||||
#### 1.3 消息中心
|
||||
|
||||
**这是干什么的:**
|
||||
发公告、配邮件、发站内消息。
|
||||
|
||||
**如果整个「消息中心」都不开:**
|
||||
公告、邮件、站内信相关功能全部不可用。
|
||||
|
||||
**通知公告**
|
||||
|
||||
|
||||
| 功能 | 用户能做什么 |
|
||||
| ---- | -------- |
|
||||
| 查看公告 | 看已发布的通知 |
|
||||
| 发公告 | 写新通知给同事看 |
|
||||
| 改公告 | 修改已发内容 |
|
||||
| 删公告 | 删除通知 |
|
||||
|
||||
|
||||
**邮箱管理**
|
||||
|
||||
|
||||
| 页面 | 干什么用 |
|
||||
| ---- | ------------------------- |
|
||||
| 邮箱账号 | 配置系统发邮件用的邮箱(如通知邮件从哪个地址发出) |
|
||||
| 邮件模板 | 维护邮件正文模板 |
|
||||
| 邮件记录 | 查看系统发过哪些邮件 |
|
||||
|
||||
|
||||
每个页面通常还有:查看、新建、修改、删除;模板页还可「发一封测试邮件」试一下效果。
|
||||
|
||||
**站内信管理**
|
||||
|
||||
|
||||
| 页面 | 干什么用 |
|
||||
| ---- | --------- |
|
||||
| 消息模板 | 系统内消息的模板 |
|
||||
| 消息记录 | 查已发送的站内消息 |
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
||||
#### 1.4 审计日志(操作记录)
|
||||
|
||||
**这是干什么的:**
|
||||
留痕——谁什么时候登录过、谁改过什么重要数据。
|
||||
|
||||
**如果不开:**
|
||||
无法追溯操作和登录历史(合规、排查问题时会有影响)。
|
||||
|
||||
|
||||
| 页面 | 干什么用 |
|
||||
| ---- | ------------- |
|
||||
| 操作日志 | 看同事在系统里做过哪些操作 |
|
||||
| 登录日志 | 看谁在什么时间登录/退出 |
|
||||
|
||||
|
||||
每个页面支持:查看记录、导出成文件。
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
||||
### 模块二:eCTD申报系统
|
||||
|
||||
**这是干什么的:**
|
||||
做药品 **eCTD 电子申报** 的核心模块——管理申报项目、序列(一次递交的内容包),以及导入、编辑、发布、下载、归档等全流程。
|
||||
|
||||
**如果整个「eCTD申报系统」都不开:**
|
||||
|
||||
- 左侧菜单里 **没有 eCTD 入口**
|
||||
- 中国/欧盟项目、序列、在线查看器、格式说明等 **全部不可用**
|
||||
- 适合:公司只用文档协作、不做 eCTD 递交的场景
|
||||
|
||||
**本模块下的主要页面:**
|
||||
|
||||
|
||||
| 页面 | 干什么用 |
|
||||
| ------- | ---------------------------------------------- |
|
||||
| 中国 | 管理 **中国区域** 的 eCTD 项目和序列 |
|
||||
| 欧盟 | 管理 **欧盟区域** 的 eCTD 项目和序列 |
|
||||
| 格式规范 | 上传电脑上的某个PDF文件,然后查看其是否符合eCTD的规范,还可以一键格式规范并下载到本地 |
|
||||
| eCTD查看器 | 在线打开、浏览 eCTD 序列包结构 |
|
||||
|
||||
|
||||
**序列相关操作(在中国/欧盟项目里都会用到):**
|
||||
|
||||
|
||||
| 功能 | 业务上是什么意思 |
|
||||
| --------------- | ----------------------------------------- |
|
||||
| 查看 | 打开项目列表,看序列详情 |
|
||||
| 新增序列 | 开始一个新的申报序列 |
|
||||
| 编辑 | 改序列里的内容和信息 |
|
||||
| 删除 | 删掉不需要的序列 |
|
||||
| 导出列表 | 把序列清单导出 |
|
||||
| 导入序列包 | 把已有的 eCTD 包导入系统 |
|
||||
| 归档 | 序列定稿封存,一般变为只读、作历史留存 |
|
||||
| 撤销归档 | 把已归档的序列重新放开编辑 |
|
||||
| 发布 | 序列定稿发布,供后续递交或下游使用 |
|
||||
| 下载序列包 | 把 eCTD 包下载到本地 |
|
||||
| 锁定 | 不让别人改这个序列 |
|
||||
| 解锁 | 取消锁定,允许编辑 |
|
||||
| 升级序列 | 按新版本规范升级序列 |
|
||||
| **协作(可操作他人序列)** | **高权限**:不仅能管自己的,还能查看、编辑、发布、下载 **同事负责的序列** |
|
||||
| 递交处理 | 与正式递交流程相关的处理步骤 |
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
||||
### 模块三:文档管理系统
|
||||
|
||||
**这是干什么的:**
|
||||
日常写文档、传文件、领任务、跟进度——和申报配套的文档协作。
|
||||
|
||||
**如果整个「文档管理系统」都不开:**
|
||||
看不到文档和任务相关菜单,不能新建/上传文档,文档协作流程不可用。
|
||||
|
||||
**本模块下的主要入口:**
|
||||
|
||||
|
||||
| 入口 | 干什么用 |
|
||||
| ---- | ---------------------------------------------- |
|
||||
| 任务管理 | 看自己要做的文档任务、待办、逾期项 |
|
||||
| 文档管理 | 我的文档、全部文档、收藏、回收站 |
|
||||
| 创建文档 | 在系统里新建一份文档 |
|
||||
| 上传文档 | 从电脑上传文件 |
|
||||
| 格式规范 | 上传电脑上的某个PDF文件,然后查看其是否符合eCTD的规范,还可以一键格式规范并下载到本地 |
|
||||
|
||||
|
||||
|
||||
|
||||
#### 任务管理
|
||||
|
||||
|
||||
| 页面 | 干什么用 |
|
||||
| ----- | ----------------- |
|
||||
| 我的任务 | 只看我负责的任务 |
|
||||
| 待处理任务 | 还没处理完的任务 |
|
||||
| 逾期任务 | 已经超过截止日期的任务 |
|
||||
| 所有任务 | 看公司里所有人的任务(管理者视角) |
|
||||
|
||||
|
||||
常见操作:查看任务、删除任务、导出任务列表。
|
||||
|
||||
#### 文档管理
|
||||
|
||||
|
||||
| 页面 | 干什么用 |
|
||||
| ---- | -------------- |
|
||||
| 我的文档 | 我自己创建/负责的文档 |
|
||||
| 所有文档 | 公司里全部文档 |
|
||||
| 我的收藏 | 我标记收藏的文档 |
|
||||
| 回收站 | 删掉的文档,可恢复或彻底清理 |
|
||||
|
||||
|
||||
**我的文档** 一般可以:查看、编辑、删除、导出列表。
|
||||
**所有文档** 一般可以:查看全公司文档、编辑/删除他人文档(管理者或高权限岗位)。
|
||||
|
||||
其他:从回收站 **恢复文档**;**废弃文档**(彻底清理)。
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
||||
### 模块四:文档管理系统设置
|
||||
|
||||
**这是干什么的:**
|
||||
偏「管理员配置」——审批怎么流转、文档模板库、历史版本怎么查。
|
||||
**不影响** 同事日常打开文档写字,但影响公司级规范与管控。
|
||||
|
||||
**如果整个模块都不开:**
|
||||
不能配审批流程、模板库、查全站历史版本。
|
||||
|
||||
|
||||
| 页面 | 干什么用 |
|
||||
| -------- | ------------------------- |
|
||||
| 文档审批流程配置 | 设置文档要经过哪些人审批、如何审批、审批过期时间等 |
|
||||
| 文档历史版本管理 | 看一份文档改过哪些版本 |
|
||||
| 文档创建模板库 | 维护文档管理系统中「新建文档时可选的模板」 |
|
||||
|
||||
|
||||
各页面通常支持:查看、新建、修改、删除、导出;模板库还可 **审核** 模板后再给全员使用。
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
||||
### 模块五:电子申报系统
|
||||
|
||||
**这是干什么的:**
|
||||
另一套 **电子申报** 业务(与上面的 eCTD申报系统 **不是同一个东西**)。
|
||||
管理「电子申报项目/申请」的创建、编辑、导入、发布、下载、归档、递交等。
|
||||
|
||||
**如果整个「电子申报系统」都不开:**
|
||||
左侧没有该入口,电子申报相关功能 **全部不可用**。
|
||||
|
||||
**电子申报项目** 下常见操作:
|
||||
|
||||
|
||||
| 功能 | 业务上是什么意思 |
|
||||
| --------------- | ------------------------ |
|
||||
| 查看 | 看有哪些申报项目 |
|
||||
| 新增申请 | 新建一份电子申报 |
|
||||
| 编辑 | 修改申请内容 |
|
||||
| 删除申请 | 删掉不需要的申请 |
|
||||
| 导出列表 | 导出项目清单 |
|
||||
| 导入数据包 | 从外部导入申报数据 |
|
||||
| 发布 | 定稿发布申报数据 |
|
||||
| 下载 | 下载申报包 |
|
||||
| 归档 | 封存已完成申请 |
|
||||
| 撤销归档 | 重新打开已归档申请 |
|
||||
| **协作(可操作他人申请)** | **高权限**:能处理 **同事名下** 的申报 |
|
||||
| 递交处理 | 正式递交相关步骤 |
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
||||
## 四、关功能速查表(给客户看)
|
||||
|
||||
|
||||
| 关闭这一项 | 同事会少什么 |
|
||||
| --------------------- | ----------------------------- |
|
||||
| 系统管理(整块) | 管账号、管岗位、公告、邮件、操作记录等后台能力 |
|
||||
| eCTD申报系统(整块) | 所有 eCTD 申报相关功能 |
|
||||
| 文档管理系统(整块) | 文档、任务、上传/新建文档 |
|
||||
| 文档管理设置(整块) | 审批配置、模板库、历史版本管理 |
|
||||
| 电子申报系统(整块) | 所有电子申报(DZ)功能 |
|
||||
| 用户管理 | 不能维护同事账号(含分配岗位) |
|
||||
| 角色管理 | 不能调整各岗位能用的功能 |
|
||||
| 「协作」类功能(eCTD 或电子申报里的) | 只能管 **自己的** 项目/序列,不能动 **别人的** |
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
||||
## 五、常见岗位怎么配(建议)
|
||||
|
||||
|
||||
| 岗位 | 建议开放的功能 | 说明 |
|
||||
| ------------ | ----------------------- | ---------------- |
|
||||
| 公司管理员 | 系统管理 + 需要的业务模块 | 管人、管岗位、管公司级配置 |
|
||||
| RA(注册事务) | eCTD申报 + 文档管理 | 做申报序列、配合文档协作 |
|
||||
| RO(审评/只读为主) | eCTD 以 **查看** 为主 + 部分文档 | 少给删除、发布、归档等敏感操作 |
|
||||
| Author(撰写人员) | 文档管理 + 任务 | 写文档、完成分配的任务 |
|
||||
| 普通业务同事 | 按实际分工勾选 | **只给工作需要的**,不要多给 |
|
||||
|
||||
|
||||
---
|
||||
|
||||
644
fda-api.md
Normal file
644
fda-api.md
Normal file
@ -0,0 +1,644 @@
|
||||
下面我帮你整理成:
|
||||
|
||||
# FDA ESG NextGen 完整 API 请求规范(适合直接开发)
|
||||
|
||||
包括:
|
||||
|
||||
* 请求 URL
|
||||
* Method
|
||||
* Header
|
||||
* Request Body
|
||||
* Response
|
||||
* 状态说明
|
||||
* 业务用途
|
||||
* 你的系统该怎么用
|
||||
|
||||
基于你上传的 ESG NextGen API Guide v1.2。
|
||||
|
||||
---
|
||||
|
||||
# 一、整体 API 调用顺序
|
||||
|
||||
建议你后端固定流程:
|
||||
|
||||
```text id="g1u6ot"
|
||||
1. 获取 OAuth Token
|
||||
2. 获取 User/Company 信息
|
||||
3. 生成 Core ID + 临时上传凭证
|
||||
4. 创建 Payload
|
||||
5. 上传 ZIP
|
||||
6. 提交 Payload
|
||||
7. 查询 Submission Status
|
||||
8. 查询 ACK
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
# 二、统一基础地址
|
||||
|
||||
## ESG API
|
||||
|
||||
```http id="z5c4m6"
|
||||
https://external-api-esgng.fda.gov
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Upload API
|
||||
|
||||
```http id="7pl3wf"
|
||||
https://upload-api-esgng.fda.gov
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
# 三、OAuth Token API
|
||||
|
||||
# 1. 获取 Access Token
|
||||
|
||||
---
|
||||
|
||||
## Request
|
||||
|
||||
```http id="wl7g0j"
|
||||
POST https://external-api-esgng.fda.gov/as/token.oauth2?grant_type=client_credentials&scope=openid%20profile
|
||||
```
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## Headers
|
||||
|
||||
```http id="t7tx8k"
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Body
|
||||
|
||||
```x-www-form-urlencoded id="t3h5gm"
|
||||
client_id=dc-7n2sdxk75a1viyutycu6205s5
|
||||
client_secret=CYufpEbz4lamjwixerj0Ka
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Response
|
||||
|
||||
```json id="ny1y0j"
|
||||
{
|
||||
"access_token": "aZl2hNYnbuOikJZEhmyA",
|
||||
"token_type": "Bearer",
|
||||
"expires_in": 3600
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
# 四、获取用户与公司信息 API
|
||||
|
||||
# 2. 获取 User/Company
|
||||
|
||||
这个接口很重要。
|
||||
|
||||
因为后续:
|
||||
|
||||
* user_id
|
||||
* company_id
|
||||
* authorizing_company_id
|
||||
|
||||
都来自这里。
|
||||
|
||||
---
|
||||
|
||||
## Request
|
||||
|
||||
```http id="yrgofn"
|
||||
GET https://external-api-esgng.fda.gov/api/esgng/v1/companies?user_email=test@test.com
|
||||
```
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## Headers
|
||||
|
||||
```http id="0m4h3m"
|
||||
accesstoken: {access_token}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Query Parameters
|
||||
|
||||
| 参数 | 必填 | 说明 |
|
||||
| ---------- | -- | -------- |
|
||||
| user_email | 是 | ESG 注册邮箱 |
|
||||
|
||||
---
|
||||
|
||||
## Response
|
||||
|
||||
```json id="4f6zpc"
|
||||
{
|
||||
"user_id": 55,
|
||||
"user_email": "testagent5@test.com",
|
||||
"company_id": 30,
|
||||
"company_name": "Actual Agency",
|
||||
"company_status": "Approved",
|
||||
"authorizing_companies": [
|
||||
{
|
||||
"authorizing_company_id": 2,
|
||||
"authorizing_company_name": "Oldio Corp"
|
||||
}
|
||||
],
|
||||
"esgngcode": "ESGNG390",
|
||||
"esgngdescription": "Company Information retrieved successfully from ESGNG."
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
# 五、生成 FDA Submission Core ID
|
||||
|
||||
# 3. Generate Submission ID
|
||||
|
||||
这是核心接口。
|
||||
|
||||
---
|
||||
|
||||
# 测试环境
|
||||
|
||||
```http id="4lf9kp"
|
||||
GET https://external-api-esgng.fda.gov/api/esgng/v1/credentials/api/test
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
# 正式环境
|
||||
|
||||
```http id="5b3u2e"
|
||||
GET https://external-api-esgng.fda.gov/api/esgng/v1/credentials/api
|
||||
```
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## Headers
|
||||
|
||||
```http id="vgkz4s"
|
||||
Content-Type: application/json
|
||||
accesstoken: {access_token}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Request Body
|
||||
|
||||
```json id="2q6qvr"
|
||||
{
|
||||
"user_id": "2",
|
||||
"fda_center": "CBER",
|
||||
"company_id": "2",
|
||||
"authorizing_company_id": "2",
|
||||
"submission_type": "510K",
|
||||
"file_count": 1,
|
||||
"description": "eCTD Sequence 0001",
|
||||
"submission_protocol": "API"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
# 参数说明
|
||||
|
||||
| 字段 | 必填 | 说明 |
|
||||
| ---------------------- | -- | --------------- |
|
||||
| user_id | 是 | 用户 ID |
|
||||
| fda_center | 是 | FDA Center |
|
||||
| company_id | 是 | 公司 ID |
|
||||
| authorizing_company_id | 是 | 授权公司 ID |
|
||||
| submission_type | 是 | Submission Type |
|
||||
| file_count | 是 | 文件数量 |
|
||||
| description | 否 | 描述 |
|
||||
| submission_protocol | 是 | 固定 API |
|
||||
|
||||
---
|
||||
|
||||
# FDA Center 示例
|
||||
|
||||
| 值 | Center |
|
||||
| ----- | ------ |
|
||||
| CBER | 生物制品 |
|
||||
| CDER | 药品 |
|
||||
| CDRH | 医疗器械 |
|
||||
| CVM | 动物药 |
|
||||
| CFSAN | 食品 |
|
||||
|
||||
---
|
||||
|
||||
# Response
|
||||
|
||||
```json id="bx0tqr"
|
||||
{
|
||||
"core_id": "CmpAssociatesInc_2023110733023",
|
||||
"temp_user": "1-CmpAssociatesInc_2023110733023",
|
||||
"temp_password": "17948854-108c-4831-9000-0859c52fefc0",
|
||||
"esgngcode": "ESGNG210",
|
||||
"esgngdescription": "Core Id and Temporary Credentials generated and stored successfully."
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
# 六、创建 Upload Payload
|
||||
|
||||
# 4. Create Payload
|
||||
|
||||
---
|
||||
|
||||
## Request
|
||||
|
||||
```http id="j4fjlwm"
|
||||
GET https://upload-api-esgng.fda.gov/rest/forms/v1/fileupload/payload
|
||||
```
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## Headers
|
||||
|
||||
```http id="jz3dk9"
|
||||
Content-Type: application/json
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Body
|
||||
|
||||
无。
|
||||
|
||||
---
|
||||
|
||||
## Response
|
||||
|
||||
```json id="4g8d1r"
|
||||
{
|
||||
"data": {
|
||||
"payloadId": "123456",
|
||||
"uploadFileLink": "https://...",
|
||||
"submitFormLink": "https://..."
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
# 七、上传 eCTD ZIP 文件
|
||||
|
||||
# 5. Upload ZIP
|
||||
|
||||
---
|
||||
|
||||
## Request
|
||||
|
||||
```http id="jlwmhx"
|
||||
POST https://upload-api-esgng.fda.gov/rest/forms/v1/fileupload/payload/{payloadId}/file
|
||||
```
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## Headers
|
||||
|
||||
```http id="1l5xj4"
|
||||
Content-Type: multipart/form-data
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Path Parameters
|
||||
|
||||
| 参数 | 说明 |
|
||||
| --------- | ---------- |
|
||||
| payloadId | Payload ID |
|
||||
|
||||
---
|
||||
|
||||
## FormData
|
||||
|
||||
```text id="8l8j9f"
|
||||
file: 0001.zip
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Response
|
||||
|
||||
```json id="m0nd7l"
|
||||
{
|
||||
"data": {
|
||||
"status": "SUCCESS",
|
||||
"message": "File uploaded successfully"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
# 八、提交 Payload
|
||||
|
||||
# 6. Submit Payload
|
||||
|
||||
真正递交。
|
||||
|
||||
---
|
||||
|
||||
## Request
|
||||
|
||||
```http id="w1i4b6"
|
||||
POST https://upload-api-esgng.fda.gov/rest/forms/v1/fileupload/payload/{payloadId}/submit
|
||||
```
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## Headers
|
||||
|
||||
```http id="n52hxm"
|
||||
Content-Type: application/json
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Request Body
|
||||
|
||||
```json id="7d0qmy"
|
||||
{
|
||||
"username": "1-CmpAssociatesInc_2023110733023",
|
||||
"password": "17948854-108c-4831-9000-0859c52fefc0",
|
||||
"sha256_checksum": "xxxxxxxxxxxxxxxx"
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
# SHA256 说明
|
||||
|
||||
FDA 会校验:
|
||||
|
||||
```text id="5v3p2u"
|
||||
ZIP 文件完整性
|
||||
```
|
||||
|
||||
所以:
|
||||
|
||||
必须:
|
||||
|
||||
```text id="q4n1z0"
|
||||
本地计算 ZIP SHA256
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
# Response
|
||||
|
||||
```json id="v0i0vw"
|
||||
{
|
||||
"data": {
|
||||
"message": "Payload submitted successfully",
|
||||
"files": [
|
||||
{
|
||||
"id": "111",
|
||||
"name": "0001.zip",
|
||||
"size": "1024000",
|
||||
"link": "https://..."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
# 九、查询 Submission Status
|
||||
|
||||
# 7. Get Submission Status
|
||||
|
||||
---
|
||||
|
||||
## Request
|
||||
|
||||
```http id="12c7g8"
|
||||
GET https://external-api-esgng.fda.gov/api/esgng/v1/submissions/{core_id}
|
||||
```
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## Headers
|
||||
|
||||
```http id="h1h6fz"
|
||||
accesstoken: {access_token}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Path Parameters
|
||||
|
||||
| 参数 | 说明 |
|
||||
| ------- | ------------------ |
|
||||
| core_id | Submission Core ID |
|
||||
|
||||
---
|
||||
|
||||
## Response
|
||||
|
||||
```json id="j56q1y"
|
||||
{
|
||||
"core_id": "CmpAssociatesInc_2023110733023",
|
||||
"status": "Upload Initiated",
|
||||
"submission_protocol": "API",
|
||||
"esgngcode": "ESGNG270",
|
||||
"esgngdescription": "Submission status retrieved successfully."
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
# 十、获取 ACK 信息(重点)
|
||||
|
||||
# 8. Get ACKs
|
||||
|
||||
这个最重要。
|
||||
|
||||
---
|
||||
|
||||
## Request
|
||||
|
||||
```http id="lqvz0x"
|
||||
GET https://external-api-esgng.fda.gov/api/esgng/v1/acknowledgements/{core_id}
|
||||
```
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
## Headers
|
||||
|
||||
```http id="m5g1bo"
|
||||
accesstoken: {access_token}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Response
|
||||
|
||||
```json id="4m2f9l"
|
||||
{
|
||||
"core_id": "ci241211033255.xxx",
|
||||
"acknowledgements": [
|
||||
{
|
||||
"acknowledgement": "ACK1",
|
||||
"status": "Upload Received",
|
||||
"message": "Submission successfully received by ESG",
|
||||
"created_date": "12-11-2024, 03:34:10"
|
||||
},
|
||||
{
|
||||
"acknowledgement": "ACK2",
|
||||
"status": "Submitted to Center",
|
||||
"message": "Submission successfully submitted to HFP",
|
||||
"created_date": "12-11-2024, 03:34:17"
|
||||
}
|
||||
],
|
||||
"esgngcode": "ESGNG360",
|
||||
"esgngdescription": "Retrieved all acknowledgements for the given submission."
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
# 十一、ACK 业务含义
|
||||
|
||||
| ACK | 含义 |
|
||||
| ---- | ------------- |
|
||||
| ACK1 | ESG 收到文件 |
|
||||
| ACK2 | FDA Center 收到 |
|
||||
| ACK3 | 技术验证结果 |
|
||||
|
||||
---
|
||||
|
||||
# 十二、推荐你的后端接口封装
|
||||
|
||||
建议:
|
||||
|
||||
# 1. FDAAuthService
|
||||
|
||||
负责:
|
||||
|
||||
* token缓存
|
||||
* token刷新
|
||||
|
||||
---
|
||||
|
||||
# 2. ESGSubmissionService
|
||||
|
||||
负责:
|
||||
|
||||
* 创建 CoreID
|
||||
* 创建 Payload
|
||||
* 上传 ZIP
|
||||
* 提交 Payload
|
||||
|
||||
---
|
||||
|
||||
# 3. ESGAckService
|
||||
|
||||
负责:
|
||||
|
||||
* 查询 ACK
|
||||
* 更新状态
|
||||
* ACK 下载
|
||||
|
||||
---
|
||||
|
||||
# 十三、推荐数据库设计
|
||||
|
||||
## submission_record
|
||||
|
||||
| 字段 | 类型 |
|
||||
| ------------ | -------- |
|
||||
| id | bigint |
|
||||
| sequence_id | bigint |
|
||||
| core_id | varchar |
|
||||
| payload_id | varchar |
|
||||
| status | varchar |
|
||||
| ack1_status | varchar |
|
||||
| ack2_status | varchar |
|
||||
| ack3_status | varchar |
|
||||
| ack3_message | text |
|
||||
| submit_time | datetime |
|
||||
| archive_time | datetime |
|
||||
|
||||
---
|
||||
|
||||
# 十四、推荐状态流转
|
||||
|
||||
```text id="z0n8j4"
|
||||
Published
|
||||
↓
|
||||
Submitting
|
||||
↓
|
||||
Uploaded
|
||||
↓
|
||||
Submitted
|
||||
↓
|
||||
ACK1
|
||||
↓
|
||||
ACK2
|
||||
↓
|
||||
ACK3
|
||||
↓
|
||||
Archived
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
# 十五、失败状态建议
|
||||
|
||||
| 场景 | 状态 |
|
||||
| ----------- | ----------------- |
|
||||
| OAuth失败 | AuthFailed |
|
||||
| CoreID失败 | MetadataFailed |
|
||||
| ZIP上传失败 | UploadFailed |
|
||||
| Checksum失败 | SubmitFailed |
|
||||
| ACK3 Reject | TechnicalRejected |
|
||||
|
||||
---
|
||||
153
index.html
Normal file
153
index.html
Normal file
@ -0,0 +1,153 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="/logo.png" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta
|
||||
name="keywords"
|
||||
content="上海金智桥药品注册管理系统"
|
||||
/>
|
||||
<meta
|
||||
name="description"
|
||||
content="上海金智桥药品注册管理系统"
|
||||
/>
|
||||
<title>%VITE_APP_TITLE%</title>
|
||||
<!-- 运行时配置文件 -->
|
||||
<script src="/config.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<style>
|
||||
.app-loading {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
background: #f0f2f5;
|
||||
}
|
||||
|
||||
.app-loading .app-loading-wrap {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
display: flex;
|
||||
-webkit-transform: translate3d(-50%, -50%, 0);
|
||||
transform: translate3d(-50%, -50%, 0);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.app-loading .app-loading-title {
|
||||
margin-bottom: 30px;
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.app-loading .app-loading-logo {
|
||||
width: 100px;
|
||||
margin: 0 auto 15px auto;
|
||||
}
|
||||
|
||||
.app-loading .app-loading-item {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
vertical-align: middle;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.app-loading .app-loading-outter {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: 4px solid #2d8cf0;
|
||||
border-bottom: 0;
|
||||
border-left-color: transparent;
|
||||
border-radius: 50%;
|
||||
animation: loader-outter 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite;
|
||||
}
|
||||
|
||||
.app-loading .app-loading-inner {
|
||||
position: absolute;
|
||||
top: calc(50% - 20px);
|
||||
left: calc(50% - 20px);
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border: 4px solid #87bdff;
|
||||
border-right: 0;
|
||||
border-top-color: transparent;
|
||||
border-radius: 50%;
|
||||
animation: loader-inner 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite;
|
||||
}
|
||||
|
||||
@-webkit-keyframes loader-outter {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes loader-outter {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
-webkit-transform: rotate(360deg);
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@-webkit-keyframes loader-inner {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
-webkit-transform: rotate(-360deg);
|
||||
transform: rotate(-360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@keyframes loader-inner {
|
||||
0% {
|
||||
-webkit-transform: rotate(0deg);
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
-webkit-transform: rotate(-360deg);
|
||||
transform: rotate(-360deg);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<div class="app-loading">
|
||||
<div class="app-loading-wrap">
|
||||
<div class="app-loading-title">
|
||||
<img src="/logo.png" class="app-loading-logo" alt="Logo" />
|
||||
<div class="app-loading-title">%VITE_APP_TITLE%</div>
|
||||
</div>
|
||||
<div class="app-loading-item">
|
||||
<div class="app-loading-outter"></div>
|
||||
<div class="app-loading-inner"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
</html>
|
||||
28
index.vue
Normal file
28
index.vue
Normal file
@ -0,0 +1,28 @@
|
||||
<el-dialog
|
||||
title="PDF 链接编辑器"
|
||||
v-model="pdfEditorVisible"
|
||||
width="80%"
|
||||
:close-on-click-modal="false"
|
||||
:close-on-press-escape="false"
|
||||
>
|
||||
<pdf-link-editor
|
||||
ref="pdfEditorRef"
|
||||
:initial-pdf-url="currentPdfUrl"
|
||||
/>
|
||||
</el-dialog>
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
pdfEditorVisible: false,
|
||||
pdfEditorRef: null,
|
||||
currentPdfUrl: '',
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
openPdfEditor(row) {
|
||||
this.currentPdfUrl = row.pdfUrl; // 假设 row 中有 pdfUrl 字段
|
||||
this.pdfEditorVisible = true;
|
||||
},
|
||||
}
|
||||
};
|
||||
13591
package-lock.json
generated
Normal file
13591
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
193
package.json
Normal file
193
package.json
Normal file
@ -0,0 +1,193 @@
|
||||
{
|
||||
"name": "ectd-admin-ui",
|
||||
"version": "2.4.1-snapshot",
|
||||
"description": "基于vue3、vite4、element-plus、typesScript",
|
||||
"author": "chenx",
|
||||
"private": false,
|
||||
"scripts": {
|
||||
"i": "pnpm install",
|
||||
"dev": "vite --mode env.local",
|
||||
"dev-server": "vite --mode dev",
|
||||
"ts:check": "vue-tsc --noEmit",
|
||||
"build:local": "node --max_old_space_size=4096 ./node_modules/vite/bin/vite.js build",
|
||||
"build:dev": "node --max_old_space_size=4096 ./node_modules/vite/bin/vite.js build --mode dev",
|
||||
"build:test": "node --max_old_space_size=4096 ./node_modules/vite/bin/vite.js build --mode test",
|
||||
"build:stage": "node --max_old_space_size=4096 ./node_modules/vite/bin/vite.js build --mode stage",
|
||||
"build:prod": "node --max_old_space_size=4096 ./node_modules/vite/bin/vite.js build --mode prod",
|
||||
"serve:dev": "vite preview --mode dev",
|
||||
"serve:prod": "vite preview --mode prod",
|
||||
"preview": "pnpm build:local && vite preview",
|
||||
"clean": "npx rimraf node_modules",
|
||||
"clean:cache": "npx rimraf node_modules/.cache",
|
||||
"lint:eslint": "eslint --fix --ext .js,.ts,.vue ./src",
|
||||
"lint:format": "prettier --write --loglevel warn \"src/**/*.{js,ts,json,tsx,css,less,scss,vue,html,md}\"",
|
||||
"lint:style": "stylelint --fix \"./src/**/*.{vue,less,postcss,css,scss}\" --cache --cache-location node_modules/.cache/stylelint/",
|
||||
"lint:lint-staged": "lint-staged -c ",
|
||||
"i18n:scan": "node scripts/i18n-scan.cjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@codemirror/autocomplete": "^6.18.7",
|
||||
"@codemirror/commands": "^6.8.1",
|
||||
"@codemirror/lang-markdown": "^6.3.4",
|
||||
"@codemirror/language": "^6.11.3",
|
||||
"@codemirror/language-data": "^6.5.1",
|
||||
"@codemirror/search": "^6.5.11",
|
||||
"@codemirror/state": "^6.5.2",
|
||||
"@codemirror/view": "^6.38.2",
|
||||
"@element-plus/icons-vue": "^2.3.1",
|
||||
"@form-create/designer": "^3.2.8",
|
||||
"@form-create/element-ui": "^3.2.14",
|
||||
"@iconify/iconify": "^3.1.1",
|
||||
"@logicflow/core": "^2.0.13",
|
||||
"@logicflow/extension": "^2.0.18",
|
||||
"@microsoft/fetch-event-source": "^2.0.1",
|
||||
"@types/uuid": "^10.0.0",
|
||||
"@videojs-player/vue": "^1.0.0",
|
||||
"@vueuse/core": "^10.6.1",
|
||||
"@vueuse/shared": "10.6.1",
|
||||
"@wangeditor/editor": "^5.1.23",
|
||||
"@wangeditor/editor-for-vue": "^5.1.12",
|
||||
"@zxcvbn-ts/core": "^3.0.4",
|
||||
"animate.css": "^4.1.1",
|
||||
"axios": "^1.7.8",
|
||||
"benz-amr-recorder": "^1.1.5",
|
||||
"bpmn-js-token-simulation": "^0.36.2",
|
||||
"camunda-bpmn-moddle": "^7.0.1",
|
||||
"canvas": "^2.11.2",
|
||||
"cropperjs": "^1.6.2",
|
||||
"crypto-js": "^4.2.0",
|
||||
"dayjs": "^1.11.13",
|
||||
"diagram-js": "^12.8.1",
|
||||
"driver.js": "^1.3.1",
|
||||
"echarts": "^5.5.1",
|
||||
"echarts-wordcloud": "^2.1.0",
|
||||
"element-plus": "2.9.1",
|
||||
"fast-xml-parser": "^4.5.0",
|
||||
"flexsearch": "^0.8.212",
|
||||
"highlight.js": "^11.10.0",
|
||||
"js-md5": "^0.8.3",
|
||||
"jsencrypt": "^3.3.2",
|
||||
"jszip": "^3.10.1",
|
||||
"lodash-es": "^4.17.21",
|
||||
"lunar-javascript": "^1.7.3",
|
||||
"markdown-it": "^14.1.0",
|
||||
"markmap-common": "^0.16.0",
|
||||
"markmap-lib": "^0.16.1",
|
||||
"markmap-toolbar": "^0.17.2",
|
||||
"markmap-view": "^0.16.0",
|
||||
"md-editor-v3": "^6.5.6",
|
||||
"min-dash": "^4.2.2",
|
||||
"mitt": "^3.0.1",
|
||||
"nprogress": "^0.2.0",
|
||||
"pdfh5": "^1.4.9",
|
||||
"pdfjs-dist": "3.4.120",
|
||||
"pinia": "^2.2.8",
|
||||
"pinia-plugin-persistedstate": "^3.2.3",
|
||||
"pinyin-pro": "^3.27.0",
|
||||
"qrcode": "^1.5.4",
|
||||
"qs": "^6.13.1",
|
||||
"sortablejs": "^1.15.6",
|
||||
"splitpanes": "^4.0.4",
|
||||
"steady-xml": "^0.1.0",
|
||||
"url": "^0.11.4",
|
||||
"uuid": "^11.1.0",
|
||||
"video.js": "^7.21.6",
|
||||
"vue": "3.5.12",
|
||||
"vue-dompurify-html": "^4.1.4",
|
||||
"vue-i18n": "9.10.2",
|
||||
"vue-router": "4.4.5",
|
||||
"vue-types": "^5.1.3",
|
||||
"vue3-signature": "^0.2.4",
|
||||
"vuedraggable": "^4.1.0",
|
||||
"web-storage-cache": "^1.1.1",
|
||||
"xml-js": "^1.6.11"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^19.6.0",
|
||||
"@commitlint/config-conventional": "^19.6.0",
|
||||
"@iconify/json": "^2.2.277",
|
||||
"@intlify/unplugin-vue-i18n": "^2.0.0",
|
||||
"@purge-icons/generated": "^0.9.0",
|
||||
"@types/lodash-es": "^4.17.12",
|
||||
"@types/node": "^20.17.31",
|
||||
"@types/nprogress": "^0.2.3",
|
||||
"@types/qrcode": "^1.5.5",
|
||||
"@types/qs": "^6.9.17",
|
||||
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
||||
"@typescript-eslint/parser": "^7.18.0",
|
||||
"@unocss/eslint-config": "^0.57.7",
|
||||
"@unocss/eslint-plugin": "^66.0.0",
|
||||
"@unocss/transformer-variant-group": "^0.58.9",
|
||||
"@vitejs/plugin-legacy": "^5.4.3",
|
||||
"@vitejs/plugin-vue": "^5.2.1",
|
||||
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"bpmn-js": "^17.11.1",
|
||||
"bpmn-js-properties-panel": "5.23.0",
|
||||
"consola": "^3.2.3",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-define-config": "^2.1.0",
|
||||
"eslint-plugin-prettier": "^5.2.1",
|
||||
"eslint-plugin-vue": "^9.31.0",
|
||||
"lint-staged": "^15.2.10",
|
||||
"postcss": "^8.4.49",
|
||||
"postcss-html": "^1.7.0",
|
||||
"postcss-scss": "^4.0.9",
|
||||
"prettier": "^3.4.1",
|
||||
"prettier-eslint": "^16.3.0",
|
||||
"rimraf": "^5.0.10",
|
||||
"rollup": "^4.27.4",
|
||||
"rollup-plugin-visualizer": "^5.14.0",
|
||||
"sass": "^1.81.0",
|
||||
"stylelint": "^16.11.0",
|
||||
"stylelint-config-html": "^1.1.0",
|
||||
"stylelint-config-recommended": "^14.0.1",
|
||||
"stylelint-config-standard": "^36.0.1",
|
||||
"stylelint-order": "^6.0.4",
|
||||
"terser": "^5.36.0",
|
||||
"typescript": "5.3.3",
|
||||
"unocss": "^0.58.9",
|
||||
"unplugin-auto-import": "^0.16.7",
|
||||
"unplugin-element-plus": "^0.8.0",
|
||||
"unplugin-vue-components": "^0.25.2",
|
||||
"vite": "5.1.4",
|
||||
"vite-plugin-compression": "^0.5.1",
|
||||
"vite-plugin-ejs": "^1.7.0",
|
||||
"vite-plugin-eslint": "^1.8.1",
|
||||
"vite-plugin-html": "^3.2.2",
|
||||
"vite-plugin-mock": "^3.0.2",
|
||||
"vite-plugin-progress": "^0.0.7",
|
||||
"vite-plugin-purge-icons": "^0.10.0",
|
||||
"vite-plugin-style-import": "^2.0.0",
|
||||
"vite-plugin-svg-icons": "^2.0.1",
|
||||
"vite-plugin-top-level-await": "^1.4.4",
|
||||
"vue-eslint-parser": "^9.4.3",
|
||||
"vue-tsc": "^1.8.27"
|
||||
},
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://gitee.com/yudaocode/yudao-ui-admin-vue3"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://gitee.com/yudaocode/yudao-ui-admin-vue3/issues"
|
||||
},
|
||||
"homepage": "https://gitee.com/yudaocode/yudao-ui-admin-vue3",
|
||||
"web-types": "./web-types.json",
|
||||
"engines": {
|
||||
"node": ">= 16.0.0",
|
||||
"pnpm": ">=8.6.0"
|
||||
},
|
||||
"pnpm": {
|
||||
"overrides": {
|
||||
"@codemirror/state": "6.5.2",
|
||||
"@codemirror/view": "6.38.2",
|
||||
"@codemirror/language": "6.11.3",
|
||||
"@codemirror/commands": "6.8.1",
|
||||
"@codemirror/autocomplete": "6.20.3",
|
||||
"@codemirror/lang-markdown": "6.5.2",
|
||||
"@codemirror/search": "6.5.11"
|
||||
}
|
||||
}
|
||||
}
|
||||
13610
pnpm-lock.yaml
generated
Normal file
13610
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
5
postcss.config.js
Normal file
5
postcss.config.js
Normal file
@ -0,0 +1,5 @@
|
||||
module.exports = {
|
||||
plugins: {
|
||||
autoprefixer: {}
|
||||
}
|
||||
}
|
||||
22
prettier.config.js
Normal file
22
prettier.config.js
Normal file
@ -0,0 +1,22 @@
|
||||
module.exports = {
|
||||
printWidth: 100, // 每行代码长度(默认80)
|
||||
tabWidth: 2, // 每个tab相当于多少个空格(默认2)ab进行缩进(默认false)
|
||||
useTabs: false, // 是否使用tab
|
||||
semi: false, // 声明结尾使用分号(默认true)
|
||||
vueIndentScriptAndStyle: false,
|
||||
singleQuote: true, // 使用单引号(默认false)
|
||||
quoteProps: 'as-needed',
|
||||
bracketSpacing: true, // 对象字面量的大括号间使用空格(默认true)
|
||||
trailingComma: 'none', // 多行使用拖尾逗号(默认none)
|
||||
jsxSingleQuote: false,
|
||||
// 箭头函数参数括号 默认avoid 可选 avoid| always
|
||||
// avoid 能省略括号的时候就省略 例如x => x
|
||||
// always 总是有括号
|
||||
arrowParens: 'always',
|
||||
insertPragma: false,
|
||||
requirePragma: false,
|
||||
proseWrap: 'never',
|
||||
htmlWhitespaceSensitivity: 'strict',
|
||||
endOfLine: 'auto',
|
||||
rangeStart: 0
|
||||
}
|
||||
BIN
public/QRcode.png
Normal file
BIN
public/QRcode.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 173 KiB |
8
public/config.js
Normal file
8
public/config.js
Normal file
@ -0,0 +1,8 @@
|
||||
// 运行时配置文件
|
||||
window.__APP_CONFIG__ = {
|
||||
// API基础地址 - 部署时根据客户域名修改
|
||||
VITE_BASE_URL: 'http://localhost:48081',
|
||||
// VITE_BASE_URL: 'https://test.jinzhiqiaotech.com',
|
||||
// 应用标题 - 部署时根据客户修改
|
||||
VITE_APP_TITLE: '金智桥药品注册管理系统'
|
||||
};
|
||||
BIN
public/favicon.ico
Normal file
BIN
public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
BIN
public/home.png
Normal file
BIN
public/home.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 73 KiB |
BIN
public/logo.png
Normal file
BIN
public/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.0 KiB |
22
public/pdf.worker.min.js
vendored
Normal file
22
public/pdf.worker.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
944
public/us-regional.xsl
Normal file
944
public/us-regional.xsl
Normal file
@ -0,0 +1,944 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--version 2-1 Modified to display the revised m1-16 heading and additional m1-16 sub-headings -->
|
||||
<!--version 2-2 Two additional attributes were added to the m1-15-2-1-material sub-heading-->
|
||||
<xsl:stylesheet version="2.2" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xlink="http://www.w3c.org/1999/xlink" xmlns:internal="http://www.ich.org" xmlns:fda-regional="http://www.ich.org/fda" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:js="javascript:code">
|
||||
<msxsl:script language="javascript" implements-prefix="js"><![CDATA[
|
||||
|
||||
// Vars
|
||||
var defFontStr = "font-family: Tahoma, Arial, sans-serif";
|
||||
var indent = 1;
|
||||
var title = "eCTD";
|
||||
var unique = 0;
|
||||
var parentTitle;
|
||||
var formTitle;
|
||||
|
||||
function getUnique() // Return value of unique counter
|
||||
{
|
||||
return unique;
|
||||
}
|
||||
|
||||
function getIndent() // Returns an indent
|
||||
{
|
||||
return indent;
|
||||
}
|
||||
|
||||
function getCSSRule(ruleNo) // Returns the corresponding CSS rule
|
||||
{
|
||||
if(ruleNo == "0") return defFontStr + "; background-color: white";
|
||||
if(ruleNo == "1") return defFontStr + "; font-size: 16px";
|
||||
if(ruleNo == "2") return defFontStr + "; font-size: 14px";
|
||||
if(ruleNo == "3") return defFontStr + "; font-size: 10px";
|
||||
if(ruleNo == "4") return defFontStr + "; font-size: 20px; color: #FFFFFF; background-color: #3366CC; font-weight: bold";
|
||||
if(ruleNo == "5") return getCSSRule('2') + "; font-weight: bold; color: #333333; background-color: white";
|
||||
if(ruleNo == "6") return defFontStr + "; font-size: 12px; font-weight: bold; color: blue; background-color: #ECECEC";
|
||||
if(ruleNo == "7") return defFontStr + "; font-size: 14px; font-weight: bold; color: #ECECEC; background-color: #ECECEC";
|
||||
if(ruleNo == "8") return "font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 14px; font-weight: bold; color: #CCCCCC; background-color: #CCCCCC";
|
||||
if(ruleNo == "9") return defFontStr + "; font-size: 12px; font-weight: bold; color: #B9290D; background-color: #ECECEC";
|
||||
if(ruleNo == "10") return "font-family: \"MS Sans Serif\"; font-size: 14px; background-color: light-gray";
|
||||
if(ruleNo == "11") return defFontStr + "; font-size: 16px; font-weight: bold; color: #FFFFFF";
|
||||
if(ruleNo == "12") return "visited {text-decoration: none; color: blue;}";
|
||||
if(ruleNo == "13") return "hover {text-decoration: none;color: #047E7D;}";
|
||||
if(ruleNo == "14") return "link {text-decoration: none; color: #070BA7; text-decoration: none;}";
|
||||
if(ruleNo == "15") return "active {text-decoration: none;}";
|
||||
if(ruleNo == "16") return defFontStr + "; font-size: 9px;";
|
||||
if(ruleNo == "17") return defFontStr + "; font-size: 12px; font-weight: bold; color: #333333; background-color: #ECECEC";
|
||||
if(ruleNo == "18") return defFontStr + "; font-size: 12px; font-weight: bold; color: #FF0000; background-color: #ECECEC";
|
||||
}
|
||||
|
||||
function getTitle() // Returns the correct document title
|
||||
{
|
||||
return title;
|
||||
}
|
||||
|
||||
function setParentTitle(pTitle)
|
||||
{
|
||||
parentTitle = pTitle;
|
||||
return pTitle;
|
||||
}
|
||||
|
||||
function getParentTitle()
|
||||
{
|
||||
return parentTitle;
|
||||
}
|
||||
|
||||
function sefForm(pForm)
|
||||
{
|
||||
formTitle = pForm;
|
||||
return pForm;
|
||||
}
|
||||
|
||||
function getFormTitle()
|
||||
{
|
||||
return formTitle;
|
||||
}
|
||||
|
||||
function getAlert(param) // Displays the appropriate alert message
|
||||
{
|
||||
// Vars
|
||||
var mes = new Array();
|
||||
|
||||
mes[0] = "This is not a real file, the file is not a valid xml file, "
|
||||
+ "\\r\\nor a required node is missing. This stylesheet only supports "
|
||||
+ "\\r\\nXML files that use correct WC3 XML syntax and conform to the "
|
||||
+ "\\r\\nDTD referenced in the selected file. Please check the syntax "
|
||||
+ "\\r\\nand location of the selected file and try again.";
|
||||
mes[1] = "Your browser security settings do not permit this action.";
|
||||
mes[2] = "Node not found. Check reference to FDA Regional instance.";
|
||||
mes[3] = "A reference to the US Regional XML file was not found in the eCTD backbone. "
|
||||
+ "Using ";
|
||||
mes[4] = "File path is incorrect or file could not be found.\\r\\nPlease check the file path and try again.";
|
||||
|
||||
if(param > (mes.length-1)) return "";
|
||||
|
||||
return mes[param];
|
||||
|
||||
}
|
||||
|
||||
]]></msxsl:script>
|
||||
<xsl:template name="string-replace-all">
|
||||
<xsl:param name="text" />
|
||||
<xsl:param name="replace" />
|
||||
<xsl:param name="by" />
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains($text, $replace)">
|
||||
<xsl:value-of select="substring-before($text,$replace)" />
|
||||
<xsl:value-of select="$by" />
|
||||
<xsl:call-template name="string-replace-all">
|
||||
<xsl:with-param name="text"
|
||||
select="substring-after($text,$replace)" />
|
||||
<xsl:with-param name="replace" select="$replace" />
|
||||
<xsl:with-param name="by" select="$by" />
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$text" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
<xsl:template match="fda-regional:fda-regional">
|
||||
<!-- PROCESSING STARTS HERE -->
|
||||
<xsl:variable name="title" select="js:getTitle()"/>
|
||||
<table width="100%" border="0" cellspacing="0" summary="This table contains the title of the XML transformation">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('1')"/></xsl:attribute>
|
||||
<tr>
|
||||
<td align="center" style="color=#564742">
|
||||
<!-- DOCUMENT TITLE -->
|
||||
<h2>
|
||||
<xsl:value-of select="$title"/>
|
||||
</h2>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table width="100%" bordercolor="#7B655F" border="1" cellspacing="0" summary="This table contains the XML instance summary information">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="4" bgcolor="white">
|
||||
<tr>
|
||||
<td>
|
||||
<xsl:attribute name="WIDTH"><xsl:value-of select="js:getIndent()"/></xsl:attribute>
|
||||
</td>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="2" bgcolor="white">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('2')"/></xsl:attribute>
|
||||
<tr>
|
||||
<!-- SUMMARY INFORMATION (CUSTOMIZE AS NEEDED) -->
|
||||
<td valign="_top">
|
||||
<table width="100%" border="1" bordercolor="#564742">
|
||||
<tr>
|
||||
<th width="150px" bgcolor="#FEF4F0" style="color=#333333">Summary</th>
|
||||
<td>
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td style="border:0;">Applicant Name: <xsl:value-of select="admin/applicant-info/company-name"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border:0;">Applicant Id: <xsl:value-of select="admin/applicant-info/id"/>
|
||||
</td>
|
||||
</tr>
|
||||
<xsl:choose>
|
||||
<xsl:when test="(string-length(/descendant::submission-description) > 0) and (string-length(/descendant::submission-description) < 129) and (descendant::submission-description != ' ')">
|
||||
<tr>
|
||||
<td style="border:0;">Description: <xsl:value-of select="descendant::submission-description"/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<tr>
|
||||
<td style="border:0;">
|
||||
<xsl:variable name="summary_desc" select="/descendant::submission-description"/>
|
||||
<xsl:value-of select="substring($summary_desc, 1, 128)"/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<tr>
|
||||
<td style="border:0;">No. of Leaf Nodes: <xsl:value-of select="count(descendant::leaf)"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<p/>
|
||||
<table width="100%" border="1" bordercolor="#564742">
|
||||
<th width="150px" bgcolor="#FEF4F0" style="color=#333333">Contact Information</th>
|
||||
<td>
|
||||
<xsl:for-each select="admin/applicant-info/applicant-contacts/applicant-contact">
|
||||
<table width="100%" border="0" cellpadding="2">
|
||||
<tr>
|
||||
<td style="border:0;">Applicant Contact: <xsl:value-of select="applicant-contact-name"/>
|
||||
<xsl:variable name="contact-type" select=".//applicant-contact-name/@applicant-contact-type"/>
|
||||
<xsl:for-each select="document('applicant-contact-type.xml')/applicant-contact-type/code-display[@code]">
|
||||
<xsl:variable name="contact-type-code" select="@code"/>
|
||||
<xsl:if test="$contact-type = $contact-type-code">
|
||||
(<xsl:value-of select="@display"/>)
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border:0;">Contact Info: <xsl:apply-templates select=".//telephone"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border:0;">E-mail: <xsl:value-of select="substring(descendant::email,1, 64)"/>
|
||||
</td>
|
||||
</tr>
|
||||
<xsl:if test="position()!=last()">
|
||||
<tr>
|
||||
<td style="border:0;">
|
||||
<hr/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="position()=last()">
|
||||
<tr>
|
||||
<td style="border:0;">
|
||||
<p/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</table>
|
||||
</xsl:for-each>
|
||||
</td>
|
||||
</table>
|
||||
<p/>
|
||||
<table width="100%" border="1" bordercolor="#564742">
|
||||
<th width="150px" valign="middle" bgcolor="#FEF4F0" style="color=#333333">Application Information</th>
|
||||
<td>
|
||||
<table width="100%" border="0">
|
||||
<xsl:for-each select="admin/application-set/application">
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" bordercolor="#564742" cellpadding="2">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@application-containing-files='true' or @application-containing-files='false'">
|
||||
<tr>
|
||||
<td style="border:0;">Application Containing Files: <xsl:value-of select="@application-containing-files"/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<tr>
|
||||
<td style="border:0;">Application Containing Files: This value must be set to either true or false.
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<tr>
|
||||
<td style="border:0;">Application Type: <xsl:variable name="app-code" select=".//application-number/@application-type"/>
|
||||
<xsl:for-each select="document('application-type.xml')/application-type/code-display[@code]">
|
||||
<xsl:variable name="values" select="@code"/>
|
||||
<xsl:if test="$app-code = $values">
|
||||
<xsl:value-of select="@display"/>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border:0;">Application Number: <xsl:value-of select="descendant::application-number"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border:0;">Submission Type: <xsl:variable name="sub-code" select=".//submission-id/@submission-type"/>
|
||||
<xsl:for-each select="document('submission-type.xml')/submission-type/code-display[@code]">
|
||||
<xsl:variable name="values" select="@code"/>
|
||||
<xsl:if test="$sub-code = $values">
|
||||
<xsl:value-of select="@display"/>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</td>
|
||||
</tr>
|
||||
<xsl:if test="(string-length(/.//submission-id/@supplement-effective-date-type) > 0) and (.//submission-id/@supplement-effective-date-type != ' ')">
|
||||
<tr>
|
||||
<td style="border:0;">Supplement Effective Date: <xsl:variable name="supplement-code" select=".//submission-id/@supplement-effective-date-type"/>
|
||||
<xsl:for-each select="document('supplement-effective-date-type.xml')/supplement-effective-date-type/code-display[@code]">
|
||||
<xsl:variable name="supp-code" select="@code"/>
|
||||
<xsl:if test="$supplement-code = $supp-code">
|
||||
<xsl:value-of select="@display"/>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<tr>
|
||||
<td style="border:0;">Submission Id: <xsl:value-of select="descendant::submission-id"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border:0;">Submission Sub-Type: <xsl:variable name="sub-type-code" select=".//sequence-number/@submission-sub-type"/>
|
||||
<xsl:for-each select="document('submission-sub-type.xml')/submission-sub-type/code-display[@code]">
|
||||
<xsl:variable name="values" select="@code"/>
|
||||
<xsl:if test="$sub-type-code = $values">
|
||||
<xsl:value-of select="@display"/>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border:0;">Sequence #: <xsl:value-of select='substring(format-number(descendant::sequence-number, "0000"),1, 4)'/>
|
||||
</td>
|
||||
</tr>
|
||||
<xsl:if test="(string-length(/descendant::cross-reference-application-number) > 0) and (descendant::cross-reference-application-number != ' ')">
|
||||
<xsl:for-each select=".//cross-reference-application-number">
|
||||
<tr>
|
||||
<td style="border:0;">
|
||||
Cross Reference Number: <xsl:value-of select="."/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="border:0;">
|
||||
<xsl:variable name="cross-ref-code" select="@application-type"/>
|
||||
<xsl:for-each select="document('application-type.xml')/application-type/code-display[@code]">
|
||||
<xsl:variable name="values" select="@code"/>
|
||||
<xsl:if test="$cross-ref-code = $values">
|
||||
Cross Reference Type: <xsl:value-of select="@display"/>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
<xsl:if test="position()!=last()">
|
||||
<tr>
|
||||
<td style="border:0;">
|
||||
<hr/><!--Adds horizontal line between each application in the application set-->
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="position()=last()">
|
||||
<tr>
|
||||
<td style="border:0;">
|
||||
<p/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
</td>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<table align="center" width="100" border="0" cellspacing="0" summary="This table contains controls for displaying and hiding all document summaries">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('1')"/></xsl:attribute>
|
||||
<tr>
|
||||
<td align="center">
|
||||
<input name="expandAll" type="button" value="Expand All" accesskey="e" title="Expand all document summaries">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('10')"/></xsl:attribute>
|
||||
<xsl:attribute name="ONCLICK"> <!--attribute name and code for ONCLICK feature + and - for leaf-->
|
||||
var div=document.getElementsByTagName("div");
|
||||
|
||||
for(i=0;i<div.length;i++)
|
||||
{
|
||||
var divName = div[i].name;
|
||||
if(divName != null && divName == "showData")
|
||||
{
|
||||
var a1=div[i].parentNode.firstChild.nextSibling.nextSibling;
|
||||
div[i].style.display="block";
|
||||
a1.title = "Collapse document summary";
|
||||
}
|
||||
if(divName != null && divName == "expand")
|
||||
{
|
||||
div[i].style.display="none";
|
||||
}
|
||||
if(divName != null && divName == "collapse")
|
||||
{
|
||||
div[i].style.display="inline";
|
||||
}
|
||||
}
|
||||
return false;
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
</td>
|
||||
<td align="center">
|
||||
<input name="collapseAll" type="button" value="Collapse All" accesskey="c" title="Collapse all document summaries">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('10')"/></xsl:attribute>
|
||||
<xsl:attribute name="ONCLICK">
|
||||
var div=document.getElementsByTagName("div");
|
||||
for(i=0;i<div.length;i++)
|
||||
{
|
||||
var divName = div[i].name;
|
||||
if(divName != null && divName == "showData")
|
||||
{
|
||||
var a1=div[i].parentNode.firstChild.nextSibling.nextSibling;
|
||||
div[i].style.display="none";
|
||||
a1.title = "Expand document summary";
|
||||
}
|
||||
if(divName != null && divName == "expand")
|
||||
{
|
||||
div[i].style.display="inline";
|
||||
}
|
||||
if(divName != null && divName == "collapse")
|
||||
{
|
||||
div[i].style.display="none";
|
||||
}
|
||||
}
|
||||
return false;
|
||||
</xsl:attribute>
|
||||
</input>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br/>
|
||||
<xsl:if test="descendant::form">
|
||||
<table width="100%" border="1" bordercolor="#787878" cellspacing="0" cellpadding="4" bgcolor="white" summary="This table contains the title of a section">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule(5)"/></xsl:attribute>
|
||||
<tr>
|
||||
<td>   m1-1-forms</td>
|
||||
</tr>
|
||||
<xsl:for-each select="descendant::form">
|
||||
<xsl:variable name="unique" select="not(@form-type=preceding::form/@form-type)"/>
|
||||
<tr>
|
||||
<td style="border:0;">
|
||||
<xsl:variable name="form-list" select="@form-type"/>
|
||||
<xsl:for-each select="document('form-type.xml')/form-type/code-display">
|
||||
<xsl:if test="($form-list = @code) and (@code = $unique)">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule(17)"/></xsl:attribute>
|
||||
    <xsl:value-of select="@display"/>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule(17)"/></xsl:attribute>
|
||||
<xsl:apply-templates select="leaf"/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
</xsl:if>
|
||||
<xsl:for-each select="descendant::node()">
|
||||
<xsl:if test="(contains(name(),'m1-2-')
|
||||
or contains(name(),'m1-3-') or contains(name(),'m1-4-') or contains(name(),'m1-5-') or contains(name(),'m1-6-') or contains(name(),'m1-7-') or contains(name(),'m1-8-') or contains(name(),'m1-9-') or contains(name(),'m1-10-') or contains(name(),'m1-11-') or contains(name(),'m1-12-') or contains(name(),'m1-13-') or contains(name(),'m1-14-'))">
|
||||
<xsl:if test="leaf | node-extension/leaf | node-extension/node-extension/leaf">
|
||||
<xsl:if test="leaf">
|
||||
<br/>
|
||||
<table width="100%" border="1" bordercolor="#787878" cellspacing="0" cellpadding="0" bgcolor="#787878" summary="This table contains the border for a section">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule(0)"/></xsl:attribute>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="4" bgcolor="white" summary="This table contains background for a section">
|
||||
<tr>
|
||||
<td>
|
||||
<xsl:attribute name="WIDTH"><xsl:value-of select="js:getIndent()"/></xsl:attribute>
|
||||
<table width="100%" border="0" bordercolor="black" cellspacing="0" cellpadding="2" bgcolor="white" summary="This table contains the title of a section">
|
||||
<tr>
|
||||
<td height="10">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td valign="center">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('5')"/></xsl:attribute>
|
||||
<xsl:choose>
|
||||
<xsl:when test="../node-extension">
|
||||
<xsl:value-of select="js:getParentTitle()"/>
|
||||
<xsl:for-each select="../node-extension">
|
||||
- <xsl:value-of select="title"/>
|
||||
</xsl:for-each>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:variable name="module-title">
|
||||
<xsl:if test="not(ancestor::m1-15-promotional-material)">
|
||||
<xsl:value-of select="name()"/>
|
||||
<xsl:for-each select="@indication">-<xsl:value-of select="."/>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="@manufacturer">-<xsl:value-of select="."/>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="@substance">-<xsl:value-of select="."/>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="@dosageform">-<xsl:value-of select="."/>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="@product-name">-<xsl:value-of select="."/>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
</xsl:variable>
|
||||
<xsl:value-of select="js:setParentTitle($module-title)"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<xsl:apply-templates select="leaf"/>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
<xsl:if test="descendant::m1-15-promotional-material">
|
||||
<br/>
|
||||
<style>
|
||||
span{ color:red; }
|
||||
</style>
|
||||
<table width="100%" border="1" bordercolor="#787878" cellspacing="0" cellpadding="3" bgcolor="white" summary="This table contains the title of a section">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule(5)"/></xsl:attribute>
|
||||
<xsl:for-each select="descendant::m1-15-promotional-material">
|
||||
<tr>
|
||||
<td colspan="5">
|
||||
<xsl:variable name="promotional-material" select="@promotional-material-audience-type"/>
|
||||
<xsl:for-each select="document('promotional-material-audience-type.xml')/promotional-material-audience-type/code-display">
|
||||
<xsl:variable name="values" select="@code"/>
|
||||
<xsl:if test="($promotional-material = $values)">
|
||||
   m1-15-promotional-material <span>(<xsl:value-of select="@display"/>)</span>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</td>
|
||||
</tr>
|
||||
<xsl:for-each select="child::node()">
|
||||
<tr>
|
||||
<td style="border:0;">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('17')"/></xsl:attribute>
|
||||
</td>
|
||||
<td style="border:0;" colspan="4">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('17')"/></xsl:attribute>
|
||||
<xsl:value-of select="normalize-space(name())"/>
|
||||
<xsl:if test="self::m1-15-2-materials">
|
||||
<xsl:variable name="material-doc-type" select="@promotional-material-doc-type"/>
|
||||
<xsl:for-each select="document('promotional-material-doc-type.xml')/promotional-material-doc-type/code-display">
|
||||
<xsl:variable name="material-doc-code" select="@code"/>
|
||||
<xsl:if test="($material-doc-type = $material-doc-code)">
|
||||
 <span>(<xsl:value-of select="@display"/>)</span>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
</td>
|
||||
</tr>
|
||||
<xsl:for-each select="child::node()">
|
||||
<tr>
|
||||
<td style="border:0;">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('17')"/></xsl:attribute>
|
||||
</td>
|
||||
<td style="border:0;">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('17')"/></xsl:attribute>
|
||||
</td>
|
||||
<td style="border:0;" colspan="3">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('17')"/></xsl:attribute>
|
||||
<xsl:value-of select="normalize-space(name())"/>
|
||||
<xsl:if test="ancestor::m1-15-1-correspondence-relating-to-promotional-materials">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('17')"/></xsl:attribute>
|
||||
<xsl:apply-templates select="leaf"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="ancestor::m1-15-2-materials">
|
||||
<xsl:variable name="id-type" select="@promotional-material-type"/>
|
||||
<xsl:variable name="material-id-str" select="@material-id"/>
|
||||
<xsl:variable name="date-str" select="@issue-date"/>
|
||||
|
||||
<!--Set-up date format yyyymmdd-->
|
||||
<xsl:variable name="dd">
|
||||
<xsl:value-of select="substring($date-str,5,4)" />
|
||||
</xsl:variable>
|
||||
<xsl:variable name="mm">
|
||||
<xsl:value-of select="substring($date-str,3,2)" />
|
||||
</xsl:variable>
|
||||
<xsl:variable name="yyyy">
|
||||
<xsl:value-of select="substring($date-str,1,2)" />
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:for-each select="document('promotional-material-type.xml')/promotional-material-type/code-display">
|
||||
<xsl:variable name="material-id-code" select="@code"/>
|
||||
<xsl:if test="($id-type = $material-id-code)">
|
||||
 <span>(<xsl:value-of select="@display"/>)</span>
|
||||
<xsl:if test="string-length($material-id-str) < 31">
|
||||
  material-id <span><xsl:value-of select="$material-id-str"/></span>
|
||||
</xsl:if>
|
||||
<xsl:if test="string-length($material-id-str) > 30"> <!--Truncate string to 30 characters-->
|
||||
  material-id <span><xsl:value-of select="substring($material-id-str,0,31)"/></span>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="string-length($date-str) > 0 and string-length($date-str) < 9">
|
||||
  issue-date <span><xsl:value-of select="$yyyy"/><xsl:value-of select="$mm"/><xsl:value-of select="$dd"/></span>
|
||||
</xsl:if>
|
||||
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
</td>
|
||||
</tr>
|
||||
<xsl:for-each select="child::node()">
|
||||
<xsl:if test="ancestor::m1-15-2-materials">
|
||||
<tr>
|
||||
<td style="border:0;">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('17')"/></xsl:attribute>
|
||||
</td>
|
||||
<td style="border:0;">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('17')"/></xsl:attribute>
|
||||
</td>
|
||||
<td style="border:0;" colspan="3">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('17')"/></xsl:attribute>
|
||||
            <xsl:value-of select="normalize-space(name())"/>
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('9')"/></xsl:attribute>
|
||||
<xsl:apply-templates select="leaf"/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:for-each>
|
||||
</xsl:for-each>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
</xsl:if>
|
||||
<xsl:if test="descendant::m1-16-risk-management-plan">
|
||||
<br/>
|
||||
<style>
|
||||
span{ color:red; }
|
||||
</style>
|
||||
<table width="100%" border="1" bordercolor="#787878" cellspacing="0" cellpadding="3" bgcolor="white" summary="This table contains the title of a section">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule(5)"/></xsl:attribute>
|
||||
<xsl:for-each select="descendant::m1-16-risk-management-plan">
|
||||
<tr>
|
||||
<td colspan="5">
|
||||
   m1-16-risk-management-plan 
|
||||
</td>
|
||||
</tr>
|
||||
<xsl:for-each select="child::node()">
|
||||
<tr>
|
||||
<td style="border:0;" colspan="3">
|
||||
<xsl:if test="self::m1-16-1-risk-management-non-rems">
|
||||
<tr>
|
||||
<td style="border:0;">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('17')"/></xsl:attribute>
|
||||
     <xsl:value-of select="normalize-space(name())"/>
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('9')"/></xsl:attribute>
|
||||
<xsl:attribute name="WIDTH"><xsl:value-of select="js:getIndent()"/></xsl:attribute><xsl:apply-templates select="leaf"/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="self::m1-16-2-risk-evaluation-and-mitigation-strategies-rems">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('17')"/></xsl:attribute>
|
||||
     <xsl:value-of select="name()"/>
|
||||
<xsl:for-each select="child::node()">
|
||||
<xsl:if test="ancestor::m1-16-2-risk-evaluation-and-mitigation-strategies-rems">
|
||||
<tr>
|
||||
<td style="border:0;">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('17')"/></xsl:attribute>
|
||||
         <xsl:value-of select="normalize-space(name())"/>
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('9')"/></xsl:attribute>
|
||||
<xsl:apply-templates select="leaf"/>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
</xsl:if>
|
||||
<xsl:for-each select="descendant::node()">
|
||||
<xsl:if test="contains(name(),'m1-17-') or contains(name(),'m1-18-') or contains(name(),'m1-19-') or contains(name(),'m1-20-')
|
||||
or contains(name(),'m2-')
|
||||
or contains(name(),'m3-')
|
||||
or contains(name(),'m4-')
|
||||
or contains(name(),'m5-')">
|
||||
<xsl:if test="leaf | node-extension/leaf | node-extension/node-extension/leaf">
|
||||
<xsl:if test="leaf">
|
||||
<br/>
|
||||
<table width="100%" border="1" bordercolor="#787878" cellspacing="0" cellpadding="0" bgcolor="#787878" summary="This table contains the border for a section">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule(0)"/></xsl:attribute>
|
||||
<tr>
|
||||
<td>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="4" bgcolor="white" summary="This table contains background for a section">
|
||||
<tr>
|
||||
<td>
|
||||
<xsl:attribute name="WIDTH"><xsl:value-of select="js:getIndent()"/></xsl:attribute>
|
||||
<table width="100%" border="0" bordercolor="black" cellspacing="0" cellpadding="2" bgcolor="white" summary="This table contains the title of a section">
|
||||
<tr>
|
||||
<td height="10">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
<td valign="center">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('5')"/></xsl:attribute>
|
||||
<xsl:choose>
|
||||
<xsl:when test="../node-extension">
|
||||
<xsl:value-of select="js:getParentTitle()"/>
|
||||
<xsl:for-each select="../node-extension">
|
||||
- <xsl:value-of select="title"/>
|
||||
</xsl:for-each>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:variable name="module-title">
|
||||
<xsl:if test="not(ancestor::m1-15-promotional-material)">
|
||||
<xsl:value-of select="name()"/>
|
||||
<xsl:for-each select="@indication">-<xsl:value-of select="."/>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="@manufacturer">-<xsl:value-of select="."/>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="@substance">-<xsl:value-of select="."/>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="@dosageform">-<xsl:value-of select="."/>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="@product-name">-<xsl:value-of select="."/>
|
||||
</xsl:for-each>
|
||||
</xsl:if>
|
||||
</xsl:variable>
|
||||
<xsl:value-of select="js:setParentTitle($module-title)"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<xsl:apply-templates select="leaf"/>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
<xsl:template match="telephone">
|
||||
<xsl:value-of select="substring(self::telephone,1, 64)"/>
|
||||
<xsl:variable name="tel-type" select="@telephone-number-type"/>
|
||||
<xsl:for-each select="document('telephone-number-type.xml')/telephone-number-type/code-display">
|
||||
<xsl:variable name="tel-type-values" select="@code"/>
|
||||
<xsl:if test="$tel-type = $tel-type-values">
|
||||
(<xsl:value-of select="@display"/>) 
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
<xsl:template match="leaf">
|
||||
<xsl:for-each select=".">
|
||||
<!-- THIS HANDLES LEAVES AT THREE LEVELS -->
|
||||
<xsl:if test="@operation | @xlink:type">
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="4" bgcolor="#ECECEC" summary="This table contains the title of a document">
|
||||
<tr>
|
||||
<td>
|
||||
<xsl:attribute name="WIDTH"><xsl:value-of select="js:getIndent()"/></xsl:attribute>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:attribute name="WIDTH"><xsl:value-of select="js:getIndent()"/></xsl:attribute>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:attribute name="WIDTH"><xsl:value-of select="js:getIndent()"/></xsl:attribute>
|
||||
</td>
|
||||
<xsl:if test="ancestor::m1-16-1-risk-management-non-rems">
|
||||
<td>
|
||||
<xsl:attribute name="WIDTH"><xsl:value-of select="js:getIndent()"/></xsl:attribute>
|
||||
</td>
|
||||
</xsl:if>
|
||||
<xsl:if test="ancestor::m1-15-2-materials or ancestor::m1-16-2-risk-evaluation-and-mitigation-strategies-rems">
|
||||
<td>
|
||||
<xsl:attribute name="WIDTH"><xsl:value-of select="js:getIndent()"/></xsl:attribute>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:attribute name="WIDTH"><xsl:value-of select="js:getIndent()"/></xsl:attribute>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:attribute name="WIDTH"><xsl:value-of select="js:getIndent()"/></xsl:attribute>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:attribute name="WIDTH"><xsl:value-of select="js:getIndent()"/></xsl:attribute>
|
||||
</td>
|
||||
</xsl:if>
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('6')"/></xsl:attribute>
|
||||
<td align="left">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('6')"/>></xsl:attribute>
|
||||
<a title="Open a secondary window that displays the indicated file" style="text-decoration: none">
|
||||
<!-- OPENS A DOCUMENT -->
|
||||
<xsl:variable name="myVar">
|
||||
<xsl:call-template name="string-replace-all">
|
||||
<xsl:with-param name="text" select="@xlink:href" />
|
||||
<xsl:with-param name="replace" select="'\'" />
|
||||
<xsl:with-param name="by" select="'\\'" />
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:attribute name="HREF"/>
|
||||
<xsl:attribute name="ONCLICK">
|
||||
|
||||
// Vars
|
||||
var check = "";
|
||||
var displayFile = "";
|
||||
var displayLoc = "";
|
||||
fileName = "<xsl:value-of select="$myVar"/>"; var loads = null;
|
||||
var openLoc = null;
|
||||
var redundant = false;
|
||||
var selLoc = null;
|
||||
var sep = "/";
|
||||
var styleSheet = null;
|
||||
var subDirPath = null;
|
||||
var type = null;
|
||||
var xml = null;
|
||||
var style = null;
|
||||
var win = null;
|
||||
var winHeight = 0.70*window.screen.height;
|
||||
var winWidth = 0.75*window.screen.width;
|
||||
|
||||
openLoc = this.document.URL;
|
||||
if(openLoc != null && openLoc.indexOf("\\") > -1) {
|
||||
openLoc = openLoc.substring(0,openLoc.lastIndexOf("\\"));
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
if(openLoc != null && openLoc.indexOf("/") > -1) { <!--Parse URL Paths that use forward slashes -->
|
||||
openLoc = openLoc.substring(0,openLoc.lastIndexOf("/"));}
|
||||
}
|
||||
|
||||
if(fileName.indexOf("/") == -1)
|
||||
{
|
||||
{ sep = "\\"; }
|
||||
}
|
||||
check = fileName; // Set the directory name holder
|
||||
check = check.substring(0,check.lastIndexOf(sep));
|
||||
|
||||
if(subDirPath == null)
|
||||
{
|
||||
subDirPath = check;
|
||||
}
|
||||
|
||||
while(check.indexOf(sep) > -1) // Make sure URL pieces are unique
|
||||
{
|
||||
check = check.substring(0,check.lastIndexOf(sep));
|
||||
|
||||
if(openLoc.indexOf(check) > 0 &&
|
||||
!redundant) // Remove directory name overlap
|
||||
{
|
||||
fileName = fileName.substring(0,fileName.indexOf(check)-1);
|
||||
redundant = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(subDirPath != null && selLoc != null && selLoc.indexOf(subDirPath) < 0)
|
||||
{
|
||||
openLoc += sep + subDirPath;
|
||||
}
|
||||
|
||||
if(!redundant)
|
||||
{
|
||||
selLoc = openLoc + "\\" + fileName;
|
||||
}
|
||||
|
||||
if(fileName != "") // If there is a file name, parse
|
||||
{
|
||||
if(selLoc != "") {
|
||||
try {
|
||||
window.open(selLoc,"","alwaysRaised=yes,scrollbars=yes,menubar=yes,toolbar=yes,location=yes,status=yes,"
|
||||
+ "resizable=yes,width=" + winWidth + ",height=" + winHeight+ ",left=120,top=50");
|
||||
} catch(e) {
|
||||
alert("<xsl:value-of select="js:getAlert(4)"/>");
|
||||
}
|
||||
} else {
|
||||
alert("<xsl:value-of select="js:getAlert(4)"/>");
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
</xsl:attribute>
|
||||
<xsl:choose>
|
||||
<xsl:when test="title and string-length(title) > 0">
|
||||
<xsl:value-of select="title"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>No Title</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<font color="red"> [<xsl:value-of select="@operation"/>]</font> <!--contains operation with brackets in red-->
|
||||
</a>
|
||||
<a name="summary" href="" title="Expand document summary">
|
||||
<!-- EXPANDS A SUMMARY -->
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('14')"/></xsl:attribute>
|
||||
<xsl:attribute name="ONCLICK">
|
||||
if (this.nextSibling.style.display=="block")
|
||||
{
|
||||
this.nextSibling.style.display="none";
|
||||
this.title = "Expand document summary";
|
||||
this.firstChild.style.display="inline";
|
||||
this.firstChild.nextSibling.style.display="none";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.nextSibling.style.display="block";
|
||||
this.title = "Collapse document summary";
|
||||
this.firstChild.style.display="none";
|
||||
this.firstChild.nextSibling.style.display="inline";
|
||||
}
|
||||
return false;
|
||||
</xsl:attribute>
|
||||
<div name="expand" style="position:relative; display=inline;"> +</div>
|
||||
<div name="collapse" style="position:relative; display=none;"> -</div>
|
||||
</a>
|
||||
<!-- ADD FILE ATTRIBUTE VALUE NAME CHECKS HERE -->
|
||||
<div name="showData" style="position:relative; display=none;">
|
||||
<xsl:attribute name="STYLE"><xsl:value-of select="js:getCSSRule('9')"/></xsl:attribute>
|
||||
<xsl:attribute name="ID"><xsl:value-of select="js:getUnique()"/></xsl:attribute>
|
||||
<xsl:if test="@actuate">
|
||||
 Actuate = <xsl:value-of select="@actuate"/>
|
||||
<br/>
|
||||
</xsl:if>
|
||||
 Application Version = <xsl:value-of select="@application-version"/>
|
||||
<br/>
|
||||
 Checksum = <xsl:value-of select="@checksum"/>
|
||||
<xsl:value-of select="@md5-checksum"/>
|
||||
<br/>
|
||||
 Checksum Type = <xsl:value-of select="@checksum-type"/>
|
||||
<br/>
|
||||
 Filename = <xsl:value-of select="@xlink:href"/>
|
||||
<br/>
|
||||
 Font Library = <xsl:value-of select="@font-library"/>
|
||||
<br/>
|
||||
 ID = <xsl:value-of select="@ID"/>
|
||||
<xsl:value-of select="@id"/>
|
||||
<br/>
|
||||
 Keywords = <xsl:value-of select="@keywords"/>
|
||||
<br/>
|
||||
<xsl:if test="@lang">
|
||||
 Language = <xsl:value-of select="@lang"/>
|
||||
<br/>
|
||||
</xsl:if>
|
||||
<xsl:if test="@modified-file">  Modified File = <xsl:value-of select="@modified-file"/>
|
||||
<br/>
|
||||
</xsl:if>
|
||||
 Operation = <xsl:value-of select="@operation"/>
|
||||
<br/>
|
||||
<xsl:if test="@xlink:role">
|
||||
 Role = <xsl:value-of select="@xlink:role"/>
|
||||
<br/>
|
||||
</xsl:if>
|
||||
<xsl:if test="@xlink:show">
|
||||
 Show = <xsl:value-of select="@xlink:show"/>
|
||||
<br/>
|
||||
</xsl:if>
|
||||
 Version = <xsl:value-of select="@version"/>
|
||||
<br/>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
73
src/App.vue
Normal file
73
src/App.vue
Normal file
@ -0,0 +1,73 @@
|
||||
<script lang="ts" setup>
|
||||
import { useAppStore } from '@/store/modules/app'
|
||||
import { useDesign } from '@/hooks/web/useDesign'
|
||||
import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
|
||||
import routerSearch from '@/components/RouterSearch/index.vue'
|
||||
|
||||
defineOptions({ name: 'APP' })
|
||||
|
||||
const { getPrefixCls } = useDesign()
|
||||
const prefixCls = getPrefixCls('app')
|
||||
const appStore = useAppStore()
|
||||
const currentSize = computed(() => appStore.getCurrentSize)
|
||||
const greyMode = computed(() => appStore.getGreyMode)
|
||||
const { wsCache } = useCache()
|
||||
|
||||
// 根据浏览器当前主题设置系统主题色
|
||||
const setDefaultTheme = () => {
|
||||
let isDarkTheme = wsCache.get(CACHE_KEY.IS_DARK)
|
||||
if (isDarkTheme === null) {
|
||||
isDarkTheme = false;//isDark()
|
||||
}
|
||||
appStore.setIsDark(isDarkTheme)
|
||||
}
|
||||
setDefaultTheme()
|
||||
</script>
|
||||
<template>
|
||||
<ConfigGlobal :size="currentSize">
|
||||
<RouterView :class="greyMode ? `${prefixCls}-grey-mode` : ''" />
|
||||
<routerSearch />
|
||||
</ConfigGlobal>
|
||||
</template>
|
||||
<style lang="scss">
|
||||
$prefix-cls: #{$namespace}-app;
|
||||
|
||||
.size {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
@extend .size;
|
||||
|
||||
/* 与 Login5 同源的 SVG 装饰底(紫青主色块 + 主色柔光 + 细网格),见 assets/images/app-shell-bg.svg */
|
||||
background-color: #eef2f8;
|
||||
background-image: url(@/assets/images/app-shell-bg.svg);
|
||||
background-repeat: no-repeat;
|
||||
background-position: center center;
|
||||
background-size: cover;
|
||||
background-attachment: fixed;
|
||||
|
||||
padding: 0 !important;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
|
||||
#app {
|
||||
@extend .size;
|
||||
}
|
||||
}
|
||||
|
||||
html.dark,
|
||||
html.dark body {
|
||||
background-color: #0b0f14;
|
||||
background-image:
|
||||
radial-gradient(ellipse 90% 60% at 12% 0%, rgba(0, 127, 234, 0.14) 0%, transparent 55%),
|
||||
linear-gradient(168deg, #0f1318 0%, #161b22 100%);
|
||||
background-attachment: fixed;
|
||||
}
|
||||
|
||||
.#{$prefix-cls}-grey-mode {
|
||||
filter: grayscale(100%);
|
||||
}
|
||||
</style>
|
||||
65
src/api/ai/chat/conversation/index.ts
Normal file
65
src/api/ai/chat/conversation/index.ts
Normal file
@ -0,0 +1,65 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// AI 聊天对话 VO
|
||||
export interface ChatConversationVO {
|
||||
id: number // ID 编号
|
||||
userId: number // 用户编号
|
||||
title: string // 对话标题
|
||||
pinned: boolean // 是否置顶
|
||||
roleId: number // 角色编号
|
||||
modelId: number // 模型编号
|
||||
model: string // 模型标志
|
||||
temperature: number // 温度参数
|
||||
maxTokens: number // 单条回复的最大 Token 数量
|
||||
maxContexts: number // 上下文的最大 Message 数量
|
||||
createTime?: Date // 创建时间
|
||||
// 额外字段
|
||||
systemMessage?: string // 角色设定
|
||||
modelName?: string // 模型名字
|
||||
roleAvatar?: string // 角色头像
|
||||
modelMaxTokens?: string // 模型的单条回复的最大 Token 数量
|
||||
modelMaxContexts?: string // 模型的上下文的最大 Message 数量
|
||||
}
|
||||
|
||||
// AI 聊天对话 API
|
||||
export const ChatConversationApi = {
|
||||
// 获得【我的】聊天对话
|
||||
getChatConversationMy: async (id: number) => {
|
||||
return await request.get({ url: `/ai/chat/conversation/get-my?id=${id}` })
|
||||
},
|
||||
|
||||
// 新增【我的】聊天对话
|
||||
createChatConversationMy: async (data?: ChatConversationVO) => {
|
||||
return await request.post({ url: `/ai/chat/conversation/create-my`, data })
|
||||
},
|
||||
|
||||
// 更新【我的】聊天对话
|
||||
updateChatConversationMy: async (data: ChatConversationVO) => {
|
||||
return await request.put({ url: `/ai/chat/conversation/update-my`, data })
|
||||
},
|
||||
|
||||
// 删除【我的】聊天对话
|
||||
deleteChatConversationMy: async (id: string) => {
|
||||
return await request.delete({ url: `/ai/chat/conversation/delete-my?id=${id}` })
|
||||
},
|
||||
|
||||
// 删除【我的】所有对话,置顶除外
|
||||
deleteChatConversationMyByUnpinned: async () => {
|
||||
return await request.delete({ url: `/ai/chat/conversation/delete-by-unpinned` })
|
||||
},
|
||||
|
||||
// 获得【我的】聊天对话列表
|
||||
getChatConversationMyList: async () => {
|
||||
return await request.get({ url: `/ai/chat/conversation/my-list` })
|
||||
},
|
||||
|
||||
// 获得对话分页
|
||||
getChatConversationPage: async (params: any) => {
|
||||
return await request.get({ url: `/ai/chat/conversation/page`, params })
|
||||
},
|
||||
|
||||
// 管理员删除消息
|
||||
deleteChatConversationByAdmin: async (id: number) => {
|
||||
return await request.delete({ url: `/ai/chat/conversation/delete-by-admin?id=${id}` })
|
||||
}
|
||||
}
|
||||
83
src/api/ai/chat/message/index.ts
Normal file
83
src/api/ai/chat/message/index.ts
Normal file
@ -0,0 +1,83 @@
|
||||
import request from '@/config/axios'
|
||||
import { fetchEventSource } from '@microsoft/fetch-event-source'
|
||||
import { getAccessToken } from '@/utils/auth'
|
||||
import { config } from '@/config/axios/config'
|
||||
|
||||
// 聊天VO
|
||||
export interface ChatMessageVO {
|
||||
id: number // 编号
|
||||
conversationId: number // 对话编号
|
||||
type: string // 消息类型
|
||||
userId: string // 用户编号
|
||||
roleId: string // 角色编号
|
||||
model: number // 模型标志
|
||||
modelId: number // 模型编号
|
||||
content: string // 聊天内容
|
||||
tokens: number // 消耗 Token 数量
|
||||
createTime: Date // 创建时间
|
||||
roleAvatar: string // 角色头像
|
||||
userAvatar: string // 创建时间
|
||||
}
|
||||
|
||||
// AI chat 聊天
|
||||
export const ChatMessageApi = {
|
||||
// 消息列表
|
||||
getChatMessageListByConversationId: async (conversationId: number | null) => {
|
||||
return await request.get({
|
||||
url: `/ai/chat/message/list-by-conversation-id?conversationId=${conversationId}`
|
||||
})
|
||||
},
|
||||
|
||||
// 发送 Stream 消息
|
||||
// 为什么不用 axios 呢?因为它不支持 SSE 调用
|
||||
sendChatMessageStream: async (
|
||||
conversationId: number,
|
||||
content: string,
|
||||
ctrl,
|
||||
enableContext: boolean,
|
||||
onMessage,
|
||||
onError,
|
||||
onClose
|
||||
) => {
|
||||
const token = getAccessToken()
|
||||
return fetchEventSource(`${config.base_url}/ai/chat/message/send-stream`, {
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
Authorization: `Bearer ${token}`
|
||||
},
|
||||
openWhenHidden: true,
|
||||
body: JSON.stringify({
|
||||
conversationId,
|
||||
content,
|
||||
useContext: enableContext
|
||||
}),
|
||||
onmessage: onMessage,
|
||||
onerror: onError,
|
||||
onclose: onClose,
|
||||
signal: ctrl.signal
|
||||
})
|
||||
},
|
||||
|
||||
// 删除消息
|
||||
deleteChatMessage: async (id: string) => {
|
||||
return await request.delete({ url: `/ai/chat/message/delete?id=${id}` })
|
||||
},
|
||||
|
||||
// 删除指定对话的消息
|
||||
deleteByConversationId: async (conversationId: number) => {
|
||||
return await request.delete({
|
||||
url: `/ai/chat/message/delete-by-conversation-id?conversationId=${conversationId}`
|
||||
})
|
||||
},
|
||||
|
||||
// 获得消息分页
|
||||
getChatMessagePage: async (params: any) => {
|
||||
return await request.get({ url: '/ai/chat/message/page', params })
|
||||
},
|
||||
|
||||
// 管理员删除消息
|
||||
deleteChatMessageByAdmin: async (id: number) => {
|
||||
return await request.delete({ url: `/ai/chat/message/delete-by-admin?id=${id}` })
|
||||
}
|
||||
}
|
||||
103
src/api/ai/image/index.ts
Normal file
103
src/api/ai/image/index.ts
Normal file
@ -0,0 +1,103 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// AI 绘图 VO
|
||||
export interface ImageVO {
|
||||
id: number // 编号
|
||||
platform: string // 平台
|
||||
model: string // 模型
|
||||
prompt: string // 提示词
|
||||
width: number // 图片宽度
|
||||
height: number // 图片高度
|
||||
status: number // 状态
|
||||
publicStatus: boolean // 公开状态
|
||||
picUrl: string // 任务地址
|
||||
errorMessage: string // 错误信息
|
||||
options: any // 配置 Map<string, string>
|
||||
taskId: number // 任务编号
|
||||
buttons: ImageMidjourneyButtonsVO[] // mj 操作按钮
|
||||
createTime: Date // 创建时间
|
||||
finishTime: Date // 完成时间
|
||||
}
|
||||
|
||||
export interface ImageDrawReqVO {
|
||||
platform: string // 平台
|
||||
prompt: string // 提示词
|
||||
model: string // 模型
|
||||
style: string // 图像生成的风格
|
||||
width: string // 图片宽度
|
||||
height: string // 图片高度
|
||||
options: object // 绘制参数,Map<String, String>
|
||||
}
|
||||
|
||||
export interface ImageMidjourneyImagineReqVO {
|
||||
prompt: string // 提示词
|
||||
model: string // 模型 mj nijj
|
||||
base64Array: string[] // size不能为空
|
||||
width: string // 图片宽度
|
||||
height: string // 图片高度
|
||||
version: string // 版本
|
||||
}
|
||||
|
||||
export interface ImageMidjourneyActionVO {
|
||||
id: number // 图片编号
|
||||
customId: string // MJ::JOB::upsample::1::85a4b4c1-8835-46c5-a15c-aea34fad1862 动作标识
|
||||
}
|
||||
|
||||
export interface ImageMidjourneyButtonsVO {
|
||||
customId: string // MJ::JOB::upsample::1::85a4b4c1-8835-46c5-a15c-aea34fad1862 动作标识
|
||||
emoji: string // 图标 emoji
|
||||
label: string // Make Variations 文本
|
||||
style: number // 样式: 2(Primary)、3(Green)
|
||||
}
|
||||
|
||||
// AI 图片 API
|
||||
export const ImageApi = {
|
||||
// 获取【我的】绘图分页
|
||||
getImagePageMy: async (params: any) => {
|
||||
return await request.get({ url: `/ai/image/my-page`, params })
|
||||
},
|
||||
// 获取【我的】绘图记录
|
||||
getImageMy: async (id: number) => {
|
||||
return await request.get({ url: `/ai/image/get-my?id=${id}` })
|
||||
},
|
||||
// 获取【我的】绘图记录列表
|
||||
getImageListMyByIds: async (ids: number[]) => {
|
||||
return await request.get({ url: `/ai/image/my-list-by-ids`, params: { ids: ids.join(',') } })
|
||||
},
|
||||
// 生成图片
|
||||
drawImage: async (data: ImageDrawReqVO) => {
|
||||
return await request.post({ url: `/ai/image/draw`, data })
|
||||
},
|
||||
// 删除【我的】绘画记录
|
||||
deleteImageMy: async (id: number) => {
|
||||
return await request.delete({ url: `/ai/image/delete-my?id=${id}` })
|
||||
},
|
||||
|
||||
// ================ midjourney 专属 ================
|
||||
|
||||
// 【Midjourney】生成图片
|
||||
midjourneyImagine: async (data: ImageMidjourneyImagineReqVO) => {
|
||||
return await request.post({ url: `/ai/image/midjourney/imagine`, data })
|
||||
},
|
||||
// 【Midjourney】Action 操作(二次生成图片)
|
||||
midjourneyAction: async (data: ImageMidjourneyActionVO) => {
|
||||
return await request.post({ url: `/ai/image/midjourney/action`, data })
|
||||
},
|
||||
|
||||
// ================ 绘图管理 ================
|
||||
|
||||
// 查询绘画分页
|
||||
getImagePage: async (params: any) => {
|
||||
return await request.get({ url: `/ai/image/page`, params })
|
||||
},
|
||||
|
||||
// 更新绘画发布状态
|
||||
updateImage: async (data: any) => {
|
||||
return await request.put({ url: '/ai/image/update', data })
|
||||
},
|
||||
|
||||
// 删除绘画
|
||||
deleteImage: async (id: number) => {
|
||||
return await request.delete({ url: `/ai/image/delete?id=` + id })
|
||||
}
|
||||
}
|
||||
60
src/api/ai/mindmap/index.ts
Normal file
60
src/api/ai/mindmap/index.ts
Normal file
@ -0,0 +1,60 @@
|
||||
import { getAccessToken } from '@/utils/auth'
|
||||
import { fetchEventSource } from '@microsoft/fetch-event-source'
|
||||
import { config } from '@/config/axios/config'
|
||||
import request from '@/config/axios' // AI 思维导图 VO
|
||||
|
||||
// AI 思维导图 VO
|
||||
export interface MindMapVO {
|
||||
id: number // 编号
|
||||
userId: number // 用户编号
|
||||
prompt: string // 生成内容提示
|
||||
generatedContent: string // 生成的思维导图内容
|
||||
platform: string // 平台
|
||||
model: string // 模型
|
||||
errorMessage: string // 错误信息
|
||||
}
|
||||
|
||||
// AI 思维导图生成 VO
|
||||
export interface AiMindMapGenerateReqVO {
|
||||
prompt: string
|
||||
}
|
||||
|
||||
export const AiMindMapApi = {
|
||||
generateMindMap: ({
|
||||
data,
|
||||
onClose,
|
||||
onMessage,
|
||||
onError,
|
||||
ctrl
|
||||
}: {
|
||||
data: AiMindMapGenerateReqVO
|
||||
onMessage?: (res: any) => void
|
||||
onError?: (...args: any[]) => void
|
||||
onClose?: (...args: any[]) => void
|
||||
ctrl: AbortController
|
||||
}) => {
|
||||
const token = getAccessToken()
|
||||
return fetchEventSource(`${config.base_url}/ai/mind-map/generate-stream`, {
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
Authorization: `Bearer ${token}`
|
||||
},
|
||||
openWhenHidden: true,
|
||||
body: JSON.stringify(data),
|
||||
onmessage: onMessage,
|
||||
onerror: onError,
|
||||
onclose: onClose,
|
||||
signal: ctrl.signal
|
||||
})
|
||||
},
|
||||
|
||||
// 查询思维导图分页
|
||||
getMindMapPage: async (params: any) => {
|
||||
return await request.get({ url: `/ai/mind-map/page`, params })
|
||||
},
|
||||
// 删除思维导图
|
||||
deleteMindMap: async (id: number) => {
|
||||
return await request.delete({ url: `/ai/mind-map/delete?id=` + id })
|
||||
}
|
||||
}
|
||||
44
src/api/ai/model/apiKey/index.ts
Normal file
44
src/api/ai/model/apiKey/index.ts
Normal file
@ -0,0 +1,44 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// AI API 密钥 VO
|
||||
export interface ApiKeyVO {
|
||||
id: number // 编号
|
||||
name: string // 名称
|
||||
apiKey: string // 密钥
|
||||
platform: string // 平台
|
||||
url: string // 自定义 API 地址
|
||||
status: number // 状态
|
||||
}
|
||||
|
||||
// AI API 密钥 API
|
||||
export const ApiKeyApi = {
|
||||
// 查询 API 密钥分页
|
||||
getApiKeyPage: async (params: any) => {
|
||||
return await request.get({ url: `/ai/api-key/page`, params })
|
||||
},
|
||||
|
||||
// 获得 API 密钥列表
|
||||
getApiKeySimpleList: async () => {
|
||||
return await request.get({ url: `/ai/api-key/simple-list` })
|
||||
},
|
||||
|
||||
// 查询 API 密钥详情
|
||||
getApiKey: async (id: number) => {
|
||||
return await request.get({ url: `/ai/api-key/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增 API 密钥
|
||||
createApiKey: async (data: ApiKeyVO) => {
|
||||
return await request.post({ url: `/ai/api-key/create`, data })
|
||||
},
|
||||
|
||||
// 修改 API 密钥
|
||||
updateApiKey: async (data: ApiKeyVO) => {
|
||||
return await request.put({ url: `/ai/api-key/update`, data })
|
||||
},
|
||||
|
||||
// 删除 API 密钥
|
||||
deleteApiKey: async (id: number) => {
|
||||
return await request.delete({ url: `/ai/api-key/delete?id=` + id })
|
||||
}
|
||||
}
|
||||
53
src/api/ai/model/chatModel/index.ts
Normal file
53
src/api/ai/model/chatModel/index.ts
Normal file
@ -0,0 +1,53 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// AI 聊天模型 VO
|
||||
export interface ChatModelVO {
|
||||
id: number // 编号
|
||||
keyId: number // API 秘钥编号
|
||||
name: string // 模型名字
|
||||
model: string // 模型标识
|
||||
platform: string // 模型平台
|
||||
sort: number // 排序
|
||||
status: number // 状态
|
||||
temperature: number // 温度参数
|
||||
maxTokens: number // 单条回复的最大 Token 数量
|
||||
maxContexts: number // 上下文的最大 Message 数量
|
||||
}
|
||||
|
||||
// AI 聊天模型 API
|
||||
export const ChatModelApi = {
|
||||
// 查询聊天模型分页
|
||||
getChatModelPage: async (params: any) => {
|
||||
return await request.get({ url: `/ai/chat-model/page`, params })
|
||||
},
|
||||
|
||||
// 获得聊天模型列表
|
||||
getChatModelSimpleList: async (status?: number) => {
|
||||
return await request.get({
|
||||
url: `/ai/chat-model/simple-list`,
|
||||
params: {
|
||||
status
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 查询聊天模型详情
|
||||
getChatModel: async (id: number) => {
|
||||
return await request.get({ url: `/ai/chat-model/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增聊天模型
|
||||
createChatModel: async (data: ChatModelVO) => {
|
||||
return await request.post({ url: `/ai/chat-model/create`, data })
|
||||
},
|
||||
|
||||
// 修改聊天模型
|
||||
updateChatModel: async (data: ChatModelVO) => {
|
||||
return await request.put({ url: `/ai/chat-model/update`, data })
|
||||
},
|
||||
|
||||
// 删除聊天模型
|
||||
deleteChatModel: async (id: number) => {
|
||||
return await request.delete({ url: `/ai/chat-model/delete?id=` + id })
|
||||
}
|
||||
}
|
||||
80
src/api/ai/model/chatRole/index.ts
Normal file
80
src/api/ai/model/chatRole/index.ts
Normal file
@ -0,0 +1,80 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// AI 聊天角色 VO
|
||||
export interface ChatRoleVO {
|
||||
id: number // 角色编号
|
||||
modelId: number // 模型编号
|
||||
name: string // 角色名称
|
||||
avatar: string // 角色头像
|
||||
category: string // 角色类别
|
||||
sort: number // 角色排序
|
||||
description: string // 角色描述
|
||||
systemMessage: string // 角色设定
|
||||
welcomeMessage: string // 角色设定
|
||||
publicStatus: boolean // 是否公开
|
||||
status: number // 状态
|
||||
}
|
||||
|
||||
// AI 聊天角色 分页请求 vo
|
||||
export interface ChatRolePageReqVO {
|
||||
name?: string // 角色名称
|
||||
category?: string // 角色类别
|
||||
publicStatus: boolean // 是否公开
|
||||
pageNo: number // 是否公开
|
||||
pageSize: number // 是否公开
|
||||
}
|
||||
|
||||
// AI 聊天角色 API
|
||||
export const ChatRoleApi = {
|
||||
// 查询聊天角色分页
|
||||
getChatRolePage: async (params: any) => {
|
||||
return await request.get({ url: `/ai/chat-role/page`, params })
|
||||
},
|
||||
|
||||
// 查询聊天角色详情
|
||||
getChatRole: async (id: number) => {
|
||||
return await request.get({ url: `/ai/chat-role/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增聊天角色
|
||||
createChatRole: async (data: ChatRoleVO) => {
|
||||
return await request.post({ url: `/ai/chat-role/create`, data })
|
||||
},
|
||||
|
||||
// 修改聊天角色
|
||||
updateChatRole: async (data: ChatRoleVO) => {
|
||||
return await request.put({ url: `/ai/chat-role/update`, data })
|
||||
},
|
||||
|
||||
// 删除聊天角色
|
||||
deleteChatRole: async (id: number) => {
|
||||
return await request.delete({ url: `/ai/chat-role/delete?id=` + id })
|
||||
},
|
||||
|
||||
// ======= chat 聊天
|
||||
|
||||
// 获取 my role
|
||||
getMyPage: async (params: ChatRolePageReqVO) => {
|
||||
return await request.get({ url: `/ai/chat-role/my-page`, params})
|
||||
},
|
||||
|
||||
// 获取角色分类
|
||||
getCategoryList: async () => {
|
||||
return await request.get({ url: `/ai/chat-role/category-list`})
|
||||
},
|
||||
|
||||
// 创建角色
|
||||
createMy: async (data: ChatRoleVO) => {
|
||||
return await request.post({ url: `/ai/chat-role/create-my`, data})
|
||||
},
|
||||
|
||||
// 更新角色
|
||||
updateMy: async (data: ChatRoleVO) => {
|
||||
return await request.put({ url: `/ai/chat-role/update-my`, data})
|
||||
},
|
||||
|
||||
// 删除角色 my
|
||||
deleteMy: async (id: number) => {
|
||||
return await request.delete({ url: `/ai/chat-role/delete-my?id=` + id })
|
||||
},
|
||||
}
|
||||
41
src/api/ai/music/index.ts
Normal file
41
src/api/ai/music/index.ts
Normal file
@ -0,0 +1,41 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// AI 音乐 VO
|
||||
export interface MusicVO {
|
||||
id: number // 编号
|
||||
userId: number // 用户编号
|
||||
title: string // 音乐名称
|
||||
lyric: string // 歌词
|
||||
imageUrl: string // 图片地址
|
||||
audioUrl: string // 音频地址
|
||||
videoUrl: string // 视频地址
|
||||
status: number // 音乐状态
|
||||
gptDescriptionPrompt: string // 描述词
|
||||
prompt: string // 提示词
|
||||
platform: string // 模型平台
|
||||
model: string // 模型
|
||||
generateMode: number // 生成模式
|
||||
tags: string // 音乐风格标签
|
||||
duration: number // 音乐时长
|
||||
publicStatus: boolean // 是否发布
|
||||
taskId: string // 任务id
|
||||
errorMessage: string // 错误信息
|
||||
}
|
||||
|
||||
// AI 音乐 API
|
||||
export const MusicApi = {
|
||||
// 查询音乐分页
|
||||
getMusicPage: async (params: any) => {
|
||||
return await request.get({ url: `/ai/music/page`, params })
|
||||
},
|
||||
|
||||
// 更新音乐
|
||||
updateMusic: async (data: any) => {
|
||||
return await request.put({ url: '/ai/music/update', data })
|
||||
},
|
||||
|
||||
// 删除音乐
|
||||
deleteMusic: async (id: number) => {
|
||||
return await request.delete({ url: `/ai/music/delete?id=` + id })
|
||||
}
|
||||
}
|
||||
85
src/api/ai/write/index.ts
Normal file
85
src/api/ai/write/index.ts
Normal file
@ -0,0 +1,85 @@
|
||||
import { fetchEventSource } from '@microsoft/fetch-event-source'
|
||||
|
||||
import { getAccessToken } from '@/utils/auth'
|
||||
import { config } from '@/config/axios/config'
|
||||
import { AiWriteTypeEnum } from '@/views/ai/utils/constants'
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface WriteVO {
|
||||
type: AiWriteTypeEnum.WRITING | AiWriteTypeEnum.REPLY // 1:撰写 2:回复
|
||||
prompt: string // 写作内容提示 1。撰写 2回复
|
||||
originalContent: string // 原文
|
||||
length: number // 长度
|
||||
format: number // 格式
|
||||
tone: number // 语气
|
||||
language: number // 语言
|
||||
userId?: number // 用户编号
|
||||
platform?: string // 平台
|
||||
model?: string // 模型
|
||||
generatedContent?: string // 生成的内容
|
||||
errorMessage?: string // 错误信息
|
||||
createTime?: Date // 创建时间
|
||||
}
|
||||
|
||||
export interface AiWritePageReqVO extends PageParam {
|
||||
userId?: number // 用户编号
|
||||
type?: AiWriteTypeEnum // 写作类型
|
||||
platform?: string // 平台
|
||||
createTime?: [string, string] // 创建时间
|
||||
}
|
||||
|
||||
export interface AiWriteRespVo {
|
||||
id: number
|
||||
userId: number
|
||||
type: number
|
||||
platform: string
|
||||
model: string
|
||||
prompt: string
|
||||
generatedContent: string
|
||||
originalContent: string
|
||||
length: number
|
||||
format: number
|
||||
tone: number
|
||||
language: number
|
||||
errorMessage: string
|
||||
createTime: string
|
||||
}
|
||||
|
||||
export const WriteApi = {
|
||||
writeStream: ({
|
||||
data,
|
||||
onClose,
|
||||
onMessage,
|
||||
onError,
|
||||
ctrl
|
||||
}: {
|
||||
data: WriteVO
|
||||
onMessage?: (res: any) => void
|
||||
onError?: (...args: any[]) => void
|
||||
onClose?: (...args: any[]) => void
|
||||
ctrl: AbortController
|
||||
}) => {
|
||||
const token = getAccessToken()
|
||||
return fetchEventSource(`${config.base_url}/ai/write/generate-stream`, {
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
Authorization: `Bearer ${token}`
|
||||
},
|
||||
openWhenHidden: true,
|
||||
body: JSON.stringify(data),
|
||||
onmessage: onMessage,
|
||||
onerror: onError,
|
||||
onclose: onClose,
|
||||
signal: ctrl.signal
|
||||
})
|
||||
},
|
||||
// 获取写作列表
|
||||
getWritePage: (params: AiWritePageReqVO) => {
|
||||
return request.get<PageResult<AiWriteRespVo[]>>({ url: `/ai/write/page`, params })
|
||||
},
|
||||
// 删除写作
|
||||
deleteWrite(id: number) {
|
||||
return request.delete({ url: `/ai/write/delete`, params: { id } })
|
||||
}
|
||||
}
|
||||
205
src/api/help/index.ts
Normal file
205
src/api/help/index.ts
Normal file
@ -0,0 +1,205 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface HelpCategoryVO {
|
||||
id?: number
|
||||
parentId?: number
|
||||
name: string
|
||||
icon?: string
|
||||
sort: number
|
||||
description?: string
|
||||
status: number
|
||||
children?: HelpCategoryVO[]
|
||||
articles?: HelpCategoryArticleVO[]
|
||||
}
|
||||
|
||||
export interface HelpCategoryArticleVO {
|
||||
id: number
|
||||
title: string
|
||||
sort?: number
|
||||
isTop?: boolean
|
||||
}
|
||||
|
||||
export interface HelpArticleVO {
|
||||
id?: number
|
||||
categoryId: number
|
||||
categoryName?: string
|
||||
title: string
|
||||
contentMarkdown?: string
|
||||
keywords?: string
|
||||
sort?: number
|
||||
isPublish?: boolean
|
||||
isTop?: boolean
|
||||
createTime?: Date
|
||||
updateTime?: Date
|
||||
}
|
||||
|
||||
export interface HelpSearchIndexVO {
|
||||
id: number
|
||||
title: string
|
||||
keywords?: string
|
||||
content?: string
|
||||
}
|
||||
|
||||
export interface HelpFaqVO {
|
||||
id?: number
|
||||
question: string
|
||||
answer?: string
|
||||
sort?: number
|
||||
status: number
|
||||
}
|
||||
|
||||
export interface HelpAttachmentVO {
|
||||
id?: number
|
||||
articleId?: number
|
||||
name: string
|
||||
url: string
|
||||
type?: string
|
||||
size?: number
|
||||
}
|
||||
|
||||
export interface HelpMenuRelationVO {
|
||||
id?: number
|
||||
menuId?: number
|
||||
menuName?: string
|
||||
menuRoute: string
|
||||
articleId: number
|
||||
articleTitle?: string
|
||||
sort?: number
|
||||
}
|
||||
|
||||
export interface HelpMenuRelationBatchSaveVO {
|
||||
menuId?: number
|
||||
menuRoute: string
|
||||
articleIds: number[]
|
||||
sort?: number
|
||||
}
|
||||
|
||||
export interface HelpMenuArticleVO {
|
||||
id: number
|
||||
title: string
|
||||
}
|
||||
|
||||
// ========== 分类 ==========
|
||||
export const getCategoryTree = (status?: number) => {
|
||||
return request.get<HelpCategoryVO[]>({ url: '/help/category/tree', params: { status } })
|
||||
}
|
||||
|
||||
export const getCategoryList = () => {
|
||||
return request.get<HelpCategoryVO[]>({ url: '/help/category/list' })
|
||||
}
|
||||
|
||||
export const getCategory = (id: number) => {
|
||||
return request.get<HelpCategoryVO>({ url: '/help/category/get?id=' + id })
|
||||
}
|
||||
|
||||
export const createCategory = (data: HelpCategoryVO) => {
|
||||
return request.post({ url: '/help/category/create', data })
|
||||
}
|
||||
|
||||
export const updateCategory = (data: HelpCategoryVO) => {
|
||||
return request.put({ url: '/help/category/update', data })
|
||||
}
|
||||
|
||||
export const deleteCategory = (id: number) => {
|
||||
return request.delete({ url: '/help/category/delete?id=' + id })
|
||||
}
|
||||
|
||||
// ========== 文档 ==========
|
||||
export const getArticlePage = (params: PageParam & { title?: string; categoryId?: number; isPublish?: boolean }) => {
|
||||
return request.get({ url: '/help/article/page', params })
|
||||
}
|
||||
|
||||
export const getArticle = (id: number) => {
|
||||
return request.get<HelpArticleVO>({ url: '/help/article/get?id=' + id })
|
||||
}
|
||||
|
||||
export const createArticle = (data: HelpArticleVO) => {
|
||||
return request.post({ url: '/help/article/create', data })
|
||||
}
|
||||
|
||||
export const updateArticle = (data: HelpArticleVO) => {
|
||||
return request.put({ url: '/help/article/update', data })
|
||||
}
|
||||
|
||||
export const deleteArticle = (id: number) => {
|
||||
return request.delete({ url: '/help/article/delete?id=' + id })
|
||||
}
|
||||
|
||||
export const getSearchIndex = () => {
|
||||
return request.get<HelpSearchIndexVO[]>({ url: '/help/article/search-index' })
|
||||
}
|
||||
|
||||
export const getPublishedArticleList = (categoryId?: number) => {
|
||||
return request.get<HelpArticleVO[]>({ url: '/help/article/published-list', params: { categoryId } })
|
||||
}
|
||||
|
||||
// ========== FAQ ==========
|
||||
export const getFaqPage = (params: PageParam & { question?: string; status?: number }) => {
|
||||
return request.get({ url: '/help/faq/page', params })
|
||||
}
|
||||
|
||||
export const getFaq = (id: number) => {
|
||||
return request.get<HelpFaqVO>({ url: '/help/faq/get?id=' + id })
|
||||
}
|
||||
|
||||
export const createFaq = (data: HelpFaqVO) => {
|
||||
return request.post({ url: '/help/faq/create', data })
|
||||
}
|
||||
|
||||
export const updateFaq = (data: HelpFaqVO) => {
|
||||
return request.put({ url: '/help/faq/update', data })
|
||||
}
|
||||
|
||||
export const deleteFaq = (id: number) => {
|
||||
return request.delete({ url: '/help/faq/delete?id=' + id })
|
||||
}
|
||||
|
||||
export const getEnabledFaqList = () => {
|
||||
return request.get<HelpFaqVO[]>({ url: '/help/faq/list' })
|
||||
}
|
||||
|
||||
// ========== 附件 ==========
|
||||
export const getAttachmentPage = (params: PageParam & { name?: string; articleId?: number }) => {
|
||||
return request.get({ url: '/help/attachment/page', params })
|
||||
}
|
||||
|
||||
export const createAttachment = (data: HelpAttachmentVO) => {
|
||||
return request.post({ url: '/help/attachment/create', data })
|
||||
}
|
||||
|
||||
export const deleteAttachment = (id: number) => {
|
||||
return request.delete({ url: '/help/attachment/delete?id=' + id })
|
||||
}
|
||||
|
||||
export const getAttachmentListByArticleId = (articleId: number) => {
|
||||
return request.get<HelpAttachmentVO[]>({ url: '/help/attachment/list-by-article?articleId=' + articleId })
|
||||
}
|
||||
|
||||
// ========== 页面关联 ==========
|
||||
export const getMenuRelationPage = (params: PageParam & { menuId?: number; articleId?: number }) => {
|
||||
return request.get({ url: '/help/menu/page', params })
|
||||
}
|
||||
|
||||
export const createMenuRelation = (data: HelpMenuRelationVO) => {
|
||||
return request.post({ url: '/help/menu/create', data })
|
||||
}
|
||||
|
||||
export const createMenuRelationBatch = (data: HelpMenuRelationBatchSaveVO) => {
|
||||
return request.post({ url: '/help/menu/create-batch', data })
|
||||
}
|
||||
|
||||
export const updateMenuRelation = (data: HelpMenuRelationVO) => {
|
||||
return request.put({ url: '/help/menu/update', data })
|
||||
}
|
||||
|
||||
export const deleteMenuRelation = (id: number) => {
|
||||
return request.delete({ url: '/help/menu/delete?id=' + id })
|
||||
}
|
||||
|
||||
export const getArticlesByMenuId = (menuId: number) => {
|
||||
return request.get<HelpMenuArticleVO[]>({ url: '/help/menu/' + menuId })
|
||||
}
|
||||
|
||||
export const getArticlesByMenuRoute = (route: string) => {
|
||||
return request.get<HelpMenuArticleVO[]>({ url: '/help/menu/route', params: { route } })
|
||||
}
|
||||
34
src/api/infra/apiAccessLog/index.ts
Normal file
34
src/api/infra/apiAccessLog/index.ts
Normal file
@ -0,0 +1,34 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface ApiAccessLogVO {
|
||||
id: number
|
||||
traceId: string
|
||||
userId: number
|
||||
userType: number
|
||||
applicationName: string
|
||||
requestMethod: string
|
||||
requestParams: string
|
||||
responseBody: string
|
||||
requestUrl: string
|
||||
userIp: string
|
||||
userAgent: string
|
||||
operateModule: string
|
||||
operateName: string
|
||||
operateType: number
|
||||
beginTime: Date
|
||||
endTime: Date
|
||||
duration: number
|
||||
resultCode: number
|
||||
resultMsg: string
|
||||
createTime: Date
|
||||
}
|
||||
|
||||
// 查询列表API 访问日志
|
||||
export const getApiAccessLogPage = (params: PageParam) => {
|
||||
return request.get({ url: '/infra/api-access-log/page', params })
|
||||
}
|
||||
|
||||
// 导出API 访问日志
|
||||
export const exportApiAccessLog = (params) => {
|
||||
return request.download({ url: '/infra/api-access-log/export-excel', params })
|
||||
}
|
||||
48
src/api/infra/apiErrorLog/index.ts
Normal file
48
src/api/infra/apiErrorLog/index.ts
Normal file
@ -0,0 +1,48 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface ApiErrorLogVO {
|
||||
id: number
|
||||
traceId: string
|
||||
userId: number
|
||||
userType: number
|
||||
applicationName: string
|
||||
requestMethod: string
|
||||
requestParams: string
|
||||
requestUrl: string
|
||||
userIp: string
|
||||
userAgent: string
|
||||
exceptionTime: Date
|
||||
exceptionName: string
|
||||
exceptionMessage: string
|
||||
exceptionRootCauseMessage: string
|
||||
exceptionStackTrace: string
|
||||
exceptionClassName: string
|
||||
exceptionFileName: string
|
||||
exceptionMethodName: string
|
||||
exceptionLineNumber: number
|
||||
processUserId: number
|
||||
processStatus: number
|
||||
processTime: Date
|
||||
resultCode: number
|
||||
createTime: Date
|
||||
}
|
||||
|
||||
// 查询列表API 访问日志
|
||||
export const getApiErrorLogPage = (params: PageParam) => {
|
||||
return request.get({ url: '/infra/api-error-log/page', params })
|
||||
}
|
||||
|
||||
// 更新 API 错误日志的处理状态
|
||||
export const updateApiErrorLogPage = (id: number, processStatus: number) => {
|
||||
return request.put({
|
||||
url: '/infra/api-error-log/update-status?id=' + id + '&processStatus=' + processStatus
|
||||
})
|
||||
}
|
||||
|
||||
// 导出API 访问日志
|
||||
export const exportApiErrorLog = (params) => {
|
||||
return request.download({
|
||||
url: '/infra/api-error-log/export-excel',
|
||||
params
|
||||
})
|
||||
}
|
||||
122
src/api/infra/codegen/index.ts
Normal file
122
src/api/infra/codegen/index.ts
Normal file
@ -0,0 +1,122 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export type CodegenTableVO = {
|
||||
id: number
|
||||
tableId: number
|
||||
isParentMenuIdValid: boolean
|
||||
dataSourceConfigId: number
|
||||
scene: number
|
||||
tableName: string
|
||||
tableComment: string
|
||||
remark: string
|
||||
moduleName: string
|
||||
businessName: string
|
||||
className: string
|
||||
classComment: string
|
||||
author: string
|
||||
createTime: Date
|
||||
updateTime: Date
|
||||
templateType: number
|
||||
parentMenuId: number
|
||||
}
|
||||
|
||||
export type CodegenColumnVO = {
|
||||
id: number
|
||||
tableId: number
|
||||
columnName: string
|
||||
dataType: string
|
||||
columnComment: string
|
||||
nullable: number
|
||||
primaryKey: number
|
||||
ordinalPosition: number
|
||||
javaType: string
|
||||
javaField: string
|
||||
dictType: string
|
||||
example: string
|
||||
createOperation: number
|
||||
updateOperation: number
|
||||
listOperation: number
|
||||
listOperationCondition: string
|
||||
listOperationResult: number
|
||||
htmlType: string
|
||||
}
|
||||
|
||||
export type DatabaseTableVO = {
|
||||
name: string
|
||||
comment: string
|
||||
}
|
||||
|
||||
export type CodegenDetailVO = {
|
||||
table: CodegenTableVO
|
||||
columns: CodegenColumnVO[]
|
||||
}
|
||||
|
||||
export type CodegenPreviewVO = {
|
||||
filePath: string
|
||||
code: string
|
||||
}
|
||||
|
||||
export type CodegenUpdateReqVO = {
|
||||
table: CodegenTableVO | any
|
||||
columns: CodegenColumnVO[]
|
||||
}
|
||||
|
||||
export type CodegenCreateListReqVO = {
|
||||
dataSourceConfigId: number
|
||||
tableNames: string[]
|
||||
}
|
||||
|
||||
// 查询列表代码生成表定义
|
||||
export const getCodegenTableList = (dataSourceConfigId: number) => {
|
||||
return request.get({ url: '/infra/codegen/table/list?dataSourceConfigId=' + dataSourceConfigId })
|
||||
}
|
||||
|
||||
// 查询列表代码生成表定义
|
||||
export const getCodegenTablePage = (params: PageParam) => {
|
||||
return request.get({ url: '/infra/codegen/table/page', params })
|
||||
}
|
||||
|
||||
// 查询详情代码生成表定义
|
||||
export const getCodegenTable = (id: number) => {
|
||||
return request.get({ url: '/infra/codegen/detail?tableId=' + id })
|
||||
}
|
||||
|
||||
// 新增代码生成表定义
|
||||
export const createCodegenTable = (data: CodegenCreateListReqVO) => {
|
||||
return request.post({ url: '/infra/codegen/create', data })
|
||||
}
|
||||
|
||||
// 修改代码生成表定义
|
||||
export const updateCodegenTable = (data: CodegenUpdateReqVO) => {
|
||||
return request.put({ url: '/infra/codegen/update', data })
|
||||
}
|
||||
|
||||
// 基于数据库的表结构,同步数据库的表和字段定义
|
||||
export const syncCodegenFromDB = (id: number) => {
|
||||
return request.put({ url: '/infra/codegen/sync-from-db?tableId=' + id })
|
||||
}
|
||||
|
||||
// 预览生成代码
|
||||
export const previewCodegen = (id: number) => {
|
||||
return request.get({ url: '/infra/codegen/preview?tableId=' + id })
|
||||
}
|
||||
|
||||
// 下载生成代码
|
||||
export const downloadCodegen = (id: number) => {
|
||||
return request.download({ url: '/infra/codegen/download?tableId=' + id })
|
||||
}
|
||||
|
||||
// 获得表定义
|
||||
export const getSchemaTableList = (params) => {
|
||||
return request.get({ url: '/infra/codegen/db/table/list', params })
|
||||
}
|
||||
|
||||
// 基于数据库的表结构,创建代码生成器的表定义
|
||||
export const createCodegenList = (data) => {
|
||||
return request.post({ url: '/infra/codegen/create-list', data })
|
||||
}
|
||||
|
||||
// 删除代码生成表定义
|
||||
export const deleteCodegenTable = (id: number) => {
|
||||
return request.delete({ url: '/infra/codegen/delete?tableId=' + id })
|
||||
}
|
||||
48
src/api/infra/config/index.ts
Normal file
48
src/api/infra/config/index.ts
Normal file
@ -0,0 +1,48 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface ConfigVO {
|
||||
id: number | undefined
|
||||
category: string
|
||||
name: string
|
||||
key: string
|
||||
value: string
|
||||
type: number
|
||||
visible: boolean
|
||||
remark: string
|
||||
createTime: Date
|
||||
}
|
||||
|
||||
// 查询参数列表
|
||||
export const getConfigPage = (params: PageParam) => {
|
||||
return request.get({ url: '/infra/config/page', params })
|
||||
}
|
||||
|
||||
// 查询参数详情
|
||||
export const getConfig = (id: number) => {
|
||||
return request.get({ url: '/infra/config/get?id=' + id })
|
||||
}
|
||||
|
||||
// 根据参数键名查询参数值
|
||||
export const getConfigKey = (configKey: string) => {
|
||||
return request.get({ url: '/infra/config/get-value-by-key?key=' + configKey })
|
||||
}
|
||||
|
||||
// 新增参数
|
||||
export const createConfig = (data: ConfigVO) => {
|
||||
return request.post({ url: '/infra/config/create', data })
|
||||
}
|
||||
|
||||
// 修改参数
|
||||
export const updateConfig = (data: ConfigVO) => {
|
||||
return request.put({ url: '/infra/config/update', data })
|
||||
}
|
||||
|
||||
// 删除参数
|
||||
export const deleteConfig = (id: number) => {
|
||||
return request.delete({ url: '/infra/config/delete?id=' + id })
|
||||
}
|
||||
|
||||
// 导出参数
|
||||
export const exportConfig = (params) => {
|
||||
return request.download({ url: '/infra/config/export', params })
|
||||
}
|
||||
35
src/api/infra/dataSourceConfig/index.ts
Normal file
35
src/api/infra/dataSourceConfig/index.ts
Normal file
@ -0,0 +1,35 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface DataSourceConfigVO {
|
||||
id: number | undefined
|
||||
name: string
|
||||
url: string
|
||||
username: string
|
||||
password: string
|
||||
createTime?: Date
|
||||
}
|
||||
|
||||
// 新增数据源配置
|
||||
export const createDataSourceConfig = (data: DataSourceConfigVO) => {
|
||||
return request.post({ url: '/infra/data-source-config/create', data })
|
||||
}
|
||||
|
||||
// 修改数据源配置
|
||||
export const updateDataSourceConfig = (data: DataSourceConfigVO) => {
|
||||
return request.put({ url: '/infra/data-source-config/update', data })
|
||||
}
|
||||
|
||||
// 删除数据源配置
|
||||
export const deleteDataSourceConfig = (id: number) => {
|
||||
return request.delete({ url: '/infra/data-source-config/delete?id=' + id })
|
||||
}
|
||||
|
||||
// 查询数据源配置详情
|
||||
export const getDataSourceConfig = (id: number) => {
|
||||
return request.get({ url: '/infra/data-source-config/get?id=' + id })
|
||||
}
|
||||
|
||||
// 查询数据源配置列表
|
||||
export const getDataSourceConfigList = () => {
|
||||
return request.get({ url: '/infra/data-source-config/list' })
|
||||
}
|
||||
40
src/api/infra/demo/demo01/index.ts
Normal file
40
src/api/infra/demo/demo01/index.ts
Normal file
@ -0,0 +1,40 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface Demo01ContactVO {
|
||||
id: number
|
||||
name: string
|
||||
sex: number
|
||||
birthday: Date
|
||||
description: string
|
||||
avatar: string
|
||||
}
|
||||
|
||||
// 查询示例联系人分页
|
||||
export const getDemo01ContactPage = async (params) => {
|
||||
return await request.get({ url: `/infra/demo01-contact/page`, params })
|
||||
}
|
||||
|
||||
// 查询示例联系人详情
|
||||
export const getDemo01Contact = async (id: number) => {
|
||||
return await request.get({ url: `/infra/demo01-contact/get?id=` + id })
|
||||
}
|
||||
|
||||
// 新增示例联系人
|
||||
export const createDemo01Contact = async (data: Demo01ContactVO) => {
|
||||
return await request.post({ url: `/infra/demo01-contact/create`, data })
|
||||
}
|
||||
|
||||
// 修改示例联系人
|
||||
export const updateDemo01Contact = async (data: Demo01ContactVO) => {
|
||||
return await request.put({ url: `/infra/demo01-contact/update`, data })
|
||||
}
|
||||
|
||||
// 删除示例联系人
|
||||
export const deleteDemo01Contact = async (id: number) => {
|
||||
return await request.delete({ url: `/infra/demo01-contact/delete?id=` + id })
|
||||
}
|
||||
|
||||
// 导出示例联系人 Excel
|
||||
export const exportDemo01Contact = async (params) => {
|
||||
return await request.download({ url: `/infra/demo01-contact/export-excel`, params })
|
||||
}
|
||||
37
src/api/infra/demo/demo02/index.ts
Normal file
37
src/api/infra/demo/demo02/index.ts
Normal file
@ -0,0 +1,37 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface Demo02CategoryVO {
|
||||
id: number
|
||||
name: string
|
||||
parentId: number
|
||||
}
|
||||
|
||||
// 查询示例分类列表
|
||||
export const getDemo02CategoryList = async () => {
|
||||
return await request.get({ url: `/infra/demo02-category/list` })
|
||||
}
|
||||
|
||||
// 查询示例分类详情
|
||||
export const getDemo02Category = async (id: number) => {
|
||||
return await request.get({ url: `/infra/demo02-category/get?id=` + id })
|
||||
}
|
||||
|
||||
// 新增示例分类
|
||||
export const createDemo02Category = async (data: Demo02CategoryVO) => {
|
||||
return await request.post({ url: `/infra/demo02-category/create`, data })
|
||||
}
|
||||
|
||||
// 修改示例分类
|
||||
export const updateDemo02Category = async (data: Demo02CategoryVO) => {
|
||||
return await request.put({ url: `/infra/demo02-category/update`, data })
|
||||
}
|
||||
|
||||
// 删除示例分类
|
||||
export const deleteDemo02Category = async (id: number) => {
|
||||
return await request.delete({ url: `/infra/demo02-category/delete?id=` + id })
|
||||
}
|
||||
|
||||
// 导出示例分类 Excel
|
||||
export const exportDemo02Category = async (params) => {
|
||||
return await request.download({ url: `/infra/demo02-category/export-excel`, params })
|
||||
}
|
||||
91
src/api/infra/demo/demo03/erp/index.ts
Normal file
91
src/api/infra/demo/demo03/erp/index.ts
Normal file
@ -0,0 +1,91 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface Demo03StudentVO {
|
||||
id: number
|
||||
name: string
|
||||
sex: number
|
||||
birthday: Date
|
||||
description: string
|
||||
}
|
||||
|
||||
// 查询学生分页
|
||||
export const getDemo03StudentPage = async (params) => {
|
||||
return await request.get({ url: `/infra/demo03-student/page`, params })
|
||||
}
|
||||
|
||||
// 查询学生详情
|
||||
export const getDemo03Student = async (id: number) => {
|
||||
return await request.get({ url: `/infra/demo03-student/get?id=` + id })
|
||||
}
|
||||
|
||||
// 新增学生
|
||||
export const createDemo03Student = async (data: Demo03StudentVO) => {
|
||||
return await request.post({ url: `/infra/demo03-student/create`, data })
|
||||
}
|
||||
|
||||
// 修改学生
|
||||
export const updateDemo03Student = async (data: Demo03StudentVO) => {
|
||||
return await request.put({ url: `/infra/demo03-student/update`, data })
|
||||
}
|
||||
|
||||
// 删除学生
|
||||
export const deleteDemo03Student = async (id: number) => {
|
||||
return await request.delete({ url: `/infra/demo03-student/delete?id=` + id })
|
||||
}
|
||||
|
||||
// 导出学生 Excel
|
||||
export const exportDemo03Student = async (params) => {
|
||||
return await request.download({ url: `/infra/demo03-student/export-excel`, params })
|
||||
}
|
||||
|
||||
// ==================== 子表(学生课程) ====================
|
||||
|
||||
// 获得学生课程分页
|
||||
export const getDemo03CoursePage = async (params) => {
|
||||
return await request.get({ url: `/infra/demo03-student/demo03-course/page`, params })
|
||||
}
|
||||
// 新增学生课程
|
||||
export const createDemo03Course = async (data) => {
|
||||
return await request.post({ url: `/infra/demo03-student/demo03-course/create`, data })
|
||||
}
|
||||
|
||||
// 修改学生课程
|
||||
export const updateDemo03Course = async (data) => {
|
||||
return await request.put({ url: `/infra/demo03-student/demo03-course/update`, data })
|
||||
}
|
||||
|
||||
// 删除学生课程
|
||||
export const deleteDemo03Course = async (id: number) => {
|
||||
return await request.delete({ url: `/infra/demo03-student/demo03-course/delete?id=` + id })
|
||||
}
|
||||
|
||||
// 获得学生课程
|
||||
export const getDemo03Course = async (id: number) => {
|
||||
return await request.get({ url: `/infra/demo03-student/demo03-course/get?id=` + id })
|
||||
}
|
||||
|
||||
// ==================== 子表(学生班级) ====================
|
||||
|
||||
// 获得学生班级分页
|
||||
export const getDemo03GradePage = async (params) => {
|
||||
return await request.get({ url: `/infra/demo03-student/demo03-grade/page`, params })
|
||||
}
|
||||
// 新增学生班级
|
||||
export const createDemo03Grade = async (data) => {
|
||||
return await request.post({ url: `/infra/demo03-student/demo03-grade/create`, data })
|
||||
}
|
||||
|
||||
// 修改学生班级
|
||||
export const updateDemo03Grade = async (data) => {
|
||||
return await request.put({ url: `/infra/demo03-student/demo03-grade/update`, data })
|
||||
}
|
||||
|
||||
// 删除学生班级
|
||||
export const deleteDemo03Grade = async (id: number) => {
|
||||
return await request.delete({ url: `/infra/demo03-student/demo03-grade/delete?id=` + id })
|
||||
}
|
||||
|
||||
// 获得学生班级
|
||||
export const getDemo03Grade = async (id: number) => {
|
||||
return await request.get({ url: `/infra/demo03-student/demo03-grade/get?id=` + id })
|
||||
}
|
||||
57
src/api/infra/demo/demo03/inner/index.ts
Normal file
57
src/api/infra/demo/demo03/inner/index.ts
Normal file
@ -0,0 +1,57 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface Demo03StudentVO {
|
||||
id: number
|
||||
name: string
|
||||
sex: number
|
||||
birthday: Date
|
||||
description: string
|
||||
}
|
||||
|
||||
// 查询学生分页
|
||||
export const getDemo03StudentPage = async (params) => {
|
||||
return await request.get({ url: `/infra/demo03-student/page`, params })
|
||||
}
|
||||
|
||||
// 查询学生详情
|
||||
export const getDemo03Student = async (id: number) => {
|
||||
return await request.get({ url: `/infra/demo03-student/get?id=` + id })
|
||||
}
|
||||
|
||||
// 新增学生
|
||||
export const createDemo03Student = async (data: Demo03StudentVO) => {
|
||||
return await request.post({ url: `/infra/demo03-student/create`, data })
|
||||
}
|
||||
|
||||
// 修改学生
|
||||
export const updateDemo03Student = async (data: Demo03StudentVO) => {
|
||||
return await request.put({ url: `/infra/demo03-student/update`, data })
|
||||
}
|
||||
|
||||
// 删除学生
|
||||
export const deleteDemo03Student = async (id: number) => {
|
||||
return await request.delete({ url: `/infra/demo03-student/delete?id=` + id })
|
||||
}
|
||||
|
||||
// 导出学生 Excel
|
||||
export const exportDemo03Student = async (params) => {
|
||||
return await request.download({ url: `/infra/demo03-student/export-excel`, params })
|
||||
}
|
||||
|
||||
// ==================== 子表(学生课程) ====================
|
||||
|
||||
// 获得学生课程列表
|
||||
export const getDemo03CourseListByStudentId = async (studentId) => {
|
||||
return await request.get({
|
||||
url: `/infra/demo03-student/demo03-course/list-by-student-id?studentId=` + studentId
|
||||
})
|
||||
}
|
||||
|
||||
// ==================== 子表(学生班级) ====================
|
||||
|
||||
// 获得学生班级
|
||||
export const getDemo03GradeByStudentId = async (studentId) => {
|
||||
return await request.get({
|
||||
url: `/infra/demo03-student/demo03-grade/get-by-student-id?studentId=` + studentId
|
||||
})
|
||||
}
|
||||
57
src/api/infra/demo/demo03/normal/index.ts
Normal file
57
src/api/infra/demo/demo03/normal/index.ts
Normal file
@ -0,0 +1,57 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface Demo03StudentVO {
|
||||
id: number
|
||||
name: string
|
||||
sex: number
|
||||
birthday: Date
|
||||
description: string
|
||||
}
|
||||
|
||||
// 查询学生分页
|
||||
export const getDemo03StudentPage = async (params) => {
|
||||
return await request.get({ url: `/infra/demo03-student/page`, params })
|
||||
}
|
||||
|
||||
// 查询学生详情
|
||||
export const getDemo03Student = async (id: number) => {
|
||||
return await request.get({ url: `/infra/demo03-student/get?id=` + id })
|
||||
}
|
||||
|
||||
// 新增学生
|
||||
export const createDemo03Student = async (data: Demo03StudentVO) => {
|
||||
return await request.post({ url: `/infra/demo03-student/create`, data })
|
||||
}
|
||||
|
||||
// 修改学生
|
||||
export const updateDemo03Student = async (data: Demo03StudentVO) => {
|
||||
return await request.put({ url: `/infra/demo03-student/update`, data })
|
||||
}
|
||||
|
||||
// 删除学生
|
||||
export const deleteDemo03Student = async (id: number) => {
|
||||
return await request.delete({ url: `/infra/demo03-student/delete?id=` + id })
|
||||
}
|
||||
|
||||
// 导出学生 Excel
|
||||
export const exportDemo03Student = async (params) => {
|
||||
return await request.download({ url: `/infra/demo03-student/export-excel`, params })
|
||||
}
|
||||
|
||||
// ==================== 子表(学生课程) ====================
|
||||
|
||||
// 获得学生课程列表
|
||||
export const getDemo03CourseListByStudentId = async (studentId) => {
|
||||
return await request.get({
|
||||
url: `/infra/demo03-student/demo03-course/list-by-student-id?studentId=` + studentId
|
||||
})
|
||||
}
|
||||
|
||||
// ==================== 子表(学生班级) ====================
|
||||
|
||||
// 获得学生班级
|
||||
export const getDemo03GradeByStudentId = async (studentId) => {
|
||||
return await request.get({
|
||||
url: `/infra/demo03-student/demo03-grade/get-by-student-id?studentId=` + studentId
|
||||
})
|
||||
}
|
||||
58
src/api/infra/file/index.ts
Normal file
58
src/api/infra/file/index.ts
Normal file
@ -0,0 +1,58 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface FilePageReqVO extends PageParam {
|
||||
path?: string
|
||||
type?: string
|
||||
createTime?: Date[]
|
||||
}
|
||||
|
||||
// 文件预签名地址 Response VO
|
||||
export interface FilePresignedUrlRespVO {
|
||||
// 文件配置编号
|
||||
configId: number
|
||||
// 文件上传 URL
|
||||
uploadUrl: string
|
||||
// 文件 URL
|
||||
url: string
|
||||
}
|
||||
|
||||
// 查询文件列表
|
||||
export const getFilePage = (params: FilePageReqVO) => {
|
||||
return request.get({ url: '/infra/file/page', params })
|
||||
}
|
||||
|
||||
// 删除文件
|
||||
export const deleteFile = (id: number) => {
|
||||
return request.delete({ url: '/infra/file/delete?id=' + id })
|
||||
}
|
||||
|
||||
// 删除文件,根据路径
|
||||
export const deleteFileByPath = (path: string) => {
|
||||
return request.post({
|
||||
url: '/infra/file/deleteByPath', data: {
|
||||
path: path
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 获取文件预签名地址
|
||||
export const getFilePresignedUrl = (path: string) => {
|
||||
return request.get<FilePresignedUrlRespVO>({
|
||||
url: '/infra/file/presigned-url',
|
||||
params: { path }
|
||||
})
|
||||
}
|
||||
|
||||
// 创建文件
|
||||
export const createFile = (data: any) => {
|
||||
return request.post({ url: '/infra/file/create', data })
|
||||
}
|
||||
|
||||
// 上传文件
|
||||
export const updateFile = (data: any, onProgress?: (progressEvent: any) => void) => {
|
||||
return request.upload({
|
||||
url: '/infra/file/upload',
|
||||
data,
|
||||
onUploadProgress: onProgress
|
||||
})
|
||||
}
|
||||
61
src/api/infra/fileConfig/index.ts
Normal file
61
src/api/infra/fileConfig/index.ts
Normal file
@ -0,0 +1,61 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface FileClientConfig {
|
||||
basePath: string
|
||||
host?: string
|
||||
port?: number
|
||||
username?: string
|
||||
password?: string
|
||||
mode?: string
|
||||
endpoint?: string
|
||||
bucket?: string
|
||||
accessKey?: string
|
||||
accessSecret?: string
|
||||
domain: string
|
||||
}
|
||||
|
||||
export interface FileConfigVO {
|
||||
id: number
|
||||
name: string
|
||||
storage?: number
|
||||
master: boolean
|
||||
visible: boolean
|
||||
config: FileClientConfig
|
||||
remark: string
|
||||
createTime: Date
|
||||
}
|
||||
|
||||
// 查询文件配置列表
|
||||
export const getFileConfigPage = (params: PageParam) => {
|
||||
return request.get({ url: '/infra/file-config/page', params })
|
||||
}
|
||||
|
||||
// 查询文件配置详情
|
||||
export const getFileConfig = (id: number) => {
|
||||
return request.get({ url: '/infra/file-config/get?id=' + id })
|
||||
}
|
||||
|
||||
// 更新文件配置为主配置
|
||||
export const updateFileConfigMaster = (id: number) => {
|
||||
return request.put({ url: '/infra/file-config/update-master?id=' + id })
|
||||
}
|
||||
|
||||
// 新增文件配置
|
||||
export const createFileConfig = (data: FileConfigVO) => {
|
||||
return request.post({ url: '/infra/file-config/create', data })
|
||||
}
|
||||
|
||||
// 修改文件配置
|
||||
export const updateFileConfig = (data: FileConfigVO) => {
|
||||
return request.put({ url: '/infra/file-config/update', data })
|
||||
}
|
||||
|
||||
// 删除文件配置
|
||||
export const deleteFileConfig = (id: number) => {
|
||||
return request.delete({ url: '/infra/file-config/delete?id=' + id })
|
||||
}
|
||||
|
||||
// 测试文件配置
|
||||
export const testFileConfig = (id: number) => {
|
||||
return request.get({ url: '/infra/file-config/test?id=' + id })
|
||||
}
|
||||
63
src/api/infra/job/index.ts
Normal file
63
src/api/infra/job/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface JobVO {
|
||||
id: number
|
||||
name: string
|
||||
status: number
|
||||
handlerName: string
|
||||
handlerParam: string
|
||||
cronExpression: string
|
||||
retryCount: number
|
||||
retryInterval: number
|
||||
monitorTimeout: number
|
||||
createTime: Date
|
||||
}
|
||||
|
||||
// 任务列表
|
||||
export const getJobPage = (params: PageParam) => {
|
||||
return request.get({ url: '/infra/job/page', params })
|
||||
}
|
||||
|
||||
// 任务详情
|
||||
export const getJob = (id: number) => {
|
||||
return request.get({ url: '/infra/job/get?id=' + id })
|
||||
}
|
||||
|
||||
// 新增任务
|
||||
export const createJob = (data: JobVO) => {
|
||||
return request.post({ url: '/infra/job/create', data })
|
||||
}
|
||||
|
||||
// 修改定时任务调度
|
||||
export const updateJob = (data: JobVO) => {
|
||||
return request.put({ url: '/infra/job/update', data })
|
||||
}
|
||||
|
||||
// 删除定时任务调度
|
||||
export const deleteJob = (id: number) => {
|
||||
return request.delete({ url: '/infra/job/delete?id=' + id })
|
||||
}
|
||||
|
||||
// 导出定时任务调度
|
||||
export const exportJob = (params) => {
|
||||
return request.download({ url: '/infra/job/export-excel', params })
|
||||
}
|
||||
|
||||
// 任务状态修改
|
||||
export const updateJobStatus = (id: number, status: number) => {
|
||||
const params = {
|
||||
id,
|
||||
status
|
||||
}
|
||||
return request.put({ url: '/infra/job/update-status', params })
|
||||
}
|
||||
|
||||
// 定时任务立即执行一次
|
||||
export const runJob = (id: number) => {
|
||||
return request.put({ url: '/infra/job/trigger?id=' + id })
|
||||
}
|
||||
|
||||
// 获得定时任务的下 n 次执行时间
|
||||
export const getJobNextTimes = (id: number) => {
|
||||
return request.get({ url: '/infra/job/get_next_times?id=' + id })
|
||||
}
|
||||
34
src/api/infra/jobLog/index.ts
Normal file
34
src/api/infra/jobLog/index.ts
Normal file
@ -0,0 +1,34 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface JobLogVO {
|
||||
id: number
|
||||
jobId: number
|
||||
handlerName: string
|
||||
handlerParam: string
|
||||
cronExpression: string
|
||||
executeIndex: string
|
||||
beginTime: Date
|
||||
endTime: Date
|
||||
duration: string
|
||||
status: number
|
||||
createTime: string
|
||||
result: string
|
||||
}
|
||||
|
||||
// 任务日志列表
|
||||
export const getJobLogPage = (params: PageParam) => {
|
||||
return request.get({ url: '/infra/job-log/page', params })
|
||||
}
|
||||
|
||||
// 任务日志详情
|
||||
export const getJobLog = (id: number) => {
|
||||
return request.get({ url: '/infra/job-log/get?id=' + id })
|
||||
}
|
||||
|
||||
// 导出定时任务日志
|
||||
export const exportJobLog = (params) => {
|
||||
return request.download({
|
||||
url: '/infra/job-log/export-excel',
|
||||
params
|
||||
})
|
||||
}
|
||||
8
src/api/infra/redis/index.ts
Normal file
8
src/api/infra/redis/index.ts
Normal file
@ -0,0 +1,8 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
/**
|
||||
* 获取redis 监控信息
|
||||
*/
|
||||
export const getCache = () => {
|
||||
return request.get({ url: '/infra/redis/get-monitor-info' })
|
||||
}
|
||||
176
src/api/infra/redis/types.ts
Normal file
176
src/api/infra/redis/types.ts
Normal file
@ -0,0 +1,176 @@
|
||||
export interface RedisMonitorInfoVO {
|
||||
info: RedisInfoVO
|
||||
dbSize: number
|
||||
commandStats: RedisCommandStatsVO[]
|
||||
}
|
||||
|
||||
export interface RedisInfoVO {
|
||||
io_threaded_reads_processed: string
|
||||
tracking_clients: string
|
||||
uptime_in_seconds: string
|
||||
cluster_connections: string
|
||||
current_cow_size: string
|
||||
maxmemory_human: string
|
||||
aof_last_cow_size: string
|
||||
master_replid2: string
|
||||
mem_replication_backlog: string
|
||||
aof_rewrite_scheduled: string
|
||||
total_net_input_bytes: string
|
||||
rss_overhead_ratio: string
|
||||
hz: string
|
||||
current_cow_size_age: string
|
||||
redis_build_id: string
|
||||
errorstat_BUSYGROUP: string
|
||||
aof_last_bgrewrite_status: string
|
||||
multiplexing_api: string
|
||||
client_recent_max_output_buffer: string
|
||||
allocator_resident: string
|
||||
mem_fragmentation_bytes: string
|
||||
aof_current_size: string
|
||||
repl_backlog_first_byte_offset: string
|
||||
tracking_total_prefixes: string
|
||||
redis_mode: string
|
||||
redis_git_dirty: string
|
||||
aof_delayed_fsync: string
|
||||
allocator_rss_bytes: string
|
||||
repl_backlog_histlen: string
|
||||
io_threads_active: string
|
||||
rss_overhead_bytes: string
|
||||
total_system_memory: string
|
||||
loading: string
|
||||
evicted_keys: string
|
||||
maxclients: string
|
||||
cluster_enabled: string
|
||||
redis_version: string
|
||||
repl_backlog_active: string
|
||||
mem_aof_buffer: string
|
||||
allocator_frag_bytes: string
|
||||
io_threaded_writes_processed: string
|
||||
instantaneous_ops_per_sec: string
|
||||
used_memory_human: string
|
||||
total_error_replies: string
|
||||
role: string
|
||||
maxmemory: string
|
||||
used_memory_lua: string
|
||||
rdb_current_bgsave_time_sec: string
|
||||
used_memory_startup: string
|
||||
used_cpu_sys_main_thread: string
|
||||
lazyfree_pending_objects: string
|
||||
aof_pending_bio_fsync: string
|
||||
used_memory_dataset_perc: string
|
||||
allocator_frag_ratio: string
|
||||
arch_bits: string
|
||||
used_cpu_user_main_thread: string
|
||||
mem_clients_normal: string
|
||||
expired_time_cap_reached_count: string
|
||||
unexpected_error_replies: string
|
||||
mem_fragmentation_ratio: string
|
||||
aof_last_rewrite_time_sec: string
|
||||
master_replid: string
|
||||
aof_rewrite_in_progress: string
|
||||
lru_clock: string
|
||||
maxmemory_policy: string
|
||||
run_id: string
|
||||
latest_fork_usec: string
|
||||
tracking_total_items: string
|
||||
total_commands_processed: string
|
||||
expired_keys: string
|
||||
errorstat_ERR: string
|
||||
used_memory: string
|
||||
module_fork_in_progress: string
|
||||
errorstat_WRONGPASS: string
|
||||
aof_buffer_length: string
|
||||
dump_payload_sanitizations: string
|
||||
mem_clients_slaves: string
|
||||
keyspace_misses: string
|
||||
server_time_usec: string
|
||||
executable: string
|
||||
lazyfreed_objects: string
|
||||
db0: string
|
||||
used_memory_peak_human: string
|
||||
keyspace_hits: string
|
||||
rdb_last_cow_size: string
|
||||
aof_pending_rewrite: string
|
||||
used_memory_overhead: string
|
||||
active_defrag_hits: string
|
||||
tcp_port: string
|
||||
uptime_in_days: string
|
||||
used_memory_peak_perc: string
|
||||
current_save_keys_processed: string
|
||||
blocked_clients: string
|
||||
total_reads_processed: string
|
||||
expire_cycle_cpu_milliseconds: string
|
||||
sync_partial_err: string
|
||||
used_memory_scripts_human: string
|
||||
aof_current_rewrite_time_sec: string
|
||||
aof_enabled: string
|
||||
process_supervised: string
|
||||
master_repl_offset: string
|
||||
used_memory_dataset: string
|
||||
used_cpu_user: string
|
||||
rdb_last_bgsave_status: string
|
||||
tracking_total_keys: string
|
||||
atomicvar_api: string
|
||||
allocator_rss_ratio: string
|
||||
client_recent_max_input_buffer: string
|
||||
clients_in_timeout_table: string
|
||||
aof_last_write_status: string
|
||||
mem_allocator: string
|
||||
used_memory_scripts: string
|
||||
used_memory_peak: string
|
||||
process_id: string
|
||||
master_failover_state: string
|
||||
errorstat_NOAUTH: string
|
||||
used_cpu_sys: string
|
||||
repl_backlog_size: string
|
||||
connected_slaves: string
|
||||
current_save_keys_total: string
|
||||
gcc_version: string
|
||||
total_system_memory_human: string
|
||||
sync_full: string
|
||||
connected_clients: string
|
||||
module_fork_last_cow_size: string
|
||||
total_writes_processed: string
|
||||
allocator_active: string
|
||||
total_net_output_bytes: string
|
||||
pubsub_channels: string
|
||||
current_fork_perc: string
|
||||
active_defrag_key_hits: string
|
||||
rdb_changes_since_last_save: string
|
||||
instantaneous_input_kbps: string
|
||||
used_memory_rss_human: string
|
||||
configured_hz: string
|
||||
expired_stale_perc: string
|
||||
active_defrag_misses: string
|
||||
used_cpu_sys_children: string
|
||||
number_of_cached_scripts: string
|
||||
sync_partial_ok: string
|
||||
used_memory_lua_human: string
|
||||
rdb_last_save_time: string
|
||||
pubsub_patterns: string
|
||||
slave_expires_tracked_keys: string
|
||||
redis_git_sha1: string
|
||||
used_memory_rss: string
|
||||
rdb_last_bgsave_time_sec: string
|
||||
os: string
|
||||
mem_not_counted_for_evict: string
|
||||
active_defrag_running: string
|
||||
rejected_connections: string
|
||||
aof_rewrite_buffer_length: string
|
||||
total_forks: string
|
||||
active_defrag_key_misses: string
|
||||
allocator_allocated: string
|
||||
aof_base_size: string
|
||||
instantaneous_output_kbps: string
|
||||
second_repl_offset: string
|
||||
rdb_bgsave_in_progress: string
|
||||
used_cpu_user_children: string
|
||||
total_connections_received: string
|
||||
migrate_cached_sockets: string
|
||||
}
|
||||
|
||||
export interface RedisCommandStatsVO {
|
||||
command: string
|
||||
calls: number
|
||||
usec: number
|
||||
}
|
||||
97
src/api/login/index.ts
Normal file
97
src/api/login/index.ts
Normal file
@ -0,0 +1,97 @@
|
||||
import request from '@/config/axios'
|
||||
import { getRefreshToken } from '@/utils/auth'
|
||||
import type { RegisterVO, UserLoginVO } from './types'
|
||||
|
||||
export interface SmsCodeVO {
|
||||
mobile: string
|
||||
scene: number
|
||||
}
|
||||
|
||||
export interface SmsLoginVO {
|
||||
mobile: string
|
||||
code: string
|
||||
}
|
||||
|
||||
// 登录
|
||||
export const login = (data: UserLoginVO) => {
|
||||
return request.post({ url: '/system/auth/login', data })
|
||||
}
|
||||
|
||||
// 注册
|
||||
export const register = (data: RegisterVO) => {
|
||||
return request.post({ url: '/system/auth/register', data })
|
||||
}
|
||||
|
||||
// 使用租户名,获得租户编号
|
||||
export const getTenantIdByName = (name: string) => {
|
||||
return request.get({ url: '/system/tenant/get-id-by-name?name=' + name })
|
||||
}
|
||||
|
||||
// 使用租户域名,获得租户信息
|
||||
export const getTenantByWebsite = (website: string) => {
|
||||
return request.get({ url: '/system/tenant/get-by-website?website=' + website })
|
||||
}
|
||||
|
||||
// 登出
|
||||
export const loginOut = () => {
|
||||
return request.post({ url: '/system/auth/logout' })
|
||||
}
|
||||
|
||||
// 获取用户权限信息
|
||||
export const getInfo = () => {
|
||||
return request.get({ url: '/system/auth/get-permission-info' })
|
||||
}
|
||||
|
||||
//获取登录验证码
|
||||
export const sendSmsCode = (data: SmsCodeVO) => {
|
||||
return request.post({ url: '/system/auth/send-sms-code', data })
|
||||
}
|
||||
|
||||
//获取邮箱验证码
|
||||
export const sendEmailCode = (data: SmsCodeVO) => {
|
||||
return request.post({ url: '/system/auth/send-email-code', data })
|
||||
}
|
||||
|
||||
// 短信验证码登录
|
||||
export const smsLogin = (data: SmsLoginVO) => {
|
||||
return request.post({ url: '/system/auth/sms-login', data })
|
||||
}
|
||||
|
||||
// 社交快捷登录,使用 code 授权码
|
||||
export function socialLogin(type: string, code: string, state: string) {
|
||||
return request.post({
|
||||
url: '/system/auth/social-login',
|
||||
data: {
|
||||
type,
|
||||
code,
|
||||
state
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// 社交授权的跳转
|
||||
export const socialAuthRedirect = (type: number, redirectUri: string) => {
|
||||
return request.get({
|
||||
url: '/system/auth/social-auth-redirect?type=' + type + '&redirectUri=' + redirectUri
|
||||
})
|
||||
}
|
||||
// 获取验证图片以及 token
|
||||
export const getCode = (data: any) => {
|
||||
debugger
|
||||
return request.postOriginal({ url: 'system/captcha/get', data })
|
||||
}
|
||||
|
||||
// 滑动或者点选验证
|
||||
export const reqCheck = (data: any) => {
|
||||
return request.postOriginal({ url: 'system/captcha/check', data })
|
||||
}
|
||||
|
||||
// 通过短信重置密码
|
||||
export const smsResetPassword = (data: any) => {
|
||||
return request.post({ url: '/system/auth/reset-password', data })
|
||||
}
|
||||
|
||||
// 更新License
|
||||
export const updateLicense = (data: { license: string; captchaVerification?: string }) => {
|
||||
return request.post({ url: '/system/auth/update-license', data })
|
||||
}
|
||||
41
src/api/login/oauth2/index.ts
Normal file
41
src/api/login/oauth2/index.ts
Normal file
@ -0,0 +1,41 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 获得授权信息
|
||||
export const getAuthorize = (clientId: string) => {
|
||||
return request.get({ url: '/system/oauth2/authorize?clientId=' + clientId })
|
||||
}
|
||||
|
||||
// 发起授权
|
||||
export const authorize = (
|
||||
responseType: string,
|
||||
clientId: string,
|
||||
redirectUri: string,
|
||||
state: string,
|
||||
autoApprove: boolean,
|
||||
checkedScopes: string[],
|
||||
uncheckedScopes: string[]
|
||||
) => {
|
||||
// 构建 scopes
|
||||
const scopes = {}
|
||||
for (const scope of checkedScopes) {
|
||||
scopes[scope] = true
|
||||
}
|
||||
for (const scope of uncheckedScopes) {
|
||||
scopes[scope] = false
|
||||
}
|
||||
// 发起请求
|
||||
return request.post({
|
||||
url: '/system/oauth2/authorize',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
params: {
|
||||
response_type: responseType,
|
||||
client_id: clientId,
|
||||
redirect_uri: redirectUri,
|
||||
state: state,
|
||||
auto_approve: autoApprove,
|
||||
scope: JSON.stringify(scopes)
|
||||
}
|
||||
})
|
||||
}
|
||||
43
src/api/login/trialApplication.ts
Normal file
43
src/api/login/trialApplication.ts
Normal file
@ -0,0 +1,43 @@
|
||||
export interface TrialSubmitPayload {
|
||||
contact: string
|
||||
company: string
|
||||
businessEmail: string
|
||||
phone: string
|
||||
wechat: string
|
||||
}
|
||||
|
||||
const TRIAL_SUBMIT_REMOTE = 'https://www.jinzhiqiaotech.com/submit'
|
||||
const TRIAL_PROXY_PATH = 'jinzhiqiao-trial-submit'
|
||||
|
||||
/**
|
||||
* 试用申请接口地址。
|
||||
* - 开发环境:走 Vite 同源路径(见 vite.config.ts proxy),避免浏览器 CORS。
|
||||
* - 生产环境:直连远程;若仍报 CORS,请在 nginx/网关将同域路径反向代理到上述地址,并设 env VITE_TRIAL_SUBMIT_URL。
|
||||
*/
|
||||
export function getTrialSubmitUrl(): string {
|
||||
const fromEnv = import.meta.env.VITE_TRIAL_SUBMIT_URL as string | undefined
|
||||
if (fromEnv) {
|
||||
return fromEnv
|
||||
}
|
||||
if (import.meta.env.DEV) {
|
||||
const base = import.meta.env.BASE_URL || '/'
|
||||
const prefix = base === '/' ? '' : String(base).replace(/\/$/, '')
|
||||
return `${prefix}/${TRIAL_PROXY_PATH}`.replace(/\/+/g, '/')
|
||||
}
|
||||
return TRIAL_SUBMIT_REMOTE
|
||||
}
|
||||
|
||||
/** 试用申请(站外接口,使用 fetch 避免走项目 axios baseURL 与拦截器) */
|
||||
export async function submitTrialApplication(payload: TrialSubmitPayload): Promise<void> {
|
||||
const res = await fetch(getTrialSubmitUrl(), {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify(payload)
|
||||
})
|
||||
if (!res.ok) {
|
||||
const text = await res.text().catch(() => '')
|
||||
throw new Error(text || `HTTP ${res.status}`)
|
||||
}
|
||||
}
|
||||
38
src/api/login/types.ts
Normal file
38
src/api/login/types.ts
Normal file
@ -0,0 +1,38 @@
|
||||
export type UserLoginVO = {
|
||||
username: string
|
||||
password: string
|
||||
captchaVerification: string
|
||||
socialType?: string
|
||||
socialCode?: string
|
||||
socialState?: string
|
||||
}
|
||||
|
||||
export type TokenType = {
|
||||
id: number // 编号
|
||||
accessToken: string // 访问令牌
|
||||
refreshToken: string // 刷新令牌
|
||||
userId: number // 用户编号
|
||||
userType: number //用户类型
|
||||
clientId: string //客户端编号
|
||||
expiresTime: number //过期时间
|
||||
}
|
||||
|
||||
export type UserVO = {
|
||||
id: number
|
||||
username: string
|
||||
nickname: string
|
||||
deptId: number
|
||||
email: string
|
||||
mobile: string
|
||||
sex: number
|
||||
avatar: string
|
||||
loginIp: string
|
||||
loginDate: string
|
||||
}
|
||||
|
||||
export type RegisterVO = {
|
||||
tenantName: string
|
||||
username: string
|
||||
password: string
|
||||
captchaVerification: string
|
||||
}
|
||||
135
src/api/sas/controlledvocabulary/index.ts
Normal file
135
src/api/sas/controlledvocabulary/index.ts
Normal file
@ -0,0 +1,135 @@
|
||||
import request from '@/config/axios'
|
||||
import { config } from '@/config/axios/config'
|
||||
|
||||
// eCTD受控词汇表版本 VO
|
||||
export interface ControlledVocabularyIndexVO {
|
||||
id: number
|
||||
type: string
|
||||
codeSetName: string
|
||||
shortName: string
|
||||
codeSystemOid: string
|
||||
filename: string
|
||||
notes: string
|
||||
version: number
|
||||
}
|
||||
|
||||
// eCTD受控词汇表明细 VO
|
||||
export interface ControlledVocabularyDetailVO {
|
||||
id: number
|
||||
indexId: number
|
||||
code: string
|
||||
description: string
|
||||
remark: string
|
||||
status: string
|
||||
}
|
||||
|
||||
// eCTD 属性值映射 VO
|
||||
export interface EctdAttributeValueMappingVO {
|
||||
id: number
|
||||
country: number
|
||||
sourceEctdType: number
|
||||
targetEctdType: number
|
||||
elementName: string
|
||||
attributeName: string
|
||||
sourceValue: string
|
||||
targetValue: string
|
||||
targetCodeSetShortName: string
|
||||
targetCodeSystemOid: string
|
||||
remark: string
|
||||
}
|
||||
|
||||
// Excel 导入参数
|
||||
export interface ControlledVocabularyImportParams {
|
||||
file: File
|
||||
headerRow: number
|
||||
codeHeader: string
|
||||
descriptionHeader: string
|
||||
remarkHeader: string
|
||||
statusHeader: string
|
||||
}
|
||||
|
||||
export const ControlledVocabularyApi = {
|
||||
getIndexPage: async (params: any) => {
|
||||
return await request.get({ url: `/sas/controlled-vocabulary/page`, params })
|
||||
},
|
||||
|
||||
getIndex: async (id: number) => {
|
||||
return await request.get({ url: `/sas/controlled-vocabulary/get?id=` + id })
|
||||
},
|
||||
|
||||
createIndex: async (data: ControlledVocabularyIndexVO) => {
|
||||
return await request.post({ url: `/sas/controlled-vocabulary/create`, data })
|
||||
},
|
||||
|
||||
updateIndex: async (data: ControlledVocabularyIndexVO) => {
|
||||
return await request.put({ url: `/sas/controlled-vocabulary/update`, data })
|
||||
},
|
||||
|
||||
deleteIndex: async (id: number) => {
|
||||
return await request.delete({ url: `/sas/controlled-vocabulary/delete?id=` + id })
|
||||
},
|
||||
|
||||
exportIndex: async (params: any) => {
|
||||
return await request.download({ url: `/sas/controlled-vocabulary/export-excel`, params })
|
||||
},
|
||||
|
||||
importFromExcel: async (params: ControlledVocabularyImportParams) => {
|
||||
const formData = new FormData()
|
||||
formData.append('file', params.file)
|
||||
formData.append('headerRow', params.headerRow.toString())
|
||||
formData.append('codeHeader', params.codeHeader)
|
||||
formData.append('descriptionHeader', params.descriptionHeader)
|
||||
formData.append('remarkHeader', params.remarkHeader)
|
||||
formData.append('statusHeader', params.statusHeader)
|
||||
return await request.post({
|
||||
url: `/sas/controlled-vocabulary/import-from-excel`,
|
||||
data: formData,
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
timeout: config.large_file_timeout
|
||||
})
|
||||
},
|
||||
|
||||
getDetailPage: async (params: any) => {
|
||||
return await request.get({ url: `/sas/controlled-vocabulary-detail/page`, params })
|
||||
},
|
||||
|
||||
getDetail: async (id: number) => {
|
||||
return await request.get({ url: `/sas/controlled-vocabulary-detail/get?id=` + id })
|
||||
},
|
||||
|
||||
createDetail: async (data: ControlledVocabularyDetailVO) => {
|
||||
return await request.post({ url: `/sas/controlled-vocabulary-detail/create`, data })
|
||||
},
|
||||
|
||||
updateDetail: async (data: ControlledVocabularyDetailVO) => {
|
||||
return await request.put({ url: `/sas/controlled-vocabulary-detail/update`, data })
|
||||
},
|
||||
|
||||
deleteDetail: async (id: number) => {
|
||||
return await request.delete({ url: `/sas/controlled-vocabulary-detail/delete?id=` + id })
|
||||
},
|
||||
|
||||
exportDetail: async (params: any) => {
|
||||
return await request.download({ url: `/sas/controlled-vocabulary-detail/export-excel`, params })
|
||||
},
|
||||
|
||||
getMappingPage: async (params: any) => {
|
||||
return await request.get({ url: `/sas/attribute-value-mapping/page`, params })
|
||||
},
|
||||
|
||||
getMapping: async (id: number) => {
|
||||
return await request.get({ url: `/sas/attribute-value-mapping/get?id=` + id })
|
||||
},
|
||||
|
||||
createMapping: async (data: EctdAttributeValueMappingVO) => {
|
||||
return await request.post({ url: `/sas/attribute-value-mapping/create`, data })
|
||||
},
|
||||
|
||||
updateMapping: async (data: EctdAttributeValueMappingVO) => {
|
||||
return await request.put({ url: `/sas/attribute-value-mapping/update`, data })
|
||||
},
|
||||
|
||||
deleteMapping: async (id: number) => {
|
||||
return await request.delete({ url: `/sas/attribute-value-mapping/delete?id=` + id })
|
||||
}
|
||||
}
|
||||
271
src/api/sas/document/document.md
Normal file
271
src/api/sas/document/document.md
Normal file
@ -0,0 +1,271 @@
|
||||
# 文档预览相关 API
|
||||
|
||||
## 获取文档信息
|
||||
- 接口: `/admin/api/shanghaijinzhiqiao/document/getDocInfo`
|
||||
- 方法: POST
|
||||
- 参数:
|
||||
```typescript
|
||||
{
|
||||
wdid: number; // 文档ID
|
||||
sfhqdqzxdrw: string; // 是否获取当前最新文档 0-否 1-是
|
||||
}
|
||||
```
|
||||
- 返回:
|
||||
```typescript
|
||||
{
|
||||
code: number; // 0-失败 1-成功
|
||||
data: {
|
||||
id: number; // 文档ID
|
||||
wdmc: string; // 文档名称
|
||||
gfwjm: string; // 规范文件名
|
||||
ybt: string; // 叶标题
|
||||
wdlx: string; // 文档类型
|
||||
cjrxm: string; // 创建人姓名
|
||||
cjsj: string; // 创建时间
|
||||
wjbbh: string; // 文件版本号
|
||||
xzz: Array<Array<{userName: string; type: string}>>; // 协作者
|
||||
dgr_str: Array<Array<{userName: string; type: string}>>; // 定稿人
|
||||
spr_str: Array<Array<{userName: string; type: string}>>; // 内容审批者
|
||||
gsspr_str: Array<{userName: string; type: string}>; // 格式审批者
|
||||
dqrwzt: string; // 当前任务状态
|
||||
dqrwzt_value: string; // 当前任务状态值
|
||||
cpmc: string; // 产品名称
|
||||
sqmc: string; // 申请名称
|
||||
wdid_m: number; // 文档ID(主)
|
||||
wjid: number; // 文件ID
|
||||
userid: number; // 用户ID
|
||||
lcbh: string; // 流程编号
|
||||
is_save: boolean; // 是否可保存
|
||||
isdg: string; // 是否定稿 0-否 1-是
|
||||
sfbsc: string; // 是否被删除 0-否 1-是
|
||||
is_feiqi: boolean; // 是否可废弃
|
||||
is_fenlei: boolean; // 是否可分类
|
||||
fl: string; // 分类
|
||||
bt_update: boolean; // 是否可更新
|
||||
bt_update_re_pdf: boolean; // 是否可重新导入PDF
|
||||
bt0: boolean; // 是否显示下一步按钮(OA流程)
|
||||
bt1: boolean; // 是否显示下一步按钮(定稿人)
|
||||
bt2: boolean; // 是否显示审批文档按钮
|
||||
bt3: boolean; // 是否显示下一步按钮(格式审批)
|
||||
hh_count: number; // 会话数量
|
||||
listcode: Array<{ // 流程步骤列表
|
||||
code_name: string; // 步骤名称
|
||||
code_value: string; // 步骤值
|
||||
css: string; // 样式
|
||||
}>;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## 获取历史版本列表
|
||||
- 接口: `/admin/api/shanghaijinzhiqiao/document/getDocHistory`
|
||||
- 方法: POST
|
||||
- 参数:
|
||||
```typescript
|
||||
{
|
||||
id: number; // 文档ID
|
||||
}
|
||||
```
|
||||
- 返回:
|
||||
```typescript
|
||||
{
|
||||
code: number; // 0-失败 1-成功
|
||||
data: {
|
||||
list: Array<{
|
||||
id: number; // 版本ID
|
||||
wdbbh: string; // 文档版本号
|
||||
wdzjxgsj: string; // 最后修改时间
|
||||
wdzhxgz: string; // 最后修改人
|
||||
dzmc: string; // 动作名称
|
||||
}>;
|
||||
mapxz: {
|
||||
id: number; // 当前版本ID
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## 切换文档版本
|
||||
- 接口: `/admin/api/shanghaijinzhiqiao/document/switchDocVersion`
|
||||
- 方法: POST
|
||||
- 参数:
|
||||
```typescript
|
||||
{
|
||||
bbid: string; // 版本ID
|
||||
wdid: string; // 文档ID
|
||||
}
|
||||
```
|
||||
- 返回:
|
||||
```typescript
|
||||
{
|
||||
code: number; // 0-失败 1-成功
|
||||
msg: string; // 提示信息
|
||||
}
|
||||
```
|
||||
|
||||
## 更新规范文件名
|
||||
- 接口: `/admin/api/shanghaijinzhiqiao/document/updateDocFileName`
|
||||
- 方法: POST
|
||||
- 参数:
|
||||
```typescript
|
||||
{
|
||||
flowid: number; // 流程ID
|
||||
wjm: string; // 文件名
|
||||
type: string; // 类型 1-规范文件名 2-叶标题
|
||||
}
|
||||
```
|
||||
- 返回:
|
||||
```typescript
|
||||
{
|
||||
code: number; // 0-失败 1-成功
|
||||
msg: string; // 提示信息
|
||||
}
|
||||
```
|
||||
|
||||
## 定稿操作
|
||||
- 接口: `/admin/api/shanghaijinzhiqiao/document/docDinggao`
|
||||
- 方法: POST
|
||||
- 参数:
|
||||
```typescript
|
||||
{
|
||||
wdid: number; // 文档ID
|
||||
}
|
||||
```
|
||||
- 返回:
|
||||
```typescript
|
||||
{
|
||||
code: number; // 0-失败 1-成功
|
||||
msg: string; // 提示信息
|
||||
}
|
||||
```
|
||||
|
||||
## 编辑操作
|
||||
- 接口: `/admin/api/shanghaijinzhiqiao/document/docBianji`
|
||||
- 方法: POST
|
||||
- 参数:
|
||||
```typescript
|
||||
{
|
||||
wdid: number; // 文档ID
|
||||
}
|
||||
```
|
||||
- 返回:
|
||||
```typescript
|
||||
{
|
||||
code: number; // 0-失败 1-成功
|
||||
msg: string; // 提示信息
|
||||
}
|
||||
```
|
||||
|
||||
## 废弃文档
|
||||
- 接口: `/admin/api/shanghaijinzhiqiao/document/docFeiqi`
|
||||
- 方法: POST
|
||||
- 参数:
|
||||
```typescript
|
||||
{
|
||||
lcid: number; // 流程ID
|
||||
}
|
||||
```
|
||||
- 返回:
|
||||
```typescript
|
||||
{
|
||||
code: number; // 0-失败 1-成功
|
||||
msg: string; // 提示信息
|
||||
}
|
||||
```
|
||||
|
||||
## 恢复文档
|
||||
- 接口: `/admin/api/shanghaijinzhiqiao/document/docHuifu`
|
||||
- 方法: POST
|
||||
- 参数:
|
||||
```typescript
|
||||
{
|
||||
wjid: number; // 文件ID
|
||||
}
|
||||
```
|
||||
- 返回:
|
||||
```typescript
|
||||
{
|
||||
code: number; // 0-失败 1-成功
|
||||
msg: string; // 提示信息
|
||||
}
|
||||
```
|
||||
|
||||
## 转换PDF
|
||||
- 接口: `/admin/api/shanghaijinzhiqiao/document/doc2pdf`
|
||||
- 方法: POST
|
||||
- 参数:
|
||||
```typescript
|
||||
{
|
||||
wjid: number; // 文件ID
|
||||
sfdpz: string; // 是否带批注 1-是 2-否
|
||||
}
|
||||
```
|
||||
- 返回:
|
||||
```typescript
|
||||
{
|
||||
code: number; // 0-失败 1-成功
|
||||
msg: string; // 提示信息
|
||||
}
|
||||
```
|
||||
|
||||
## 查询PDF转换进度
|
||||
- 接口: `/admin/api/shanghaijinzhiqiao/document/getPdfProgress`
|
||||
- 方法: POST
|
||||
- 参数:
|
||||
```typescript
|
||||
{
|
||||
wjid: number; // 文件ID
|
||||
}
|
||||
```
|
||||
- 返回:
|
||||
```typescript
|
||||
{
|
||||
code: number; // 0-失败 1-成功
|
||||
data: {
|
||||
zhzt: string; // 转换状态 0-等待中 1-转换中 2-转换失败 3-转换成功 4-转换完成
|
||||
zhjd: number; // 转换进度(百分比)
|
||||
zhjg: string; // 转换结果
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## 检查文件是否存在更新
|
||||
- 接口: `/admin/api/shanghaijinzhiqiao/document/checkFileExists`
|
||||
- 方法: POST
|
||||
- 参数:
|
||||
```typescript
|
||||
{
|
||||
wjid: number; // 文件ID
|
||||
}
|
||||
```
|
||||
- 返回:
|
||||
```typescript
|
||||
{
|
||||
code: number; // 0-文件已更新 1-文件未更新
|
||||
data?: {
|
||||
hh_sum: number; // 会话数量
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## 下载文件
|
||||
- 接口: `/admin/api/shanghaijinzhiqiao/FileDownloadEvent2/downFile`
|
||||
- 方法: GET
|
||||
- 参数:
|
||||
```typescript
|
||||
{
|
||||
flowId: number; // 流程ID
|
||||
}
|
||||
```
|
||||
- 返回: 文件流
|
||||
|
||||
## 下载历史版本文件
|
||||
- 接口: `/admin/api/shanghaijinzhiqiao/FileDownloadEvent2/hisDownFile`
|
||||
- 方法: GET
|
||||
- 参数:
|
||||
```typescript
|
||||
{
|
||||
hisId: number; // 历史版本ID
|
||||
}
|
||||
```
|
||||
- 返回: 文件流
|
||||
97
src/api/sas/documentTranslation/index.ts
Normal file
97
src/api/sas/documentTranslation/index.ts
Normal file
@ -0,0 +1,97 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface DocumentTranslationCreateReqVO {
|
||||
sourceDocId?: number
|
||||
sourceDiskPath?: string
|
||||
sourceFileName?: string
|
||||
srcLang: string
|
||||
trgLang: string
|
||||
engine?: string
|
||||
scene?: string
|
||||
}
|
||||
|
||||
export interface DocumentTranslationPageReqVO {
|
||||
pageNo?: number
|
||||
pageSize?: number
|
||||
keyword?: string
|
||||
status?: string
|
||||
sourceDocId?: number
|
||||
}
|
||||
|
||||
export interface DocumentTranslationRespVO {
|
||||
id: number
|
||||
sourceDocId?: number
|
||||
sourceDiskPath?: string
|
||||
sourceFileName?: string
|
||||
targetDiskPath?: string
|
||||
targetFileName?: string
|
||||
srcLang: string
|
||||
trgLang: string
|
||||
srcLangLabel?: string
|
||||
trgLangLabel?: string
|
||||
engine?: string
|
||||
engineLabel?: string
|
||||
scene?: string
|
||||
sceneLabel?: string
|
||||
marsDocId?: string
|
||||
status: string
|
||||
errorMessage?: string
|
||||
characterCount?: number
|
||||
finishTime?: string
|
||||
createTime?: string
|
||||
creatorName?: string
|
||||
}
|
||||
|
||||
export const DocumentTranslationApi = {
|
||||
create: (data: DocumentTranslationCreateReqVO) =>
|
||||
request.post<number>({ url: '/sas/document-translation/create', data }),
|
||||
|
||||
get: (id: number) =>
|
||||
request.get<DocumentTranslationRespVO>({ url: '/sas/document-translation/get?id=' + id }),
|
||||
|
||||
getByDoc: (docId: number) =>
|
||||
request.get<DocumentTranslationRespVO | null>({
|
||||
url: '/sas/document-translation/get-by-doc?docId=' + docId
|
||||
}),
|
||||
|
||||
page: (params: DocumentTranslationPageReqVO) =>
|
||||
request.get<{ list: DocumentTranslationRespVO[]; total: number }>({
|
||||
url: '/sas/document-translation/page',
|
||||
params
|
||||
}),
|
||||
|
||||
refresh: (id: number) =>
|
||||
request.post<boolean>({ url: '/sas/document-translation/refresh?id=' + id }),
|
||||
|
||||
refreshAll: () => request.post<boolean>({ url: '/sas/document-translation/refresh-all' }),
|
||||
|
||||
downloadTarget: (id: number) =>
|
||||
request.download({ url: '/sas/document-translation/download-target?id=' + id })
|
||||
}
|
||||
|
||||
export function isTranslationPending(status: string) {
|
||||
return status === 'Submitting' || status === 'Queue' || status === 'Translating'
|
||||
}
|
||||
|
||||
export function isTranslationRetranslatable(status: string) {
|
||||
return status === 'Done' || status === 'Error'
|
||||
}
|
||||
|
||||
export function getTranslationStatusType(status: string): 'success' | 'warning' | 'danger' | 'info' {
|
||||
if (status === 'Done') return 'success'
|
||||
if (status === 'Error') return 'danger'
|
||||
if (status === 'Translating') return 'warning'
|
||||
return 'info'
|
||||
}
|
||||
|
||||
export function buildTranslationVirtualDocId(taskId: number, side: 'source' | 'target') {
|
||||
return `document_translation_${taskId}_${side}`
|
||||
}
|
||||
|
||||
export function isTranslationDone(task: DocumentTranslationRespVO) {
|
||||
return task.status === 'Done' && !!task.targetDiskPath
|
||||
}
|
||||
|
||||
export function canPreviewTranslation(task: DocumentTranslationRespVO) {
|
||||
return !!task.id && (!!task.sourceDocId || !!task.sourceDiskPath)
|
||||
}
|
||||
70
src/api/sas/documentcreatetemplate/index.ts
Normal file
70
src/api/sas/documentcreatetemplate/index.ts
Normal file
@ -0,0 +1,70 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 文档创建模板库 VO
|
||||
export interface DocumentCreateTemplateVO {
|
||||
id: number // 主键
|
||||
diskPath: string // 模板文件地址
|
||||
title: string // 模板标题
|
||||
remark: string // 备注
|
||||
type: number // 模板类型
|
||||
official: boolean // 是否官方模板
|
||||
category: number // 模板分类
|
||||
country: number //所属国家
|
||||
nodeId: number // 所属节点
|
||||
nodeName?: string // 所属节点名称
|
||||
needApprove?: boolean // 是否需要审核(仅用于来自文档管理的创建模板)
|
||||
documentId?: number // 当前文档管理系统提交的ID(仅用于来自文档管理的创建模板)
|
||||
}
|
||||
|
||||
// 文档创建模板库 API
|
||||
export const DocumentCreateTemplateApi = {
|
||||
// 查询文档创建模板库分页
|
||||
getDocumentCreateTemplatePage: async (params: any) => {
|
||||
return await request.get({ url: `/sas/document-create-template/page`, params })
|
||||
},
|
||||
|
||||
// 查询文档创建模板库详情
|
||||
getDocumentCreateTemplate: async (id: number) => {
|
||||
return await request.get({ url: `/sas/document-create-template/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增文档创建模板库
|
||||
createDocumentCreateTemplate: async (data: DocumentCreateTemplateVO) => {
|
||||
return await request.post({ url: `/sas/document-create-template/create`, data })
|
||||
},
|
||||
|
||||
// 修改文档创建模板库
|
||||
updateDocumentCreateTemplate: async (data: DocumentCreateTemplateVO) => {
|
||||
return await request.put({ url: `/sas/document-create-template/update`, data })
|
||||
},
|
||||
|
||||
// 删除文档创建模板库
|
||||
deleteDocumentCreateTemplate: async (id: number) => {
|
||||
return await request.delete({ url: `/sas/document-create-template/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出文档创建模板库 Excel
|
||||
exportDocumentCreateTemplate: async (params) => {
|
||||
return await request.download({ url: `/sas/document-create-template/export-excel`, params })
|
||||
},
|
||||
|
||||
// 获取模板分类的目录列表
|
||||
treeWithCategory: async (country: number, category: number) => {
|
||||
return await request.get({ url: `/sas/document-create-template/treeWithCategory?country=` + country + `&category=` + category })
|
||||
},
|
||||
|
||||
// 撤销模板审核
|
||||
cancelDocumentApprove: async (id: number) => {
|
||||
return await request.get({ url: `/sas/document-create-template/cancelDocumentApprove?id=` + id })
|
||||
},
|
||||
|
||||
// 同意模板审核
|
||||
agreeDocumentApprove: async (id: number) => {
|
||||
return await request.get({ url: `/sas/document-create-template/agreeDocumentApprove?id=` + id })
|
||||
},
|
||||
|
||||
// 拒绝模板审核
|
||||
rejectDocumentApprove: async (id: number) => {
|
||||
return await request.get({ url: `/sas/document-create-template/rejectDocumentApprove?id=` + id })
|
||||
}
|
||||
}
|
||||
43
src/api/sas/documentfileformatnote/index.ts
Normal file
43
src/api/sas/documentfileformatnote/index.ts
Normal file
@ -0,0 +1,43 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 文档格式规范说明 VO
|
||||
export interface DocumentFileFormatNoteVO {
|
||||
id: number // 主键
|
||||
lv: number // 序号
|
||||
name: string // 名称
|
||||
description: string // 说明
|
||||
level: number // 错误级别
|
||||
}
|
||||
|
||||
// 文档格式规范说明 API
|
||||
export const DocumentFileFormatNoteApi = {
|
||||
// 查询文档格式规范说明分页
|
||||
getDocumentFileFormatNotePage: async (params: any) => {
|
||||
return await request.get({ url: `/sas/document-file-format-note/page`, params })
|
||||
},
|
||||
|
||||
// 查询文档格式规范说明详情
|
||||
getDocumentFileFormatNote: async (id: number) => {
|
||||
return await request.get({ url: `/sas/document-file-format-note/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增文档格式规范说明
|
||||
createDocumentFileFormatNote: async (data: DocumentFileFormatNoteVO) => {
|
||||
return await request.post({ url: `/sas/document-file-format-note/create`, data })
|
||||
},
|
||||
|
||||
// 修改文档格式规范说明
|
||||
updateDocumentFileFormatNote: async (data: DocumentFileFormatNoteVO) => {
|
||||
return await request.put({ url: `/sas/document-file-format-note/update`, data })
|
||||
},
|
||||
|
||||
// 删除文档格式规范说明
|
||||
deleteDocumentFileFormatNote: async (id: number) => {
|
||||
return await request.delete({ url: `/sas/document-file-format-note/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出文档格式规范说明 Excel
|
||||
exportDocumentFileFormatNote: async (params) => {
|
||||
return await request.download({ url: `/sas/document-file-format-note/export-excel`, params })
|
||||
},
|
||||
}
|
||||
30
src/api/sas/documentfileversion/index.ts
Normal file
30
src/api/sas/documentfileversion/index.ts
Normal file
@ -0,0 +1,30 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 文档历史版本 VO
|
||||
export interface DocumentFileVersionVO {
|
||||
id: number // 主键
|
||||
name: string // 文件原始名称
|
||||
version: number // 文件版本号
|
||||
action: number // 动作类型
|
||||
fileId: number // 文件ID
|
||||
size: number // 大小
|
||||
diskPath: string //下载地址
|
||||
}
|
||||
|
||||
// 文档历史版本 API
|
||||
export const DocumentFileVersionApi = {
|
||||
// 查询文档历史版本分页
|
||||
getDocumentFileVersionPage: async (params: any) => {
|
||||
return await request.get({ url: `/sas/document-file-version/page`, params })
|
||||
},
|
||||
|
||||
// 查询文档历史版本详情
|
||||
getDocumentFileVersion: async (id: number) => {
|
||||
return await request.get({ url: `/sas/document-file-version/get?id=` + id })
|
||||
},
|
||||
|
||||
// 导出文档历史版本 Excel
|
||||
exportDocumentFileVersion: async (params) => {
|
||||
return await request.download({ url: `/sas/document-file-version/export-excel`, params })
|
||||
},
|
||||
}
|
||||
50
src/api/sas/documentflowssetting/index.ts
Normal file
50
src/api/sas/documentflowssetting/index.ts
Normal file
@ -0,0 +1,50 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 文档审批流程配置 VO
|
||||
export interface DocumentFlowsSettingVO {
|
||||
id: number // 主键
|
||||
name: string // 流程名称
|
||||
defaultFlow: boolean // 是否默认流程
|
||||
remark: string //备注
|
||||
data: string //数据
|
||||
progress: number //当前进度
|
||||
variables?: Array<{
|
||||
code: string // 变量代码(A-Z)
|
||||
name: string // 变量名称
|
||||
value?: string // 用户ID(当progress >= 0时使用)
|
||||
userName?: string // 用户名称(当progress >= 0时使用)
|
||||
}> // 流程变量配置
|
||||
}
|
||||
|
||||
// 文档审批流程配置 API
|
||||
export const DocumentFlowsSettingApi = {
|
||||
// 查询文档审批流程配置分页
|
||||
getDocumentFlowsSettingPage: async (params: any) => {
|
||||
return await request.get({ url: `/sas/document-flows-setting/page`, params })
|
||||
},
|
||||
|
||||
// 查询文档审批流程配置详情
|
||||
getDocumentFlowsSetting: async (id: number) => {
|
||||
return await request.get({ url: `/sas/document-flows-setting/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增文档审批流程配置
|
||||
createDocumentFlowsSetting: async (data: DocumentFlowsSettingVO) => {
|
||||
return await request.post({ url: `/sas/document-flows-setting/create`, data })
|
||||
},
|
||||
|
||||
// 修改文档审批流程配置
|
||||
updateDocumentFlowsSetting: async (data: DocumentFlowsSettingVO) => {
|
||||
return await request.put({ url: `/sas/document-flows-setting/update`, data })
|
||||
},
|
||||
|
||||
// 删除文档审批流程配置
|
||||
deleteDocumentFlowsSetting: async (id: number) => {
|
||||
return await request.delete({ url: `/sas/document-flows-setting/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出文档审批流程配置 Excel
|
||||
exportDocumentFlowsSetting: async (params) => {
|
||||
return await request.download({ url: `/sas/document-flows-setting/export-excel`, params })
|
||||
},
|
||||
}
|
||||
66
src/api/sas/documenttask/index.ts
Normal file
66
src/api/sas/documenttask/index.ts
Normal file
@ -0,0 +1,66 @@
|
||||
import request from '@/config/axios'
|
||||
import {UserDocumentFileVO} from "@/api/sas/userdocument";
|
||||
|
||||
// 文档管理系统文件 VO
|
||||
export interface UserDocumentTaskVO {
|
||||
id: number // 主键ID
|
||||
type: number //任务类型
|
||||
createTime: Date //创建日期
|
||||
endTime: Date //截止时间
|
||||
fileId: number //文档ID
|
||||
fileName: string //文件名称
|
||||
complated: boolean //是否已完成
|
||||
file: UserDocumentFileVO
|
||||
/** 任务执行人用户 ID */
|
||||
creator: string | number
|
||||
/** 任务执行人姓名(列表展示) */
|
||||
creatorName?: string
|
||||
stateDesc: string //状态
|
||||
state: number //状态
|
||||
}
|
||||
|
||||
// 文档管理系统文件 API
|
||||
export const UserDocumentTaskApi = {
|
||||
// 查询文档管理系统文件分页
|
||||
getUserDocumentTaskPage: async (params: any, type: number) => {
|
||||
return await request.get({ url: `/sas/user-document-task/page?type=` + type, params })
|
||||
},
|
||||
|
||||
// 查询文档管理系统文件详情
|
||||
getUserDocumentTask: async (id: number, type: number) => {
|
||||
return await request.get({ url: `/sas/user-document-task/get?id=` + id + `&type=` + type })
|
||||
},
|
||||
|
||||
// 新增文档管理系统文件
|
||||
createUserDocumentTask: async (data: UserDocumentTaskVO) => {
|
||||
return await request.post({ url: `/sas/user-document-task/create`, data })
|
||||
},
|
||||
|
||||
// 修改文档管理系统文件
|
||||
updateUserDocumentTask: async (data: UserDocumentTaskVO, type: number) => {
|
||||
return await request.put({ url: `/sas/user-document-task/update?type=` + type, data })
|
||||
},
|
||||
|
||||
// 删除文档管理系统文件
|
||||
deleteUserDocumentTask: async (id: number, type: number) => {
|
||||
return await request.delete({ url: `/sas/user-document-task/delete?id=` + id + `&type=` + type })
|
||||
},
|
||||
|
||||
// 导出文档管理系统文件 Excel
|
||||
exportUserDocumentTask: async (params: any, type: number) => {
|
||||
return await request.download({ url: `/sas/user-document-task/export-excel?type=` + type, params })
|
||||
},
|
||||
|
||||
// 查询文档管理系统文件详情
|
||||
getUserDocumentTaskDetail: async (id: number) => {
|
||||
return await request.get({ url: `/sas/user-document-task/getDetail?id=` + id })
|
||||
},
|
||||
|
||||
/** 按文档 ID 拉取流程任务列表(预览页转办用,需 sas:document-task:query) */
|
||||
listTasksByFileId: async (fileId: number) => {
|
||||
return await request.get({
|
||||
url: `/sas/user-document-task/list-by-file-id`,
|
||||
params: { fileId }
|
||||
})
|
||||
},
|
||||
}
|
||||
31
src/api/sas/documentwps/index.ts
Normal file
31
src/api/sas/documentwps/index.ts
Normal file
@ -0,0 +1,31 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 文档管理系统文件 VO
|
||||
export interface DocumentWpsSettingSaveReqVO {
|
||||
id: number // 主键ID
|
||||
editorAppid: string //在线编辑应用APPID
|
||||
transferAppid: string //转换应用APPID
|
||||
transferSecret: string //格式转换应用秘钥
|
||||
docTemplateFile: string //创建文档模板文件
|
||||
excelTemplateFile: string //创建表格模板文件
|
||||
pptTemplateFile: string //创建PPT模板文件
|
||||
pdfTemplateFile: string //创建PDF文档模板
|
||||
}
|
||||
|
||||
// 文档管理系统文件 API
|
||||
export const DocumentWpsSettingApi = {
|
||||
// 新增文档管理系统文件
|
||||
createDocumentWpsSetting: async (data: DocumentWpsSettingSaveReqVO) => {
|
||||
return await request.post({ url: `/sas/document-wps-setting/create`, data })
|
||||
},
|
||||
|
||||
// 删除文档管理系统文件
|
||||
deleteDocumentWpsSetting: async () => {
|
||||
return await request.delete({ url: `/sas/document-wps-setting/delete` })
|
||||
},
|
||||
|
||||
// 查询文档管理系统文件详情
|
||||
getDocumentWpsSetting: async () => {
|
||||
return await request.get({ url: `/sas/document-wps-setting/get` })
|
||||
},
|
||||
}
|
||||
44
src/api/sas/dzsystemreport/index.ts
Normal file
44
src/api/sas/dzsystemreport/index.ts
Normal file
@ -0,0 +1,44 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 电子申报系统模板-申报资料类型 VO
|
||||
export interface DzSystemReportVO {
|
||||
id: number // 主键
|
||||
parentId: number // 父节点id
|
||||
type: string // 类型
|
||||
name: string // 名称
|
||||
subType: string // 类型
|
||||
reportTemplateId: number
|
||||
}
|
||||
|
||||
// 电子申报系统模板-申报资料类型 API
|
||||
export const DzSystemReportApi = {
|
||||
// 查询电子申报系统模板-申报资料类型列表
|
||||
getDzSystemReportList: async (params?) => {
|
||||
return await request.get({ url: `/sas/dz-system-report/list`, params })
|
||||
},
|
||||
|
||||
// 查询电子申报系统模板-申报资料类型详情
|
||||
getDzSystemReport: async (id: number) => {
|
||||
return await request.get({ url: `/sas/dz-system-report/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增电子申报系统模板-申报资料类型
|
||||
createDzSystemReport: async (data: DzSystemReportVO) => {
|
||||
return await request.post({ url: `/sas/dz-system-report/create`, data })
|
||||
},
|
||||
|
||||
// 修改电子申报系统模板-申报资料类型
|
||||
updateDzSystemReport: async (data: DzSystemReportVO) => {
|
||||
return await request.put({ url: `/sas/dz-system-report/update`, data })
|
||||
},
|
||||
|
||||
// 删除电子申报系统模板-申报资料类型
|
||||
deleteDzSystemReport: async (id: number) => {
|
||||
return await request.delete({ url: `/sas/dz-system-report/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出电子申报系统模板-申报资料类型 Excel
|
||||
exportDzSystemReport: async (params) => {
|
||||
return await request.download({ url: `/sas/dz-system-report/export-excel`, params })
|
||||
},
|
||||
}
|
||||
48
src/api/sas/dzsystemreporttemplate/index.ts
Normal file
48
src/api/sas/dzsystemreporttemplate/index.ts
Normal file
@ -0,0 +1,48 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 电子申报系统模板-申请类型模板 VO
|
||||
export interface DzSystemReportTemplateVO {
|
||||
id: number // 主键
|
||||
parentId: number // 父节点id
|
||||
subId: number // 所属类型
|
||||
name: string // 名称
|
||||
folder: string // 文件夹路径
|
||||
folderSize: number // 路径字符长度
|
||||
remark: string // 备注
|
||||
expansion: boolean // 是否支持扩展
|
||||
createChild: boolean // 是否允许创建子文件夹
|
||||
reportTemplateId: number //模板ID
|
||||
}
|
||||
|
||||
// 电子申报系统模板-申请类型模板 API
|
||||
export const DzSystemReportTemplateApi = {
|
||||
// 查询电子申报系统模板-申请类型模板列表
|
||||
getDzSystemReportTemplateList: async (params?) => {
|
||||
return await request.get({ url: `/sas/dz-system-report-template/list`, params })
|
||||
},
|
||||
|
||||
// 查询电子申报系统模板-申请类型模板详情
|
||||
getDzSystemReportTemplate: async (id: number) => {
|
||||
return await request.get({ url: `/sas/dz-system-report-template/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增电子申报系统模板-申请类型模板
|
||||
createDzSystemReportTemplate: async (data: DzSystemReportTemplateVO) => {
|
||||
return await request.post({ url: `/sas/dz-system-report-template/create`, data })
|
||||
},
|
||||
|
||||
// 修改电子申报系统模板-申请类型模板
|
||||
updateDzSystemReportTemplate: async (data: DzSystemReportTemplateVO) => {
|
||||
return await request.put({ url: `/sas/dz-system-report-template/update`, data })
|
||||
},
|
||||
|
||||
// 删除电子申报系统模板-申请类型模板
|
||||
deleteDzSystemReportTemplate: async (id: number) => {
|
||||
return await request.delete({ url: `/sas/dz-system-report-template/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出电子申报系统模板-申请类型模板 Excel
|
||||
exportDzSystemReportTemplate: async (params) => {
|
||||
return await request.download({ url: `/sas/dz-system-report-template/export-excel`, params })
|
||||
},
|
||||
}
|
||||
58
src/api/sas/dzsystemtemplate/index.ts
Normal file
58
src/api/sas/dzsystemtemplate/index.ts
Normal file
@ -0,0 +1,58 @@
|
||||
import request from '@/config/axios'
|
||||
import { config } from '@/config/axios/config'
|
||||
|
||||
// 电子申报系统模板 VO
|
||||
export interface DzSystemTemplateVO {
|
||||
id: number // 主键
|
||||
name: string // 名称
|
||||
vc: number // 版本号
|
||||
vcCode: string // 版本名称
|
||||
}
|
||||
|
||||
// 电子申报系统模板 API
|
||||
export const DzSystemTemplateApi = {
|
||||
// 查询电子申报系统模板分页
|
||||
getDzSystemTemplatePage: async (params: any) => {
|
||||
return await request.get({ url: `/sas/dz-system-template/page`, params })
|
||||
},
|
||||
|
||||
// 查询电子申报系统模板详情
|
||||
getDzSystemTemplate: async (id: number) => {
|
||||
return await request.get({ url: `/sas/dz-system-template/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增电子申报系统模板
|
||||
createDzSystemTemplate: async (data: DzSystemTemplateVO) => {
|
||||
return await request.post({ url: `/sas/dz-system-template/create`, data })
|
||||
},
|
||||
|
||||
// 修改电子申报系统模板
|
||||
updateDzSystemTemplate: async (data: DzSystemTemplateVO) => {
|
||||
return await request.put({ url: `/sas/dz-system-template/update`, data })
|
||||
},
|
||||
|
||||
// 删除电子申报系统模板
|
||||
deleteDzSystemTemplate: async (id: number) => {
|
||||
return await request.delete({ url: `/sas/dz-system-template/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出电子申报系统模板 Excel
|
||||
exportDzSystemTemplate: async (params) => {
|
||||
return await request.download({ url: `/sas/dz-system-template/export-excel`, params })
|
||||
},
|
||||
|
||||
// 从Excel导入电子申报系统模板
|
||||
importFromExcel: async (file: File, templateId: number) => {
|
||||
const formData = new FormData()
|
||||
formData.append('file', file)
|
||||
formData.append('templateId', templateId.toString())
|
||||
return await request.post({
|
||||
url: `/sas/dz-system-template/import-from-excel`,
|
||||
data: formData,
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data'
|
||||
},
|
||||
timeout: config.large_file_timeout
|
||||
})
|
||||
},
|
||||
}
|
||||
298
src/api/sas/dzuserproject/index.ts
Normal file
298
src/api/sas/dzuserproject/index.ts
Normal file
@ -0,0 +1,298 @@
|
||||
import request from '@/config/axios'
|
||||
import { config } from '@/config/axios/config'
|
||||
|
||||
/** 电子申报项目操作审计日志 */
|
||||
export interface DzUserProjectLogRespVO {
|
||||
id: number
|
||||
dzUserProjectId?: number
|
||||
projectName?: string
|
||||
declarationName?: string
|
||||
applicationNumber?: string
|
||||
action?: string
|
||||
actionLabel?: string
|
||||
remark?: string
|
||||
operatorId?: string
|
||||
operatorName?: string
|
||||
operateTime?: string
|
||||
}
|
||||
|
||||
// 电子申报系统用户项目 VO
|
||||
export interface DzUserProjectVO {
|
||||
id: number // 主键ID
|
||||
projectId: number // 产品类型ID
|
||||
projectName: string //产品类型
|
||||
applicationNumber: string // 申请号
|
||||
declarationId: number // 申请事项ID
|
||||
declarationName: string //申请事项
|
||||
informationId: number // 资料类型ID
|
||||
informationName: string //资料类型
|
||||
informationChildId: number // 资料子类型ID
|
||||
informationChildName: string //资料子类型
|
||||
contact1: string // 联系人1
|
||||
contact2: string // 联系人2
|
||||
tel1: string // 电话号码1
|
||||
tel2: string // 电话号码2
|
||||
email: string // 邮箱
|
||||
createTime: Date //创建时间
|
||||
creatorName: string //创建者
|
||||
/** 0 未发布 1 已发布 2 已归档 3 递交失败等(与业务字典一致) */
|
||||
status: number
|
||||
publishTime: Date //发布时间
|
||||
publishName: string //发布者
|
||||
archiveTime: Date //归档时间
|
||||
archiveName: string //归档者
|
||||
downloadUrl: string //下载路径
|
||||
forbidden: boolean //是否禁止编辑
|
||||
importZip: boolean // 是否为外部导入
|
||||
/** 任务状态文案(例如:正在发布...);有值时可查看发布任务进度 */
|
||||
taskStatus?: string
|
||||
/** 递交失败等原因;可与列表「未处理」等业务规则联用 */
|
||||
submissionFailureReason?: string
|
||||
}
|
||||
|
||||
/** 电子申报递交处理请求(与 eCTD 序列递交语义一致:0=已递交,1=递交失败) */
|
||||
export interface DzUserProjectSubmissionReqVO {
|
||||
id: number
|
||||
status: number
|
||||
remark?: string
|
||||
}
|
||||
|
||||
// 系统报告响应 VO
|
||||
export interface DzSystemReportRespVO {
|
||||
id: number // 主键
|
||||
parentId: number // 父节点id
|
||||
type: number // 类型
|
||||
name: string // 名称
|
||||
subType: number // 子类型
|
||||
reportTemplateId: number // 报告模板ID
|
||||
}
|
||||
|
||||
// 目录树节点 VO
|
||||
export interface TreeNodeVO {
|
||||
id: number // 主键ID
|
||||
parentId: number // 父节点ID
|
||||
projectId: number // 项目ID
|
||||
name: string // 文件夹名称
|
||||
layer: string // 层级
|
||||
templateId: number // 模板ID
|
||||
folder: string // 文件夹路径
|
||||
elementName: string // 节点名称
|
||||
templateNodeId: number // 模板节点ID
|
||||
expansion: boolean // 是否支持扩展
|
||||
createChild: boolean // 是否允许创建子文件夹
|
||||
children: TreeNodeVO[],
|
||||
chapterNumber: string //章节号
|
||||
taskType: number //文档状态
|
||||
newGroup?: boolean // 是否为新组(用于显示删除按钮)
|
||||
}
|
||||
|
||||
// 文件日志 VO
|
||||
export interface FileLogVO {
|
||||
id: number
|
||||
standardFileName: string
|
||||
sequenceNumber: string
|
||||
stateDesc: string
|
||||
remark?: string
|
||||
createTime: string
|
||||
sequenceId: number
|
||||
}
|
||||
|
||||
// 文件上传 VO
|
||||
export interface FileUploadVO {
|
||||
id?: number
|
||||
nodeId: number
|
||||
sequenceId: number
|
||||
diskPath: string
|
||||
standardFileName: string
|
||||
leafTitle: string
|
||||
language: number
|
||||
adventitious?: boolean
|
||||
}
|
||||
|
||||
// 规范文件名响应 VO
|
||||
export interface StandardFileNameRespVO {
|
||||
standardFileName: string
|
||||
leafTitle: string
|
||||
language: number
|
||||
}
|
||||
|
||||
export type ReleaseTaskState = 'PENDING' | 'RUNNING' | 'SUCCESS' | 'FAILED'
|
||||
|
||||
export interface DataReleaseProgressRespVO {
|
||||
state: ReleaseTaskState
|
||||
progress: number
|
||||
message: string
|
||||
error?: string
|
||||
creator?: string
|
||||
type?: string
|
||||
targetId?: string | number
|
||||
taskId: string
|
||||
}
|
||||
|
||||
// 用户项目表单数据文件 VO
|
||||
export interface UserProjectFormDataFile {
|
||||
treeNodeId: number // 节点ID
|
||||
id: number // 文件ID
|
||||
standardFileName: string // 规范文件名
|
||||
sequenceNumber: string // 所在序列
|
||||
language: number // 语言
|
||||
taskType: number // 文档状态
|
||||
diskPath: string // 文件路径
|
||||
leafTitle: string // 叶标题
|
||||
sequenceId: number // 序列ID
|
||||
size: number // 大小
|
||||
canMakeLink: boolean, //是否可制作超链接
|
||||
}
|
||||
|
||||
// 电子申报系统用户项目 API
|
||||
export const DzUserProjectApi = {
|
||||
// 查询电子申报系统用户项目分页
|
||||
getDzUserProjectPage: async (params: any) => {
|
||||
return await request.get({ url: `/sas/dz-user-project/page`, params })
|
||||
},
|
||||
|
||||
// 查询电子申报系统用户项目详情
|
||||
getDzUserProject: async (id: number) => {
|
||||
return await request.get({ url: `/sas/dz-user-project/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增电子申报系统用户项目
|
||||
createDzUserProject: async (data: DzUserProjectVO) => {
|
||||
return await request.post({ url: `/sas/dz-user-project/create`, data })
|
||||
},
|
||||
|
||||
// 修改电子申报系统用户项目
|
||||
updateDzUserProject: async (data: DzUserProjectVO) => {
|
||||
return await request.put({ url: `/sas/dz-user-project/update`, data })
|
||||
},
|
||||
|
||||
// 删除电子申报系统用户项目
|
||||
deleteDzUserProject: async (id: number) => {
|
||||
return await request.delete({ url: `/sas/dz-user-project/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出电子申报系统用户项目 Excel
|
||||
exportDzUserProject: async (params) => {
|
||||
return await request.download({ url: `/sas/dz-user-project/export-excel`, params })
|
||||
},
|
||||
|
||||
// 查询系统报告列表
|
||||
findSystemReport: async (parentId: number | null, type: number) => {
|
||||
return await request.get({ url: `/sas/dz-user-project/find-system-report`, params: { parentId, type } })
|
||||
},
|
||||
|
||||
// 获取项目目录树
|
||||
getTree: async (projectId: number) => {
|
||||
return await request.get({ url: `/sas/dz-user-project/getTree?id=` + projectId })
|
||||
},
|
||||
|
||||
// 获取文件日志
|
||||
getFileLog: async (id: number) => {
|
||||
return await request.get({ url: `/sas/dz-user-project/getFileLog?id=` + id })
|
||||
},
|
||||
|
||||
// 上传文件
|
||||
uploadFile: async (data: FileUploadVO) => {
|
||||
return await request.post({
|
||||
url: `/sas/dz-user-project/uploadFile`,
|
||||
data,
|
||||
timeout: config.large_file_timeout
|
||||
})
|
||||
},
|
||||
|
||||
// 拖拽上传文件
|
||||
dragFile: async (formData: FormData) => {
|
||||
return await request.post({
|
||||
url: `/sas/dz-user-project/dragFile`,
|
||||
data: formData,
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
timeout: config.large_file_timeout
|
||||
})
|
||||
},
|
||||
|
||||
// 获取规范文件名
|
||||
getStandardFileName: async (data) => {
|
||||
return await request.post({ url: `/sas/dz-user-project/getStandardFileName`, data })
|
||||
},
|
||||
|
||||
// 获取文件列表
|
||||
getFiles: async (treeNodeId: number) => {
|
||||
return await request.get({ url: `/sas/dz-user-project/getFiles?id=` + treeNodeId })
|
||||
},
|
||||
|
||||
// 获取文件列表
|
||||
dataRelease: async (id: number) => {
|
||||
return await request.get({ url: `/sas/dz-user-project/dataRelease?id=` + id })
|
||||
},
|
||||
|
||||
// 异步发布:启动任务,返回 taskId
|
||||
dataReleaseAsync: async (id: number, retry: boolean = false) => {
|
||||
return await request.get<string>({ url: `/sas/dz-user-project/dataReleaseAsync?id=` + id + `&retry=` + retry })
|
||||
},
|
||||
|
||||
// 异步发布:查询进度
|
||||
dataReleaseProgress: async (taskId: string) => {
|
||||
return await request.get<DataReleaseProgressRespVO>({
|
||||
url: `/sas/dz-user-project/dataReleaseProgress?taskId=` + taskId
|
||||
})
|
||||
},
|
||||
|
||||
// 保存树文件夹名称
|
||||
saveTreeFolder: async (data: { id: number; name: string }) => {
|
||||
return await request.post({ url: `/sas/dz-user-project/saveTreeFolder`, data })
|
||||
},
|
||||
|
||||
// 节点扩展
|
||||
copyTree: async (id: number) => {
|
||||
return await request.get({ url: `/sas/dz-user-project/copyTree?id=` + id })
|
||||
},
|
||||
|
||||
// 节点创建
|
||||
createNewTree: async (data: { id: number; name: string }) => {
|
||||
return await request.post({ url: `/sas/dz-user-project/createNewTree`, data })
|
||||
},
|
||||
|
||||
// 节点删除
|
||||
deleteNewTree: async (id: number) => {
|
||||
return await request.get({ url: `/sas/dz-user-project/deleteNewTree?id=` + id })
|
||||
},
|
||||
|
||||
// 删除文件
|
||||
deleteFile: async (id: number) => {
|
||||
return await request.get({ url: `/sas/dz-user-project/deleteFile?id=` + id })
|
||||
},
|
||||
|
||||
//归档
|
||||
archiver: async (id: number) => {
|
||||
return await request.get({ url: `/sas/dz-user-project/archiver?id=` + id })
|
||||
},
|
||||
|
||||
//撤销归档
|
||||
unArchiver: async (id: number) => {
|
||||
return await request.get({ url: `/sas/dz-user-project/unArchiver?id=` + id })
|
||||
},
|
||||
|
||||
// 导入外部包
|
||||
importProject: async (file: File) => {
|
||||
const formData = new FormData()
|
||||
formData.append('file', file)
|
||||
return await request.post({
|
||||
url: `/sas/import_project/importDz`,
|
||||
data: formData,
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
timeout: config.large_file_timeout
|
||||
})
|
||||
},
|
||||
|
||||
/** 递交处理:标记已递交 / 递交失败 */
|
||||
submissionProcess: async (data: DzUserProjectSubmissionReqVO) => {
|
||||
return await request.post({ url: `/sas/dz-user-project/submission-process`, data })
|
||||
},
|
||||
|
||||
/** 按申请主键查询操作审计日志 */
|
||||
getOperationLogsById: async (id: number) => {
|
||||
return await request.get<PageResult<DzUserProjectLogRespVO>>({
|
||||
url: `/sas/dz-user-project/operation-logs-by-id?id=` + id
|
||||
})
|
||||
},
|
||||
}
|
||||
42
src/api/sas/ectdsystem32r/index.ts
Normal file
42
src/api/sas/ectdsystem32r/index.ts
Normal file
@ -0,0 +1,42 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 32R节点 VO
|
||||
export interface EctdSystem32rVO {
|
||||
id: number // 主键
|
||||
elementName: string // 元素名称
|
||||
name: string // 节点名称
|
||||
path: string //元素路径
|
||||
}
|
||||
|
||||
// 32R节点 API
|
||||
export const EctdSystem32rApi = {
|
||||
// 查询32R节点分页
|
||||
getEctdSystem32rPage: async (params: any) => {
|
||||
return await request.get({ url: `/sas/ectd-system32r/page`, params })
|
||||
},
|
||||
|
||||
// 查询32R节点详情
|
||||
getEctdSystem32r: async (id: number) => {
|
||||
return await request.get({ url: `/sas/ectd-system32r/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增32R节点
|
||||
createEctdSystem32r: async (data: EctdSystem32rVO) => {
|
||||
return await request.post({ url: `/sas/ectd-system32r/create`, data })
|
||||
},
|
||||
|
||||
// 修改32R节点
|
||||
updateEctdSystem32r: async (data: EctdSystem32rVO) => {
|
||||
return await request.put({ url: `/sas/ectd-system32r/update`, data })
|
||||
},
|
||||
|
||||
// 删除32R节点
|
||||
deleteEctdSystem32r: async (id: number) => {
|
||||
return await request.delete({ url: `/sas/ectd-system32r/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出32R节点 Excel
|
||||
exportEctdSystem32r: async (params) => {
|
||||
return await request.download({ url: `/sas/ectd-system32r/export-excel`, params })
|
||||
},
|
||||
}
|
||||
104
src/api/sas/envelope/index.ts
Normal file
104
src/api/sas/envelope/index.ts
Normal file
@ -0,0 +1,104 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface EnvelopeAttrConfigVO {
|
||||
parentNodeName: string
|
||||
attrName: string
|
||||
displayName?: string
|
||||
}
|
||||
|
||||
export interface EnvelopeSectionConfigVO {
|
||||
key: string
|
||||
navTitle?: string
|
||||
title?: string
|
||||
copyable?: boolean
|
||||
hasSubSections?: boolean
|
||||
/** 所属模板元素 ID(TemplateTreeDO.id) */
|
||||
elementId?: number
|
||||
attributes?: EnvelopeAttrConfigVO[]
|
||||
subSections?: EnvelopeSectionConfigVO[]
|
||||
}
|
||||
|
||||
export interface EnvelopeConfigVO {
|
||||
rootElementName?: string
|
||||
sections?: EnvelopeSectionConfigVO[]
|
||||
}
|
||||
|
||||
export interface EnvelopeFormAttrVO {
|
||||
parentNodeName?: string
|
||||
attrName?: string
|
||||
displayName?: string
|
||||
field?: any
|
||||
group?: any
|
||||
}
|
||||
|
||||
export interface EnvelopeFormSectionVO {
|
||||
key: string
|
||||
navTitle?: string
|
||||
title?: string
|
||||
copyable?: boolean
|
||||
hasSubSections?: boolean
|
||||
newGroup?: boolean
|
||||
deletable?: boolean
|
||||
/** 所属模板元素 ID */
|
||||
elementId?: number
|
||||
/** 当前序列中与模板元素 ID 对应的实际节点 ID */
|
||||
actualNodeId?: number
|
||||
instanceNodeId?: number
|
||||
index?: number
|
||||
groupContext?: any
|
||||
attributes?: EnvelopeFormAttrVO[]
|
||||
subSections?: EnvelopeFormSectionVO[]
|
||||
instances?: EnvelopeFormSectionVO[]
|
||||
/** 前端未保存副本的唯一标识 */
|
||||
_clientKey?: string
|
||||
}
|
||||
|
||||
export interface EnvelopeFormDataVO {
|
||||
projectId: number
|
||||
applicationId: number
|
||||
sequenceId: number
|
||||
sequenceNumber: string
|
||||
locked: boolean
|
||||
status: number
|
||||
forbidden: boolean
|
||||
country: number
|
||||
nodeId: number
|
||||
templateId: number
|
||||
config: EnvelopeConfigVO
|
||||
sections: EnvelopeFormSectionVO[]
|
||||
rawFormData: any
|
||||
}
|
||||
|
||||
export const EnvelopeConfigApi = {
|
||||
get: async (templateId: number) => {
|
||||
return await request.get<EnvelopeConfigVO>({
|
||||
url: `/sas/envelope-config/get?templateId=${templateId}`
|
||||
})
|
||||
},
|
||||
hasConfigured: async (templateId: number, rootElementName?: string) => {
|
||||
return await request.get<boolean>({
|
||||
url: `/sas/envelope-config/hasConfigured?templateId=${templateId}${
|
||||
rootElementName ? `&rootElementName=${encodeURIComponent(rootElementName)}` : ''
|
||||
}`
|
||||
})
|
||||
},
|
||||
save: async (templateId: number, data: EnvelopeConfigVO) => {
|
||||
return await request.put({
|
||||
url: `/sas/envelope-config/save?templateId=${templateId}`,
|
||||
data
|
||||
})
|
||||
},
|
||||
listTemplateTreeNodes: async (templateId: number) => {
|
||||
return await request.get<any[]>({
|
||||
url: `/sas/envelope-config/template-tree-nodes?templateId=${templateId}`
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export const EnvelopeFormApi = {
|
||||
getEnvelopeFormData: async (sequenceId: number, nodeId: number, type: number) => {
|
||||
return await request.get<EnvelopeFormDataVO>({
|
||||
url: `/sas/user-project-sequence/getEnvelopeFormData?sequenceId=${sequenceId}&nodeId=${nodeId}&type=${type}`
|
||||
})
|
||||
}
|
||||
}
|
||||
172
src/api/sas/fdaSubmission/index.ts
Normal file
172
src/api/sas/fdaSubmission/index.ts
Normal file
@ -0,0 +1,172 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
/** FDA 递交中心 */
|
||||
export type FdaCenterCode = 'CBER' | 'CDER' | 'CDRH' | 'CVM' | 'CFSAN'
|
||||
|
||||
export interface FdaEsgSubmissionCreateReqVO {
|
||||
sequenceId: number
|
||||
fdaCenter: FdaCenterCode
|
||||
description?: string
|
||||
}
|
||||
|
||||
export interface FdaEsgSubmissionPrepareRespVO {
|
||||
defaultDescription?: string
|
||||
fileCount: number
|
||||
}
|
||||
|
||||
export interface FdaEsgSubmissionPageReqVO {
|
||||
pageNo?: number
|
||||
pageSize?: number
|
||||
sequenceId?: number
|
||||
status?: string
|
||||
fdaCenter?: string
|
||||
keyword?: string
|
||||
statusGroup?: '' | 'processing' | 'rejected' | 'archived'
|
||||
}
|
||||
|
||||
export interface FdaEsgAckMessageVO {
|
||||
acknowledgement: string
|
||||
status?: string
|
||||
message?: string
|
||||
createdDate?: string
|
||||
}
|
||||
|
||||
export interface FdaEsgTimelineItemVO {
|
||||
code: string
|
||||
title: string
|
||||
time?: string
|
||||
completed?: boolean
|
||||
failed?: boolean
|
||||
failureReason?: string
|
||||
}
|
||||
|
||||
export interface FdaEsgSubmissionRespVO {
|
||||
id: number
|
||||
sequenceId: number
|
||||
sequenceNumber?: string
|
||||
applicationNumber?: string
|
||||
projectName?: string
|
||||
applicationName?: string
|
||||
sequenceName?: string
|
||||
description?: string
|
||||
submissionType?: string
|
||||
fdaCenter: FdaCenterCode
|
||||
fdaCenterLabel?: string
|
||||
submissionVersion?: number
|
||||
submissionVersionLabel?: string
|
||||
status: string
|
||||
progress?: number
|
||||
coreId?: string
|
||||
payloadId?: string
|
||||
errorMessage?: string
|
||||
submitTime?: string
|
||||
createTime?: string
|
||||
}
|
||||
|
||||
export interface FdaEsgSubmissionDetailRespVO extends FdaEsgSubmissionRespVO {
|
||||
ack1Time?: string
|
||||
ack2Time?: string
|
||||
ack3Time?: string
|
||||
ack3Result?: string
|
||||
timeline?: FdaEsgTimelineItemVO[]
|
||||
acknowledgements?: FdaEsgAckMessageVO[]
|
||||
}
|
||||
|
||||
export const FDA_CENTER_OPTIONS: Array<{ code: FdaCenterCode; labelKey: string }> = [
|
||||
{ code: 'CBER', labelKey: 'sas.userProject.fdaCenterCber' },
|
||||
{ code: 'CDER', labelKey: 'sas.userProject.fdaCenterCder' },
|
||||
{ code: 'CDRH', labelKey: 'sas.userProject.fdaCenterCdrh' },
|
||||
{ code: 'CVM', labelKey: 'sas.userProject.fdaCenterCvm' },
|
||||
{ code: 'CFSAN', labelKey: 'sas.userProject.fdaCenterCfsan' }
|
||||
]
|
||||
|
||||
/** eCTD 递交固定 submission_type */
|
||||
export const FDA_ECTD_SUBMISSION_TYPE = 'ECTD'
|
||||
|
||||
/** eCTD 递交固定 Center */
|
||||
export const FDA_ECTD_CENTER: FdaCenterCode = 'CDER'
|
||||
|
||||
/** eCTD 递交可选 Center(当前仅 CDER) */
|
||||
export const FDA_ECTD_CENTER_OPTIONS = FDA_CENTER_OPTIONS.filter((item) => item.code === FDA_ECTD_CENTER)
|
||||
|
||||
/** 是否可重新递交(未成功到达 FDA 的失败记录) */
|
||||
export const canRetryFdaSubmission = (status?: string) => status === 'Failed'
|
||||
|
||||
export const FDA_STATUS_GROUP_OPTIONS = [
|
||||
{ value: '', labelKey: 'sas.fdaSubmission.statusAll' },
|
||||
{ value: 'processing', labelKey: 'sas.fdaSubmission.statusProcessing' },
|
||||
{ value: 'rejected', labelKey: 'sas.fdaSubmission.statusRejected' },
|
||||
{ value: 'archived', labelKey: 'sas.fdaSubmission.statusArchived' }
|
||||
] as const
|
||||
|
||||
export const FdaSubmissionApi = {
|
||||
prepare: async (sequenceId: number) => {
|
||||
return await request.get<FdaEsgSubmissionPrepareRespVO>({
|
||||
url: '/sas/fda-submission/prepare',
|
||||
params: { sequenceId }
|
||||
})
|
||||
},
|
||||
|
||||
create: async (data: FdaEsgSubmissionCreateReqVO) => {
|
||||
return await request.post<number>({ url: '/sas/fda-submission/create', data })
|
||||
},
|
||||
|
||||
retry: async (id: number) => {
|
||||
return await request.post<number>({ url: '/sas/fda-submission/retry', params: { id } })
|
||||
},
|
||||
|
||||
get: async (id: number) => {
|
||||
return await request.get<FdaEsgSubmissionRespVO>({ url: '/sas/fda-submission/get', params: { id } })
|
||||
},
|
||||
|
||||
getDetail: async (id: number) => {
|
||||
return await request.get<FdaEsgSubmissionDetailRespVO>({
|
||||
url: '/sas/fda-submission/detail',
|
||||
params: { id }
|
||||
})
|
||||
},
|
||||
|
||||
page: async (params: FdaEsgSubmissionPageReqVO) => {
|
||||
return await request.get<{ list: FdaEsgSubmissionRespVO[]; total: number }>({
|
||||
url: '/sas/fda-submission/page',
|
||||
params
|
||||
})
|
||||
},
|
||||
|
||||
listBySequence: async (sequenceId: number) => {
|
||||
return await request.get<FdaEsgSubmissionRespVO[]>({
|
||||
url: '/sas/fda-submission/list-by-sequence',
|
||||
params: { sequenceId }
|
||||
})
|
||||
},
|
||||
|
||||
refreshAck: async (id: number) => {
|
||||
return await request.post<boolean>({ url: '/sas/fda-submission/refresh-ack', params: { id } })
|
||||
},
|
||||
|
||||
refreshAckAll: async () => {
|
||||
return await request.post<number>({ url: '/sas/fda-submission/refresh-ack-all' })
|
||||
}
|
||||
}
|
||||
|
||||
export const getFdaSubmissionStatusType = (status?: string) => {
|
||||
switch (status) {
|
||||
case 'Rejected':
|
||||
case 'Failed':
|
||||
return 'danger'
|
||||
case 'Archived':
|
||||
case 'ACK3Received':
|
||||
return 'success'
|
||||
case 'Submitted':
|
||||
case 'ACK1Received':
|
||||
case 'ACK2Received':
|
||||
return 'warning'
|
||||
default:
|
||||
return 'info'
|
||||
}
|
||||
}
|
||||
|
||||
export const getFdaSubmissionStatusLabelKey = (status?: string) => {
|
||||
if (!status) return 'sas.fdaSubmission.statusUnknown'
|
||||
return `sas.fdaSubmission.status.${status}`
|
||||
}
|
||||
135
src/api/sas/home/index.ts
Normal file
135
src/api/sas/home/index.ts
Normal file
@ -0,0 +1,135 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 任务统计 VO
|
||||
export interface TaskStatisticsVO {
|
||||
overdueTaskCount: number // 逾期任务数量
|
||||
pendingTaskCount: number // 待处理任务数量
|
||||
totalTaskCount: number // 总任务数量
|
||||
}
|
||||
|
||||
// 我的项目 VO
|
||||
export interface MyProjectVO {
|
||||
projectId: number // 项目ID
|
||||
projectName: string // 项目名称
|
||||
applicationId: number // 申请ID
|
||||
applicationName: string // 申请名称
|
||||
sequenceName: string // 序列名称
|
||||
sequenceId: number,
|
||||
status: number // 状态
|
||||
statusName: string // 状态名称
|
||||
importZip?: boolean // 是否为外部导入
|
||||
}
|
||||
|
||||
// 普通用户首页数据 VO
|
||||
export interface NormalHomeVO {
|
||||
taskStatistics: TaskStatisticsVO // 任务统计
|
||||
myProjects: MyProjectVO[] // 我的项目列表
|
||||
}
|
||||
|
||||
// 月度统计数据 VO
|
||||
export interface MonthlyStatisticsVO {
|
||||
month: string // 月份 (格式: YYYY-MM)
|
||||
count: number // 数量
|
||||
}
|
||||
|
||||
// 文件统计 VO
|
||||
export interface FileStatisticsVO {
|
||||
ectdFileCount: MonthlyStatisticsVO[] // eCTD文件数量统计
|
||||
electronicFileCount: MonthlyStatisticsVO[] // 电子文件数量统计
|
||||
}
|
||||
|
||||
// 用户统计 VO
|
||||
export interface UserStatisticsVO {
|
||||
normalUserCount: MonthlyStatisticsVO[] // 正常用户新增数量统计
|
||||
disabledUserCount: MonthlyStatisticsVO[] // 禁用用户新增数量统计
|
||||
}
|
||||
|
||||
// 项目统计 VO
|
||||
export interface ProjectStatisticsVO {
|
||||
ectdProjectCount: MonthlyStatisticsVO[] // eCTD项目数量统计
|
||||
electronicProjectCount: MonthlyStatisticsVO[] // 电子项目数量统计
|
||||
}
|
||||
|
||||
/** 状态/格式名称与数量(序列状态、文档状态、未分类统计等) */
|
||||
export interface FileStateItem {
|
||||
state: string
|
||||
num: number
|
||||
}
|
||||
|
||||
// 管理员首页数据 VO
|
||||
export interface SuperHomeVO {
|
||||
fileStatistics: FileStatisticsVO // 文件统计
|
||||
userStatistics: UserStatisticsVO // 用户统计
|
||||
projectStatistics: ProjectStatisticsVO // 项目统计
|
||||
/** eCTD 递交总览:各序列状态(ectd_project_state)数量 */
|
||||
ectdSubmissionOverview?: FileStateItem[]
|
||||
/** eCTD 文档状态分析:file_in_tree_state 数量 */
|
||||
ectdDocumentStateAnalysis?: FileStateItem[]
|
||||
/** 电子申报文档状态分析 */
|
||||
electronicDocumentStateAnalysis?: FileStateItem[]
|
||||
/** 未分类文档:tree_nodeId 为空或 0,分 eCTD / 电子申报 */
|
||||
uncategorizedDocumentStatistics?: FileStateItem[]
|
||||
}
|
||||
|
||||
// 每日任务数据 VO
|
||||
export interface DailyTaskDataVO {
|
||||
date: string // 日期 (格式: YYYY-MM-DD)
|
||||
count: number // 数量
|
||||
firstTaskName: string // 第一个任务名称
|
||||
flowStatus: string // 流程状态
|
||||
}
|
||||
|
||||
// 任务统计详情 VO
|
||||
export interface TaskStatisticsDetailVO {
|
||||
totalCount: number // 总数量
|
||||
firstTaskName: string // 第一个任务名称
|
||||
flowStatus: string // 流程状态
|
||||
dailyDataList: DailyTaskDataVO[] // 每日数据列表
|
||||
}
|
||||
|
||||
// 普通用户月度任务统计响应 VO
|
||||
export interface NormalIndexTaskRespVO {
|
||||
overdueTaskStatistics: TaskStatisticsDetailVO // 逾期任务统计
|
||||
pendingTaskStatistics: TaskStatisticsDetailVO // 待处理任务统计
|
||||
}
|
||||
|
||||
// 任务详情 VO
|
||||
export interface TaskDetailVO {
|
||||
taskId: number // 任务ID
|
||||
taskName: string // 任务名称
|
||||
flowStatus: number // 流程状态
|
||||
createTime: string | null //创建时间
|
||||
endTime: string | null // 结束时间
|
||||
systemType: string // 系统类型
|
||||
fileSize: number // 文件大小
|
||||
fileSizeDesc: string // 文件大小描述
|
||||
}
|
||||
|
||||
// 普通用户月度任务详情响应 VO
|
||||
export interface NormalIndexTaskDetailRespVO {
|
||||
overdueTasks: TaskDetailVO[] // 逾期任务列表
|
||||
pendingTasks: TaskDetailVO[] // 待处理任务列表
|
||||
}
|
||||
|
||||
// 首页 API
|
||||
export const HomeApi = {
|
||||
// 获取普通用户首页数据
|
||||
getNormalHomeData: async () => {
|
||||
return await request.get({ url: `/sas/home/normal-index` })
|
||||
},
|
||||
|
||||
// 获取管理员首页数据
|
||||
getSuperHomeData: async () => {
|
||||
return await request.get({ url: `/sas/home/super-index` })
|
||||
},
|
||||
|
||||
// 获取普通用户月度任务统计
|
||||
getNormalMonthTask: async (month: string) => {
|
||||
return await request.get({ url: `/sas/home/normal-month-task`, params: { month } })
|
||||
},
|
||||
|
||||
// 获取普通用户当日任务明细
|
||||
getNormalMonthTaskDetail: async (day: string) => {
|
||||
return await request.get({ url: `/sas/home/normal-month-task-detail`, params: { day } })
|
||||
},
|
||||
}
|
||||
73
src/api/sas/home/normal.json
Normal file
73
src/api/sas/home/normal.json
Normal file
@ -0,0 +1,73 @@
|
||||
{
|
||||
"code": 0,
|
||||
"data": {
|
||||
"taskStatistics": {
|
||||
"overdueTaskCount": 3,
|
||||
"pendingTaskCount": 8,
|
||||
"totalTaskCount": 25
|
||||
},
|
||||
"myProjects": [
|
||||
{
|
||||
"projectId": 1001,
|
||||
"projectName": "阿司匹林肠溶片",
|
||||
"applicationId": 2001,
|
||||
"applicationName": "阿司匹林肠溶片临床试验申请",
|
||||
"sequenceId": 3001,
|
||||
"sequenceName": "序列001",
|
||||
"status": 2,
|
||||
"statusName": "已发布"
|
||||
},
|
||||
{
|
||||
"projectId": 1002,
|
||||
"projectName": "布洛芬缓释胶囊",
|
||||
"applicationId": 2002,
|
||||
"applicationName": "布洛芬缓释胶囊上市申请",
|
||||
"sequenceId": 3002,
|
||||
"sequenceName": "序列002",
|
||||
"status": 1,
|
||||
"statusName": "未发布"
|
||||
},
|
||||
{
|
||||
"projectId": 1003,
|
||||
"projectName": "对乙酰氨基酚片",
|
||||
"applicationId": 2003,
|
||||
"applicationName": "对乙酰氨基酚片补充申请",
|
||||
"sequenceId": 3003,
|
||||
"sequenceName": "序列003",
|
||||
"status": 0,
|
||||
"statusName": "新建"
|
||||
},
|
||||
{
|
||||
"projectId": 1004,
|
||||
"projectName": "维生素C片",
|
||||
"applicationId": 2004,
|
||||
"applicationName": "维生素C片临床试验申请",
|
||||
"sequenceId": 3004,
|
||||
"sequenceName": "序列004",
|
||||
"status": 3,
|
||||
"statusName": "已归档"
|
||||
},
|
||||
{
|
||||
"projectId": 1005,
|
||||
"projectName": "钙片",
|
||||
"applicationId": 2005,
|
||||
"applicationName": "钙片上市申请",
|
||||
"sequenceId": 3005,
|
||||
"sequenceName": "序列005",
|
||||
"status": 1,
|
||||
"statusName": "未发布"
|
||||
},
|
||||
{
|
||||
"projectId": 1006,
|
||||
"projectName": "叶酸片",
|
||||
"applicationId": 2006,
|
||||
"applicationName": "叶酸片补充申请",
|
||||
"sequenceId": 3006,
|
||||
"sequenceName": "序列006",
|
||||
"status": 0,
|
||||
"statusName": "新建"
|
||||
}
|
||||
]
|
||||
},
|
||||
"msg": "操作成功"
|
||||
}
|
||||
388
src/api/sas/home/normal_task.json
Normal file
388
src/api/sas/home/normal_task.json
Normal file
@ -0,0 +1,388 @@
|
||||
{
|
||||
"overdueTaskStatistics": {
|
||||
"totalCount": 5,
|
||||
"firstTaskName": "临床研究报告.pdf",
|
||||
"flowStatus": "内容审核阶段:",
|
||||
"dailyDataList": [
|
||||
{
|
||||
"date": "2025-08-01",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-02",
|
||||
"count": 1,
|
||||
"firstTaskName": "临床研究报告.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-03",
|
||||
"count": 2,
|
||||
"firstTaskName": "临床研究报告.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-04",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-05",
|
||||
"count": 1,
|
||||
"firstTaskName": "安全性报告.pdf",
|
||||
"flowStatus": "格式审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-06",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-07",
|
||||
"count": 1,
|
||||
"firstTaskName": "质量报告.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-08",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-09",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-10",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-11",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-12",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-13",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-14",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-15",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-16",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-17",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-18",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-19",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-20",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-21",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-22",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-23",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-24",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-25",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-26",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-27",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-28",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-29",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-30",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
},
|
||||
{
|
||||
"date": "2025-08-31",
|
||||
"count": 0,
|
||||
"firstTaskName": "",
|
||||
"flowStatus": ""
|
||||
}
|
||||
]
|
||||
},
|
||||
"pendingTaskStatistics": {
|
||||
"totalCount": 8,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:",
|
||||
"dailyDataList": [
|
||||
{
|
||||
"date": "2025-08-01",
|
||||
"count": 2,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-02",
|
||||
"count": 3,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-03",
|
||||
"count": 3,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-04",
|
||||
"count": 4,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-05",
|
||||
"count": 4,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-06",
|
||||
"count": 5,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-07",
|
||||
"count": 5,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-08",
|
||||
"count": 6,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-09",
|
||||
"count": 6,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-10",
|
||||
"count": 7,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-11",
|
||||
"count": 7,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-12",
|
||||
"count": 7,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-13",
|
||||
"count": 7,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-14",
|
||||
"count": 7,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-15",
|
||||
"count": 7,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-16",
|
||||
"count": 7,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-17",
|
||||
"count": 7,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-18",
|
||||
"count": 7,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-19",
|
||||
"count": 7,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-20",
|
||||
"count": 7,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-21",
|
||||
"count": 7,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-22",
|
||||
"count": 7,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-23",
|
||||
"count": 7,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-24",
|
||||
"count": 7,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-25",
|
||||
"count": 7,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-26",
|
||||
"count": 7,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-27",
|
||||
"count": 7,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-28",
|
||||
"count": 7,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-29",
|
||||
"count": 7,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-30",
|
||||
"count": 7,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
},
|
||||
{
|
||||
"date": "2025-08-31",
|
||||
"count": 8,
|
||||
"firstTaskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
78
src/api/sas/home/normal_task_detail.json
Normal file
78
src/api/sas/home/normal_task_detail.json
Normal file
@ -0,0 +1,78 @@
|
||||
{
|
||||
"overdueTasks": [
|
||||
{
|
||||
"taskId": 1001,
|
||||
"taskName": "临床研究报告.pdf",
|
||||
"flowStatus": "内容审核阶段:",
|
||||
"endTime": "2025-08-02T18:00:00",
|
||||
"systemType": "eCTD申报系统",
|
||||
"fileSize": 2048576,
|
||||
"fileSizeDesc": "2.0 MB"
|
||||
},
|
||||
{
|
||||
"taskId": 1002,
|
||||
"taskName": "安全性报告.pdf",
|
||||
"flowStatus": "格式审核阶段:",
|
||||
"endTime": "2025-08-05T12:00:00",
|
||||
"systemType": "eCTD申报系统",
|
||||
"fileSize": 1536000,
|
||||
"fileSizeDesc": "1.5 MB"
|
||||
},
|
||||
{
|
||||
"taskId": 1003,
|
||||
"taskName": "质量报告.pdf",
|
||||
"flowStatus": "内容审核阶段:",
|
||||
"endTime": "2025-08-07T15:30:00",
|
||||
"systemType": "电子申报系统",
|
||||
"fileSize": 3072000,
|
||||
"fileSizeDesc": "3.0 MB"
|
||||
}
|
||||
],
|
||||
"pendingTasks": [
|
||||
{
|
||||
"taskId": 2001,
|
||||
"taskName": "产品说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:",
|
||||
"endTime": "2025-08-15T20:00:00",
|
||||
"systemType": "eCTD申报系统",
|
||||
"fileSize": 1024000,
|
||||
"fileSizeDesc": "1.0 MB"
|
||||
},
|
||||
{
|
||||
"taskId": 2002,
|
||||
"taskName": "标签说明书.pdf",
|
||||
"flowStatus": "格式审核阶段:",
|
||||
"endTime": "2025-08-20T16:00:00",
|
||||
"systemType": "eCTD申报系统",
|
||||
"fileSize": 512000,
|
||||
"fileSizeDesc": "512.0 KB"
|
||||
},
|
||||
{
|
||||
"taskId": 2003,
|
||||
"taskName": "包装说明书.pdf",
|
||||
"flowStatus": "内容审核阶段:",
|
||||
"endTime": null,
|
||||
"systemType": "电子申报系统",
|
||||
"fileSize": 768000,
|
||||
"fileSizeDesc": "768.0 KB"
|
||||
},
|
||||
{
|
||||
"taskId": 2004,
|
||||
"taskName": "稳定性报告.pdf",
|
||||
"flowStatus": "格式审核阶段:",
|
||||
"endTime": "2025-08-25T14:00:00",
|
||||
"systemType": "eCTD申报系统",
|
||||
"fileSize": 4096000,
|
||||
"fileSizeDesc": "4.0 MB"
|
||||
},
|
||||
{
|
||||
"taskId": 2005,
|
||||
"taskName": "药代动力学报告.pdf",
|
||||
"flowStatus": "内容审核阶段:",
|
||||
"endTime": "2025-08-30T10:00:00",
|
||||
"systemType": "电子申报系统",
|
||||
"fileSize": 6144000,
|
||||
"fileSizeDesc": "6.0 MB"
|
||||
}
|
||||
]
|
||||
}
|
||||
168
src/api/sas/home/super.json
Normal file
168
src/api/sas/home/super.json
Normal file
@ -0,0 +1,168 @@
|
||||
{
|
||||
"code": 0,
|
||||
"data": {
|
||||
"fileStatistics": {
|
||||
"ectdFileCount": [
|
||||
{
|
||||
"month": "2024-01",
|
||||
"count": 156
|
||||
},
|
||||
{
|
||||
"month": "2024-02",
|
||||
"count": 203
|
||||
},
|
||||
{
|
||||
"month": "2024-03",
|
||||
"count": 189
|
||||
},
|
||||
{
|
||||
"month": "2024-04",
|
||||
"count": 234
|
||||
},
|
||||
{
|
||||
"month": "2024-05",
|
||||
"count": 267
|
||||
},
|
||||
{
|
||||
"month": "2024-06",
|
||||
"count": 298
|
||||
}
|
||||
],
|
||||
"electronicFileCount": [
|
||||
{
|
||||
"month": "2024-01",
|
||||
"count": 45
|
||||
},
|
||||
{
|
||||
"month": "2024-02",
|
||||
"count": 67
|
||||
},
|
||||
{
|
||||
"month": "2024-03",
|
||||
"count": 52
|
||||
},
|
||||
{
|
||||
"month": "2024-04",
|
||||
"count": 78
|
||||
},
|
||||
{
|
||||
"month": "2024-05",
|
||||
"count": 89
|
||||
},
|
||||
{
|
||||
"month": "2024-06",
|
||||
"count": 95
|
||||
}
|
||||
]
|
||||
},
|
||||
"userStatistics": {
|
||||
"normalUserCount": [
|
||||
{
|
||||
"month": "2024-01",
|
||||
"count": 12
|
||||
},
|
||||
{
|
||||
"month": "2024-02",
|
||||
"count": 8
|
||||
},
|
||||
{
|
||||
"month": "2024-03",
|
||||
"count": 15
|
||||
},
|
||||
{
|
||||
"month": "2024-04",
|
||||
"count": 6
|
||||
},
|
||||
{
|
||||
"month": "2024-05",
|
||||
"count": 9
|
||||
},
|
||||
{
|
||||
"month": "2024-06",
|
||||
"count": 11
|
||||
}
|
||||
],
|
||||
"disabledUserCount": [
|
||||
{
|
||||
"month": "2024-01",
|
||||
"count": 2
|
||||
},
|
||||
{
|
||||
"month": "2024-02",
|
||||
"count": 1
|
||||
},
|
||||
{
|
||||
"month": "2024-03",
|
||||
"count": 3
|
||||
},
|
||||
{
|
||||
"month": "2024-04",
|
||||
"count": 0
|
||||
},
|
||||
{
|
||||
"month": "2024-05",
|
||||
"count": 2
|
||||
},
|
||||
{
|
||||
"month": "2024-06",
|
||||
"count": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"projectStatistics": {
|
||||
"ectdProjectCount": [
|
||||
{
|
||||
"month": "2024-01",
|
||||
"count": 8
|
||||
},
|
||||
{
|
||||
"month": "2024-02",
|
||||
"count": 12
|
||||
},
|
||||
{
|
||||
"month": "2024-03",
|
||||
"count": 9
|
||||
},
|
||||
{
|
||||
"month": "2024-04",
|
||||
"count": 15
|
||||
},
|
||||
{
|
||||
"month": "2024-05",
|
||||
"count": 18
|
||||
},
|
||||
{
|
||||
"month": "2024-06",
|
||||
"count": 22
|
||||
}
|
||||
],
|
||||
"electronicProjectCount": [
|
||||
{
|
||||
"month": "2024-01",
|
||||
"count": 0
|
||||
},
|
||||
{
|
||||
"month": "2024-02",
|
||||
"count": 0
|
||||
},
|
||||
{
|
||||
"month": "2024-03",
|
||||
"count": 0
|
||||
},
|
||||
{
|
||||
"month": "2024-04",
|
||||
"count": 0
|
||||
},
|
||||
{
|
||||
"month": "2024-05",
|
||||
"count": 0
|
||||
},
|
||||
{
|
||||
"month": "2024-06",
|
||||
"count": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"msg": "操作成功"
|
||||
}
|
||||
44
src/api/sas/independentAuthCode/index.ts
Normal file
44
src/api/sas/independentAuthCode/index.ts
Normal file
@ -0,0 +1,44 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface IndependentAuthCodeVO {
|
||||
id?: number
|
||||
tenantId: number
|
||||
codeId?: string
|
||||
codeType: number
|
||||
authCode?: string
|
||||
expireTime?: string | number
|
||||
used?: boolean
|
||||
usedTime?: string | number | null
|
||||
usedBy?: number
|
||||
usedTargetId?: number
|
||||
usedTargetName?: string
|
||||
remark?: string
|
||||
count?: number
|
||||
createTime?: string | number
|
||||
}
|
||||
|
||||
export interface IndependentAuthCodePageReqVO extends PageParam {
|
||||
tenantId: number
|
||||
codeType?: number
|
||||
used?: boolean
|
||||
}
|
||||
|
||||
export const getIndependentAuthCodePage = (params: IndependentAuthCodePageReqVO) => {
|
||||
return request.get({ url: '/sas/independent-auth-code/page', params })
|
||||
}
|
||||
|
||||
export const getIndependentAuthCode = (id: number) => {
|
||||
return request.get({ url: '/sas/independent-auth-code/get?id=' + id })
|
||||
}
|
||||
|
||||
export const createIndependentAuthCode = (data: IndependentAuthCodeVO) => {
|
||||
return request.post<number[]>({ url: '/sas/independent-auth-code/create', data })
|
||||
}
|
||||
|
||||
export const updateIndependentAuthCode = (data: IndependentAuthCodeVO) => {
|
||||
return request.put({ url: '/sas/independent-auth-code/update', data })
|
||||
}
|
||||
|
||||
export const deleteIndependentAuthCode = (id: number) => {
|
||||
return request.delete({ url: '/sas/independent-auth-code/delete?id=' + id })
|
||||
}
|
||||
41
src/api/sas/onlyoffice/index.ts
Normal file
41
src/api/sas/onlyoffice/index.ts
Normal file
@ -0,0 +1,41 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
/** OnlyOffice 编辑器配置 */
|
||||
export interface OnlyOfficeEditorConfig {
|
||||
document: {
|
||||
title: string
|
||||
url: string
|
||||
fileType: string
|
||||
key: string
|
||||
permissions: {
|
||||
edit: boolean
|
||||
download: boolean
|
||||
print: boolean
|
||||
}
|
||||
}
|
||||
documentType: string
|
||||
editorConfig: {
|
||||
callbackUrl: string
|
||||
lang: string
|
||||
mode: string
|
||||
user: {
|
||||
id: string
|
||||
name: string
|
||||
}
|
||||
}
|
||||
token?: string
|
||||
}
|
||||
|
||||
// OnlyOffice API
|
||||
export const OnlyOfficeApi = {
|
||||
/** 获取编辑器配置 */
|
||||
getEditorConfig: async (fileId: string, selectVersion: number, isIframe = false) => {
|
||||
return await request.get({
|
||||
url: `/sas/onlyoffice/editor/config/${fileId}?selectVersion=${selectVersion}&isIframe=${isIframe}`
|
||||
})
|
||||
},
|
||||
/** 强制保存文档 */
|
||||
forcesave: async (key: string) => {
|
||||
return await request.post({url: `/sas/onlyoffice/forcesave`, data: { key }})
|
||||
},
|
||||
}
|
||||
57
src/api/sas/submissiontypeconstraint/index.ts
Normal file
57
src/api/sas/submissiontypeconstraint/index.ts
Normal file
@ -0,0 +1,57 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface SubmissionTypeConstraintCodeOptionVO {
|
||||
code: string
|
||||
description: string
|
||||
}
|
||||
|
||||
export interface SubmissionTypeConstraintCodeItemVO {
|
||||
code: string
|
||||
description: string
|
||||
}
|
||||
|
||||
export interface SubmissionTypeConstraintCodeOptionsVO {
|
||||
submissionTypes: SubmissionTypeConstraintCodeOptionVO[]
|
||||
unitTypes: SubmissionTypeConstraintCodeOptionVO[]
|
||||
applicationTypes: SubmissionTypeConstraintCodeOptionVO[]
|
||||
}
|
||||
|
||||
export interface SubmissionTypeConstraintVO {
|
||||
id?: number
|
||||
submissionTypeCode: string
|
||||
submissionTypeDescription?: string
|
||||
unitTypes: SubmissionTypeConstraintCodeItemVO[]
|
||||
applicationTypes: SubmissionTypeConstraintCodeItemVO[]
|
||||
igVersion?: string
|
||||
status?: string
|
||||
remark?: string
|
||||
}
|
||||
|
||||
export const SubmissionTypeConstraintApi = {
|
||||
getList: async (igVersion?: string) => {
|
||||
return await request.get({
|
||||
url: `/sas/submission-type-constraint/list`,
|
||||
params: { igVersion }
|
||||
})
|
||||
},
|
||||
|
||||
get: async (id: number) => {
|
||||
return await request.get({ url: `/sas/submission-type-constraint/get?id=` + id })
|
||||
},
|
||||
|
||||
getCodeOptions: async () => {
|
||||
return await request.get({ url: `/sas/submission-type-constraint/code-options` })
|
||||
},
|
||||
|
||||
create: async (data: SubmissionTypeConstraintVO) => {
|
||||
return await request.post({ url: `/sas/submission-type-constraint/create`, data })
|
||||
},
|
||||
|
||||
update: async (data: SubmissionTypeConstraintVO) => {
|
||||
return await request.put({ url: `/sas/submission-type-constraint/update`, data })
|
||||
},
|
||||
|
||||
delete: async (id: number) => {
|
||||
return await request.delete({ url: `/sas/submission-type-constraint/delete?id=` + id })
|
||||
}
|
||||
}
|
||||
41
src/api/sas/systemaliasnode/index.ts
Normal file
41
src/api/sas/systemaliasnode/index.ts
Normal file
@ -0,0 +1,41 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 关联节点 VO
|
||||
export interface SystemAliasNodeVO {
|
||||
id: number // 主键
|
||||
node1: string // 节点1
|
||||
node2: string // 节点2
|
||||
}
|
||||
|
||||
// 关联节点 API
|
||||
export const SystemAliasNodeApi = {
|
||||
// 查询关联节点分页
|
||||
getSystemAliasNodePage: async (params: any) => {
|
||||
return await request.get({ url: `/sas/system-alias-node/page`, params })
|
||||
},
|
||||
|
||||
// 查询关联节点详情
|
||||
getSystemAliasNode: async (id: number) => {
|
||||
return await request.get({ url: `/sas/system-alias-node/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增关联节点
|
||||
createSystemAliasNode: async (data: SystemAliasNodeVO) => {
|
||||
return await request.post({ url: `/sas/system-alias-node/create`, data })
|
||||
},
|
||||
|
||||
// 修改关联节点
|
||||
updateSystemAliasNode: async (data: SystemAliasNodeVO) => {
|
||||
return await request.put({ url: `/sas/system-alias-node/update`, data })
|
||||
},
|
||||
|
||||
// 删除关联节点
|
||||
deleteSystemAliasNode: async (id: number) => {
|
||||
return await request.delete({ url: `/sas/system-alias-node/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出关联节点 Excel
|
||||
exportSystemAliasNode: async (params) => {
|
||||
return await request.download({ url: `/sas/system-alias-node/export-excel`, params })
|
||||
},
|
||||
}
|
||||
42
src/api/sas/systemelementlocation/index.ts
Normal file
42
src/api/sas/systemelementlocation/index.ts
Normal file
@ -0,0 +1,42 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// ectd系统元素路径关联 VO
|
||||
export interface SystemElementLocationVO {
|
||||
id: number // 主键
|
||||
elementName: string // 元素名称
|
||||
folder: string // 文件夹路径
|
||||
type: string // 类型
|
||||
}
|
||||
|
||||
// ectd系统元素路径关联 API
|
||||
export const SystemElementLocationApi = {
|
||||
// 查询ectd系统元素路径关联分页
|
||||
getSystemElementLocationPage: async (params: any) => {
|
||||
return await request.get({ url: `/sas/system-element-location/page`, params })
|
||||
},
|
||||
|
||||
// 查询ectd系统元素路径关联详情
|
||||
getSystemElementLocation: async (id: number) => {
|
||||
return await request.get({ url: `/sas/system-element-location/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增ectd系统元素路径关联
|
||||
createSystemElementLocation: async (data: SystemElementLocationVO) => {
|
||||
return await request.post({ url: `/sas/system-element-location/create`, data })
|
||||
},
|
||||
|
||||
// 修改ectd系统元素路径关联
|
||||
updateSystemElementLocation: async (data: SystemElementLocationVO) => {
|
||||
return await request.put({ url: `/sas/system-element-location/update`, data })
|
||||
},
|
||||
|
||||
// 删除ectd系统元素路径关联
|
||||
deleteSystemElementLocation: async (id: number) => {
|
||||
return await request.delete({ url: `/sas/system-element-location/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出ectd系统元素路径关联 Excel
|
||||
exportSystemElementLocation: async (params) => {
|
||||
return await request.download({ url: `/sas/system-element-location/export-excel`, params })
|
||||
},
|
||||
}
|
||||
46
src/api/sas/systemiche3/index.ts
Normal file
46
src/api/sas/systemiche3/index.ts
Normal file
@ -0,0 +1,46 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// ICH E3结构 VO
|
||||
export interface SystemIchE3VO {
|
||||
id: number // 主键
|
||||
fileTagName: string // 节点标签名
|
||||
fileEnName: string // 节点英文名
|
||||
fileZhName: string // 节点中文名
|
||||
parentId: number // 父节点id
|
||||
type: string // 类型
|
||||
folder: string // 物理文件夹
|
||||
country?: number // 国家,null表示全部,否则为字典ectd_template_type中对应的值
|
||||
}
|
||||
|
||||
// ICH E3结构 API
|
||||
export const SystemIchE3Api = {
|
||||
// 查询ICH E3结构列表
|
||||
getSystemIchE3List: async (params?: any) => {
|
||||
return await request.get({ url: `/sas/system-ich-e3/list`, params })
|
||||
},
|
||||
|
||||
// 查询ICH E3结构详情
|
||||
getSystemIchE3: async (id: number) => {
|
||||
return await request.get({ url: `/sas/system-ich-e3/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增ICH E3结构
|
||||
createSystemIchE3: async (data: SystemIchE3VO) => {
|
||||
return await request.post({ url: `/sas/system-ich-e3/create`, data })
|
||||
},
|
||||
|
||||
// 修改ICH E3结构
|
||||
updateSystemIchE3: async (data: SystemIchE3VO) => {
|
||||
return await request.put({ url: `/sas/system-ich-e3/update`, data })
|
||||
},
|
||||
|
||||
// 删除ICH E3结构
|
||||
deleteSystemIchE3: async (id: number) => {
|
||||
return await request.delete({ url: `/sas/system-ich-e3/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出ICH E3结构 Excel
|
||||
exportSystemIchE3: async (params) => {
|
||||
return await request.download({ url: `/sas/system-ich-e3/export-excel`, params })
|
||||
},
|
||||
}
|
||||
42
src/api/sas/systemlocal/index.ts
Normal file
42
src/api/sas/systemlocal/index.ts
Normal file
@ -0,0 +1,42 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// ectd系统本地化 VO
|
||||
export interface SystemLocalVO {
|
||||
id: number // 主键
|
||||
elementName: string // 节点名称
|
||||
zh: string // 中文名称
|
||||
en: string // 英文名称
|
||||
}
|
||||
|
||||
// ectd系统本地化 API
|
||||
export const SystemLocalApi = {
|
||||
// 查询ectd系统本地化分页
|
||||
getSystemLocalPage: async (params: any) => {
|
||||
return await request.get({ url: `/sas/system-local/page`, params })
|
||||
},
|
||||
|
||||
// 查询ectd系统本地化详情
|
||||
getSystemLocal: async (id: number) => {
|
||||
return await request.get({ url: `/sas/system-local/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增ectd系统本地化
|
||||
createSystemLocal: async (data: SystemLocalVO) => {
|
||||
return await request.post({ url: `/sas/system-local/create`, data })
|
||||
},
|
||||
|
||||
// 修改ectd系统本地化
|
||||
updateSystemLocal: async (data: SystemLocalVO) => {
|
||||
return await request.put({ url: `/sas/system-local/update`, data })
|
||||
},
|
||||
|
||||
// 删除ectd系统本地化
|
||||
deleteSystemLocal: async (id: number) => {
|
||||
return await request.delete({ url: `/sas/system-local/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出ectd系统本地化 Excel
|
||||
exportSystemLocal: async (params) => {
|
||||
return await request.download({ url: `/sas/system-local/export-excel`, params })
|
||||
},
|
||||
}
|
||||
78
src/api/sas/systemtemplate/index.ts
Normal file
78
src/api/sas/systemtemplate/index.ts
Normal file
@ -0,0 +1,78 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 系统各国模板版本 VO
|
||||
export interface SystemTemplateVO {
|
||||
id: number // 主键
|
||||
name: string // 模板名称
|
||||
type: number // 模板类型(国家/地区)
|
||||
ectdType: number // eCTD 类型(3.2.2 / 4.0)
|
||||
vc: number // 版本号
|
||||
version: string // 版本名称
|
||||
defaultVersion: boolean // 是否默认
|
||||
dtdPath: string // DTD路径
|
||||
xsdPath: string // XSD路径
|
||||
remark: string //版本说明
|
||||
utilPath: string //Util工具路径
|
||||
m1Path?: string[]
|
||||
m2Path?: string[]
|
||||
regional?: string
|
||||
indexXml?: string
|
||||
stfXml?: string
|
||||
}
|
||||
|
||||
export interface SystemTemplateCopyReqVO {
|
||||
sourceId: number // 主键
|
||||
name: string // 模板名称
|
||||
ectdType: number // eCTD 类型(3.2.2 / 4.0)
|
||||
vc: number // 版本号
|
||||
version: string // 版本名称
|
||||
remark: string //版本说明
|
||||
}
|
||||
|
||||
// 系统各国模板版本 API
|
||||
export const SystemTemplateApi = {
|
||||
// 查询系统各国模板版本分页
|
||||
getSystemTemplatePage: async (params: any) => {
|
||||
return await request.get({ url: `/sas/system-template/page`, params })
|
||||
},
|
||||
|
||||
// 查询系统各国模板版本列表
|
||||
getSystemTemplateList: async (params?: any) => {
|
||||
return await request.get({ url: `/sas/system-template/list`, params })
|
||||
},
|
||||
|
||||
// 查询系统各国模板版本详情
|
||||
getSystemTemplate: async (id: number) => {
|
||||
return await request.get({ url: `/sas/system-template/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增系统各国模板版本
|
||||
createSystemTemplate: async (data: SystemTemplateVO) => {
|
||||
return await request.post({ url: `/sas/system-template/create`, data })
|
||||
},
|
||||
|
||||
// 修改系统各国模板版本
|
||||
updateSystemTemplate: async (data: SystemTemplateVO) => {
|
||||
return await request.put({ url: `/sas/system-template/update`, data })
|
||||
},
|
||||
|
||||
// 删除系统各国模板版本
|
||||
deleteSystemTemplate: async (id: number) => {
|
||||
return await request.delete({ url: `/sas/system-template/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 生成目录树模板结构
|
||||
createTreeSystemTemplate: async (id: number) => {
|
||||
return await request.get({ url: `/sas/system-template/createTree?id=` + id })
|
||||
},
|
||||
|
||||
// 导出系统各国模板版本 Excel
|
||||
exportSystemTemplate: async (params) => {
|
||||
return await request.download({ url: `/sas/system-template/export-excel`, params })
|
||||
},
|
||||
|
||||
//拷贝
|
||||
copySystemTemplate: async (data: SystemTemplateCopyReqVO) => {
|
||||
return await request.post({url: `/sas/system-template/copy`, data})
|
||||
}
|
||||
}
|
||||
40
src/api/sas/systemutilzip/index.ts
Normal file
40
src/api/sas/systemutilzip/index.ts
Normal file
@ -0,0 +1,40 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// util压缩包 VO
|
||||
export interface SystemUtilZipVO {
|
||||
id: number // 主键
|
||||
templateFile: string // 模板文件
|
||||
}
|
||||
|
||||
// util压缩包 API
|
||||
export const SystemUtilZipApi = {
|
||||
// 查询util压缩包分页
|
||||
getSystemUtilZipPage: async (params: any) => {
|
||||
return await request.get({ url: `/sas/system-util-zip/page`, params })
|
||||
},
|
||||
|
||||
// 查询util压缩包详情
|
||||
getSystemUtilZip: async (id: number) => {
|
||||
return await request.get({ url: `/sas/system-util-zip/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增util压缩包
|
||||
createSystemUtilZip: async (data: SystemUtilZipVO) => {
|
||||
return await request.post({ url: `/sas/system-util-zip/create`, data })
|
||||
},
|
||||
|
||||
// 修改util压缩包
|
||||
updateSystemUtilZip: async (data: SystemUtilZipVO) => {
|
||||
return await request.put({ url: `/sas/system-util-zip/update`, data })
|
||||
},
|
||||
|
||||
// 删除util压缩包
|
||||
deleteSystemUtilZip: async (id: number) => {
|
||||
return await request.delete({ url: `/sas/system-util-zip/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出util压缩包 Excel
|
||||
exportSystemUtilZip: async (params) => {
|
||||
return await request.download({ url: `/sas/system-util-zip/export-excel`, params })
|
||||
},
|
||||
}
|
||||
43
src/api/sas/systemxmlhead/index.ts
Normal file
43
src/api/sas/systemxmlhead/index.ts
Normal file
@ -0,0 +1,43 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// xml文件头 VO
|
||||
export interface SystemXmlHeadVO {
|
||||
id: number // 主键
|
||||
type: number // 类型
|
||||
regional: string // regional
|
||||
indexXml: string // index_xml
|
||||
stfXml: string // stf_xml
|
||||
}
|
||||
|
||||
// xml文件头 API
|
||||
export const SystemXmlHeadApi = {
|
||||
// 查询xml文件头分页
|
||||
getSystemXmlHeadPage: async (params: any) => {
|
||||
return await request.get({ url: `/sas/system-xml-head/page`, params })
|
||||
},
|
||||
|
||||
// 查询xml文件头详情
|
||||
getSystemXmlHead: async (id: number) => {
|
||||
return await request.get({ url: `/sas/system-xml-head/get?id=` + id })
|
||||
},
|
||||
|
||||
// 新增xml文件头
|
||||
createSystemXmlHead: async (data: SystemXmlHeadVO) => {
|
||||
return await request.post({ url: `/sas/system-xml-head/create`, data })
|
||||
},
|
||||
|
||||
// 修改xml文件头
|
||||
updateSystemXmlHead: async (data: SystemXmlHeadVO) => {
|
||||
return await request.put({ url: `/sas/system-xml-head/update`, data })
|
||||
},
|
||||
|
||||
// 删除xml文件头
|
||||
deleteSystemXmlHead: async (id: number) => {
|
||||
return await request.delete({ url: `/sas/system-xml-head/delete?id=` + id })
|
||||
},
|
||||
|
||||
// 导出xml文件头 Excel
|
||||
exportSystemXmlHead: async (params) => {
|
||||
return await request.download({ url: `/sas/system-xml-head/export-excel`, params })
|
||||
},
|
||||
}
|
||||
47
src/api/sas/templateattr/index.ts
Normal file
47
src/api/sas/templateattr/index.ts
Normal file
@ -0,0 +1,47 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
// 目录树节点属性 VO
|
||||
export interface TemplateAttrVO {
|
||||
id: number // 主键
|
||||
name: string // 名称
|
||||
required: boolean // 是否必须
|
||||
displayName: string // 界面显示名
|
||||
attrType: number // 属性类型
|
||||
attrValue: string // 属性类型值
|
||||
defaultValue: string // 默认值
|
||||
fixedValue: string // 固定值
|
||||
treeId: number // 目录树ID
|
||||
}
|
||||
|
||||
// 目录树节点属性 API
|
||||
export const TemplateAttrApi = {
|
||||
// 查询目录树节点属性分页
|
||||
getTemplateAttrPage: async (params: any) => {
|
||||
return await request.get({ url: `/sas/template-attr/page`, params })
|
||||
},
|
||||
|
||||
// 查询目录树节点属性详情
|
||||
getTemplateAttr: async (id: number, name: string) => {
|
||||
return await request.get({ url: `/sas/template-attr/get?id=` + id + "&name=" + name })
|
||||
},
|
||||
|
||||
// 新增目录树节点属性
|
||||
createTemplateAttr: async (data: TemplateAttrVO) => {
|
||||
return await request.post({ url: `/sas/template-attr/create`, data })
|
||||
},
|
||||
|
||||
// 修改目录树节点属性
|
||||
updateTemplateAttr: async (data: TemplateAttrVO) => {
|
||||
return await request.put({ url: `/sas/template-attr/update`, data })
|
||||
},
|
||||
|
||||
// 删除目录树节点属性
|
||||
deleteTemplateAttr: async (id: number, name: string) => {
|
||||
return await request.delete({ url: `/sas/template-attr/delete?id=` + id + "&name=" + name })
|
||||
},
|
||||
|
||||
// 导出目录树节点属性 Excel
|
||||
exportTemplateAttr: async (params) => {
|
||||
return await request.download({ url: `/sas/template-attr/export-excel`, params })
|
||||
},
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user