From 49659c91fdfff29be9df098121ec3f34b2efe958 Mon Sep 17 00:00:00 2001 From: K <1175047471@qq.com> Date: Fri, 5 Jan 2024 14:31:11 +0800 Subject: [PATCH] chore: cleanup --- src/enums/pageEnum.ts | 1 - src/layouts/default/feature/index.vue | 14 - src/layouts/default/footer/index.vue | 16 - .../default/header/components/FullScreen.vue | 26 -- .../default/header/components/index.ts | 5 - .../header/components/notify/NoticeList.vue | 121 ------ .../default/header/components/notify/data.ts | 192 --------- .../header/components/notify/index.vue | 35 -- .../header/components/user-dropdown/index.vue | 14 - src/layouts/default/header/index.vue | 12 +- .../default/tabs/components/FoldButton.vue | 35 -- .../default/tabs/components/TabRedo.vue | 28 -- src/layouts/default/tabs/index.vue | 10 +- src/router/routes/index.ts | 12 - src/router/routes/modules/about.ts | 31 -- src/settings/siteSetting.ts | 8 - src/store/modules/permission.ts | 5 +- src/utils/http/axios/index.ts | 8 - src/views/base/about/index.vue | 107 ----- src/views/base/profile/MsgNotify.vue | 28 -- src/views/base/profile/data.ts | 5 - src/views/base/profile/index.vue | 2 - src/views/bpm/definition/index.vue | 3 - src/views/bpm/form/FormModal.vue | 43 -- src/views/bpm/form/editor/index.vue | 9 - src/views/bpm/form/form.data.ts | 46 -- src/views/bpm/form/index.vue | 86 ---- src/views/bpm/group/GroupModal.vue | 58 --- src/views/bpm/group/group.data.ts | 134 ------ src/views/bpm/group/index.vue | 78 ---- src/views/bpm/model/ModelImportModal.vue | 78 ---- src/views/bpm/model/ModelModal.vue | 58 --- src/views/bpm/model/editor/index.vue | 3 - src/views/bpm/model/index.vue | 143 ------- src/views/bpm/model/model.data.ts | 225 ---------- src/views/bpm/oa/leave/create.vue | 42 -- src/views/bpm/oa/leave/detail.vue | 40 -- src/views/bpm/oa/leave/index.vue | 104 ----- src/views/bpm/oa/leave/leave.data.ts | 158 ------- .../bpm/processInstance/create/create.data.ts | 32 -- .../bpm/processInstance/create/index.vue | 115 ----- .../bpm/processInstance/detail/index.vue | 3 - src/views/bpm/processInstance/index.vue | 84 ---- .../processInstance/processInstance.data.ts | 118 ----- src/views/bpm/task/done/done.data.ts | 79 ---- src/views/bpm/task/done/index.vue | 53 --- src/views/bpm/task/todo/index.vue | 44 -- src/views/bpm/task/todo/todo.data.ts | 59 --- src/views/bpm/taskAssignRule/index.vue | 3 - .../infra/apiAccessLog/AccessLogModal.vue | 25 -- .../infra/apiAccessLog/apiAccessLog.data.ts | 222 ---------- src/views/infra/apiAccessLog/index.vue | 74 ---- src/views/infra/apiErrorLog/ErrorLogModal.vue | 25 -- .../infra/apiErrorLog/apiErrorLog.data.ts | 248 ----------- src/views/infra/apiErrorLog/index.vue | 101 ----- src/views/infra/build/index.vue | 10 - src/views/infra/codegen/EditTable.vue | 96 ----- src/views/infra/codegen/codegen.data.ts | 157 ------- .../codegen/components/BasicInfoForm.vue | 70 --- .../codegen/components/CloumInfoForm.vue | 62 --- .../infra/codegen/components/FinishForm.vue | 55 --- .../codegen/components/ImportTableModal.vue | 43 -- .../infra/codegen/components/PreviewModal.vue | 144 ------- src/views/infra/codegen/components/data.ts | 328 -------------- src/views/infra/codegen/index.vue | 109 ----- src/views/infra/config/ConfigModal.vue | 58 --- src/views/infra/config/config.data.ts | 139 ------ src/views/infra/config/index.vue | 95 ---- .../DataSourceConfigModal.vue | 56 --- .../dataSourceConfig/dataSourceConfig.data.ts | 66 --- src/views/infra/dataSourceConfig/index.vue | 86 ---- src/views/infra/dbDoc/index.vue | 53 --- src/views/infra/druid/index.vue | 12 - src/views/infra/file/file.data.ts | 79 ---- src/views/infra/file/index.vue | 92 ---- .../infra/fileConfig/FileConfigModal.vue | 58 --- .../infra/fileConfig/ficleConfig.data.ts | 179 -------- src/views/infra/fileConfig/index.vue | 107 ----- src/views/infra/job/JobModal.vue | 92 ---- src/views/infra/job/index.vue | 141 ------ src/views/infra/job/job.data.ts | 172 -------- src/views/infra/job/logger/JobLogModal.vue | 28 -- src/views/infra/job/logger/index.vue | 70 --- src/views/infra/job/logger/jobLog.data.ts | 150 ------- .../infra/redis/components/CommandStats.vue | 53 --- src/views/infra/redis/components/Memory.vue | 55 --- src/views/infra/redis/index.vue | 46 -- src/views/infra/redis/redis.data.ts | 64 --- src/views/infra/server/index.vue | 29 -- src/views/infra/skywalking/index.vue | 14 - src/views/infra/swagger/index.vue | 16 - src/views/infra/testDemo/index.vue | 3 - src/views/infra/webSocket/index.vue | 112 ----- src/views/mall/market/banner/index.vue | 3 - src/views/mall/product/brand/index.vue | 3 - src/views/mall/product/category/index.vue | 3 - src/views/mall/product/property/index.vue | 3 - src/views/mall/product/spu/index.vue | 3 - src/views/mall/promotion/coupon/index.vue | 3 - .../mall/promotion/couponTemplate/index.vue | 3 - .../mall/promotion/discountActivity/index.vue | 3 - .../mall/promotion/rewardActivity/index.vue | 3 - .../seckill/seckillActivity/index.vue | 3 - .../promotion/seckill/seckillTime/index.vue | 3 - src/views/mall/trade/afterSale/index.vue | 3 - src/views/mall/trade/expressCompany/index.vue | 3 - src/views/mall/trade/order/index.vue | 3 - src/views/member/config/index.vue | 95 ---- src/views/member/group/GroupModal.vue | 61 --- src/views/member/group/group.data.ts | 84 ---- src/views/member/group/index.vue | 50 --- src/views/member/level/LevelModal.vue | 61 --- src/views/member/level/index.vue | 50 --- src/views/member/level/level.data.ts | 136 ------ src/views/member/point/record/index.vue | 23 - src/views/member/point/record/record.data.ts | 82 ---- .../member/signin/config/ConfigModal.vue | 58 --- src/views/member/signin/config/config.data.ts | 84 ---- src/views/member/signin/config/index.vue | 75 ---- src/views/member/signin/record/index.vue | 23 - src/views/member/signin/record/record.data.ts | 60 --- src/views/member/tag/TagModal.vue | 58 --- src/views/member/tag/index.vue | 78 ---- src/views/member/tag/tag.data.ts | 52 --- src/views/member/user/UpdateLevelModal.vue | 58 --- src/views/member/user/UserDetailDrawer.vue | 57 --- src/views/member/user/UserModal.vue | 58 --- src/views/member/user/index.vue | 67 --- src/views/member/user/user.data.ts | 362 ---------------- src/views/mp/account/AccountModal.vue | 58 --- src/views/mp/account/account.data.ts | 109 ----- src/views/mp/account/index.vue | 119 ------ src/views/mp/autoReply/index.vue | 3 - .../mp/components/WxAccountSelect/index.vue | 48 --- src/views/mp/components/WxLocation/index.vue | 66 --- .../mp/components/WxMaterialSelect/index.vue | 3 - .../mp/components/WxMaterialSelect/type.ts | 11 - src/views/mp/components/WxMsg/index.vue | 3 - src/views/mp/components/WxMusic/index.vue | 58 --- src/views/mp/components/WxNews/index.vue | 190 -------- src/views/mp/components/WxReply/index.vue | 3 - src/views/mp/components/WxVideoPlay/index.vue | 57 --- src/views/mp/components/WxVoicePlay/index.vue | 77 ---- src/views/mp/components/index.ts | 3 - src/views/mp/draft/index.vue | 3 - src/views/mp/freePublish/index.vue | 46 -- src/views/mp/material/index.vue | 3 - src/views/mp/menu/index.vue | 3 - src/views/mp/message/MessageModal.vue | 51 --- src/views/mp/message/index.vue | 49 --- src/views/mp/message/message.data.ts | 166 ------- .../components/InterfaceSummaryChart.vue | 72 ---- .../components/UpstreamMessageChart.vue | 65 --- .../components/UserCumulateChart.vue | 76 ---- .../components/UserSummaryChart.vue | 89 ---- src/views/mp/statistics/index.vue | 24 -- src/views/mp/statistics/statistics.data.ts | 0 src/views/mp/tag/TagModal.vue | 58 --- src/views/mp/tag/index.vue | 93 ---- src/views/mp/tag/tag.data.ts | 70 --- src/views/mp/user/MpUserModal.vue | 48 --- src/views/mp/user/index.vue | 69 --- src/views/mp/user/mpuser.data.ts | 118 ----- src/views/pay/app/AppModal.vue | 58 --- src/views/pay/app/ChannelModal.vue | 88 ---- src/views/pay/app/app.data.ts | 404 ------------------ src/views/pay/app/index.vue | 226 ---------- src/views/pay/cashier/CashierModal.vue | 43 -- src/views/pay/cashier/cashier.data.ts | 115 ----- src/views/pay/cashier/index.vue | 319 -------------- src/views/pay/demo/DemoModal.vue | 46 -- src/views/pay/demo/demo.data.ts | 110 ----- src/views/pay/demo/index.vue | 95 ---- src/views/pay/notify/NotifyModal.vue | 34 -- src/views/pay/notify/index.vue | 50 --- src/views/pay/notify/notify.data.ts | 228 ---------- src/views/pay/order/OrderModal.vue | 23 - src/views/pay/order/index.vue | 70 --- src/views/pay/order/order.data.ts | 278 ------------ src/views/pay/refund/RefundModal.vue | 23 - src/views/pay/refund/index.vue | 70 --- src/views/pay/refund/refund.data.ts | 251 ----------- src/views/report/goview/index.vue | 14 - src/views/report/jmreport/index.vue | 15 - 184 files changed, 8 insertions(+), 12744 deletions(-) delete mode 100644 src/layouts/default/header/components/FullScreen.vue delete mode 100644 src/layouts/default/header/components/notify/NoticeList.vue delete mode 100644 src/layouts/default/header/components/notify/data.ts delete mode 100644 src/layouts/default/header/components/notify/index.vue delete mode 100644 src/layouts/default/tabs/components/FoldButton.vue delete mode 100644 src/layouts/default/tabs/components/TabRedo.vue delete mode 100644 src/router/routes/modules/about.ts delete mode 100644 src/settings/siteSetting.ts delete mode 100644 src/views/base/about/index.vue delete mode 100644 src/views/base/profile/MsgNotify.vue delete mode 100644 src/views/bpm/definition/index.vue delete mode 100644 src/views/bpm/form/FormModal.vue delete mode 100644 src/views/bpm/form/editor/index.vue delete mode 100644 src/views/bpm/form/form.data.ts delete mode 100644 src/views/bpm/form/index.vue delete mode 100644 src/views/bpm/group/GroupModal.vue delete mode 100644 src/views/bpm/group/group.data.ts delete mode 100644 src/views/bpm/group/index.vue delete mode 100644 src/views/bpm/model/ModelImportModal.vue delete mode 100644 src/views/bpm/model/ModelModal.vue delete mode 100644 src/views/bpm/model/editor/index.vue delete mode 100644 src/views/bpm/model/index.vue delete mode 100644 src/views/bpm/model/model.data.ts delete mode 100644 src/views/bpm/oa/leave/create.vue delete mode 100644 src/views/bpm/oa/leave/detail.vue delete mode 100644 src/views/bpm/oa/leave/index.vue delete mode 100644 src/views/bpm/oa/leave/leave.data.ts delete mode 100644 src/views/bpm/processInstance/create/create.data.ts delete mode 100644 src/views/bpm/processInstance/create/index.vue delete mode 100644 src/views/bpm/processInstance/detail/index.vue delete mode 100644 src/views/bpm/processInstance/index.vue delete mode 100644 src/views/bpm/processInstance/processInstance.data.ts delete mode 100644 src/views/bpm/task/done/done.data.ts delete mode 100644 src/views/bpm/task/done/index.vue delete mode 100644 src/views/bpm/task/todo/index.vue delete mode 100644 src/views/bpm/task/todo/todo.data.ts delete mode 100644 src/views/bpm/taskAssignRule/index.vue delete mode 100644 src/views/infra/apiAccessLog/AccessLogModal.vue delete mode 100644 src/views/infra/apiAccessLog/apiAccessLog.data.ts delete mode 100644 src/views/infra/apiAccessLog/index.vue delete mode 100644 src/views/infra/apiErrorLog/ErrorLogModal.vue delete mode 100644 src/views/infra/apiErrorLog/apiErrorLog.data.ts delete mode 100644 src/views/infra/apiErrorLog/index.vue delete mode 100644 src/views/infra/build/index.vue delete mode 100644 src/views/infra/codegen/EditTable.vue delete mode 100644 src/views/infra/codegen/codegen.data.ts delete mode 100644 src/views/infra/codegen/components/BasicInfoForm.vue delete mode 100644 src/views/infra/codegen/components/CloumInfoForm.vue delete mode 100644 src/views/infra/codegen/components/FinishForm.vue delete mode 100644 src/views/infra/codegen/components/ImportTableModal.vue delete mode 100644 src/views/infra/codegen/components/PreviewModal.vue delete mode 100644 src/views/infra/codegen/components/data.ts delete mode 100644 src/views/infra/codegen/index.vue delete mode 100644 src/views/infra/config/ConfigModal.vue delete mode 100644 src/views/infra/config/config.data.ts delete mode 100644 src/views/infra/config/index.vue delete mode 100644 src/views/infra/dataSourceConfig/DataSourceConfigModal.vue delete mode 100644 src/views/infra/dataSourceConfig/dataSourceConfig.data.ts delete mode 100644 src/views/infra/dataSourceConfig/index.vue delete mode 100644 src/views/infra/dbDoc/index.vue delete mode 100644 src/views/infra/druid/index.vue delete mode 100644 src/views/infra/file/file.data.ts delete mode 100644 src/views/infra/file/index.vue delete mode 100644 src/views/infra/fileConfig/FileConfigModal.vue delete mode 100644 src/views/infra/fileConfig/ficleConfig.data.ts delete mode 100644 src/views/infra/fileConfig/index.vue delete mode 100644 src/views/infra/job/JobModal.vue delete mode 100644 src/views/infra/job/index.vue delete mode 100644 src/views/infra/job/job.data.ts delete mode 100644 src/views/infra/job/logger/JobLogModal.vue delete mode 100644 src/views/infra/job/logger/index.vue delete mode 100644 src/views/infra/job/logger/jobLog.data.ts delete mode 100644 src/views/infra/redis/components/CommandStats.vue delete mode 100644 src/views/infra/redis/components/Memory.vue delete mode 100644 src/views/infra/redis/index.vue delete mode 100644 src/views/infra/redis/redis.data.ts delete mode 100644 src/views/infra/server/index.vue delete mode 100644 src/views/infra/skywalking/index.vue delete mode 100644 src/views/infra/swagger/index.vue delete mode 100644 src/views/infra/testDemo/index.vue delete mode 100644 src/views/infra/webSocket/index.vue delete mode 100644 src/views/mall/market/banner/index.vue delete mode 100644 src/views/mall/product/brand/index.vue delete mode 100644 src/views/mall/product/category/index.vue delete mode 100644 src/views/mall/product/property/index.vue delete mode 100644 src/views/mall/product/spu/index.vue delete mode 100644 src/views/mall/promotion/coupon/index.vue delete mode 100644 src/views/mall/promotion/couponTemplate/index.vue delete mode 100644 src/views/mall/promotion/discountActivity/index.vue delete mode 100644 src/views/mall/promotion/rewardActivity/index.vue delete mode 100644 src/views/mall/promotion/seckill/seckillActivity/index.vue delete mode 100644 src/views/mall/promotion/seckill/seckillTime/index.vue delete mode 100644 src/views/mall/trade/afterSale/index.vue delete mode 100644 src/views/mall/trade/expressCompany/index.vue delete mode 100644 src/views/mall/trade/order/index.vue delete mode 100644 src/views/member/config/index.vue delete mode 100644 src/views/member/group/GroupModal.vue delete mode 100644 src/views/member/group/group.data.ts delete mode 100644 src/views/member/group/index.vue delete mode 100644 src/views/member/level/LevelModal.vue delete mode 100644 src/views/member/level/index.vue delete mode 100644 src/views/member/level/level.data.ts delete mode 100644 src/views/member/point/record/index.vue delete mode 100644 src/views/member/point/record/record.data.ts delete mode 100644 src/views/member/signin/config/ConfigModal.vue delete mode 100644 src/views/member/signin/config/config.data.ts delete mode 100644 src/views/member/signin/config/index.vue delete mode 100644 src/views/member/signin/record/index.vue delete mode 100644 src/views/member/signin/record/record.data.ts delete mode 100644 src/views/member/tag/TagModal.vue delete mode 100644 src/views/member/tag/index.vue delete mode 100644 src/views/member/tag/tag.data.ts delete mode 100644 src/views/member/user/UpdateLevelModal.vue delete mode 100644 src/views/member/user/UserDetailDrawer.vue delete mode 100644 src/views/member/user/UserModal.vue delete mode 100644 src/views/member/user/index.vue delete mode 100644 src/views/member/user/user.data.ts delete mode 100644 src/views/mp/account/AccountModal.vue delete mode 100644 src/views/mp/account/account.data.ts delete mode 100644 src/views/mp/account/index.vue delete mode 100644 src/views/mp/autoReply/index.vue delete mode 100644 src/views/mp/components/WxAccountSelect/index.vue delete mode 100644 src/views/mp/components/WxLocation/index.vue delete mode 100644 src/views/mp/components/WxMaterialSelect/index.vue delete mode 100644 src/views/mp/components/WxMaterialSelect/type.ts delete mode 100644 src/views/mp/components/WxMsg/index.vue delete mode 100644 src/views/mp/components/WxMusic/index.vue delete mode 100644 src/views/mp/components/WxNews/index.vue delete mode 100644 src/views/mp/components/WxReply/index.vue delete mode 100644 src/views/mp/components/WxVideoPlay/index.vue delete mode 100644 src/views/mp/components/WxVoicePlay/index.vue delete mode 100644 src/views/mp/components/index.ts delete mode 100644 src/views/mp/draft/index.vue delete mode 100644 src/views/mp/freePublish/index.vue delete mode 100644 src/views/mp/material/index.vue delete mode 100644 src/views/mp/menu/index.vue delete mode 100644 src/views/mp/message/MessageModal.vue delete mode 100644 src/views/mp/message/index.vue delete mode 100644 src/views/mp/message/message.data.ts delete mode 100644 src/views/mp/statistics/components/InterfaceSummaryChart.vue delete mode 100644 src/views/mp/statistics/components/UpstreamMessageChart.vue delete mode 100644 src/views/mp/statistics/components/UserCumulateChart.vue delete mode 100644 src/views/mp/statistics/components/UserSummaryChart.vue delete mode 100644 src/views/mp/statistics/index.vue delete mode 100644 src/views/mp/statistics/statistics.data.ts delete mode 100644 src/views/mp/tag/TagModal.vue delete mode 100644 src/views/mp/tag/index.vue delete mode 100644 src/views/mp/tag/tag.data.ts delete mode 100644 src/views/mp/user/MpUserModal.vue delete mode 100644 src/views/mp/user/index.vue delete mode 100644 src/views/mp/user/mpuser.data.ts delete mode 100644 src/views/pay/app/AppModal.vue delete mode 100644 src/views/pay/app/ChannelModal.vue delete mode 100644 src/views/pay/app/app.data.ts delete mode 100644 src/views/pay/app/index.vue delete mode 100644 src/views/pay/cashier/CashierModal.vue delete mode 100644 src/views/pay/cashier/cashier.data.ts delete mode 100644 src/views/pay/cashier/index.vue delete mode 100644 src/views/pay/demo/DemoModal.vue delete mode 100644 src/views/pay/demo/demo.data.ts delete mode 100644 src/views/pay/demo/index.vue delete mode 100644 src/views/pay/notify/NotifyModal.vue delete mode 100644 src/views/pay/notify/index.vue delete mode 100644 src/views/pay/notify/notify.data.ts delete mode 100644 src/views/pay/order/OrderModal.vue delete mode 100644 src/views/pay/order/index.vue delete mode 100644 src/views/pay/order/order.data.ts delete mode 100644 src/views/pay/refund/RefundModal.vue delete mode 100644 src/views/pay/refund/index.vue delete mode 100644 src/views/pay/refund/refund.data.ts delete mode 100644 src/views/report/goview/index.vue delete mode 100644 src/views/report/jmreport/index.vue diff --git a/src/enums/pageEnum.ts b/src/enums/pageEnum.ts index da262f3..8e51e4c 100644 --- a/src/enums/pageEnum.ts +++ b/src/enums/pageEnum.ts @@ -7,7 +7,6 @@ export enum PageEnum { ERROR_PAGE = '/exception', // error log page path ERROR_LOG_PAGE = '/error-log/list', - MESSAGE_PAGE = '/profile/notify-message', } export const PageWrapperFixedHeightKey = 'PageWrapperFixedHeight' diff --git a/src/layouts/default/feature/index.vue b/src/layouts/default/feature/index.vue index 21b8413..f8cf501 100644 --- a/src/layouts/default/feature/index.vue +++ b/src/layouts/default/feature/index.vue @@ -1,6 +1,5 @@ - - - - - - - - - diff --git a/src/layouts/default/header/components/index.ts b/src/layouts/default/header/components/index.ts index 3b78b6a..6dc97e5 100644 --- a/src/layouts/default/header/components/index.ts +++ b/src/layouts/default/header/components/index.ts @@ -1,4 +1,3 @@ -import FullScreen from './FullScreen.vue' import { createAsyncComponent } from '@/utils/factory/createAsyncComponent' export const UserDropDown = createAsyncComponent(() => import('./user-dropdown/index.vue'), { @@ -7,8 +6,4 @@ export const UserDropDown = createAsyncComponent(() => import('./user-dropdown/i export const LayoutBreadcrumb = createAsyncComponent(() => import('./Breadcrumb.vue')) -export const Notify = createAsyncComponent(() => import('./notify/index.vue')) - export const ErrorAction = createAsyncComponent(() => import('./ErrorAction.vue')) - -export { FullScreen } diff --git a/src/layouts/default/header/components/notify/NoticeList.vue b/src/layouts/default/header/components/notify/NoticeList.vue deleted file mode 100644 index 024c98c..0000000 --- a/src/layouts/default/header/components/notify/NoticeList.vue +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - - - - - - - - {{ item.extra }} - - - - - - - - {{ item.avatar }} - - - - - - - - - {{ item.datetime }} - - - - - - - - diff --git a/src/layouts/default/header/components/notify/data.ts b/src/layouts/default/header/components/notify/data.ts deleted file mode 100644 index 5691082..0000000 --- a/src/layouts/default/header/components/notify/data.ts +++ /dev/null @@ -1,192 +0,0 @@ -export interface ListItem { - id: string - avatar: string - // 通知的标题内容 - title: string - // 是否在标题上显示删除线 - titleDelete?: boolean - datetime: string - type: string - read?: boolean - description: string - clickClose?: boolean - extra?: string - color?: string -} - -export interface TabItem { - key: string - name: string - list: ListItem[] - unreadlist?: ListItem[] -} - -export const tabListData: TabItem[] = [ - { - key: '1', - name: '通知', - list: [ - { - id: '000000001', - avatar: 'https://gw.alipayobjects.com/zos/rmsportal/ThXAXghbEsBCCSDihZxY.png', - title: '你收到了 14 份新周报', - description: '', - datetime: '2017-08-09', - type: '1', - }, - { - id: '000000002', - avatar: 'https://gw.alipayobjects.com/zos/rmsportal/OKJXDXrmkNshAMvwtvhu.png', - title: '你推荐的 曲妮妮 已通过第三轮面试', - description: '', - datetime: '2017-08-08', - type: '1', - }, - { - id: '000000003', - avatar: 'https://gw.alipayobjects.com/zos/rmsportal/kISTdvpyTAhtGxpovNWd.png', - title: '这种模板可以区分多种通知类型', - description: '', - datetime: '2017-08-07', - // read: true, - type: '1', - }, - { - id: '000000004', - avatar: 'https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png', - title: '左侧图标用于区分不同的类型', - description: '', - datetime: '2017-08-07', - type: '1', - }, - { - id: '000000005', - avatar: 'https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png', - title: '标题可以设置自动显示省略号,本例中标题行数已设为1行,如果内容超过1行将自动截断并支持tooltip显示完整标题。', - description: '', - datetime: '2017-08-07', - type: '1', - }, - { - id: '000000006', - avatar: 'https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png', - title: '左侧图标用于区分不同的类型', - description: '', - datetime: '2017-08-07', - type: '1', - }, - { - id: '000000007', - avatar: 'https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png', - title: '左侧图标用于区分不同的类型', - description: '', - datetime: '2017-08-07', - type: '1', - }, - { - id: '000000008', - avatar: 'https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png', - title: '左侧图标用于区分不同的类型', - description: '', - datetime: '2017-08-07', - type: '1', - }, - { - id: '000000009', - avatar: 'https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png', - title: '左侧图标用于区分不同的类型', - description: '', - datetime: '2017-08-07', - type: '1', - }, - { - id: '000000010', - avatar: 'https://gw.alipayobjects.com/zos/rmsportal/GvqBnKhFgObvnSGkDsje.png', - title: '左侧图标用于区分不同的类型', - description: '', - datetime: '2017-08-07', - type: '1', - }, - ], - }, - { - key: '2', - name: '消息', - list: [ - { - id: '000000006', - avatar: 'https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg', - title: '曲丽丽 评论了你', - description: '描述信息描述信息描述信息', - datetime: '2017-08-07', - type: '2', - clickClose: true, - }, - { - id: '000000007', - avatar: 'https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg', - title: '朱偏右 回复了你', - description: '这种模板用于提醒谁与你发生了互动', - datetime: '2017-08-07', - type: '2', - clickClose: true, - }, - { - id: '000000008', - avatar: 'https://gw.alipayobjects.com/zos/rmsportal/fcHMVNCjPOsbUGdEduuv.jpeg', - title: '标题', - description: - '请将鼠标移动到此处,以便测试超长的消息在此处将如何处理。本例中设置的描述最大行数为2,超过2行的描述内容将被省略并且可以通过tooltip查看完整内容', - datetime: '2017-08-07', - type: '2', - clickClose: true, - }, - ], - }, - { - key: '3', - name: '待办', - list: [ - { - id: '000000009', - avatar: '', - title: '任务名称', - description: '任务需要在 2017-01-12 20:00 前启动', - datetime: '', - extra: '未开始', - color: '', - type: '3', - }, - { - id: '000000010', - avatar: '', - title: '第三方紧急代码变更', - description: '冠霖 需在 2017-01-07 前完成代码变更任务', - datetime: '', - extra: '马上到期', - color: 'red', - type: '3', - }, - { - id: '000000011', - avatar: '', - title: '信息安全考试', - description: '指派竹尔于 2017-01-09 前完成更新并发布', - datetime: '', - extra: '已耗时 8 天', - color: 'gold', - type: '3', - }, - { - id: '000000012', - avatar: '', - title: 'ABCD 版本发布', - description: '指派竹尔于 2017-01-09 前完成更新并发布', - datetime: '', - extra: '进行中', - color: 'blue', - type: '3', - }, - ], - }, -] diff --git a/src/layouts/default/header/components/notify/index.vue b/src/layouts/default/header/components/notify/index.vue deleted file mode 100644 index 65b19cb..0000000 --- a/src/layouts/default/header/components/notify/index.vue +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - diff --git a/src/layouts/default/header/components/user-dropdown/index.vue b/src/layouts/default/header/components/user-dropdown/index.vue index 3106145..90144c1 100644 --- a/src/layouts/default/header/components/user-dropdown/index.vue +++ b/src/layouts/default/header/components/user-dropdown/index.vue @@ -3,7 +3,6 @@ import { Avatar, Dropdown, Menu, MenuDivider } from 'ant-design-vue' import { UserOutlined } from '@ant-design/icons-vue' import type { MenuInfo } from 'ant-design-vue/lib/menu/src/interface' import { computed } from 'vue' -import { DOC_URL } from '@/settings/siteSetting' import { useUserStore } from '@/store/modules/user' import { useHeaderSetting } from '@/hooks/setting/useHeaderSetting' import { useI18n } from '@/hooks/web/useI18n' @@ -11,7 +10,6 @@ import { useDesign } from '@/hooks/web/useDesign' import { useModal } from '@/components/Modal' import headerImg from '@/assets/images/header.jpg' import { propTypes } from '@/utils/propTypes' -import { openWindow } from '@/utils' import { useGo } from '@/hooks/web/usePage' import { createAsyncComponent } from '@/utils/factory/createAsyncComponent' @@ -49,11 +47,6 @@ function handleLoginOut() { userStore.confirmLoginOut() } -// open doc -function openDoc() { - openWindow(DOC_URL) -} - function openProfile() { go('/profile/index') } @@ -66,9 +59,6 @@ function handleMenuClick(e: MenuInfo) { case 'logout': handleLoginOut() break - case 'doc': - openDoc() - break case 'lock': handleLock() break @@ -94,10 +84,6 @@ function handleMenuClick(e: MenuInfo) { - { - - - - - - -import { computed, unref } from 'vue' -import { Icon } from '@/components/Icon' - -import { useDesign } from '@/hooks/web/useDesign' -import { useHeaderSetting } from '@/hooks/setting/useHeaderSetting' -import { useMenuSetting } from '@/hooks/setting/useMenuSetting' -import { triggerWindowResize } from '@/utils/event' - -defineOptions({ name: 'FoldButton' }) - -const { prefixCls } = useDesign('multiple-tabs-content') -const { getShowMenu, setMenuSetting } = useMenuSetting() -const { getShowHeader, setHeaderSetting } = useHeaderSetting() - -const getIsUnFold = computed(() => !unref(getShowMenu) && !unref(getShowHeader)) - -const getIcon = computed(() => (unref(getIsUnFold) ? 'codicon:screen-normal' : 'codicon:screen-full')) - -function handleFold() { - const isUnFold = unref(getIsUnFold) - setMenuSetting({ - show: isUnFold, - hidden: !isUnFold, - }) - setHeaderSetting({ show: isUnFold }) - triggerWindowResize() -} - - - - - - - diff --git a/src/layouts/default/tabs/components/TabRedo.vue b/src/layouts/default/tabs/components/TabRedo.vue deleted file mode 100644 index f2a2113..0000000 --- a/src/layouts/default/tabs/components/TabRedo.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - diff --git a/src/layouts/default/tabs/index.vue b/src/layouts/default/tabs/index.vue index b3d0648..132e0e9 100644 --- a/src/layouts/default/tabs/index.vue +++ b/src/layouts/default/tabs/index.vue @@ -8,8 +8,6 @@ import { computed, ref, unref } from 'vue' import { Tabs } from 'ant-design-vue' import { useRouter } from 'vue-router' import TabContent from './components/TabContent.vue' -import FoldButton from './components/FoldButton.vue' -import TabRedo from './components/TabRedo.vue' import { initAffixTabs, useTabsDrag } from './useMultipleTabs' import { multipleTabHeight } from '@/settings/designSetting' @@ -36,7 +34,7 @@ const router = useRouter() const { prefixCls } = useDesign('multiple-tabs') const go = useGo() -const { getShowQuick, getShowRedo, getShowFold } = useMultipleTabSetting() +const { getShowQuick } = useMultipleTabSetting() const getTabsState = computed(() => { return tabStore.getTabList.filter(item => !item.meta?.hideTab) @@ -112,10 +110,8 @@ function handleEdit(targetKey: string) { - - - - + + diff --git a/src/router/routes/index.ts b/src/router/routes/index.ts index 1a303f8..05794a5 100644 --- a/src/router/routes/index.ts +++ b/src/router/routes/index.ts @@ -68,18 +68,6 @@ export const ProfileRoute: AppRouteRecordRaw = { title: t('routes.basic.profile'), }, }, - { - path: 'notify-message', - component: () => import('@/views/system/notify/my/index.vue'), - name: 'MyNotifyMessage', - meta: { - canTo: true, - hidden: true, - noTagsView: false, - icon: 'ant-design:bell-outlined', - title: t('routes.basic.notifyMessage'), - }, - }, ], } diff --git a/src/router/routes/modules/about.ts b/src/router/routes/modules/about.ts deleted file mode 100644 index f25398d..0000000 --- a/src/router/routes/modules/about.ts +++ /dev/null @@ -1,31 +0,0 @@ -import type { AppRouteModule } from '@/router/types' - -import { LAYOUT } from '@/router/constant' -import { t } from '@/hooks/web/useI18n' - -const about: AppRouteModule = { - path: '/about', - name: 'About', - component: LAYOUT, - redirect: '/about/index', - meta: { - hideChildrenInMenu: true, - icon: 'ant-design:pushpin-filled', - title: t('routes.dashboard.about'), - orderNo: 100000, - }, - children: [ - { - path: 'index', - name: 'AboutPage', - component: () => import('@/views/base/about/index.vue'), - meta: { - title: t('routes.dashboard.about'), - icon: 'ant-design:pushpin-filled', - hideMenu: true, - }, - }, - ], -} - -export default about diff --git a/src/settings/siteSetting.ts b/src/settings/siteSetting.ts deleted file mode 100644 index c107dce..0000000 --- a/src/settings/siteSetting.ts +++ /dev/null @@ -1,8 +0,0 @@ -// github repo url -export const GITHUB_URL = 'https://gitee.com/xingyuv/vue-vben-admin' - -// vue-vben-admin-next-doc -export const DOC_URL = 'http://vben-doc.x-surge.com/' - -// site url -export const SITE_URL = 'http://static.yudao.iocoder.cn/mp/xinyu370.jpeg' diff --git a/src/store/modules/permission.ts b/src/store/modules/permission.ts index f3e81bc..bcc5853 100644 --- a/src/store/modules/permission.ts +++ b/src/store/modules/permission.ts @@ -7,7 +7,6 @@ import { useAppStoreWithOut } from './app' import { store } from '@/store' import type { AppRouteRecordRaw, Menu } from '@/router/types' import { asyncRoutes } from '@/router/routes' -import about from '@/router/routes/modules/about' import dashboard from '@/router/routes/modules/dashboard' import { PAGE_NOT_FOUND_ROUTE } from '@/router/routes/basic' import { transformRouteToMenu } from '@/router/helper/menuHelper' @@ -226,14 +225,14 @@ export const usePermissionStore = defineStore('app-permission', { routeList = transformObjToRoute(routeList) // Background routing to menu structure // 后台路由到菜单结构 - const backMenuList = transformRouteToMenu([dashboard, ...routeList, about]) + const backMenuList = transformRouteToMenu([dashboard, ...routeList]) this.setBackMenuList(backMenuList) // remove meta.ignoreRoute item // 删除 meta.ignoreRoute 项 routeList = filter(routeList, routeRemoveIgnoreFilter) routeList = routeList.filter(routeRemoveIgnoreFilter) routeList = flatMultiLevelRoutes(routeList) - routes = [PAGE_NOT_FOUND_ROUTE, dashboard, ...routeList, about] + routes = [PAGE_NOT_FOUND_ROUTE, dashboard, ...routeList] break } diff --git a/src/utils/http/axios/index.ts b/src/utils/http/axios/index.ts index 309b338..4a0dc6a 100644 --- a/src/utils/http/axios/index.ts +++ b/src/utils/http/axios/index.ts @@ -319,11 +319,3 @@ function createAxios(opt?: Partial) { ) } export const defHttp = createAxios() - -// other api url -// export const otherHttp = createAxios({ -// requestOptions: { -// apiUrl: 'xxx', -// urlPrefix: 'xxx', -// }, -// }); diff --git a/src/views/base/about/index.vue b/src/views/base/about/index.vue deleted file mode 100644 index 8f35013..0000000 --- a/src/views/base/about/index.vue +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - - - {{ name }} - 基于Vue3.0、Vite、 Ant-Design-Vue 、TypeScript - 的后台解决方案,目标是为中大型项目开发,提供现成的开箱解决方案及丰富的示例,原则上不会限制任何代码用于商用。 - 同时,我们也提供外包服务。 - - - - - - - - diff --git a/src/views/base/profile/MsgNotify.vue b/src/views/base/profile/MsgNotify.vue deleted file mode 100644 index d3d6cee..0000000 --- a/src/views/base/profile/MsgNotify.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - - {{ item.title }} - - - - {{ item.description }} - - - - - - - diff --git a/src/views/base/profile/data.ts b/src/views/base/profile/data.ts index 22a421c..f4d1bc3 100644 --- a/src/views/base/profile/data.ts +++ b/src/views/base/profile/data.ts @@ -30,11 +30,6 @@ export const settingList = [ name: '账号绑定', component: 'AccountBind', }, - { - key: '4', - name: '新消息通知', - component: 'MsgNotify', - }, ] // 基础设置 form diff --git a/src/views/base/profile/index.vue b/src/views/base/profile/index.vue index a48e4e3..0f5d261 100644 --- a/src/views/base/profile/index.vue +++ b/src/views/base/profile/index.vue @@ -5,7 +5,6 @@ import { settingList } from './data' import BaseSetting from './BaseSetting.vue' import SecureSetting from './SecureSetting.vue' import AccountBind from './AccountBind.vue' -import MsgNotify from './MsgNotify.vue' import { ScrollContainer } from '@/components/Container/index' const wrapperRef = ref(null) @@ -22,7 +21,6 @@ const tabBarStyle = { width: '220px' } - diff --git a/src/views/bpm/definition/index.vue b/src/views/bpm/definition/index.vue deleted file mode 100644 index 6c8859a..0000000 --- a/src/views/bpm/definition/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 开发中 definition - diff --git a/src/views/bpm/form/FormModal.vue b/src/views/bpm/form/FormModal.vue deleted file mode 100644 index cde96a3..0000000 --- a/src/views/bpm/form/FormModal.vue +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - diff --git a/src/views/bpm/form/editor/index.vue b/src/views/bpm/form/editor/index.vue deleted file mode 100644 index c83ebf4..0000000 --- a/src/views/bpm/form/editor/index.vue +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - diff --git a/src/views/bpm/form/form.data.ts b/src/views/bpm/form/form.data.ts deleted file mode 100644 index f2bac49..0000000 --- a/src/views/bpm/form/form.data.ts +++ /dev/null @@ -1,46 +0,0 @@ -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { DICT_TYPE } from '@/utils/dict' - -export const columns: BasicColumn[] = [ - { - title: '编号', - dataIndex: 'id', - width: 100, - }, - { - title: '表单名', - dataIndex: 'name', - width: 180, - }, - { - title: '状态', - dataIndex: 'status', - width: 180, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.COMMON_STATUS) - }, - }, - { - title: '备注', - dataIndex: 'remark', - width: 180, - }, - { - title: '创建时间', - dataIndex: 'createTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '表单名', - field: 'name', - component: 'Input', - colProps: { span: 8 }, - }, -] diff --git a/src/views/bpm/form/index.vue b/src/views/bpm/form/index.vue deleted file mode 100644 index d65d0db..0000000 --- a/src/views/bpm/form/index.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - {{ t('action.create') }} - - - - - - - - - - - diff --git a/src/views/bpm/group/GroupModal.vue b/src/views/bpm/group/GroupModal.vue deleted file mode 100644 index 793e7d6..0000000 --- a/src/views/bpm/group/GroupModal.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - diff --git a/src/views/bpm/group/group.data.ts b/src/views/bpm/group/group.data.ts deleted file mode 100644 index de04977..0000000 --- a/src/views/bpm/group/group.data.ts +++ /dev/null @@ -1,134 +0,0 @@ -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' -import { getListSimpleUsers } from '@/api/system/user' - -let users: any[] = [] - -async function getUserList() { - const res = await getListSimpleUsers() - users = res -} - -await getUserList() - -export const columns: BasicColumn[] = [ - { - title: '编号', - dataIndex: 'id', - width: 100, - }, - { - title: '组名', - dataIndex: 'name', - width: 180, - }, - { - title: '描述', - dataIndex: 'description', - width: 200, - }, - { - title: '成员', - dataIndex: 'memberUserIds', - width: 180, - customRender: ({ record, text }) => { - const names: any[] = [] - if (text) { - for (const userId of record.memberUserIds) { - let isUser = false - users.forEach((user) => { - if (userId === user.id) { - names.push(user.nickname) - isUser = true - } - }) - if (!isUser) - names.push(`未知(${userId})`) - } - return useRender.renderTags(names) - } - }, - }, - { - title: '状态', - dataIndex: 'status', - width: 180, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.COMMON_STATUS) - }, - }, - { - title: '创建时间', - dataIndex: 'createTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '组名', - field: 'name', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '状态', - field: 'status', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.COMMON_STATUS) as any, - }, - colProps: { span: 8 }, - }, - { - label: '创建时间', - field: 'createTime', - component: 'RangePicker', - colProps: { span: 8 }, - }, -] - -export const formSchema: FormSchema[] = [ - { - label: '编号', - field: 'id', - show: false, - component: 'Input', - }, - { - label: '组名', - field: 'name', - required: true, - component: 'Input', - }, - { - label: '描述', - field: 'description', - required: true, - component: 'Input', - }, - { - label: '成员', - field: 'memberUserIds', - required: true, - component: 'ApiTransfer', - componentProps: { - api: () => getListSimpleUsers(), - showSearch: true, - labelField: 'nickname', - valueField: 'id', - }, - }, - { - label: '状态', - field: 'status', - component: 'RadioGroup', - componentProps: { - options: getDictOptions(DICT_TYPE.COMMON_STATUS), - }, - }, -] diff --git a/src/views/bpm/group/index.vue b/src/views/bpm/group/index.vue deleted file mode 100644 index 0848c84..0000000 --- a/src/views/bpm/group/index.vue +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - {{ t('action.create') }} - - - - - - - - - - - diff --git a/src/views/bpm/model/ModelImportModal.vue b/src/views/bpm/model/ModelImportModal.vue deleted file mode 100644 index e30aefa..0000000 --- a/src/views/bpm/model/ModelImportModal.vue +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - diff --git a/src/views/bpm/model/ModelModal.vue b/src/views/bpm/model/ModelModal.vue deleted file mode 100644 index b0a11b2..0000000 --- a/src/views/bpm/model/ModelModal.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - diff --git a/src/views/bpm/model/editor/index.vue b/src/views/bpm/model/editor/index.vue deleted file mode 100644 index 6256e61..0000000 --- a/src/views/bpm/model/editor/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 123 - diff --git a/src/views/bpm/model/index.vue b/src/views/bpm/model/index.vue deleted file mode 100644 index 48a4082..0000000 --- a/src/views/bpm/model/index.vue +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - - - {{ t('action.create') }} - - - {{ t('action.import') }} - - - - - - - - - - - - - diff --git a/src/views/bpm/model/model.data.ts b/src/views/bpm/model/model.data.ts deleted file mode 100644 index 348341d..0000000 --- a/src/views/bpm/model/model.data.ts +++ /dev/null @@ -1,225 +0,0 @@ -import { Button, Switch } from 'ant-design-vue' -import { h } from 'vue' -import { getSimpleForms } from '@/api/bpm/form' -import { updateModelState } from '@/api/bpm/model' -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { useGo } from '@/hooks/web/usePage' -import { useMessage } from '@/hooks/web/useMessage' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' - -export const columns: BasicColumn[] = [ - { - title: '编号', - dataIndex: 'id', - defaultHidden: true, - width: 100, - }, - { - title: '流程标识', - dataIndex: 'key', - width: 180, - }, - { - title: '流程名称', - dataIndex: 'name', - width: 180, - customRender: ({ record }) => { - return h(Button, { type: 'link', onClick: handleBpmnDetail.bind(null, record) }, () => record.formName) - }, - }, - { - title: '流程分类', - dataIndex: 'category', - width: 120, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.BPM_MODEL_CATEGORY) - }, - }, - { - title: '表单信息', - dataIndex: 'formType', - width: 180, - customRender: ({ record }) => { - if (record.formId) - return h(Button, { type: 'link', onClick: handleFormDetail.bind(null, record) }, () => record.formName) - else if (record.formCustomCreatePath) - return h(Button, { type: 'link', onClick: handleFormDetail.bind(null, record) }, () => record.formCustomCreatePath) - else - return useRender.renderTag('暂无表单') - }, - }, - { - title: '创建时间', - dataIndex: 'createTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, - { - title: '最新部署的流程定义', - children: [ - { - title: '流程版本', - dataIndex: 'processDefinition.version', - width: 160, - customRender: ({ record }) => { - if (record.processDefinition) - return useRender.renderTag(`v${record.processDefinition.version}`) - else - return useRender.renderTag('未部署') - }, - }, - { - title: '激活状态', - dataIndex: 'processDefinition.suspensionState', - width: 100, - customRender: ({ record }) => { - if (record.processDefinition) { - if (!Reflect.has(record, 'suspensionState')) - record.pendingStatus = false - - return h(Switch, { - checked: record.processDefinition.suspensionState === 1, - checkedChildren: '激活', - unCheckedChildren: '挂起', - onChange(checked: boolean) { - const newStatus = checked ? 0 : 1 - const { createMessage } = useMessage() - updateModelState(record.id, newStatus) - .then(() => { - record.status = newStatus - createMessage.success('已成功修改流程状态') - }) - .catch(() => { - createMessage.error('修改流程状态失败') - }) - .finally(() => { - record.pendingStatus = false - }) - }, - }) - } - }, - }, - { - title: '部署时间', - dataIndex: 'processDefinition.deploymentTim', - width: 180, - customRender: ({ record }) => { - if (record.processDefinition) - return useRender.renderDate(record.processDefinition.deploymentTime) - }, - }, - ], - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '流程标识', - field: 'key', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '流程名称', - field: 'name', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '流程分类', - field: 'category', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.BPM_MODEL_CATEGORY) as any, - }, - colProps: { span: 8 }, - }, -] - -export const formSchema: FormSchema[] = [ - { - label: '编号', - field: 'id', - show: false, - component: 'Input', - }, - { - label: '流程标识', - field: 'key', - required: true, - component: 'Input', - dynamicDisabled: ({ values }) => !!values.id, - }, - { - label: '流程名称', - field: 'name', - required: true, - component: 'Input', - dynamicDisabled: ({ values }) => !!values.id, - }, - { - label: '流程分类', - field: 'category', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.BPM_MODEL_CATEGORY) as any, - }, - }, - { - label: '流程描述', - field: 'description', - component: 'InputTextArea', - }, - { - label: '表单类型', - field: 'formType', - component: 'Select', - ifShow: ({ values }) => !!values.id, - componentProps: { - options: getDictOptions(DICT_TYPE.BPM_MODEL_FORM_TYPE) as any, - }, - }, - { - label: '流程表单', - field: 'formId', - component: 'ApiSelect', - ifShow: ({ values }) => !!values.id && values.formType === 10, - componentProps: { - api: () => getSimpleForms(), - labelField: 'name', - valueField: 'id', - }, - }, - { - label: '表单提交路由', - field: 'formCustomCreatePath', - component: 'Input', - helpMessage: '自定义表单的提交路径,使用 Vue 的路由地址,例如说:bpm/oa/leave/create', - ifShow: ({ values }) => !!values.id && values.formType === 20, - }, - { - label: '表单查看路由', - field: 'formCustomViewPath', - component: 'Input', - helpMessage: '自定义表单的查看路径,使用 Vue 的路由地址,例如说:bpm/oa/leave/view', - ifShow: ({ values }) => !!values.id && values.formType === 20, - }, -] - -function handleBpmnDetail(record: Recordable) { - console.info('handleBpmnDetail', record) -} - -function handleFormDetail(record: Recordable) { - if (record.formType === 10) { - console.info('handleFormDetail') - } - else { - const go = useGo() - go({ path: record.formCustomCreatePath }) - } -} diff --git a/src/views/bpm/oa/leave/create.vue b/src/views/bpm/oa/leave/create.vue deleted file mode 100644 index c3842b8..0000000 --- a/src/views/bpm/oa/leave/create.vue +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - diff --git a/src/views/bpm/oa/leave/detail.vue b/src/views/bpm/oa/leave/detail.vue deleted file mode 100644 index c0dcfd3..0000000 --- a/src/views/bpm/oa/leave/detail.vue +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - diff --git a/src/views/bpm/oa/leave/index.vue b/src/views/bpm/oa/leave/index.vue deleted file mode 100644 index ddcd441..0000000 --- a/src/views/bpm/oa/leave/index.vue +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - - - 发起请假 - - - - - - - - - - diff --git a/src/views/bpm/oa/leave/leave.data.ts b/src/views/bpm/oa/leave/leave.data.ts deleted file mode 100644 index 8dcbaf2..0000000 --- a/src/views/bpm/oa/leave/leave.data.ts +++ /dev/null @@ -1,158 +0,0 @@ -import type { DescItem } from '@/components/Description' -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' - -export const columns: BasicColumn[] = [ - { - title: '申请编号', - dataIndex: 'id', - width: 100, - }, - { - title: '状态', - dataIndex: 'result', - width: 180, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.BPM_PROCESS_INSTANCE_RESULT) - }, - }, - { - title: '开始时间', - dataIndex: 'startTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, - { - title: '结束时间', - dataIndex: 'endTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, - { - title: '请假类型', - dataIndex: 'type', - width: 180, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.BPM_OA_LEAVE_TYPE) - }, - }, - { - title: '原因', - dataIndex: 'reason', - width: 180, - }, - { - title: '申请时间', - dataIndex: 'createTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '请假类型', - field: 'type', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.BPM_OA_LEAVE_TYPE) as any, - }, - colProps: { span: 8 }, - }, - { - label: '申请时间', - field: 'createTime', - component: 'RangePicker', - colProps: { span: 8 }, - }, - { - label: '结果', - field: 'result', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.BPM_PROCESS_INSTANCE_RESULT), - }, - colProps: { span: 8 }, - }, - { - label: '原因', - field: 'reason', - component: 'Input', - colProps: { span: 8 }, - }, -] - -export const formSchema: FormSchema[] = [ - { - label: '请假类型', - field: 'type', - required: true, - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.BPM_OA_LEAVE_TYPE) as any, - }, - }, - { - label: '开始时间', - field: 'startTime', - required: true, - component: 'DatePicker', - componentProps: { - showTime: true, - format: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x', - }, - }, - { - label: '结束时间', - field: 'endTime', - required: true, - component: 'DatePicker', - componentProps: { - showTime: true, - format: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'x', - }, - }, - { - label: '原因', - field: 'reason', - required: true, - component: 'Input', - }, -] - -export const descSchema: DescItem[] = [ - { - label: '请假类型', - field: 'merchantOrderId', - render: (curVal) => { - return useRender.renderTag(curVal) - }, - }, - { - label: '开始时间', - field: 'startTime', - render: (curVal) => { - return useRender.renderDate(curVal, 'YYYY-MM-DD') - }, - }, - { - label: '结束时间', - field: 'endTime', - render: (curVal) => { - return useRender.renderDate(curVal, 'YYYY-MM-DD') - }, - }, - { - label: '原因', - field: 'reason', - }, -] diff --git a/src/views/bpm/processInstance/create/create.data.ts b/src/views/bpm/processInstance/create/create.data.ts deleted file mode 100644 index ff68c30..0000000 --- a/src/views/bpm/processInstance/create/create.data.ts +++ /dev/null @@ -1,32 +0,0 @@ -import type { BasicColumn } from '@/components/Table' -import { DICT_TYPE } from '@/utils/dict' -import { useRender } from '@/components/Table' - -export const columns: BasicColumn[] = [ - { - title: '流程名称', - dataIndex: 'name', - width: 120, - }, - { - title: '流程分类', - dataIndex: 'category', - width: 120, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.BPM_MODEL_CATEGORY) - }, - }, - { - title: '流程版本', - dataIndex: 'name', - width: 120, - customRender: ({ text }) => { - return useRender.renderTag(text) - }, - }, - { - title: '流程描述', - dataIndex: 'description', - width: 200, - }, -] diff --git a/src/views/bpm/processInstance/create/index.vue b/src/views/bpm/processInstance/create/index.vue deleted file mode 100644 index 2315f94..0000000 --- a/src/views/bpm/processInstance/create/index.vue +++ /dev/null @@ -1,115 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - 选择其它流程 - - - 表单 - - 提交 - - 流程图 - - - - - diff --git a/src/views/bpm/processInstance/detail/index.vue b/src/views/bpm/processInstance/detail/index.vue deleted file mode 100644 index 6256e61..0000000 --- a/src/views/bpm/processInstance/detail/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 123 - diff --git a/src/views/bpm/processInstance/index.vue b/src/views/bpm/processInstance/index.vue deleted file mode 100644 index 8f96948..0000000 --- a/src/views/bpm/processInstance/index.vue +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - - - 发起流程 - - - - - - - - - - diff --git a/src/views/bpm/processInstance/processInstance.data.ts b/src/views/bpm/processInstance/processInstance.data.ts deleted file mode 100644 index 71b15bb..0000000 --- a/src/views/bpm/processInstance/processInstance.data.ts +++ /dev/null @@ -1,118 +0,0 @@ -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' - -export const columns: BasicColumn[] = [ - { - title: '流程编号', - dataIndex: 'id', - width: 260, - }, - { - title: '流程名称', - dataIndex: 'name', - width: 100, - }, - { - title: '流程分类', - dataIndex: 'category', - width: 120, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.BPM_MODEL_CATEGORY) - }, - }, - { - title: '当前审批任务', - dataIndex: 'tasks', - width: 120, - customRender: ({ record }) => { - if (record.tasks && record.tasks.length > 0) { - const texts: any[] = [] - record.tasks.forEach((val) => { - texts.push(val.name) - }) - return useRender.renderTags(texts) - } - }, - }, - { - title: '状态', - dataIndex: 'status', - width: 180, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS) - }, - }, - { - title: '结果', - dataIndex: 'result', - width: 180, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.BPM_PROCESS_INSTANCE_RESULT) - }, - }, - { - title: '提交时间', - dataIndex: 'createTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, - { - title: '结束时间', - dataIndex: 'endTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '流程名称', - field: 'name', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '所属流程', - field: 'processDefinitionId', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '流程分类', - field: 'category', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.BPM_MODEL_CATEGORY) as any, - }, - colProps: { span: 8 }, - }, - { - label: '状态', - field: 'status', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.BPM_PROCESS_INSTANCE_STATUS), - }, - colProps: { span: 8 }, - }, - { - label: '结果', - field: 'result', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.BPM_PROCESS_INSTANCE_RESULT), - }, - colProps: { span: 8 }, - }, - { - label: '提交时间', - field: 'createTime', - component: 'RangePicker', - colProps: { span: 8 }, - }, -] diff --git a/src/views/bpm/task/done/done.data.ts b/src/views/bpm/task/done/done.data.ts deleted file mode 100644 index fb93584..0000000 --- a/src/views/bpm/task/done/done.data.ts +++ /dev/null @@ -1,79 +0,0 @@ -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { getDate } from '@/utils/dateUtil' -import { DICT_TYPE } from '@/utils/dict' - -export const columns: BasicColumn[] = [ - { - title: '任务编号', - dataIndex: 'id', - width: 100, - }, - { - title: '任务名称', - dataIndex: 'name', - width: 180, - }, - { - title: '所属流程', - dataIndex: 'processInstance.name', - width: 180, - }, - { - title: '流程发起人', - dataIndex: 'processInstance.startUserNickname', - width: 180, - }, - { - title: '结果', - dataIndex: 'result', - width: 180, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.BPM_PROCESS_INSTANCE_RESULT) - }, - }, - { - title: '审批意见', - dataIndex: 'reason', - width: 180, - }, - { - title: '创建时间', - dataIndex: 'createTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, - { - title: '审批时间', - dataIndex: 'endTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, - { - title: '耗时', - dataIndex: 'durationInMillis', - width: 180, - customRender: ({ text }) => { - return getDate(text) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '流程名', - field: 'name', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '创建时间', - field: 'createTime', - component: 'RangePicker', - colProps: { span: 8 }, - }, -] diff --git a/src/views/bpm/task/done/index.vue b/src/views/bpm/task/done/index.vue deleted file mode 100644 index 5a86b67..0000000 --- a/src/views/bpm/task/done/index.vue +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/views/bpm/task/todo/index.vue b/src/views/bpm/task/todo/index.vue deleted file mode 100644 index da7bc5f..0000000 --- a/src/views/bpm/task/todo/index.vue +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/views/bpm/task/todo/todo.data.ts b/src/views/bpm/task/todo/todo.data.ts deleted file mode 100644 index ffeb875..0000000 --- a/src/views/bpm/task/todo/todo.data.ts +++ /dev/null @@ -1,59 +0,0 @@ -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' - -export const columns: BasicColumn[] = [ - { - title: '任务编号', - dataIndex: 'id', - width: 100, - }, - { - title: '任务名称', - dataIndex: 'name', - width: 180, - }, - { - title: '所属流程', - dataIndex: 'processInstance.name', - width: 180, - }, - { - title: '流程发起人', - dataIndex: 'processInstance.startUserNickname', - width: 180, - }, - { - title: '创建时间', - dataIndex: 'createTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, - { - title: '状态', - dataIndex: 'suspensionState', - width: 180, - customRender: ({ text }) => { - if (text === 1) - return useRender.renderTag('激活', 'success') - else if (text === 2) - return useRender.renderTag('挂起', 'warning') - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '流程名', - field: 'name', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '创建时间', - field: 'createTime', - component: 'RangePicker', - colProps: { span: 8 }, - }, -] diff --git a/src/views/bpm/taskAssignRule/index.vue b/src/views/bpm/taskAssignRule/index.vue deleted file mode 100644 index e8bc1bd..0000000 --- a/src/views/bpm/taskAssignRule/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 开发中 taskAssignRule - diff --git a/src/views/infra/apiAccessLog/AccessLogModal.vue b/src/views/infra/apiAccessLog/AccessLogModal.vue deleted file mode 100644 index 3c5b399..0000000 --- a/src/views/infra/apiAccessLog/AccessLogModal.vue +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - diff --git a/src/views/infra/apiAccessLog/apiAccessLog.data.ts b/src/views/infra/apiAccessLog/apiAccessLog.data.ts deleted file mode 100644 index 6d5f95f..0000000 --- a/src/views/infra/apiAccessLog/apiAccessLog.data.ts +++ /dev/null @@ -1,222 +0,0 @@ -import { h } from 'vue' -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' -import type { DescItem } from '@/components/Description/index' - -export const columns: BasicColumn[] = [ - { - title: '日志编号', - dataIndex: 'id', - width: 100, - }, - { - title: '用户编号', - dataIndex: 'userId', - width: 100, - }, - { - title: '用户类型', - dataIndex: 'userType', - width: 120, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.USER_TYPE) - }, - }, - { - title: '应用名', - dataIndex: 'applicationName', - width: 120, - }, - { - title: '请求方法名', - dataIndex: 'requestMethod', - width: 120, - }, - { - title: '请求地址', - dataIndex: 'requestUrl', - width: 250, - }, - { - title: '请求时间', - dataIndex: 'beginTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, - { - title: '执行时长', - dataIndex: 'duration', - width: 180, - customRender: ({ text }) => { - return useRender.renderText(text.toString(), 'ms') - }, - }, - { - title: '操作结果', - dataIndex: 'status', - width: 180, - ellipsis: true, - customRender: ({ record }) => { - const success = record.resultCode === 0 - return useRender.renderTag(success ? '成功' : '失败', success ? '#87d068' : '#f50') - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '用户编号', - field: 'userId', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '用户类型', - field: 'userType', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.USER_TYPE) as any, - }, - colProps: { span: 8 }, - }, - { - label: '应用名', - field: 'applicationName', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '请求地址', - field: 'requestUrl', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '请求时间', - field: 'beginTime', - component: 'RangePicker', - colProps: { span: 8 }, - }, - { - label: '执行时长', - field: 'duration', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '结果码', - field: 'resultCode', - component: 'Input', - colProps: { span: 8 }, - }, -] - -const httpMethods = [ - { value: 'GET', color: '#108ee9' }, - { value: 'POST', color: '#2db7f5' }, - { value: 'PUT', color: 'warning' }, - { value: 'DELETE', color: '#f50' }, -] - -export const infoSchema: DescItem[] = [ - { - label: '日志id', - field: 'id', - }, - { - label: '链路id', - field: 'traceId', - show: data => data && data.traceId && data.traceId !== '', - }, - { - label: '应用名称', - field: 'applicationName', - labelMinWidth: 100, - }, - { - field: 'userId', - label: '用户id', - render(value, data) { - const tag = useRender.renderDict(data.userType, DICT_TYPE.USER_TYPE) - const uidTag = useRender.renderTag(`uid: ${value}`) - return h('span', {}, [tag, uidTag]) - }, - }, - { - field: 'resultCode', - label: '请求结果', - render(value) { - return useRender.renderTag(value === 0 ? '成功' : '失败', value === 0 ? '#87d068' : '#f50') - }, - }, - { - field: 'resultMsg', - label: '响应信息', - show(data) { - return data && data.resultMsg && data.resultMsg !== '' - }, - render(value) { - return h('span', { style: { color: 'red', fontWeight: 'bold' } }, value) - }, - }, - { - field: 'userIp', - label: '请求ip', - }, - { - field: 'userAgent', - label: 'userAgent', - }, - { - field: 'beginTime', - label: '请求时间', - render(value) { - return useRender.renderDate(value) - }, - }, - { - field: 'requestUrl', - label: '请求路径', - render(_, data) { - if (!data) - return '' - - const { requestMethod, requestUrl } = data - const current = httpMethods.find(item => item.value === requestMethod.toUpperCase()) - const methodTag = current ? useRender.renderTag(requestMethod, current.color) : requestMethod - return h('span', {}, [methodTag, requestUrl]) - }, - }, - { - field: 'requestParams', - label: '请求参数', - render(value) { - return useRender.renderJsonPreview(value) - }, - }, - { - field: 'beginTime', - label: '请求开始时间', - render(value) { - return useRender.renderDate(value) - }, - }, - { - field: 'endTime', - label: '请求结束时间', - render(value) { - return useRender.renderDate(value) - }, - }, - { - field: 'duration', - label: '请求耗时', - render(value) { - // 为0的话需要转为string 否则不会显示 - return useRender.renderText(String(value), 'ms') - }, - }, -] diff --git a/src/views/infra/apiAccessLog/index.vue b/src/views/infra/apiAccessLog/index.vue deleted file mode 100644 index 22835f1..0000000 --- a/src/views/infra/apiAccessLog/index.vue +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - {{ t('action.export') }} - - - - - - - - - - - diff --git a/src/views/infra/apiErrorLog/ErrorLogModal.vue b/src/views/infra/apiErrorLog/ErrorLogModal.vue deleted file mode 100644 index b465bea..0000000 --- a/src/views/infra/apiErrorLog/ErrorLogModal.vue +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - diff --git a/src/views/infra/apiErrorLog/apiErrorLog.data.ts b/src/views/infra/apiErrorLog/apiErrorLog.data.ts deleted file mode 100644 index 7f03f7d..0000000 --- a/src/views/infra/apiErrorLog/apiErrorLog.data.ts +++ /dev/null @@ -1,248 +0,0 @@ -import { Textarea } from 'ant-design-vue' -import { h } from 'vue' -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' -import type { DescItem } from '@/components/Description/index' - -export const columns: BasicColumn[] = [ - { - title: '日志编号', - dataIndex: 'id', - width: 100, - }, - { - title: '用户编号', - dataIndex: 'userId', - width: 100, - }, - { - title: '用户类型', - dataIndex: 'userType', - width: 120, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.USER_TYPE) - }, - }, - { - title: '应用名', - dataIndex: 'applicationName', - width: 120, - }, - { - title: '请求方法名', - dataIndex: 'requestMethod', - width: 120, - }, - { - title: '请求地址', - dataIndex: 'requestUrl', - width: 250, - }, - { - title: '异常发生时间', - dataIndex: 'exceptionTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, - { - title: '异常名', - dataIndex: 'exceptionName', - width: 250, - }, - { - title: '处理状态', - dataIndex: 'processStatus', - width: 180, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.INFRA_API_ERROR_LOG_PROCESS_STATUS) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '用户编号', - field: 'userId', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '用户名称', - field: 'username', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '用户类型', - field: 'userType', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.USER_TYPE) as any, - }, - colProps: { span: 8 }, - }, - { - label: '应用名', - field: 'applicationName', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '请求地址', - field: 'requestUrl', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '异常时间', - field: 'exceptionTime', - component: 'RangePicker', - colProps: { span: 8 }, - }, - { - label: '处理状态', - field: 'processStatus', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.INFRA_API_ERROR_LOG_PROCESS_STATUS), - }, - colProps: { span: 8 }, - }, -] - -function renderText(value: string, color: string, bold = true) { - return h('span', { style: { color, fontWeight: bold ? 'bold' : 'normal' } }, value) -} - -const httpMethods = [ - { value: 'GET', color: '#108ee9' }, - { value: 'POST', color: '#2db7f5' }, - { value: 'PUT', color: 'warning' }, - { value: 'DELETE', color: '#f50' }, -] - -export const infoSchema: DescItem[] = [ - { - field: 'id', - label: '异常id', - }, - { - field: 'traceId', - label: '链路ID', - show(data) { - return data && data.traceId && data.traceId !== '' - }, - }, - { - field: 'applicationName', - label: '应用名称', - labelMinWidth: 100, - }, - { - field: 'processStatus', - label: '处理状态', - render(_, data) { - const { processStatus, processUserId } = data - const tag = useRender.renderDict(processStatus, DICT_TYPE.INFRA_API_ERROR_LOG_PROCESS_STATUS) - if (!processUserId) - return tag - - const uidTag = useRender.renderTag(`uid: ${processUserId}`) - return h('span', {}, [tag, uidTag]) - }, - }, - { - field: 'processTime', - label: '处理时间', - show(data) { - return data && data.processTime && data.processTime !== '' - }, - render(value) { - return useRender.renderDate(value) - }, - }, - { - field: 'userId', - label: '用户id', - render(value, data) { - const tag = useRender.renderDict(data.userType, DICT_TYPE.USER_TYPE) - const uidTag = useRender.renderTag(`uid: ${value}`) - return h('span', {}, [tag, uidTag]) - }, - }, - { - field: 'userIp', - label: 'ip地址', - }, - { - field: 'requestUrl', - label: '请求地址', - render(_, data) { - if (data) { - const { requestMethod } = data - const current = httpMethods.find(item => item.value === requestMethod) - const tag = current ? useRender.renderTag(requestMethod, current.color) : requestMethod - return h('span', {}, [tag, data.requestUrl]) - } - }, - }, - { - field: 'requestParams', - label: '请求参数', - render(value) { - return useRender.renderJsonPreview(value) - }, - }, - { - field: 'userAgent', - label: 'userAgent', - }, - { - field: 'exceptionTime', - label: '异常时间', - render(value) { - return useRender.renderDate(value) - }, - }, - { - field: 'exceptionClassName', - label: '异常类名/方法', - render(_, data) { - if (data) - return renderText(`${data.exceptionClassName} / ${data.exceptionMethodName}`, 'red') - }, - }, - { - field: 'exceptionMessage', - label: '异常信息', - render(value) { - return renderText(value, 'red') - }, - }, - { - field: 'exceptionFileName', - label: '异常文件名', - render(_, data) { - if (data) - return useRender.renderText(data.exceptionFileName, `Line: ${data.exceptionLineNumber}`) - }, - }, - { - field: 'exceptionName', - label: '异常名称', - }, - { - field: 'exceptionRootCauseMessage', - label: '异常信息', - }, - { - field: 'exceptionStackTrace', - label: '异常堆栈', - render(value) { - return h(Textarea, { value, readonly: true, style: { minHeight: '300px' } }) - }, - }, -] diff --git a/src/views/infra/apiErrorLog/index.vue b/src/views/infra/apiErrorLog/index.vue deleted file mode 100644 index a1e6caa..0000000 --- a/src/views/infra/apiErrorLog/index.vue +++ /dev/null @@ -1,101 +0,0 @@ - - - - - - - - {{ t('action.export') }} - - - - - - - - - - - diff --git a/src/views/infra/build/index.vue b/src/views/infra/build/index.vue deleted file mode 100644 index d58bdea..0000000 --- a/src/views/infra/build/index.vue +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/src/views/infra/codegen/EditTable.vue b/src/views/infra/codegen/EditTable.vue deleted file mode 100644 index d3de37d..0000000 --- a/src/views/infra/codegen/EditTable.vue +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/views/infra/codegen/codegen.data.ts b/src/views/infra/codegen/codegen.data.ts deleted file mode 100644 index 7187624..0000000 --- a/src/views/infra/codegen/codegen.data.ts +++ /dev/null @@ -1,157 +0,0 @@ -import { getDataSourceConfigList } from '@/api/infra/dataSourceConfig' -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' - -const dataSourceConfigs = await getDataSourceConfigList() - -export const columns: BasicColumn[] = [ - { - title: '数据源', - dataIndex: 'dataSourceConfigId', - width: 100, - customRender: ({ text }) => { - for (const config of dataSourceConfigs) { - if (text === config.id) - return config.name - } - return `未知【${text}】` - }, - }, - { - title: '表名称', - dataIndex: 'tableName', - width: 200, - }, - { - title: '表描述', - dataIndex: 'tableComment', - width: 120, - }, - { - title: '实体', - dataIndex: 'className', - width: 200, - }, - { - title: '创建时间', - dataIndex: 'createTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, - { - title: '更新时间', - dataIndex: 'updateTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '表名称', - field: 'tableName', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '表描述', - field: 'tableComment', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '创建时间', - field: 'createTime', - component: 'RangePicker', - colProps: { span: 8 }, - }, -] - -export const formSchema: FormSchema[] = [ - { - label: '编号', - field: 'id', - show: false, - component: 'Input', - }, - { - label: '岗位名称', - field: 'name', - required: true, - component: 'Input', - }, - { - label: '岗位编码', - field: 'code', - required: true, - component: 'Input', - }, - { - label: '岗位顺序', - field: 'sort', - required: true, - defaultValue: 0, - component: 'InputNumber', - }, - { - label: '状态', - field: 'status', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.COMMON_STATUS) as any, - }, - }, - { - label: '备注', - field: 'remark', - component: 'InputTextArea', - }, -] - -export const importTableColumns: BasicColumn[] = [ - { - title: '表名称', - dataIndex: 'name', - width: 200, - }, - { - title: '表描述', - dataIndex: 'comment', - width: 120, - }, -] - -export const importTableSearchFormSchema: FormSchema[] = [ - { - label: '数据源', - field: 'dataSourceConfigId', - component: 'Select', - required: true, - defaultValue: dataSourceConfigs[0].id, - componentProps: { - options: dataSourceConfigs, - fieldNames: { - label: 'name', - value: 'id', - }, - }, - colProps: { span: 8 }, - }, - { - label: '表名称', - field: 'name', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '表描述', - field: 'comment', - component: 'Input', - colProps: { span: 8 }, - }, -] diff --git a/src/views/infra/codegen/components/BasicInfoForm.vue b/src/views/infra/codegen/components/BasicInfoForm.vue deleted file mode 100644 index 98f12d3..0000000 --- a/src/views/infra/codegen/components/BasicInfoForm.vue +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - 说明 - - - 基本信息 - - 配置生成的基本信息 - - 生成信息 - 配置生成生成的详细信息。 - - diff --git a/src/views/infra/codegen/components/CloumInfoForm.vue b/src/views/infra/codegen/components/CloumInfoForm.vue deleted file mode 100644 index 0062d30..0000000 --- a/src/views/infra/codegen/components/CloumInfoForm.vue +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - 上一步 - - - 提交 - - - - 说明 - - - 配置字段 - - 配置表的字段类型,增删改查,字典等 - - diff --git a/src/views/infra/codegen/components/FinishForm.vue b/src/views/infra/codegen/components/FinishForm.vue deleted file mode 100644 index 048eb47..0000000 --- a/src/views/infra/codegen/components/FinishForm.vue +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - 返回列表 - - - 预览 - - - 生成 - - - - - - diff --git a/src/views/infra/codegen/components/ImportTableModal.vue b/src/views/infra/codegen/components/ImportTableModal.vue deleted file mode 100644 index cd6c8b9..0000000 --- a/src/views/infra/codegen/components/ImportTableModal.vue +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - diff --git a/src/views/infra/codegen/components/PreviewModal.vue b/src/views/infra/codegen/components/PreviewModal.vue deleted file mode 100644 index 02f081b..0000000 --- a/src/views/infra/codegen/components/PreviewModal.vue +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - - - - - - - - 复制 - - - - - - - - diff --git a/src/views/infra/codegen/components/data.ts b/src/views/infra/codegen/components/data.ts deleted file mode 100644 index 5dbe12e..0000000 --- a/src/views/infra/codegen/components/data.ts +++ /dev/null @@ -1,328 +0,0 @@ -import { listSimpleDictType } from '@/api/system/dict/type' -import { listSimpleMenus } from '@/api/system/menu' -import type { FormSchema } from '@/components/Form' -import type { BasicColumn } from '@/components/Table' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' - -async function getDictTypeOptions() { - const dictTypeOptions: any[] = [] - const res = await listSimpleDictType() - dictTypeOptions.push(...res) - return dictTypeOptions -} - -export const basicInfoSchemas: FormSchema[] = [ - { - label: '基本信息', - field: 'basicInfo', - component: 'Divider', - colProps: { span: 24 }, - }, - { - label: '表名称', - field: 'tableName', - required: true, - component: 'Input', - colProps: { span: 12 }, - }, - { - label: '表描述', - field: 'tableComment', - required: true, - component: 'Input', - colProps: { span: 12 }, - }, - { - label: '实体类名称', - field: 'className', - required: true, - helpMessage: '默认去除表名的前缀。如果存在重复,则需要手动添加前缀,避免 MyBatis 报 Alias 重复的问题。', - component: 'Input', - colProps: { span: 12 }, - }, - { - label: '作者', - field: 'author', - required: true, - component: 'Input', - colProps: { span: 12 }, - }, - { - label: '生成信息', - field: 'genInfo', - component: 'Divider', - colProps: { span: 24 }, - }, - { - label: '生成模板', - field: 'templateType', - required: true, - component: 'Select', - defaultValue: '30', - componentProps: { - options: getDictOptions(DICT_TYPE.INFRA_CODEGEN_TEMPLATE_TYPE) as any, - }, - colProps: { span: 12 }, - }, - { - label: '前端类型', - field: 'frontType', - required: true, - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.INFRA_CODEGEN_FRONT_TYPE) as any, - }, - colProps: { span: 12 }, - }, - { - label: '生成场景', - field: 'scene', - required: true, - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.INFRA_CODEGEN_SCENE), - }, - colProps: { span: 12 }, - }, - { - label: '模块名', - field: 'moduleName', - required: true, - helpMessage: '模块名,即一级目录,例如 system、infra、tool 等等', - component: 'Input', - colProps: { span: 12 }, - }, - { - label: '业务名', - field: 'businessName', - required: true, - component: 'Input', - helpMessage: '业务名,即二级目录,例如 user、permission、dict 等等', - colProps: { span: 12 }, - }, - { - label: '类名称', - field: 'className', - required: true, - component: 'Input', - helpMessage: '类名称(首字母大写),例如SysUser、SysMenu、SysDictData 等等', - colProps: { span: 12 }, - }, - { - label: '类描述', - field: 'classComment', - required: true, - component: 'Input', - helpMessage: '用作类描述,例如 用户', - colProps: { span: 12 }, - }, - { - label: '上级菜单', - field: 'parentMenuId', - required: true, - component: 'ApiTreeSelect', - componentProps: { - api: () => listSimpleMenus(), - handleTree: 'id', - }, - colProps: { span: 12 }, - }, - { - label: '自定义路径', - field: 'genPath', - component: 'Input', - helpMessage: '填写磁盘绝对路径,若不填写,则生成到当前Web项目下', - defaultValue: '/', - ifShow: ({ values }) => values.genType === '1', - colProps: { span: 12 }, - }, - { - label: '备注', - field: 'remark', - component: 'InputTextArea', - colProps: { span: 24 }, - }, -] - -export const columns: BasicColumn[] = [ - { - title: '字段列名', - dataIndex: 'columnName', - width: 60, - }, - { - title: '基础属性', - children: [ - { - title: '物理类型', - dataIndex: 'dataType', - editComponent: 'Select', - width: 50, - }, - { - title: '字段描述', - dataIndex: 'columnComment', - editRow: true, - editComponent: 'Input', - width: 50, - }, - { - title: 'Java类型', - dataIndex: 'javaType', - editRow: true, - editComponent: 'Select', - editComponentProps: { - options: [ - { - label: 'Long', - value: 'Long', - }, - { - label: 'String', - value: 'String', - }, - { - label: 'Integer', - value: 'Integer', - }, - { - label: 'Double', - value: 'Double', - }, - { - label: 'BigDecimal', - value: 'BigDecimal', - }, - { - label: 'LocalDateTime', - value: 'LocalDateTime', - }, - { - label: 'Boolean', - value: 'Boolean', - }, - ], - }, - width: 50, - }, - { - title: 'java属性', - dataIndex: 'javaField', - editRow: true, - editComponent: 'Input', - width: 50, - }, - ], - }, - { - title: '增删改查', - children: [ - { - title: '插入', - dataIndex: 'createOperation', - editRow: true, - editComponent: 'Checkbox', - editValueMap: (value) => { - return value ? '是' : '否' - }, - width: 40, - }, - { - title: '编辑', - dataIndex: 'updateOperation', - editRow: true, - editComponent: 'Checkbox', - editValueMap: (value) => { - return value ? '是' : '否' - }, - width: 40, - }, - { - title: '列表', - dataIndex: 'listOperationResult', - editRow: true, - editComponent: 'Checkbox', - editValueMap: (value) => { - return value ? '是' : '否' - }, - width: 40, - }, - { - title: '查询', - dataIndex: 'listOperation', - editRow: true, - editComponent: 'Checkbox', - editValueMap: (value) => { - return value ? '是' : '否' - }, - width: 40, - }, - { - title: '查询方式', - dataIndex: 'listOperationCondition', - editRow: true, - editComponent: 'Select', - editComponentProps: { - options: [ - { label: '=', value: '=' }, - { label: '!=', value: '!=' }, - { label: '>', value: '>' }, - { label: '>=', value: '>=' }, - { label: '<', value: '<' }, - { label: '<=', value: '<=' }, - { label: 'LIKE', value: 'LIKE' }, - { label: 'BETWEEN', value: 'BETWEEN' }, - ], - }, - width: 80, - }, - { - title: '允许空', - dataIndex: 'nullable', - editRow: true, - editComponent: 'Checkbox', - editValueMap: (value) => { - return value ? '是' : '否' - }, - width: 40, - }, - { - title: '显示类型', - dataIndex: 'htmlType', - editRow: true, - editComponent: 'Select', - editComponentProps: { - options: [ - { label: '文本框', value: 'input' }, - { label: '文本域', value: 'textarea' }, - { label: '下拉框', value: 'select' }, - { label: '单选框', value: 'radio' }, - { label: '复选框', value: 'checkbox' }, - { label: '日期控件', value: 'datetime' }, - { label: '图片上传', value: 'imageUpload' }, - { label: '文件上传', value: 'fileUpload' }, - { label: '富文本控件', value: 'editor' }, - ], - }, - width: 60, - }, - { - title: '字典类型', - dataIndex: 'dictType', - editRow: true, - editComponent: 'Select', - editComponentProps: { - options: (await getDictTypeOptions()).map(item => ({ value: item.type, label: item.name })), - }, - width: 100, - }, - { - title: '示例', - dataIndex: 'example', - editRow: true, - editComponent: 'Input', - width: 60, - }, - ], - }, -] diff --git a/src/views/infra/codegen/index.vue b/src/views/infra/codegen/index.vue deleted file mode 100644 index 5770687..0000000 --- a/src/views/infra/codegen/index.vue +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - {{ t('action.import') }} - - - - - - - - - - - - diff --git a/src/views/infra/config/ConfigModal.vue b/src/views/infra/config/ConfigModal.vue deleted file mode 100644 index 0d5d3fc..0000000 --- a/src/views/infra/config/ConfigModal.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - diff --git a/src/views/infra/config/config.data.ts b/src/views/infra/config/config.data.ts deleted file mode 100644 index fdbaa95..0000000 --- a/src/views/infra/config/config.data.ts +++ /dev/null @@ -1,139 +0,0 @@ -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' - -export const columns: BasicColumn[] = [ - { - title: '参数主键', - dataIndex: 'id', - width: 100, - }, - { - title: '参数分类', - dataIndex: 'category', - width: 180, - }, - { - title: '参数名称', - dataIndex: 'name', - width: 100, - }, - { - title: '参数键名', - dataIndex: 'key', - width: 120, - }, - { - title: '参数键值', - dataIndex: 'value', - width: 120, - }, - { - title: '系统内置', - dataIndex: 'type', - width: 180, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.INFRA_CONFIG_TYPE) - }, - }, - { - title: '是否可见', - dataIndex: 'visible', - width: 180, - customRender: ({ text }) => { - return useRender.renderTag(text ? '是' : '否') - }, - }, - { - title: '备注', - dataIndex: 'remark', - width: 180, - }, - { - title: '创建时间', - dataIndex: 'createTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '参数名称', - field: 'name', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '参数键名', - field: 'key', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '系统内置', - field: 'type', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.INFRA_CONFIG_TYPE) as any, - }, - colProps: { span: 8 }, - }, - { - label: '创建时间', - field: 'createTime', - component: 'RangePicker', - colProps: { span: 8 }, - }, -] - -export const formSchema: FormSchema[] = [ - { - label: '编号', - field: 'id', - show: false, - component: 'Input', - }, - { - label: '参数分类', - field: 'category', - required: true, - component: 'Input', - }, - { - label: '参数名称', - field: 'name', - required: true, - component: 'Input', - }, - { - label: '参数键名', - field: 'key', - required: true, - component: 'Input', - }, - { - label: '参数键值', - field: 'value', - required: true, - component: 'Input', - }, - { - label: '是否可见', - field: 'visible', - component: 'RadioGroup', - componentProps: { - options: [ - { label: '是', value: true }, - { label: '否', value: false }, - ], - }, - }, - { - label: '备注', - field: 'remark', - component: 'InputTextArea', - }, -] diff --git a/src/views/infra/config/index.vue b/src/views/infra/config/index.vue deleted file mode 100644 index 87b162e..0000000 --- a/src/views/infra/config/index.vue +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - - {{ t('action.create') }} - - - {{ t('action.export') }} - - - - - - - - - - - diff --git a/src/views/infra/dataSourceConfig/DataSourceConfigModal.vue b/src/views/infra/dataSourceConfig/DataSourceConfigModal.vue deleted file mode 100644 index 569f250..0000000 --- a/src/views/infra/dataSourceConfig/DataSourceConfigModal.vue +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - diff --git a/src/views/infra/dataSourceConfig/dataSourceConfig.data.ts b/src/views/infra/dataSourceConfig/dataSourceConfig.data.ts deleted file mode 100644 index 0df2c41..0000000 --- a/src/views/infra/dataSourceConfig/dataSourceConfig.data.ts +++ /dev/null @@ -1,66 +0,0 @@ -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' - -export const columns: BasicColumn[] = [ - { - title: '主键编号', - dataIndex: 'id', - width: 100, - }, - { - title: '数据源名称', - dataIndex: 'name', - width: 180, - }, - { - title: '数据源连接', - dataIndex: 'url', - width: 100, - }, - { - title: '用户名', - dataIndex: 'username', - width: 120, - }, - { - title: '创建时间', - dataIndex: 'createTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, -] - -export const formSchema: FormSchema[] = [ - { - label: '编号', - field: 'id', - show: false, - component: 'Input', - }, - { - label: '数据源名称', - field: 'name', - required: true, - component: 'Input', - }, - { - label: '数据源连接', - field: 'url', - required: true, - component: 'Input', - }, - { - label: '用户名', - field: 'username', - required: true, - component: 'Input', - }, - { - label: '密码', - field: 'password', - required: true, - component: 'Input', - }, -] diff --git a/src/views/infra/dataSourceConfig/index.vue b/src/views/infra/dataSourceConfig/index.vue deleted file mode 100644 index 05c5863..0000000 --- a/src/views/infra/dataSourceConfig/index.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - {{ t('action.create') }} - - - - - - - - - - - diff --git a/src/views/infra/dbDoc/index.vue b/src/views/infra/dbDoc/index.vue deleted file mode 100644 index a3f5907..0000000 --- a/src/views/infra/dbDoc/index.vue +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - {{ `${t('action.export')}Html` }} - - - {{ `${t('action.export')}Word` }} - - - {{ `${t('action.export')}Markdown` }} - - - - - diff --git a/src/views/infra/druid/index.vue b/src/views/infra/druid/index.vue deleted file mode 100644 index d0f8f03..0000000 --- a/src/views/infra/druid/index.vue +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - diff --git a/src/views/infra/file/file.data.ts b/src/views/infra/file/file.data.ts deleted file mode 100644 index 9fa45a7..0000000 --- a/src/views/infra/file/file.data.ts +++ /dev/null @@ -1,79 +0,0 @@ -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' - -export const columns: BasicColumn[] = [ - { - title: '编号', - dataIndex: 'id', - width: 100, - }, - { - title: '文件名', - dataIndex: 'name', - width: 200, - }, - { - title: '文件 URL', - dataIndex: 'url', - width: 180, - customRender: ({ text }) => { - return useRender.renderImg(text) - }, - }, - { - title: '文件路径', - dataIndex: 'path', - width: 180, - }, - { - title: '文件大小', - dataIndex: 'size', - width: 120, - customRender: ({ text }) => { - const unitArr = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'] - const srcSize = Number.parseFloat(text) - const index = Math.floor(Math.log(srcSize) / Math.log(1024)) - const size = srcSize / 1024 ** index - return `${size.toFixed(2)} ${unitArr[index]}` - }, - }, - { - title: '文件类型', - dataIndex: 'type', - width: 100, - customRender: ({ text }) => { - return useRender.renderTag(text) - }, - }, - { - title: '文件内容', - dataIndex: 'content', - width: 180, - customRender: ({ text }) => { - return useRender.renderImg(text) - }, - }, - { - title: '上传时间', - dataIndex: 'createTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '文件路径', - field: 'path', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '创建时间', - field: 'createTime', - component: 'RangePicker', - colProps: { span: 8 }, - }, -] diff --git a/src/views/infra/file/index.vue b/src/views/infra/file/index.vue deleted file mode 100644 index 6b32949..0000000 --- a/src/views/infra/file/index.vue +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/views/infra/fileConfig/FileConfigModal.vue b/src/views/infra/fileConfig/FileConfigModal.vue deleted file mode 100644 index 368cdff..0000000 --- a/src/views/infra/fileConfig/FileConfigModal.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - diff --git a/src/views/infra/fileConfig/ficleConfig.data.ts b/src/views/infra/fileConfig/ficleConfig.data.ts deleted file mode 100644 index 82413ba..0000000 --- a/src/views/infra/fileConfig/ficleConfig.data.ts +++ /dev/null @@ -1,179 +0,0 @@ -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' - -export const columns: BasicColumn[] = [ - { - title: '编号', - dataIndex: 'id', - width: 100, - }, - { - title: '配置名', - dataIndex: 'name', - width: 180, - }, - { - title: '存储器', - dataIndex: 'storage', - width: 100, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.INFRA_FILE_STORAGE) - }, - }, - { - title: '主配置', - dataIndex: 'master', - width: 180, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.INFRA_BOOLEAN_STRING) - }, - }, - { - title: '备注', - dataIndex: 'remark', - width: 180, - }, - { - title: '创建时间', - dataIndex: 'createTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '配置名', - field: 'name', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '存储器', - field: 'storage', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.INFRA_FILE_STORAGE) as any, - }, - colProps: { span: 8 }, - }, - { - label: '创建时间', - field: 'createTime', - component: 'RangePicker', - colProps: { span: 8 }, - }, -] - -export const formSchema: FormSchema[] = [ - { - label: '编号', - field: 'id', - show: false, - component: 'Input', - }, - { - label: '配置名', - field: 'name', - required: true, - component: 'Input', - }, - { - label: '存储器', - field: 'storage', - component: 'Select', - required: true, - dynamicDisabled: ({ values }) => !!values.id, - componentProps: { - options: getDictOptions(DICT_TYPE.INFRA_FILE_STORAGE) as any, - }, - }, - { - label: '基础路径', - field: 'config.basePath', - required: true, - ifShow: ({ values }) => values.storage >= 10 && values.storage <= 12, - component: 'Input', - }, - { - label: '主机地址', - field: 'config.host', - required: true, - ifShow: ({ values }) => values.storage >= 11 && values.storage <= 12, - component: 'Input', - }, - { - label: '主机端口', - field: 'config.port', - required: true, - ifShow: ({ values }) => values.storage >= 11 && values.storage <= 12, - component: 'Input', - }, - { - label: '用户名', - field: 'config.username', - required: true, - ifShow: ({ values }) => values.storage >= 11 && values.storage <= 12, - component: 'Input', - }, - { - label: '密码', - field: 'config.password', - required: true, - ifShow: ({ values }) => values.storage >= 11 && values.storage <= 12, - component: 'Input', - }, - { - label: '连接模式', - field: 'config.basePath', - required: true, - ifShow: ({ values }) => values.storage === 11, - component: 'Select', - componentProps: { - options: [ - { lable: '主动模式', key: 'Active', value: 'Active' }, - { lable: '被动模式', key: 'Passive', value: 'Passive' }, - ], - }, - }, - { - label: '节点地址', - field: 'config.endpoint', - required: true, - ifShow: ({ values }) => values.storage === 20, - component: 'Input', - }, - { - label: '存储 bucket', - field: 'config.bucket', - required: true, - ifShow: ({ values }) => values.storage === 20, - component: 'Input', - }, - { - label: 'accessKey', - field: 'config.accessKey', - ifShow: ({ values }) => values.storage === 20, - component: 'Input', - }, - { - label: 'accessSecret', - field: 'config.accessSecret', - ifShow: ({ values }) => values.storage === 20, - component: 'Input', - }, - { - label: '自定义域名', - field: 'config.domain', - required: true, - component: 'Input', - }, - { - label: '备注', - field: 'remark', - component: 'InputTextArea', - }, -] diff --git a/src/views/infra/fileConfig/index.vue b/src/views/infra/fileConfig/index.vue deleted file mode 100644 index bb05012..0000000 --- a/src/views/infra/fileConfig/index.vue +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - - - {{ t('action.create') }} - - - - - - - - - - - diff --git a/src/views/infra/job/JobModal.vue b/src/views/infra/job/JobModal.vue deleted file mode 100644 index a047644..0000000 --- a/src/views/infra/job/JobModal.vue +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - - - - - - - - diff --git a/src/views/infra/job/index.vue b/src/views/infra/job/index.vue deleted file mode 100644 index b567a62..0000000 --- a/src/views/infra/job/index.vue +++ /dev/null @@ -1,141 +0,0 @@ - - - - - - - - {{ t('action.create') }} - - - {{ t('action.export') }} - - - - - - - - - - - diff --git a/src/views/infra/job/job.data.ts b/src/views/infra/job/job.data.ts deleted file mode 100644 index 807216a..0000000 --- a/src/views/infra/job/job.data.ts +++ /dev/null @@ -1,172 +0,0 @@ -import type { DescItem } from '@/components/Description' -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' -import { useComponentRegister } from '@/components/Form' -import { CronTab } from '@/components/CronTab' - -useComponentRegister('CronTab', CronTab) - -export const columns: BasicColumn[] = [ - { - title: '任务编号', - dataIndex: 'id', - width: 100, - }, - { - title: '任务名称', - dataIndex: 'name', - width: 180, - }, - { - title: '处理器的名字', - dataIndex: 'handlerName', - width: 180, - }, - { - title: '处理器的参数', - dataIndex: 'handlerParam', - width: 180, - }, - { - title: 'CRON 表达式', - dataIndex: 'cronExpression', - width: 200, - }, - { - title: '任务状态', - dataIndex: 'status', - width: 180, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.INFRA_JOB_STATUS) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '任务名称', - field: 'name', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '任务状态', - field: 'status', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.INFRA_JOB_STATUS) as any, - }, - colProps: { span: 8 }, - }, - { - label: '处理器的名字', - field: 'handlerName', - component: 'Input', - colProps: { span: 8 }, - }, -] - -export const formSchema: FormSchema[] = [ - { - label: '任务编号', - field: 'id', - show: false, - component: 'Input', - }, - { - label: '任务名称', - field: 'name', - required: true, - component: 'Input', - }, - { - label: '处理器的名字', - field: 'handlerName', - required: true, - dynamicDisabled: ({ values }) => !!values.id, - component: 'Input', - }, - { - label: '处理器的参数', - field: 'handlerParam', - component: 'Input', - }, - { - label: 'CRON 表达式', - field: 'cronExpression', - required: true, - component: 'CronTab', - }, - { - label: '重试次数', - field: 'retryCount', - required: true, - helpMessage: '设置为 0 时,不进行重试', - defaultValue: 0, - component: 'InputNumber', - }, - { - label: '重试间隔', - field: 'retryInterval', - required: true, - helpMessage: '单位:毫秒。设置为 0 时,无需间隔', - defaultValue: 0, - component: 'InputNumber', - suffix: '毫秒', - }, - { - label: '监控超时时间', - field: 'monitorTimeout', - component: 'Input', - suffix: '毫秒', - }, -] - -export const descSchema: DescItem[] = [ - { - label: '任务编号', - field: 'id', - }, - { - label: '任务名称', - field: 'name', - }, - { - label: '任务状态', - field: 'status', - render: (curVal) => { - return useRender.renderDict(curVal, DICT_TYPE.INFRA_JOB_STATUS) - }, - }, - { - label: '处理器的名字', - field: 'handlerName', - }, - { - label: '处理器的参数', - field: 'handlerParam', - }, - { - label: 'Cron 表达式', - field: 'cronExpression', - }, - { - label: '重试次数', - field: 'retryCount', - }, - { - label: '重试间隔', - field: 'cronExpression', - render: (curVal) => { - return useRender.renderText(curVal, ' 毫秒') - }, - }, - { - label: '监控超时时间', - field: 'monitorTimeout', - render: (curVal) => { - return curVal > 0 ? `${curVal} 毫秒` : '未开启' - }, - }, -] diff --git a/src/views/infra/job/logger/JobLogModal.vue b/src/views/infra/job/logger/JobLogModal.vue deleted file mode 100644 index 44b6cec..0000000 --- a/src/views/infra/job/logger/JobLogModal.vue +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - diff --git a/src/views/infra/job/logger/index.vue b/src/views/infra/job/logger/index.vue deleted file mode 100644 index 3a06b25..0000000 --- a/src/views/infra/job/logger/index.vue +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - {{ t('action.export') }} - - - - - - - - - - - diff --git a/src/views/infra/job/logger/jobLog.data.ts b/src/views/infra/job/logger/jobLog.data.ts deleted file mode 100644 index b7e8625..0000000 --- a/src/views/infra/job/logger/jobLog.data.ts +++ /dev/null @@ -1,150 +0,0 @@ -import { h } from 'vue' -import type { DescItem } from '@/components/Description' -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' -import { JsonPreview } from '@/components/CodeEditor' - -export const columns: BasicColumn[] = [ - { - title: '日志编号', - dataIndex: 'id', - width: 100, - }, - { - title: '任务编号', - dataIndex: 'jobId', - width: 100, - }, - { - title: '处理器的名字', - dataIndex: 'handlerName', - width: 180, - }, - { - title: '处理器的参数', - dataIndex: 'handlerParam', - width: 180, - }, - { - title: '第几次执行', - dataIndex: 'executeIndex', - width: 100, - }, - { - title: '执行时间', - dataIndex: 'beginTime', - width: 180, - customRender: ({ record }) => { - const startTime = useRender.renderDate(record.beginTime) - const endTime = useRender.renderDate(record.endTime) - return useRender.renderTags([startTime, endTime]) - }, - }, - { - title: '执行时长', - dataIndex: 'duration', - width: 180, - customRender: ({ text }) => { - return useRender.renderText(text, ' 毫秒') - }, - }, - { - title: '任务状态', - dataIndex: 'status', - width: 180, - customRender: ({ record }) => { - return useRender.renderDict(record.status, DICT_TYPE.INFRA_JOB_LOG_STATUS) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '处理器的名字', - field: 'handlerName', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '开始执行时间', - field: 'beginTime', - component: 'DatePicker', - colProps: { span: 8 }, - }, - { - label: '结束执行时间', - field: 'endTime', - component: 'DatePicker', - colProps: { span: 8 }, - }, - { - label: '任务状态', - field: 'status', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.INFRA_JOB_STATUS) as any, - }, - colProps: { span: 8 }, - }, - { - label: '处理器的名字', - field: 'handlerName', - component: 'Input', - colProps: { span: 8 }, - }, -] - -export const descSchema: DescItem[] = [ - { - label: '日志编号', - field: 'id', - }, - { - label: '任务编号', - field: 'jobId', - }, - { - label: '处理器的名字', - field: 'handlerName', - }, - { - label: '处理器的参数', - field: 'handlerParam', - }, - { - label: '第几次执行', - field: 'executeIndex', - }, - { - label: '执行时间', - field: 'beginTime', - render: (_, data) => { - const startTime = `开始: ${useRender.renderDate(data.beginTime)}` - const endTime = `结束: ${useRender.renderDate(data.endTime)}` - return h('span', {}, [startTime, h('br'), endTime]) - }, - }, - { - label: '执行时长', - field: 'duration', - render: (curVal) => { - return useRender.renderText(curVal, ' 毫秒') - }, - }, - { - label: '任务状态', - field: 'status', - render: (curVal) => { - return useRender.renderDict(curVal, DICT_TYPE.INFRA_JOB_LOG_STATUS) - }, - }, - { - label: '执行结果', - field: 'result', - render: (curVal) => { - const data = JSON.parse(curVal) - return h(JsonPreview, { data }) - }, - }, -] diff --git a/src/views/infra/redis/components/CommandStats.vue b/src/views/infra/redis/components/CommandStats.vue deleted file mode 100644 index eb2a217..0000000 --- a/src/views/infra/redis/components/CommandStats.vue +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - diff --git a/src/views/infra/redis/components/Memory.vue b/src/views/infra/redis/components/Memory.vue deleted file mode 100644 index ab7333f..0000000 --- a/src/views/infra/redis/components/Memory.vue +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - diff --git a/src/views/infra/redis/index.vue b/src/views/infra/redis/index.vue deleted file mode 100644 index a5a51d9..0000000 --- a/src/views/infra/redis/index.vue +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - diff --git a/src/views/infra/redis/redis.data.ts b/src/views/infra/redis/redis.data.ts deleted file mode 100644 index ac2a910..0000000 --- a/src/views/infra/redis/redis.data.ts +++ /dev/null @@ -1,64 +0,0 @@ -import type { DescItem } from '@/components/Description' - -export const baseInfoSchema: DescItem[] = [ - { - label: 'Redis版本', - field: 'redis_version', - }, - { - label: '运行模式', - field: 'redis_mode', - render: (val) => { - return val === 'standalone' ? '单机' : '集群' - }, - }, - { - label: '端口', - field: 'tcp_port', - }, - { - label: '客户端数', - field: 'connected_clients', - }, - { - label: '运行时间(天)', - field: 'uptime_in_days', - }, - { - label: '使用内存', - field: 'used_memory_human', - }, - { - label: '使用CPU', - field: 'tcp_port', - render: (val) => { - return Number.parseFloat(val).toFixed(2) - }, - }, - { - label: '内存配置', - field: 'maxmemory_human', - }, - { - label: 'AOF是否开启', - field: 'maxmemory_human', - render: (val) => { - return val === '0' ? '否' : '是' - }, - }, - { - label: 'RDB是否成功', - field: 'rdb_last_bgsave_status', - }, - { - label: 'Key数量', - field: 'expired_keys', - }, - { - label: '网络入口/出口', - field: 'instantaneous_input_kbps', - render: (_val, data) => { - return `${data.instantaneous_input_kbps}kps / ${data.instantaneous_output_kbps}kps` - }, - }, -] diff --git a/src/views/infra/server/index.vue b/src/views/infra/server/index.vue deleted file mode 100644 index 33ca80f..0000000 --- a/src/views/infra/server/index.vue +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - diff --git a/src/views/infra/skywalking/index.vue b/src/views/infra/skywalking/index.vue deleted file mode 100644 index ee36848..0000000 --- a/src/views/infra/skywalking/index.vue +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - diff --git a/src/views/infra/swagger/index.vue b/src/views/infra/swagger/index.vue deleted file mode 100644 index 4416a1e..0000000 --- a/src/views/infra/swagger/index.vue +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - diff --git a/src/views/infra/testDemo/index.vue b/src/views/infra/testDemo/index.vue deleted file mode 100644 index 0d29315..0000000 --- a/src/views/infra/testDemo/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 开发中 testDemo - diff --git a/src/views/infra/webSocket/index.vue b/src/views/infra/webSocket/index.vue deleted file mode 100644 index 9bb74b0..0000000 --- a/src/views/infra/webSocket/index.vue +++ /dev/null @@ -1,112 +0,0 @@ - - - - - - - - 连接状态: - - {{ status }} - - - - - - - - 服务地址 - - - - {{ getIsOpen ? '关闭连接' : '开启连接' }} - - - - 设置 - - - - - - - 发送 - - - - - 消息记录: - - - - - - - 收到消息: - {{ formatToDateTime(item.time) }} - - - {{ item.res }} - - - - - - - - diff --git a/src/views/mall/market/banner/index.vue b/src/views/mall/market/banner/index.vue deleted file mode 100644 index 3b64cfc..0000000 --- a/src/views/mall/market/banner/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 开发中 - diff --git a/src/views/mall/product/brand/index.vue b/src/views/mall/product/brand/index.vue deleted file mode 100644 index 3b64cfc..0000000 --- a/src/views/mall/product/brand/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 开发中 - diff --git a/src/views/mall/product/category/index.vue b/src/views/mall/product/category/index.vue deleted file mode 100644 index 3b64cfc..0000000 --- a/src/views/mall/product/category/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 开发中 - diff --git a/src/views/mall/product/property/index.vue b/src/views/mall/product/property/index.vue deleted file mode 100644 index 3b64cfc..0000000 --- a/src/views/mall/product/property/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 开发中 - diff --git a/src/views/mall/product/spu/index.vue b/src/views/mall/product/spu/index.vue deleted file mode 100644 index 3b64cfc..0000000 --- a/src/views/mall/product/spu/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 开发中 - diff --git a/src/views/mall/promotion/coupon/index.vue b/src/views/mall/promotion/coupon/index.vue deleted file mode 100644 index 3b64cfc..0000000 --- a/src/views/mall/promotion/coupon/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 开发中 - diff --git a/src/views/mall/promotion/couponTemplate/index.vue b/src/views/mall/promotion/couponTemplate/index.vue deleted file mode 100644 index 3b64cfc..0000000 --- a/src/views/mall/promotion/couponTemplate/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 开发中 - diff --git a/src/views/mall/promotion/discountActivity/index.vue b/src/views/mall/promotion/discountActivity/index.vue deleted file mode 100644 index 3b64cfc..0000000 --- a/src/views/mall/promotion/discountActivity/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 开发中 - diff --git a/src/views/mall/promotion/rewardActivity/index.vue b/src/views/mall/promotion/rewardActivity/index.vue deleted file mode 100644 index 3b64cfc..0000000 --- a/src/views/mall/promotion/rewardActivity/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 开发中 - diff --git a/src/views/mall/promotion/seckill/seckillActivity/index.vue b/src/views/mall/promotion/seckill/seckillActivity/index.vue deleted file mode 100644 index 3b64cfc..0000000 --- a/src/views/mall/promotion/seckill/seckillActivity/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 开发中 - diff --git a/src/views/mall/promotion/seckill/seckillTime/index.vue b/src/views/mall/promotion/seckill/seckillTime/index.vue deleted file mode 100644 index 3b64cfc..0000000 --- a/src/views/mall/promotion/seckill/seckillTime/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 开发中 - diff --git a/src/views/mall/trade/afterSale/index.vue b/src/views/mall/trade/afterSale/index.vue deleted file mode 100644 index 3b64cfc..0000000 --- a/src/views/mall/trade/afterSale/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 开发中 - diff --git a/src/views/mall/trade/expressCompany/index.vue b/src/views/mall/trade/expressCompany/index.vue deleted file mode 100644 index 3b64cfc..0000000 --- a/src/views/mall/trade/expressCompany/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 开发中 - diff --git a/src/views/mall/trade/order/index.vue b/src/views/mall/trade/order/index.vue deleted file mode 100644 index 3b64cfc..0000000 --- a/src/views/mall/trade/order/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 开发中 - diff --git a/src/views/member/config/index.vue b/src/views/member/config/index.vue deleted file mode 100644 index bf10c29..0000000 --- a/src/views/member/config/index.vue +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - diff --git a/src/views/member/group/GroupModal.vue b/src/views/member/group/GroupModal.vue deleted file mode 100644 index 89943e2..0000000 --- a/src/views/member/group/GroupModal.vue +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - diff --git a/src/views/member/group/group.data.ts b/src/views/member/group/group.data.ts deleted file mode 100644 index 6e03310..0000000 --- a/src/views/member/group/group.data.ts +++ /dev/null @@ -1,84 +0,0 @@ -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' - -export const columns: BasicColumn[] = [ - { - title: '编号', - dataIndex: 'id', - }, - { - title: '名称', - dataIndex: 'name', - }, - { - title: '备注', - dataIndex: 'remark', - }, - { - title: '状态', - dataIndex: 'status', - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.COMMON_STATUS) - }, - }, - { - title: '创建时间', - dataIndex: 'createTime', - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '分组名称', - field: 'name', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '创建时间', - field: 'createTime', - component: 'RangePicker', - colProps: { span: 8 }, - }, - { - label: '状态', - field: 'status', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.COMMON_STATUS) as any, - }, - colProps: { span: 8 }, - }, -] - -export const formSchema: FormSchema[] = [ - { - label: '编号', - field: 'id', - show: false, - component: 'Input', - }, - { - label: '名称', - field: 'name', - required: true, - component: 'Input', - }, - { - label: '状态', - field: 'status', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.COMMON_STATUS) as any, - }, - }, - { - label: '备注', - field: 'remark', - component: 'InputTextArea', - }, -] diff --git a/src/views/member/group/index.vue b/src/views/member/group/index.vue deleted file mode 100644 index dfe3c5b..0000000 --- a/src/views/member/group/index.vue +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - diff --git a/src/views/member/level/LevelModal.vue b/src/views/member/level/LevelModal.vue deleted file mode 100644 index cf6a65f..0000000 --- a/src/views/member/level/LevelModal.vue +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - diff --git a/src/views/member/level/index.vue b/src/views/member/level/index.vue deleted file mode 100644 index d09a15f..0000000 --- a/src/views/member/level/index.vue +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - diff --git a/src/views/member/level/level.data.ts b/src/views/member/level/level.data.ts deleted file mode 100644 index ac91659..0000000 --- a/src/views/member/level/level.data.ts +++ /dev/null @@ -1,136 +0,0 @@ -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' - -export const columns: BasicColumn[] = [ - { - title: '编号', - dataIndex: 'id', - }, - { - title: '等级图标', - dataIndex: 'icon', - customRender: ({ text }) => { - return useRender.renderImg(text) - }, - }, - { - title: '等级背景图', - dataIndex: 'remark', - customRender: ({ text }) => { - return useRender.renderImg(text) - }, - }, - { - title: '等级名称', - dataIndex: 'name', - }, - { - title: '等级', - dataIndex: 'level', - }, - { - title: '升级经验', - dataIndex: 'experience', - }, - { - title: '享受折扣(%)', - dataIndex: 'discountPercent', - }, - { - title: '状态', - dataIndex: 'status', - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.COMMON_STATUS) - }, - }, - { - title: '创建时间', - dataIndex: 'createTime', - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '等级名称', - field: 'name', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '状态', - field: 'status', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.COMMON_STATUS) as any, - }, - colProps: { span: 8 }, - }, -] - -export const formSchema: FormSchema[] = [ - { - label: '编号', - field: 'id', - show: false, - component: 'Input', - }, - { - label: '等级名称', - field: 'name', - required: true, - component: 'Input', - }, - { - label: '等级', - field: 'level', - required: true, - component: 'InputNumber', - }, - { - label: '升级经验', - field: 'experience', - required: true, - component: 'InputNumber', - }, - { - label: '享受折扣(%)', - field: 'discountPercent', - required: true, - component: 'InputNumber', - }, - { - label: '等级图标', - field: 'icon', - component: 'FileUpload', - componentProps: { - maxCount: 1, - fileType: 'image', - }, - }, - { - label: '背景图', - field: 'backgroundUrl', - component: 'FileUpload', - componentProps: { - maxCount: 1, - fileType: 'image', - }, - }, - { - label: '状态', - field: 'status', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.COMMON_STATUS) as any, - }, - }, - { - label: '备注', - field: 'remark', - component: 'InputTextArea', - }, -] diff --git a/src/views/member/point/record/index.vue b/src/views/member/point/record/index.vue deleted file mode 100644 index 623123e..0000000 --- a/src/views/member/point/record/index.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - diff --git a/src/views/member/point/record/record.data.ts b/src/views/member/point/record/record.data.ts deleted file mode 100644 index 026aa23..0000000 --- a/src/views/member/point/record/record.data.ts +++ /dev/null @@ -1,82 +0,0 @@ -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' - -export const columns: BasicColumn[] = [ - { - title: '编号', - dataIndex: 'id', - width: 100, - }, - { - title: '用户', - dataIndex: 'nickname', - width: 200, - }, - { - title: '获得积分', - dataIndex: 'point', - width: 100, - customRender: ({ text }) => { - return useRender.renderTag(text, text > 0 ? 'blue' : 'red') - }, - }, - { - title: '总积分', - dataIndex: 'totalPoint', - width: 100, - }, - { - title: '标题', - dataIndex: 'title', - width: 180, - }, - { - title: '描述', - dataIndex: 'description', - width: 180, - }, - { - title: '业务编码', - dataIndex: 'bizId', - width: 100, - }, - { - title: '业务类型', - dataIndex: 'bizType', - width: 100, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.MEMBER_POINT_BIZ_TYPE) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '用户', - field: 'nickname', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '业务类型', - field: 'bizType', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.MEMBER_POINT_BIZ_TYPE) as any, - }, - colProps: { span: 8 }, - }, - { - label: '积分标题', - field: 'title', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '获得时间', - field: 'createTime', - component: 'RangePicker', - colProps: { span: 8 }, - }, -] diff --git a/src/views/member/signin/config/ConfigModal.vue b/src/views/member/signin/config/ConfigModal.vue deleted file mode 100644 index 3eb7520..0000000 --- a/src/views/member/signin/config/ConfigModal.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - diff --git a/src/views/member/signin/config/config.data.ts b/src/views/member/signin/config/config.data.ts deleted file mode 100644 index 1169c34..0000000 --- a/src/views/member/signin/config/config.data.ts +++ /dev/null @@ -1,84 +0,0 @@ -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' - -export const columns: BasicColumn[] = [ - { - title: '公告编号', - dataIndex: 'id', - width: 100, - }, - { - title: '签到天数', - dataIndex: 'day', - width: 180, - customRender: ({ text }) => { - return useRender.renderTag(`第 ${text} 天`) - }, - }, - { - title: '奖励积分', - dataIndex: 'point', - width: 180, - }, - { - title: '奖励经验', - dataIndex: 'experience', - width: 180, - }, - { - title: '状态', - dataIndex: 'status', - width: 180, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.COMMON_STATUS) - }, - }, -] - -export const formSchema: FormSchema[] = [ - { - label: '编号', - field: 'id', - show: false, - component: 'Input', - }, - { - label: '签到天数', - field: 'day', - required: true, - helpMessage: '只允许设置 1-7,默认签到 7 天为一个周期', - component: 'InputNumber', - componentProps: { - max: 7, - min: 1, - precision: 0, - }, - }, - { - label: '奖励积分', - field: 'point', - required: true, - component: 'InputNumber', - componentProps: { - precision: 0, - }, - }, - { - label: '奖励经验', - field: 'experience', - required: true, - component: 'InputNumber', - componentProps: { - precision: 0, - }, - }, - { - label: '状态', - field: 'status', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.COMMON_STATUS) as any, - }, - }, -] diff --git a/src/views/member/signin/config/index.vue b/src/views/member/signin/config/index.vue deleted file mode 100644 index 0c669d1..0000000 --- a/src/views/member/signin/config/index.vue +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - {{ t('action.create') }} - - - - - - - - - - - diff --git a/src/views/member/signin/record/index.vue b/src/views/member/signin/record/index.vue deleted file mode 100644 index 3616c05..0000000 --- a/src/views/member/signin/record/index.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - diff --git a/src/views/member/signin/record/record.data.ts b/src/views/member/signin/record/record.data.ts deleted file mode 100644 index 29603ff..0000000 --- a/src/views/member/signin/record/record.data.ts +++ /dev/null @@ -1,60 +0,0 @@ -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' - -export const columns: BasicColumn[] = [ - { - title: '编号', - dataIndex: 'id', - width: 100, - }, - { - title: '签到用户', - dataIndex: 'nickname', - width: 200, - }, - { - title: '签到天数', - dataIndex: 'day', - width: 100, - customRender: ({ text }) => { - return useRender.renderTag(`第 ${text} 天`) - }, - }, - { - title: '获得积分', - dataIndex: 'point', - width: 100, - customRender: ({ text }) => { - return useRender.renderTag(text, text > 0 ? 'blue' : 'red') - }, - }, - { - title: '签到时间', - dataIndex: 'createTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '签到用户', - field: 'nickname', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '签到天数', - field: 'bizType', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '签到时间', - field: 'createTime', - component: 'RangePicker', - colProps: { span: 8 }, - }, -] diff --git a/src/views/member/tag/TagModal.vue b/src/views/member/tag/TagModal.vue deleted file mode 100644 index f2f9809..0000000 --- a/src/views/member/tag/TagModal.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - diff --git a/src/views/member/tag/index.vue b/src/views/member/tag/index.vue deleted file mode 100644 index 4e2c979..0000000 --- a/src/views/member/tag/index.vue +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - - - {{ t('action.create') }} - - - - - - - - - - - diff --git a/src/views/member/tag/tag.data.ts b/src/views/member/tag/tag.data.ts deleted file mode 100644 index 9652b41..0000000 --- a/src/views/member/tag/tag.data.ts +++ /dev/null @@ -1,52 +0,0 @@ -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' - -export const columns: BasicColumn[] = [ - { - title: '编号', - dataIndex: 'id', - width: 100, - }, - { - title: '标签名称', - dataIndex: 'name', - width: 180, - }, - { - title: '创建时间', - dataIndex: 'createTime', - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '标签名称', - field: 'name', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '创建时间', - field: 'createTime', - component: 'RangePicker', - colProps: { span: 8 }, - }, -] - -export const formSchema: FormSchema[] = [ - { - label: '编号', - field: 'id', - show: false, - component: 'Input', - }, - { - label: '标签名称', - field: 'name', - required: true, - component: 'Input', - }, -] diff --git a/src/views/member/user/UpdateLevelModal.vue b/src/views/member/user/UpdateLevelModal.vue deleted file mode 100644 index 9d47c9c..0000000 --- a/src/views/member/user/UpdateLevelModal.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - diff --git a/src/views/member/user/UserDetailDrawer.vue b/src/views/member/user/UserDetailDrawer.vue deleted file mode 100644 index 530fea6..0000000 --- a/src/views/member/user/UserDetailDrawer.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - 修改 - - - - - - - - - - - - 账户明细 - - - diff --git a/src/views/member/user/UserModal.vue b/src/views/member/user/UserModal.vue deleted file mode 100644 index 78bb78c..0000000 --- a/src/views/member/user/UserModal.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - diff --git a/src/views/member/user/index.vue b/src/views/member/user/index.vue deleted file mode 100644 index 0740c5e..0000000 --- a/src/views/member/user/index.vue +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/src/views/member/user/user.data.ts b/src/views/member/user/user.data.ts deleted file mode 100644 index ac686e1..0000000 --- a/src/views/member/user/user.data.ts +++ /dev/null @@ -1,362 +0,0 @@ -import { getSimpleGroupList } from '@/api/member/group' -import { getSimpleLevelList } from '@/api/member/level' -import { getSimpleTagList } from '@/api/member/tag' -import { getAreaTree } from '@/api/system/area' -import type { DescItem } from '@/components/Description' -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' - -export const columns: BasicColumn[] = [ - { - title: '用户编号', - dataIndex: 'id', - width: 100, - }, - { - title: '头像', - dataIndex: 'avatar', - width: 180, - customRender: ({ text }) => { - return useRender.renderImg(text) - }, - }, - { - title: '手机号', - dataIndex: 'mobile', - width: 100, - }, - { - title: '昵称', - dataIndex: 'nickname', - width: 100, - }, - { - title: '等级', - dataIndex: 'levelName', - width: 100, - }, - { - title: '分组', - dataIndex: 'groupName', - width: 100, - }, - { - title: '用户标签', - dataIndex: 'tagNames', - width: 100, - customRender: ({ text }) => { - return useRender.renderTags(text) - }, - }, - { - title: '积分', - dataIndex: 'point', - width: 100, - }, - { - title: '状态', - dataIndex: 'status', - width: 180, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.COMMON_STATUS) - }, - }, - { - title: '登录时间', - dataIndex: 'loginDate', - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, - { - title: '注册时间', - dataIndex: 'createTime', - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '用户昵称', - field: 'nickname', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '手机号', - field: 'mobile', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '注册时间', - field: 'createTime', - component: 'RangePicker', - colProps: { span: 8 }, - }, - { - label: '登录时间', - field: 'loginDate', - component: 'RangePicker', - colProps: { span: 8 }, - }, - { - label: '用户标签', - field: 'tagIds', - component: 'ApiSelect', - componentProps: { - api: () => getSimpleTagList(), - labelField: 'name', - valueField: 'id', - }, - colProps: { span: 8 }, - }, - { - label: '用户等级', - field: 'levelId', - component: 'ApiSelect', - componentProps: { - api: () => getSimpleLevelList(), - labelField: 'name', - valueField: 'id', - }, - colProps: { span: 8 }, - }, - { - label: '用户分组', - field: 'groupId', - component: 'ApiSelect', - componentProps: { - api: () => getSimpleGroupList(), - labelField: 'name', - valueField: 'id', - }, - colProps: { span: 8 }, - }, -] - -export const formSchema: FormSchema[] = [ - { - label: '编号', - field: 'id', - show: false, - component: 'Input', - }, - { - label: '手机号', - field: 'mobile', - required: true, - component: 'Input', - }, - { - label: '状态', - field: 'status', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.COMMON_STATUS) as any, - }, - }, - { - label: '用户昵称', - field: 'nickname', - component: 'Input', - }, - { - label: '用户头像', - field: 'avatar', - component: 'FileUpload', - componentProps: { - maxCount: 1, - fileType: 'image', - }, - }, - { - label: '真实名字', - field: 'name', - component: 'Input', - }, - { - label: '用户性别', - field: 'sex', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.SYSTEM_USER_SEX), - }, - }, - { - label: '出生日期', - field: 'birthday', - component: 'DatePicker', - componentProps: { - valueFormat: 'x', - }, - }, - { - label: '所在地', - field: 'areaId', - component: 'ApiTreeSelect', - componentProps: { - api: () => getAreaTree(), - handleTree: 'id', - }, - }, - { - label: '用户标签', - field: 'tagIds', - component: 'ApiSelect', - componentProps: { - api: () => getSimpleTagList(), - labelField: 'name', - valueField: 'id', - }, - }, - { - label: '用户分组', - field: 'groupId', - component: 'ApiSelect', - componentProps: { - api: () => getSimpleGroupList(), - labelField: 'name', - valueField: 'id', - }, - }, - { - label: '会员备注', - field: 'mark', - component: 'InputTextArea', - }, -] - -export const updateLevelFormSchema: FormSchema[] = [ - { - label: '编号', - field: 'id', - show: false, - component: 'Input', - }, - { - label: '用户昵称', - field: 'nickname', - dynamicDisabled: true, - component: 'Input', - }, - { - label: '用户等级', - field: 'levelId', - component: 'ApiSelect', - componentProps: { - api: () => getSimpleLevelList(), - labelField: 'name', - valueField: 'id', - }, - }, - { - label: '修改原因', - field: 'reason', - required: true, - component: 'InputTextArea', - }, -] - -export const userBasicInfoDesc: DescItem[] = [ - { - label: '用户名', - field: 'name', - }, - { - label: '昵称', - field: 'nickname', - }, - { - label: '手机号', - field: 'mobile', - }, - { - label: '性别', - field: 'sex', - render: (curVal) => { - return useRender.renderDict(curVal, DICT_TYPE.SYSTEM_USER_SEX) - }, - }, - { - label: '所在地', - field: 'areaName', - }, - { - label: '注册 IP', - field: 'registerIp', - }, - { - label: '生日', - field: 'birthday', - render: (curVal) => { - return useRender.renderDate(curVal) - }, - }, - { - label: '注册时间', - field: 'createTime', - render: (curVal) => { - return useRender.renderDate(curVal) - }, - }, - { - label: '最后登录时间', - field: 'loginDate', - render: (curVal) => { - return useRender.renderDate(curVal) - }, - }, -] - -export const userAccountInfoDesc: DescItem[] = [ - { - label: '等级', - field: 'levelName', - }, - { - label: '成长值', - field: 'experience', - render: (curVal) => { - return curVal || 0 - }, - }, - { - label: '当前积分', - field: 'point', - render: (curVal) => { - return curVal || 0 - }, - }, - { - label: '总积分', - field: 'totalPoint', - render: (curVal) => { - return curVal || 0 - }, - }, - { - label: '当前余额', - field: 'aaa', - render: (curVal) => { - return curVal || 0 - }, - }, - { - label: '支出金额', - field: 'bbb', - render: (curVal) => { - return curVal || 0 - }, - }, - { - label: '充值金额', - field: 'ccc', - render: (curVal) => { - return curVal || 0 - }, - }, -] diff --git a/src/views/mp/account/AccountModal.vue b/src/views/mp/account/AccountModal.vue deleted file mode 100644 index 0b60f6e..0000000 --- a/src/views/mp/account/AccountModal.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - diff --git a/src/views/mp/account/account.data.ts b/src/views/mp/account/account.data.ts deleted file mode 100644 index 240e090..0000000 --- a/src/views/mp/account/account.data.ts +++ /dev/null @@ -1,109 +0,0 @@ -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' - -export const columns: BasicColumn[] = [ - { - title: '编号', - dataIndex: 'id', - defaultHidden: true, - width: 100, - }, - { - title: '名称', - dataIndex: 'name', - width: 180, - }, - { - title: '微信号', - dataIndex: 'account', - width: 100, - }, - { - title: 'appId', - dataIndex: 'appId', - width: 120, - }, - { - title: '服务器地址(URL)', - dataIndex: 'appIdURL', - width: 120, - customRender: ({ record }) => { - return `http://服务端地址/mp/open/${record.appId}` - }, - }, - { - title: '二维码', - dataIndex: 'qrCodeUrl', - width: 180, - customRender: ({ text }) => { - return useRender.renderImg(text) - }, - }, - { - title: '备注', - dataIndex: 'remark', - width: 180, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '名称', - field: 'name', - component: 'Input', - colProps: { span: 8 }, - }, -] - -export const formSchema: FormSchema[] = [ - { - label: '编号', - field: 'id', - show: false, - component: 'Input', - }, - { - label: '名称', - field: 'name', - required: true, - component: 'Input', - }, - { - label: '微信号', - field: 'account', - helpMessage: '在微信公众平台(mp.weixin.qq.com)的菜单 [设置与开发 - 公众号设置 - 账号详情] 中能找到「微信号」', - required: true, - component: 'Input', - }, - { - label: '公众号 appId', - field: 'appId', - helpMessage: '在微信公众平台(mp.weixin.qq.com)的菜单 [设置与开发 - 公众号设置 - 基本设置] 中能找到「开发者ID(AppID)」', - required: true, - component: 'Input', - }, - { - label: '公众号 appSecret', - field: 'appSecret', - helpMessage: '在微信公众平台(mp.weixin.qq.com)的菜单 [设置与开发 - 公众号设置 - 基本设置] 中能找到「开发者密码(AppSecret)」', - required: true, - component: 'Input', - }, - { - label: '公众号token', - field: 'token', - required: true, - component: 'Input', - }, - { - label: '消息加解密密钥', - field: 'aesKey', - required: true, - component: 'Input', - }, - { - label: '备注', - field: 'remark', - component: 'InputTextArea', - }, -] diff --git a/src/views/mp/account/index.vue b/src/views/mp/account/index.vue deleted file mode 100644 index 0214adc..0000000 --- a/src/views/mp/account/index.vue +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - - {{ t('action.create') }} - - - - - - - - - - - diff --git a/src/views/mp/autoReply/index.vue b/src/views/mp/autoReply/index.vue deleted file mode 100644 index 3b64cfc..0000000 --- a/src/views/mp/autoReply/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 开发中 - diff --git a/src/views/mp/components/WxAccountSelect/index.vue b/src/views/mp/components/WxAccountSelect/index.vue deleted file mode 100644 index 54ed79e..0000000 --- a/src/views/mp/components/WxAccountSelect/index.vue +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - diff --git a/src/views/mp/components/WxLocation/index.vue b/src/views/mp/components/WxLocation/index.vue deleted file mode 100644 index 526d579..0000000 --- a/src/views/mp/components/WxLocation/index.vue +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - {{ label }} - - - diff --git a/src/views/mp/components/WxMaterialSelect/index.vue b/src/views/mp/components/WxMaterialSelect/index.vue deleted file mode 100644 index 30cf9db..0000000 --- a/src/views/mp/components/WxMaterialSelect/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 123 - diff --git a/src/views/mp/components/WxMaterialSelect/type.ts b/src/views/mp/components/WxMaterialSelect/type.ts deleted file mode 100644 index d3790c2..0000000 --- a/src/views/mp/components/WxMaterialSelect/type.ts +++ /dev/null @@ -1,11 +0,0 @@ -export enum NewsType { - Draft = '2', - Published = '1', -} - -export enum MaterialType { - Image = 'image', - Voice = 'voice', - Video = 'video', - News = 'news', -} diff --git a/src/views/mp/components/WxMsg/index.vue b/src/views/mp/components/WxMsg/index.vue deleted file mode 100644 index 30cf9db..0000000 --- a/src/views/mp/components/WxMsg/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 123 - diff --git a/src/views/mp/components/WxMusic/index.vue b/src/views/mp/components/WxMusic/index.vue deleted file mode 100644 index 8e5abcc..0000000 --- a/src/views/mp/components/WxMusic/index.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - {{ title }} - - - {{ description }} - - - - - - diff --git a/src/views/mp/components/WxNews/index.vue b/src/views/mp/components/WxNews/index.vue deleted file mode 100644 index acbfbca..0000000 --- a/src/views/mp/components/WxNews/index.vue +++ /dev/null @@ -1,190 +0,0 @@ - - - - - - - - - - - - - - - - 每行显示数量 - - - - - - - - 刷新 - - - - - - - - - - {{ item.content.newsItem[0].title }} - - - - - - - - - - - - - - - - - - - {{ item.time }} - - - - - - - - - diff --git a/src/views/mp/components/WxReply/index.vue b/src/views/mp/components/WxReply/index.vue deleted file mode 100644 index 30cf9db..0000000 --- a/src/views/mp/components/WxReply/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 123 - diff --git a/src/views/mp/components/WxVideoPlay/index.vue b/src/views/mp/components/WxVideoPlay/index.vue deleted file mode 100644 index b126c1a..0000000 --- a/src/views/mp/components/WxVideoPlay/index.vue +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - 点击播放视频 - - - - - - - - - - - - - - - - - - - - diff --git a/src/views/mp/components/WxVoicePlay/index.vue b/src/views/mp/components/WxVoicePlay/index.vue deleted file mode 100644 index d01eee7..0000000 --- a/src/views/mp/components/WxVoicePlay/index.vue +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - {{ duration }} 秒 - - - - 语音识别 - - {{ content }} - - - diff --git a/src/views/mp/components/index.ts b/src/views/mp/components/index.ts deleted file mode 100644 index 4160db6..0000000 --- a/src/views/mp/components/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -import wxAccountSelect from './WxAccountSelect/index.vue' - -export { wxAccountSelect } diff --git a/src/views/mp/draft/index.vue b/src/views/mp/draft/index.vue deleted file mode 100644 index 3b64cfc..0000000 --- a/src/views/mp/draft/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 开发中 - diff --git a/src/views/mp/freePublish/index.vue b/src/views/mp/freePublish/index.vue deleted file mode 100644 index 4e75c41..0000000 --- a/src/views/mp/freePublish/index.vue +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - diff --git a/src/views/mp/material/index.vue b/src/views/mp/material/index.vue deleted file mode 100644 index 3b64cfc..0000000 --- a/src/views/mp/material/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 开发中 - diff --git a/src/views/mp/menu/index.vue b/src/views/mp/menu/index.vue deleted file mode 100644 index 3b64cfc..0000000 --- a/src/views/mp/menu/index.vue +++ /dev/null @@ -1,3 +0,0 @@ - - 开发中 - diff --git a/src/views/mp/message/MessageModal.vue b/src/views/mp/message/MessageModal.vue deleted file mode 100644 index 3083763..0000000 --- a/src/views/mp/message/MessageModal.vue +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - diff --git a/src/views/mp/message/index.vue b/src/views/mp/message/index.vue deleted file mode 100644 index 0f156ab..0000000 --- a/src/views/mp/message/index.vue +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - - - - - - diff --git a/src/views/mp/message/message.data.ts b/src/views/mp/message/message.data.ts deleted file mode 100644 index 1d29d48..0000000 --- a/src/views/mp/message/message.data.ts +++ /dev/null @@ -1,166 +0,0 @@ -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' -import { getSimpleAccounts } from '@/api/mp/account' - -export enum MsgType { - Event = 'event', - Text = 'text', - Voice = 'voice', - Image = 'image', - Video = 'video', - Link = 'link', - Location = 'location', - Music = 'music', - News = 'news', -} - -export const columns: BasicColumn[] = [ - { - title: '发送时间', - dataIndex: 'createTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, - { - title: '消息类型', - dataIndex: 'type', - width: 80, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.MP_MESSAGE_TYPE) - }, - }, - { - title: '发送方', - dataIndex: 'sendFrom', - width: 180, - customRender: ({ text }) => { - if (text === 1) - return useRender.renderTag('粉丝', 'success') - else - return useRender.renderTag('公众号', 'default') - }, - }, - { - title: '用户标识', - dataIndex: 'openid', - width: 300, - }, - { - title: '内容', - dataIndex: 'content', - width: 300, - customRender: ({ text, record }) => { - if (record.type === MsgType.Event && record.event === 'subscribe') { - return useRender.renderTag('关注', 'success') - } - else if (record.type === MsgType.Event && record.event === 'unsubscribe') { - return useRender.renderTag('取消关注', 'warn') - } - else if (record.type === MsgType.Event && record.event === 'CLICK') { - return useRender.renderTag(`点击菜单${record.eventKey}`) - } - else if (record.type === MsgType.Event && record.event === 'VIEW') { - return useRender.renderTag(`点击菜单链接${record.eventKey}`) - } - else if (record.type === MsgType.Event && record.event === 'scancode_waitmsg') { - return useRender.renderTag(`扫码结果${record.eventKey}`) - } - else if (record.type === MsgType.Event && record.event === 'scancode_push') { - return useRender.renderTag(`扫码结果${record.eventKey}`) - } - else if (record.type === MsgType.Event && record.event === 'pic_sysphoto') { - return useRender.renderTag('系统拍照发图') - } - else if (record.type === MsgType.Event && record.event === 'pic_photo_or_album') { - return useRender.renderTag('拍照或者相册') - } - else if (record.type === MsgType.Event && record.event === 'pic_weixin') { - return useRender.renderTag('微信相册') - } - else if (record.type === MsgType.Event && record.event === 'location_select') { - return useRender.renderTag('选择地理位置') - } - else if (record.type === MsgType.Event) { - return useRender.renderTag('未知事件类型') - } - else if (record.type === MsgType.Text) { - return text - } - else if (record.type === MsgType.Voice) { - // TODO voice - return record.mediaUrl - } - else if (record.type === MsgType.Image) { - return useRender.renderImg(record.mediaUrl) - } - else if (record.type === MsgType.Video || record.type === 'shortvideo') { - // TODO - return record.mediaUrl - } - else if (record.type === MsgType.Link) { - return useRender.renderLink(record.url, record.title) - } - else if (record.type === MsgType.Location) { - // TODO - return record.label - } - else if (record.type === MsgType.Music) { - // TODO - return record.title - } - else if (record.type === MsgType.News) { - // TODO - return record.articles - } - else { - return useRender.renderTag('未知消息类型', 'warn') - } - }, - }, -] - -const simpleAccountsOptions = await getSimpleAccounts() - -export const searchFormSchema: FormSchema[] = [ - { - label: '公众号', - field: 'accountId', - component: 'Select', - required: true, - defaultValue: simpleAccountsOptions[0].id, - componentProps: { - options: simpleAccountsOptions, - fieldNames: { - label: 'name', - value: 'id', - }, - }, - colProps: { span: 8 }, - }, - { - label: '消息类型', - field: 'type', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.MP_MESSAGE_TYPE, 'string') as any, - }, - colProps: { span: 8 }, - }, - { - label: '用户标识', - field: 'openid', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '创建时间', - field: 'createTime', - component: 'RangePicker', - colProps: { span: 8 }, - }, -] - -export const formSchema: FormSchema[] = [] diff --git a/src/views/mp/statistics/components/InterfaceSummaryChart.vue b/src/views/mp/statistics/components/InterfaceSummaryChart.vue deleted file mode 100644 index 03fdf93..0000000 --- a/src/views/mp/statistics/components/InterfaceSummaryChart.vue +++ /dev/null @@ -1,72 +0,0 @@ - - - 开发中 - diff --git a/src/views/mp/statistics/components/UpstreamMessageChart.vue b/src/views/mp/statistics/components/UpstreamMessageChart.vue deleted file mode 100644 index 9d192e4..0000000 --- a/src/views/mp/statistics/components/UpstreamMessageChart.vue +++ /dev/null @@ -1,65 +0,0 @@ - - - 开发中 - diff --git a/src/views/mp/statistics/components/UserCumulateChart.vue b/src/views/mp/statistics/components/UserCumulateChart.vue deleted file mode 100644 index ce4371b..0000000 --- a/src/views/mp/statistics/components/UserCumulateChart.vue +++ /dev/null @@ -1,76 +0,0 @@ - - - 开发中 - diff --git a/src/views/mp/statistics/components/UserSummaryChart.vue b/src/views/mp/statistics/components/UserSummaryChart.vue deleted file mode 100644 index b55b9d6..0000000 --- a/src/views/mp/statistics/components/UserSummaryChart.vue +++ /dev/null @@ -1,89 +0,0 @@ - - - 开发中 - diff --git a/src/views/mp/statistics/index.vue b/src/views/mp/statistics/index.vue deleted file mode 100644 index c21bd78..0000000 --- a/src/views/mp/statistics/index.vue +++ /dev/null @@ -1,24 +0,0 @@ - - - 开发中 - diff --git a/src/views/mp/statistics/statistics.data.ts b/src/views/mp/statistics/statistics.data.ts deleted file mode 100644 index e69de29..0000000 diff --git a/src/views/mp/tag/TagModal.vue b/src/views/mp/tag/TagModal.vue deleted file mode 100644 index 0450a74..0000000 --- a/src/views/mp/tag/TagModal.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - diff --git a/src/views/mp/tag/index.vue b/src/views/mp/tag/index.vue deleted file mode 100644 index 4606e04..0000000 --- a/src/views/mp/tag/index.vue +++ /dev/null @@ -1,93 +0,0 @@ - - - - - - - - {{ t('action.create') }} - - - {{ t('action.sync') }} - - - - - - - - - - - diff --git a/src/views/mp/tag/tag.data.ts b/src/views/mp/tag/tag.data.ts deleted file mode 100644 index 58d1bb7..0000000 --- a/src/views/mp/tag/tag.data.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { getSimpleAccounts } from '@/api/mp/account' -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' - -export const columns: BasicColumn[] = [ - { - title: '编号', - dataIndex: 'id', - width: 100, - }, - { - title: '标签名称', - dataIndex: 'name', - width: 180, - }, - { - title: '粉丝数', - dataIndex: 'count', - width: 100, - }, - { - title: '创建时间', - dataIndex: 'createTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, -] - -const simpleAccountsOptions = await getSimpleAccounts() - -export const searchFormSchema: FormSchema[] = [ - { - label: '公众号', - field: 'accountId', - component: 'Select', - required: true, - defaultValue: simpleAccountsOptions[0].id, - componentProps: { - options: simpleAccountsOptions, - fieldNames: { - label: 'name', - value: 'id', - }, - }, - colProps: { span: 8 }, - }, - { - label: '标签名称', - field: 'name', - component: 'Input', - colProps: { span: 8 }, - }, -] - -export const formSchema: FormSchema[] = [ - { - label: '编号', - field: 'id', - show: false, - component: 'Input', - }, - { - label: '标签名称', - field: 'name', - required: true, - component: 'Input', - }, -] diff --git a/src/views/mp/user/MpUserModal.vue b/src/views/mp/user/MpUserModal.vue deleted file mode 100644 index 37af0b1..0000000 --- a/src/views/mp/user/MpUserModal.vue +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - diff --git a/src/views/mp/user/index.vue b/src/views/mp/user/index.vue deleted file mode 100644 index 6a382c3..0000000 --- a/src/views/mp/user/index.vue +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - {{ t('action.sync') }} - - - - - - - - - - - diff --git a/src/views/mp/user/mpuser.data.ts b/src/views/mp/user/mpuser.data.ts deleted file mode 100644 index 48f8bf7..0000000 --- a/src/views/mp/user/mpuser.data.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { getSimpleAccounts } from '@/api/mp/account' -import { getSimpleTags } from '@/api/mp/tag' -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' - -export const columns: BasicColumn[] = [ - { - title: '编号', - dataIndex: 'id', - width: 100, - }, - { - title: '用户标识', - dataIndex: 'openid', - width: 180, - }, - { - title: '昵称', - dataIndex: 'nickname', - width: 100, - }, - { - title: '备注', - dataIndex: 'remark', - width: 120, - }, - { - title: '标签', - dataIndex: 'tagIds', - width: 180, - customRender: ({ text }) => { - return useRender.renderTags(text) - }, - }, - { - title: '订阅状态', - dataIndex: 'subscribeStatus', - width: 180, - customRender: ({ text }) => { - return useRender.renderTag(text === 0 ? '已订阅' : '未订阅', text === 0 ? 'purple' : 'orange') - }, - }, - { - title: '订阅时间', - dataIndex: 'subscribeTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, -] - -const simpleAccountsOptions = await getSimpleAccounts() - -export const searchFormSchema: FormSchema[] = [ - { - label: '公众号', - field: 'accountId', - component: 'Select', - required: true, - defaultValue: simpleAccountsOptions[0].id, - componentProps: { - options: simpleAccountsOptions, - fieldNames: { - label: 'name', - value: 'id', - }, - }, - colProps: { span: 8 }, - }, - { - label: '用户标识', - field: 'openid', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '昵称', - field: 'nickname', - component: 'Input', - colProps: { span: 8 }, - }, -] - -export const formSchema: FormSchema[] = [ - { - label: '编号', - field: 'id', - show: false, - component: 'Input', - }, - { - label: '昵称', - field: 'nickname', - required: true, - component: 'Input', - }, - { - label: '备注', - field: 'remark', - required: true, - component: 'Input', - }, - { - label: '标签', - field: 'tagIds', - helpMessage: '在微信公众平台(mp.weixin.qq.com)的菜单 [设置与开发 - 公众号设置 - 基本设置] 中能找到「开发者ID(AppID)」', - required: true, - defaultValue: [], - component: 'ApiSelect', - componentProps: { - api: () => getSimpleTags(), - labelField: 'name', - valueField: 'tagId', - mode: 'tags', - }, - }, -] diff --git a/src/views/pay/app/AppModal.vue b/src/views/pay/app/AppModal.vue deleted file mode 100644 index 41fba59..0000000 --- a/src/views/pay/app/AppModal.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - diff --git a/src/views/pay/app/ChannelModal.vue b/src/views/pay/app/ChannelModal.vue deleted file mode 100644 index 24b180b..0000000 --- a/src/views/pay/app/ChannelModal.vue +++ /dev/null @@ -1,88 +0,0 @@ - - - - - - - diff --git a/src/views/pay/app/app.data.ts b/src/views/pay/app/app.data.ts deleted file mode 100644 index 6361708..0000000 --- a/src/views/pay/app/app.data.ts +++ /dev/null @@ -1,404 +0,0 @@ -import { Switch } from 'ant-design-vue' -import { h } from 'vue' -import { changeAppStatus } from '@/api/pay/app' -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { PayChannelEnum } from '@/enums/systemEnum' -import { useMessage } from '@/hooks/web/useMessage' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' - -export const columns: BasicColumn[] = [ - { - title: '应用编号', - dataIndex: 'id', - width: 100, - }, - { - title: '应用名', - dataIndex: 'name', - width: 100, - }, - { - title: '开启状态', - dataIndex: 'status', - width: 100, - customRender: ({ record }) => { - if (!Reflect.has(record, 'pendingStatus')) - record.pendingStatus = false - - return h(Switch, { - checked: record.status === 0, - checkedChildren: '已启用', - unCheckedChildren: '已禁用', - loading: record.pendingStatus, - onChange(checked: boolean) { - record.pendingStatus = true - const newStatus = checked ? 0 : 1 - const { createMessage } = useMessage() - changeAppStatus({ id: record.id, status: newStatus }) - .then(() => { - record.status = newStatus - createMessage.success('已成功修改应用状态') - }) - .catch(() => { - createMessage.error('修改应用状态失败') - }) - .finally(() => { - record.pendingStatus = false - }) - }, - }) - }, - }, - { - title: '支付宝配置', - children: [ - { - title: PayChannelEnum.ALIPAY_APP.name, - dataIndex: PayChannelEnum.ALIPAY_APP.code, - width: 160, - }, - { - title: PayChannelEnum.ALIPAY_PC.name, - dataIndex: PayChannelEnum.ALIPAY_PC.code, - width: 160, - }, - { - title: PayChannelEnum.ALIPAY_WAP.name, - dataIndex: PayChannelEnum.ALIPAY_WAP.code, - width: 160, - }, - { - title: PayChannelEnum.ALIPAY_QR.name, - dataIndex: PayChannelEnum.ALIPAY_QR.code, - width: 160, - }, - { - title: PayChannelEnum.ALIPAY_BAR.name, - dataIndex: PayChannelEnum.ALIPAY_BAR.code, - width: 160, - }, - ], - }, - { - title: '微信配置', - children: [ - { - title: PayChannelEnum.WX_LITE.name, - dataIndex: PayChannelEnum.WX_LITE.code, - width: 160, - }, - { - title: PayChannelEnum.WX_PUB.name, - dataIndex: PayChannelEnum.WX_PUB.code, - width: 160, - }, - { - title: PayChannelEnum.WX_APP.name, - dataIndex: PayChannelEnum.WX_APP.code, - width: 160, - }, - ], - }, - { - title: '模拟支付配置', - children: [ - { - title: PayChannelEnum.MOCK.name, - dataIndex: PayChannelEnum.MOCK.code, - width: 160, - }, - ], - }, - { - title: '创建时间', - dataIndex: 'createTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '应用名', - field: 'name', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '开启状态', - field: 'status', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.COMMON_STATUS) as any, - }, - colProps: { span: 8 }, - }, - { - label: '创建时间', - field: 'createTime', - component: 'RangePicker', - colProps: { span: 8 }, - }, -] - -export const formSchema: FormSchema[] = [ - { - label: '编号', - field: 'id', - show: false, - component: 'Input', - }, - { - label: '应用名', - field: 'name', - required: true, - component: 'Input', - }, - { - label: '开启状态', - field: 'status', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.COMMON_STATUS) as any, - }, - }, - { - label: '支付结果的回调地址', - field: 'orderNotifyUrl', - required: true, - component: 'Input', - }, - { - label: '退款结果的回调地址', - field: 'refundNotifyUrl', - required: true, - component: 'Input', - }, - { - label: '备注', - field: 'remark', - component: 'InputTextArea', - }, -] - -export const aliPayFormSchema: FormSchema[] = [ - { - label: '编号', - field: 'id', - show: false, - component: 'Input', - }, - { - label: '渠道费率', - field: 'feeRate', - defaultValue: 0, - required: true, - component: 'InputNumber', - }, - { - label: '开放平台APPID', - field: 'payConfig.appId', - required: true, - component: 'Input', - }, - { - label: '渠道状态', - field: 'status', - required: true, - component: 'RadioGroup', - componentProps: { - options: getDictOptions(DICT_TYPE.COMMON_STATUS), - }, - }, - { - label: '网关地址', - field: 'payConfig.serverUrl', - required: true, - component: 'RadioGroup', - componentProps: { - options: [ - { value: 'https://openapi.alipay.com/gateway.do', label: '线上环境' }, - { value: 'https://openapi-sandbox.dl.alipaydev.com/gateway.do', label: '沙箱环境' }, - ], - }, - }, - { - label: '算法类型', - field: 'payConfig.signType', - required: true, - component: 'RadioGroup', - componentProps: { - options: [ - { value: 'RSA2', label: 'RSA2' }, - ], - }, - }, - { - label: '公钥类型', - field: 'payConfig.mode', - required: true, - defaultValue: null, - component: 'RadioGroup', - componentProps: { - options: [ - { value: 1, label: '公钥模式' }, - { value: 2, label: '证书模式' }, - ], - }, - }, - { - label: '应用私钥', - field: 'payConfig.privateKey', - required: true, - ifShow: ({ values }) => !!(values['payConfig.mode'] === 1), - component: 'InputTextArea', - }, - { - label: '支付宝公钥', - field: 'payConfig.alipayPublicKey', - required: true, - ifShow: ({ values }) => !!(values['payConfig.mode'] === 1), - component: 'InputTextArea', - }, - { - label: '商户公钥应用证书', - field: 'payConfig.appCertContent', - required: true, - ifShow: ({ values }) => !!(values['payConfig.mode'] === 2), - component: 'InputTextArea', - }, - { - label: '支付宝公钥证书', - field: 'payConfig.alipayPublicCertContent', - required: true, - ifShow: ({ values }) => !!(values['payConfig.mode'] === 2), - component: 'InputTextArea', - }, - { - label: '根证书', - field: 'payConfig.rootCertContent', - required: true, - ifShow: ({ values }) => !!(values['payConfig.mode'] === 2), - component: 'InputTextArea', - }, - { - label: '备注', - field: 'remark', - component: 'InputTextArea', - }, -] - -export const weChatFormSchema: FormSchema[] = [ - { - label: '编号', - field: 'id', - show: false, - component: 'Input', - }, - { - label: '渠道费率', - field: 'feeRate', - defaultValue: 0, - required: true, - component: 'InputNumber', - }, - { - label: '公众号 APPID', - field: 'payConfig.appId', - required: true, - component: 'Input', - }, - { - label: '商户号', - field: 'payConfig.mchId', - required: true, - component: 'Input', - }, - { - label: '渠道状态', - field: 'status', - required: true, - component: 'RadioGroup', - componentProps: { - options: getDictOptions(DICT_TYPE.COMMON_STATUS), - }, - }, - { - label: 'API 版本', - field: 'payConfig.apiVersion', - required: true, - component: 'RadioGroup', - componentProps: { - options: [ - { value: 'v2', label: 'v2' }, - { value: 'v3', label: 'v3' }, - ], - }, - }, - { - label: '商户密钥', - field: 'payConfig.mchKey', - required: true, - ifShow: ({ values }) => !!(values['payConfig.apiVersion'] === 'v2'), - component: 'InputTextArea', - }, - { - label: 'apiclient_cert.p12 证书', - field: 'payConfig.keyContent', - required: true, - ifShow: ({ values }) => !!(values['payConfig.apiVersion'] === 'v2'), - component: 'InputTextArea', - }, - { - label: 'API V3密钥', - field: 'payConfig.apiV3Key', - required: true, - ifShow: ({ values }) => !!(values['payConfig.apiVersion'] === 'v3'), - component: 'InputTextArea', - }, - { - label: 'apiclient_key.perm证书', - field: 'payConfig.privateKeyContent', - required: true, - ifShow: ({ values }) => !!(values['payConfig.apiVersion'] === 'v3'), - component: 'InputTextArea', - }, - { - label: 'apiclient_cert.perm证书', - field: 'payConfig.privateCertContent', - required: true, - ifShow: ({ values }) => !!(values['payConfig.apiVersion'] === 'v3'), - component: 'InputTextArea', - }, - { - label: '备注', - field: 'remark', - component: 'InputTextArea', - }, -] - -export const mockFormSchema: FormSchema[] = [ - { - label: '编号', - field: 'id', - show: false, - component: 'Input', - }, - { - label: '渠道状态', - field: 'status', - required: true, - component: 'RadioGroup', - componentProps: { - options: getDictOptions(DICT_TYPE.COMMON_STATUS), - }, - }, - { - label: '备注', - field: 'remark', - component: 'InputTextArea', - }, -] diff --git a/src/views/pay/app/index.vue b/src/views/pay/app/index.vue deleted file mode 100644 index cfd4ba8..0000000 --- a/src/views/pay/app/index.vue +++ /dev/null @@ -1,226 +0,0 @@ - - - - - - - - {{ t('action.create') }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/views/pay/cashier/CashierModal.vue b/src/views/pay/cashier/CashierModal.vue deleted file mode 100644 index 7626d91..0000000 --- a/src/views/pay/cashier/CashierModal.vue +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - diff --git a/src/views/pay/cashier/cashier.data.ts b/src/views/pay/cashier/cashier.data.ts deleted file mode 100644 index dcad3b3..0000000 --- a/src/views/pay/cashier/cashier.data.ts +++ /dev/null @@ -1,115 +0,0 @@ -import type { DescItem } from '@/components/Description' -import { useRender } from '@/components/Table' - -// 导入图标 -import svg_alipay_pc from '@/assets/svg/pay/icon/alipay_pc.svg' -import svg_alipay_wap from '@/assets/svg/pay/icon/alipay_wap.svg' -import svg_alipay_app from '@/assets/svg/pay/icon/alipay_app.svg' -import svg_alipay_qr from '@/assets/svg/pay/icon/alipay_qr.svg' -import svg_alipay_bar from '@/assets/svg/pay/icon/alipay_bar.svg' -import svg_wx_pub from '@/assets/svg/pay/icon/wx_pub.svg' -import svg_wx_lite from '@/assets/svg/pay/icon/wx_lite.svg' -import svg_wx_app from '@/assets/svg/pay/icon/wx_app.svg' -import svg_wx_native from '@/assets/svg/pay/icon/wx_native.svg' -import svg_wx_bar from '@/assets/svg/pay/icon/wx_bar.svg' -import svg_mock from '@/assets/svg/pay/icon/mock.svg' - -export const descSchema: DescItem[] = [ - { - label: '支付单号', - field: 'id', - }, - { - label: '商品标题', - field: 'subject', - }, - { - label: '商品内容', - field: 'body', - }, - { - label: '支付金额', - field: 'amount', - render: (curVal) => { - return useRender.renderText('¥', Number.parseFloat(curVal || 0 / 100).toFixed(2)) - }, - }, - { - label: '创建时间', - field: 'createTime', - render: (curVal) => { - return useRender.renderDate(curVal) - }, - }, - { - label: '过期时间', - field: 'expireTime', - render: (curVal) => { - return useRender.renderDate(curVal) - }, - }, -] - -export const channelsAlipay = [ - { - name: '支付宝 PC 网站支付', - icon: svg_alipay_pc, - code: 'alipay_pc', - }, - { - name: '支付宝 Wap 网站支付', - icon: svg_alipay_wap, - code: 'alipay_wap', - }, - { - name: '支付宝 App 网站支付', - icon: svg_alipay_app, - code: 'alipay_app', - }, - { - name: '支付宝扫码支付', - icon: svg_alipay_qr, - code: 'alipay_qr', - }, - { - name: '支付宝条码支付', - icon: svg_alipay_bar, - code: 'alipay_bar', - }, -] - -export const channelsWechat = [ - { - name: '微信公众号支付', - icon: svg_wx_pub, - code: 'wx_pub', - }, - { - name: '微信小程序支付', - icon: svg_wx_lite, - code: 'wx_lite', - }, - { - name: '微信 App 支付', - icon: svg_wx_app, - code: 'wx_app', - }, - { - name: '微信扫码支付', - icon: svg_wx_native, - code: 'wx_native', - }, - { - name: '微信条码支付', - icon: svg_wx_bar, - code: 'wx_bar', - }, -] - -export const channelsMock = [ - { - name: '模拟支付', - icon: svg_mock, - code: 'mock', - }, -] diff --git a/src/views/pay/cashier/index.vue b/src/views/pay/cashier/index.vue deleted file mode 100644 index e02379e..0000000 --- a/src/views/pay/cashier/index.vue +++ /dev/null @@ -1,319 +0,0 @@ - - - - - - - - - - 选择支付宝支付 - - - - - - - - - - - 选择微信支付 - - - - - - - - - - - 选择其它支付 - - - - - - - - - - - - -> diff --git a/src/views/pay/demo/DemoModal.vue b/src/views/pay/demo/DemoModal.vue deleted file mode 100644 index ccf3430..0000000 --- a/src/views/pay/demo/DemoModal.vue +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - diff --git a/src/views/pay/demo/demo.data.ts b/src/views/pay/demo/demo.data.ts deleted file mode 100644 index 4d9f993..0000000 --- a/src/views/pay/demo/demo.data.ts +++ /dev/null @@ -1,110 +0,0 @@ -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' - -export const columns: BasicColumn[] = [ - { - title: '订单编号', - dataIndex: 'id', - width: 100, - }, - { - title: '用户编号', - dataIndex: 'userId', - width: 100, - }, - { - title: '商品名字', - dataIndex: 'spuName', - width: 100, - }, - { - title: '支付价格', - dataIndex: 'price', - width: 100, - customRender: ({ text }) => { - return useRender.renderTag(`¥${(text / 100.0).toFixed(2)}`) - }, - }, - { - title: '退款金额', - dataIndex: 'refundPrice', - width: 100, - customRender: ({ text }) => { - return useRender.renderTag(`¥${(text / 100.0).toFixed(2)}`) - }, - }, - { - title: '支付单号', - dataIndex: 'payOrderId', - width: 100, - }, - { - title: '创建时间', - dataIndex: 'createTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, - { - title: '是否支付', - dataIndex: 'payed', - width: 100, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.INFRA_BOOLEAN_STRING) - }, - }, - { - title: '支付时间', - dataIndex: 'payTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, - { - title: '退款时间', - dataIndex: 'refundTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '支付单号', - field: 'payOrderId', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '是否支付', - field: 'payed', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.INFRA_BOOLEAN_STRING) as any, - }, - colProps: { span: 8 }, - }, -] - -export const formSchema: FormSchema[] = [ - { - label: '商品', - field: 'spuId', - component: 'Select', - required: true, - componentProps: { - options: [ - { value: 1, label: '华为手机', price: 1 }, - { value: 2, label: '小米电视', price: 10 }, - { value: 3, label: '苹果手表', price: 100 }, - { value: 4, label: '华硕笔记本', price: 1000 }, - { value: 5, label: '蔚来汽车', price: 200000 }, - ], - }, - }, -] diff --git a/src/views/pay/demo/index.vue b/src/views/pay/demo/index.vue deleted file mode 100644 index c400cd4..0000000 --- a/src/views/pay/demo/index.vue +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - - 发起订单 - - - - - - - - - - - diff --git a/src/views/pay/notify/NotifyModal.vue b/src/views/pay/notify/NotifyModal.vue deleted file mode 100644 index f76422f..0000000 --- a/src/views/pay/notify/NotifyModal.vue +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - diff --git a/src/views/pay/notify/index.vue b/src/views/pay/notify/index.vue deleted file mode 100644 index 46a3372..0000000 --- a/src/views/pay/notify/index.vue +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - diff --git a/src/views/pay/notify/notify.data.ts b/src/views/pay/notify/notify.data.ts deleted file mode 100644 index 6b88638..0000000 --- a/src/views/pay/notify/notify.data.ts +++ /dev/null @@ -1,228 +0,0 @@ -import { getAppList } from '@/api/pay/app' -import type { DescItem } from '@/components/Description' -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' - -export const columns: BasicColumn[] = [ - { - title: '任务编号', - dataIndex: 'id', - width: 100, - }, - { - title: '应用编号', - dataIndex: 'appName', - width: 200, - }, - { - title: '商户订单编号', - dataIndex: 'merchantOrderId', - width: 200, - }, - { - title: '通知类型', - dataIndex: 'type', - width: 100, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.PAY_NOTIFY_TYPE) - }, - }, - { - title: '关联编号', - dataIndex: 'dataId', - width: 200, - }, - { - title: '通知状态', - dataIndex: 'status', - width: 100, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.PAY_NOTIFY_STATUS) - }, - }, - { - title: '最后通知时间', - dataIndex: 'lastExecuteTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, - { - title: '下次通知时间', - dataIndex: 'nextNotifyTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, - { - title: '最大通知次数', - dataIndex: 'maxNotifyTimes', - width: 120, - ifShow: false, - }, - { - title: '通知次数', - dataIndex: 'notifyTimes', - width: 120, - customRender: ({ record, text }) => { - return useRender.renderTag(`${text}/${record.maxNotifyTimes}`) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '应用编号', - field: 'appId', - component: 'ApiSelect', - componentProps: { - api: () => getAppList(), - labelField: 'name', - valueField: 'id', - }, - colProps: { span: 8 }, - }, - { - label: '通知类型', - field: 'type', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.PAY_NOTIFY_TYPE, 'number') as any, - }, - colProps: { span: 8 }, - }, - { - label: '关联编号', - field: 'dataId', - component: 'Input', - colProps: { span: 8 }, - }, - - { - label: '通知状态', - field: 'status', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.PAY_NOTIFY_STATUS), - }, - colProps: { span: 8 }, - }, - { - label: '商户订单编号', - field: 'merchantOrderId', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '创建时间', - field: 'createTime', - component: 'RangePicker', - colProps: { span: 8 }, - }, -] - -export const descSchema: DescItem[] = [ - { - label: '商户订单编号', - field: 'merchantOrderId', - }, - { - label: '通知状态', - field: 'status', - render: (curVal) => { - return useRender.renderDict(curVal, DICT_TYPE.PAY_NOTIFY_STATUS) - }, - }, - { - label: '应用编号', - field: 'appId', - }, - { - label: '应用名称', - field: 'appName', - }, - { - label: '关联编号', - field: 'dataId', - }, - { - label: '通知类型', - field: 'type', - render: (curVal) => { - return useRender.renderDict(curVal, DICT_TYPE.PAY_NOTIFY_TYPE) - }, - }, - { - label: '通知次数', - field: 'notifyTimes', - }, - { - label: '最大通知次数', - field: 'maxNotifyTimes', - }, - { - label: '最后通知时间', - field: 'lastExecuteTime', - render: (curVal) => { - return useRender.renderDate(curVal) - }, - }, - { - label: '下次通知时间', - field: 'nextNotifyTime', - render: (curVal) => { - return useRender.renderDate(curVal) - }, - }, - { - label: '创建时间', - field: 'createTime', - render: (curVal) => { - return useRender.renderDate(curVal) - }, - }, - { - label: '更新时间', - field: 'updateTime', - render: (curVal) => { - return useRender.renderDate(curVal) - }, - }, -] - -export const descColumns: BasicColumn[] = [ - { - title: '日志编号', - dataIndex: 'id', - width: 100, - }, - { - title: '通知状态', - dataIndex: 'status', - width: 100, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.PAY_NOTIFY_STATUS) - }, - }, - { - title: '通知次数', - dataIndex: 'notifyTimes', - width: 100, - }, - { - title: '通知时间', - dataIndex: 'lastExecuteTime', - width: 100, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, - { - title: '响应结果', - dataIndex: 'response', - width: 100, - }, -] diff --git a/src/views/pay/order/OrderModal.vue b/src/views/pay/order/OrderModal.vue deleted file mode 100644 index 6782c8b..0000000 --- a/src/views/pay/order/OrderModal.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - diff --git a/src/views/pay/order/index.vue b/src/views/pay/order/index.vue deleted file mode 100644 index a907622..0000000 --- a/src/views/pay/order/index.vue +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - {{ t('action.export') }} - - - - - - - - - - - diff --git a/src/views/pay/order/order.data.ts b/src/views/pay/order/order.data.ts deleted file mode 100644 index 3973238..0000000 --- a/src/views/pay/order/order.data.ts +++ /dev/null @@ -1,278 +0,0 @@ -import { getAppList } from '@/api/pay/app' -import type { DescItem } from '@/components/Description' -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' - -export const columns: BasicColumn[] = [ - { - title: '订单编号', - dataIndex: 'id', - width: 100, - }, - { - title: '支付金额(元)', - dataIndex: 'amount', - width: 120, - customRender: ({ text }) => { - return `¥${Number.parseFloat(text || 0 / 100).toFixed(2)}` - }, - }, - { - title: '手续金额(元)', - dataIndex: 'channelFeeAmount', - width: 120, - customRender: ({ text }) => { - return `¥${Number.parseFloat(text || 0 / 100).toFixed(2)}` - }, - }, - { - title: '退款金额(元)', - dataIndex: 'refundAmount', - width: 120, - customRender: ({ text }) => { - return `¥${Number.parseFloat(text || 0 / 100).toFixed(2)}` - }, - }, - { - title: '订单号', - children: [ - { - title: '商户', - dataIndex: 'merchantOrderId', - width: 120, - }, - { - title: '支付', - dataIndex: 'no', - width: 120, - }, - { - title: '渠道', - dataIndex: 'channelOrderNo', - width: 160, - }, - ], - }, - { - title: '支付状态', - dataIndex: 'status', - width: 100, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.PAY_ORDER_STATUS) - }, - }, - { - title: '支付渠道', - dataIndex: 'channelCode', - width: 100, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.PAY_CHANNEL_CODE) - }, - }, - { - title: '支付应用', - dataIndex: 'appName', - width: 100, - }, - { - title: '商品标题', - dataIndex: 'subject', - width: 180, - }, - { - title: '创建时间', - dataIndex: 'createTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, - { - title: '支付时间', - dataIndex: 'successTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '应用编号', - field: 'appId', - component: 'ApiSelect', - componentProps: { - api: () => getAppList(), - labelField: 'name', - valueField: 'id', - }, - colProps: { span: 8 }, - }, - { - label: '支付渠道', - field: 'channelCode', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.PAY_CHANNEL_CODE), - }, - colProps: { span: 8 }, - }, - { - label: '商户单号', - field: 'merchantOrderId', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '支付单号', - field: 'no', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '渠道单号', - field: 'channelOrderNo', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '支付状态', - field: 'status', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.PAY_ORDER_STATUS), - }, - colProps: { span: 8 }, - }, - { - label: '创建时间', - field: 'createTime', - component: 'RangePicker', - colProps: { span: 8 }, - }, -] - -export const descSchema: DescItem[] = [ - { - label: '商户单号', - field: 'merchantOrderId', - }, - { - label: '支付单号', - field: 'no', - render: (curVal) => { - return useRender.renderTag(curVal) - }, - }, - { - label: '应用编号', - field: 'appId', - }, - { - label: '应用名称', - field: 'appName', - }, - { - label: '支付状态', - field: 'status', - render: (curVal) => { - return useRender.renderDict(curVal, DICT_TYPE.PAY_ORDER_STATUS) - }, - }, - { - label: '支付金额', - field: 'amount', - render: (curVal) => { - return `¥${Number.parseFloat(curVal || 0 / 100).toFixed(2)}` - }, - }, - { - label: '手续费', - field: 'channelFeeAmount', - render: (curVal) => { - return `¥${Number.parseFloat(curVal || 0 / 100).toFixed(2)}` - }, - }, - { - label: '手续费比例', - field: 'channelFeeRate', - render: (curVal) => { - return `${Number.parseFloat(curVal || 0 / 100).toFixed(2)}%` - }, - }, - { - label: '支付时间', - field: 'successTime', - render: (curVal) => { - return useRender.renderDate(curVal) - }, - }, - { - label: '失效时间', - field: 'expireTime', - render: (curVal) => { - return useRender.renderDate(curVal) - }, - }, - { - label: '创建时间', - field: 'createTime', - render: (curVal) => { - return useRender.renderDate(curVal) - }, - }, - { - label: '更新时间', - field: 'updateTime', - render: (curVal) => { - return useRender.renderDate(curVal) - }, - }, - { - label: '商品标题', - field: 'subject', - }, - { - label: '商品描述', - field: 'body', - }, - { - label: '支付渠道', - field: 'channelCode', - render: (curVal) => { - return useRender.renderDict(curVal, DICT_TYPE.PAY_CHANNEL_CODE) - }, - }, - { - label: '支付 IP', - field: 'userIp', - }, - { - label: '渠道单号', - field: 'channelOrderNo', - render: (curVal) => { - return useRender.renderTag(curVal) - }, - }, - { - label: '渠道用户', - field: 'channelUserId', - }, - { - label: '退款金额', - field: 'refundPrice', - render: (curVal) => { - return `¥${Number.parseFloat(`${curVal / 100}`).toFixed(2)}` - }, - }, - { - label: '通知 URL', - field: 'notifyUrl', - }, - { - label: '支付通道异步回调内容', - field: 'extension.channelNotifyData', - }, -] diff --git a/src/views/pay/refund/RefundModal.vue b/src/views/pay/refund/RefundModal.vue deleted file mode 100644 index 1742d6d..0000000 --- a/src/views/pay/refund/RefundModal.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - diff --git a/src/views/pay/refund/index.vue b/src/views/pay/refund/index.vue deleted file mode 100644 index 44278aa..0000000 --- a/src/views/pay/refund/index.vue +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - {{ t('action.export') }} - - - - - - - - - - - diff --git a/src/views/pay/refund/refund.data.ts b/src/views/pay/refund/refund.data.ts deleted file mode 100644 index aac14bd..0000000 --- a/src/views/pay/refund/refund.data.ts +++ /dev/null @@ -1,251 +0,0 @@ -import { getAppList } from '@/api/pay/app' -import type { DescItem } from '@/components/Description' -import type { BasicColumn, FormSchema } from '@/components/Table' -import { useRender } from '@/components/Table' -import { DICT_TYPE, getDictOptions } from '@/utils/dict' - -export const columns: BasicColumn[] = [ - { - title: '编号', - dataIndex: 'id', - width: 100, - }, - { - title: '支付金额(元)', - dataIndex: 'payPrice', - width: 120, - customRender: ({ text }) => { - return `¥${Number.parseFloat(`${text / 100}`).toFixed(2)}` - }, - }, - { - title: '退款金额(元)', - dataIndex: 'refundPrice', - width: 120, - customRender: ({ text }) => { - return `¥${Number.parseFloat(`${text / 100}`).toFixed(2)}` - }, - }, - { - title: '退款订单号', - children: [ - { - title: '商户', - dataIndex: 'merchantRefundId', - width: 120, - }, - { - title: '退款', - dataIndex: 'no', - width: 120, - }, - { - title: '渠道', - dataIndex: 'channelRefundNo', - width: 160, - }, - ], - }, - { - title: '支付订单号', - children: [ - { - title: '商户', - dataIndex: 'merchantOrderId', - width: 200, - }, - { - title: '渠道', - dataIndex: 'channelOrderNo', - width: 100, - }, - ], - }, - { - title: '退款状态', - dataIndex: 'status', - width: 100, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.PAY_REFUND_STATUS) - }, - }, - { - title: '退款渠道', - dataIndex: 'channelCode', - width: 100, - customRender: ({ text }) => { - return useRender.renderDict(text, DICT_TYPE.PAY_CHANNEL_CODE) - }, - }, - { - title: '创建时间', - dataIndex: 'createTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, - { - title: '退款成功时间', - dataIndex: 'successTime', - width: 180, - customRender: ({ text }) => { - return useRender.renderDate(text) - }, - }, - { - title: '支付应用', - dataIndex: 'appName', - width: 100, - }, -] - -export const searchFormSchema: FormSchema[] = [ - { - label: '应用编号', - field: 'appId', - component: 'ApiSelect', - componentProps: { - api: () => getAppList(), - labelField: 'name', - valueField: 'id', - }, - colProps: { span: 8 }, - }, - { - label: '商户支付单号', - field: 'merchantOrderId', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '商户退款单号', - field: 'merchantRefundId', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '渠道支付单号', - field: 'channelOrderNo', - component: 'Input', - colProps: { span: 8 }, - }, - { - label: '退款状态', - field: 'status', - component: 'Select', - componentProps: { - options: getDictOptions(DICT_TYPE.PAY_REFUND_STATUS), - }, - colProps: { span: 8 }, - }, - { - label: '创建时间', - field: 'createTime', - component: 'RangePicker', - colProps: { span: 8 }, - }, -] - -export const descSchema: DescItem[] = [ - { - label: '商户退款单号', - field: 'merchantRefundId', - }, - { - label: '渠道退款单号', - field: 'channelRefundNo', - }, - { - label: '商户支付单号', - field: 'merchantOrderId', - }, - { - label: '渠道支付单号', - field: 'channelOrderNo', - render: (curVal) => { - return useRender.renderTag(curVal) - }, - }, - { - label: '应用编号', - field: 'appId', - }, - { - label: '应用名称', - field: 'appName', - }, - { - label: '支付金额', - field: 'payPrice', - render: (curVal) => { - return `¥${Number.parseFloat(`${curVal / 100}`).toFixed(2)}` - }, - }, - { - label: '退款金额', - field: 'refundPrice', - render: (curVal) => { - return `¥${Number.parseFloat(`${curVal / 100}`).toFixed(2)}` - }, - }, - { - label: '退款状态', - field: 'status', - render: (curVal) => { - return useRender.renderDict(curVal, DICT_TYPE.PAY_REFUND_STATUS) - }, - }, - { - label: '创建时间', - field: 'createTime', - render: (curVal) => { - return useRender.renderDate(curVal) - }, - }, - { - label: '退款成功时间', - field: 'successTime', - render: (curVal) => { - return useRender.renderDate(curVal) - }, - }, - { - label: '更新时间', - field: 'updateTime', - render: (curVal) => { - return useRender.renderDate(curVal) - }, - }, - { - label: '退款渠道', - field: 'channelCode', - render: (curVal) => { - return useRender.renderDict(curVal, DICT_TYPE.PAY_CHANNEL_CODE) - }, - }, - { - label: '退款原因', - field: 'reason', - }, - { - label: '退款 IP', - field: 'userIp', - }, - { - label: '退款 URL', - field: 'notifyUrl', - }, - { - label: '渠道错误码', - field: 'channelErrorCode', - }, - { - label: '渠道错误码描述', - field: 'channelErrorMsg', - }, - { - label: '支付通道异步回调内容', - field: 'channelNotifyData', - }, -] diff --git a/src/views/report/goview/index.vue b/src/views/report/goview/index.vue deleted file mode 100644 index 678f139..0000000 --- a/src/views/report/goview/index.vue +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - diff --git a/src/views/report/jmreport/index.vue b/src/views/report/jmreport/index.vue deleted file mode 100644 index 5ee94cc..0000000 --- a/src/views/report/jmreport/index.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - -
表单
流程图
配置生成的基本信息
配置生成生成的详细信息。
配置表的字段类型,增删改查,字典等
- 设置 -
- 点击播放视频 -
- 选择支付宝支付 -
- 选择微信支付 -
- 选择其它支付 -