Skip to content

Commit d18ed70

Browse files
YunaiVgitee-org
authored andcommitted
!88 【众测版】合并最新的 Vue3 重构
Merge pull request !88 from 芋道源码/dev
2 parents 6cd625b + 87a5ddf commit d18ed70

File tree

262 files changed

+19556
-11848
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

262 files changed

+19556
-11848
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ dist-ssr
88
pnpm-debug
99

1010
.idea
11-
.history
11+
.history

build/vite/index.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import vueSetupExtend from 'vite-plugin-vue-setup-extend'
1515
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite'
1616
import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
1717

18-
export function createVitePlugins(VITE_APP_TITLE: string) {
18+
export function createVitePlugins() {
1919
const root = process.cwd()
2020
// 路径查找
2121
function pathResolve(dir: string) {
@@ -39,11 +39,14 @@ export function createVitePlugins(VITE_APP_TITLE: string) {
3939
imports: [
4040
'vue',
4141
'vue-router',
42+
// 可额外添加需要 autoImport 的组件
4243
{
4344
'@/hooks/web/useI18n': ['useI18n'],
44-
'@/hooks/web/useXTable': ['useXTable'],
4545
'@/hooks/web/useMessage': ['useMessage'],
46+
'@/hooks/web/useXTable': ['useXTable'],
4647
'@/hooks/web/useVxeCrudSchemas': ['useVxeCrudSchemas'],
48+
'@/hooks/web/useTable': ['useTable'],
49+
'@/hooks/web/useCrudSchemas': ['useCrudSchemas'],
4750
'@/utils/formRules': ['required'],
4851
'@/utils/dict': ['DICT_TYPE']
4952
}
@@ -92,8 +95,6 @@ export function createVitePlugins(VITE_APP_TITLE: string) {
9295
ext: '.gz', // 生成的压缩包后缀
9396
deleteOriginFile: false //压缩后是否删除源文件
9497
}),
95-
ViteEjsPlugin({
96-
title: VITE_APP_TITLE
97-
})
98+
ViteEjsPlugin()
9899
]
99100
}

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
name="description"
1414
content="芋道管理系统 基于 vue3 + CompositionAPI + typescript + vite3 + element plus 的后台开源免费管理系统!"
1515
/>
16-
<title><%= title %></title>
16+
<title>%VITE_APP_TITLE%</title>
1717
</head>
1818
<body>
1919
<div id="app">
@@ -137,7 +137,7 @@
137137
<div class="app-loading-wrap">
138138
<div class="app-loading-title">
139139
<img src="/logo.gif" class="app-loading-logo" alt="Logo" />
140-
<div class="app-loading-title"><%= title %></div>
140+
<div class="app-loading-title">%VITE_APP_TITLE%</div>
141141
</div>
142142
<div class="app-loading-item">
143143
<div class="app-loading-outter"></div>

package.json

Lines changed: 33 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "yudao-ui-admin-vue3",
3-
"version": "1.7.1-snapshot.1941",
3+
"version": "1.7.1-snapshot.1961",
44
"description": "基于vue3、vite4、element-plus、typesScript",
55
"author": "xingyu",
66
"private": false,
@@ -29,12 +29,14 @@
2929
"@form-create/designer": "^3.1.0",
3030
"@form-create/element-ui": "^3.1.17",
3131
"@iconify/iconify": "^3.1.0",
32+
"@videojs-player/vue": "^1.0.0",
3233
"@vueuse/core": "^9.13.0",
3334
"@wangeditor/editor": "^5.1.23",
3435
"@wangeditor/editor-for-vue": "^5.1.10",
3536
"@zxcvbn-ts/core": "^2.2.1",
3637
"animate.css": "^4.1.1",
3738
"axios": "^1.3.4",
39+
"benz-amr-recorder": "^1.1.5",
3840
"bpmn-js-token-simulation": "^0.10.0",
3941
"camunda-bpmn-moddle": "^7.0.1",
4042
"cropperjs": "^1.5.13",
@@ -43,7 +45,7 @@
4345
"diagram-js": "^11.6.0",
4446
"echarts": "^5.4.1",
4547
"echarts-wordcloud": "^2.1.0",
46-
"element-plus": "2.2.34",
48+
"element-plus": "2.3.1",
4749
"fast-xml-parser": "^4.1.3",
4850
"highlight.js": "^11.7.0",
4951
"intro.js": "^6.0.0",
@@ -57,62 +59,63 @@
5759
"qs": "^6.11.1",
5860
"steady-xml": "^0.1.0",
5961
"url": "^0.11.0",
62+
"video.js": "^8.0.4",
6063
"vue": "3.2.47",
6164
"vue-i18n": "9.2.2",
6265
"vue-router": "^4.1.6",
6366
"vue-types": "^5.0.2",
6467
"vuedraggable": "^4.1.0",
65-
"vxe-table": "^4.3.10",
68+
"vxe-table": "^4.3.11",
6669
"web-storage-cache": "^1.1.1",
6770
"xe-utils": "^3.5.7",
6871
"xml-js": "^1.6.11"
6972
},
7073
"devDependencies": {
71-
"@commitlint/cli": "^17.4.4",
74+
"@commitlint/cli": "^17.5.0",
7275
"@commitlint/config-conventional": "^17.4.4",
73-
"@iconify/json": "^2.2.31",
74-
"@intlify/unplugin-vue-i18n": "^0.8.2",
76+
"@iconify/json": "^2.2.38",
77+
"@intlify/unplugin-vue-i18n": "^0.10.0",
7578
"@purge-icons/generated": "^0.9.0",
7679
"@types/intro.js": "^5.1.1",
77-
"@types/lodash-es": "^4.17.6",
78-
"@types/node": "^18.14.6",
80+
"@types/lodash-es": "^4.17.7",
81+
"@types/node": "^18.15.5",
7982
"@types/nprogress": "^0.2.0",
8083
"@types/qrcode": "^1.5.0",
8184
"@types/qs": "^6.9.7",
82-
"@typescript-eslint/eslint-plugin": "^5.54.1",
83-
"@typescript-eslint/parser": "^5.54.1",
84-
"@vitejs/plugin-legacy": "^4.0.1",
85-
"@vitejs/plugin-vue": "^4.0.0",
86-
"@vitejs/plugin-vue-jsx": "^3.0.0",
87-
"autoprefixer": "^10.4.13",
85+
"@typescript-eslint/eslint-plugin": "^5.56.0",
86+
"@typescript-eslint/parser": "^5.56.0",
87+
"@vitejs/plugin-legacy": "^4.0.2",
88+
"@vitejs/plugin-vue": "^4.1.0",
89+
"@vitejs/plugin-vue-jsx": "^3.0.1",
90+
"autoprefixer": "^10.4.14",
8891
"bpmn-js": "^8.9.0",
8992
"bpmn-js-properties-panel": "^0.46.0",
9093
"consola": "^2.15.3",
91-
"eslint": "^8.35.0",
92-
"eslint-config-prettier": "^8.7.0",
93-
"eslint-define-config": "^1.15.0",
94+
"eslint": "^8.36.0",
95+
"eslint-config-prettier": "^8.8.0",
96+
"eslint-define-config": "^1.17.0",
9497
"eslint-plugin-prettier": "^4.2.1",
9598
"eslint-plugin-vue": "^9.9.0",
96-
"lint-staged": "^13.1.2",
99+
"lint-staged": "^13.2.0",
97100
"postcss": "^8.4.21",
98101
"postcss-html": "^1.5.0",
99102
"postcss-scss": "^4.0.6",
100-
"prettier": "^2.8.4",
101-
"rimraf": "^4.3.1",
102-
"rollup": "^3.18.0",
103-
"sass": "^1.58.3",
104-
"stylelint": "^15.2.0",
103+
"prettier": "^2.8.6",
104+
"rimraf": "^4.4.1",
105+
"rollup": "^3.20.0",
106+
"sass": "^1.59.3",
107+
"stylelint": "^15.3.0",
105108
"stylelint-config-html": "^1.1.0",
106109
"stylelint-config-prettier": "^9.0.5",
107-
"stylelint-config-recommended": "^10.0.1",
108-
"stylelint-config-standard": "^30.0.1",
109-
"stylelint-order": "^6.0.2",
110-
"terser": "^5.16.5",
111-
"typescript": "4.9.5",
110+
"stylelint-config-recommended": "^11.0.0",
111+
"stylelint-config-standard": "^31.0.0",
112+
"stylelint-order": "^6.0.3",
113+
"terser": "^5.16.6",
114+
"typescript": "5.0.2",
112115
"unplugin-auto-import": "^0.15.1",
113116
"unplugin-element-plus": "^0.7.0",
114117
"unplugin-vue-components": "^0.24.1",
115-
"vite": "4.1.4",
118+
"vite": "4.2.1",
116119
"vite-plugin-compression": "^0.5.1",
117120
"vite-plugin-ejs": "^1.6.4",
118121
"vite-plugin-eslint": "^1.8.1",
@@ -125,7 +128,7 @@
125128
"windicss": "^3.5.6"
126129
},
127130
"engines": {
128-
"node": ">=16.0.0"
131+
"node": ">=16.18.0"
129132
},
130133
"license": "MIT",
131134
"repository": {

src/api/bpm/definition/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
import request from '@/config/axios'
22

3-
export const getProcessDefinitionBpmnXMLApi = async (id: number) => {
3+
export const getProcessDefinitionBpmnXML = async (id: number) => {
44
return await request.get({
55
url: '/bpm/process-definition/get-bpmn-xml?id=' + id
66
})
77
}
88

9-
export const getProcessDefinitionPageApi = async (params) => {
9+
export const getProcessDefinitionPage = async (params) => {
1010
return await request.get({
1111
url: '/bpm/process-definition/page',
1212
params
1313
})
1414
}
1515

16-
export const getProcessDefinitionListApi = async (params) => {
16+
export const getProcessDefinitionList = async (params) => {
1717
return await request.get({
1818
url: '/bpm/process-definition/list',
1919
params

src/api/bpm/form/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,45 +11,45 @@ export type FormVO = {
1111
}
1212

1313
// 创建工作流的表单定义
14-
export const createFormApi = async (data: FormVO) => {
14+
export const createForm = async (data: FormVO) => {
1515
return await request.post({
1616
url: '/bpm/form/create',
1717
data: data
1818
})
1919
}
2020

2121
// 更新工作流的表单定义
22-
export const updateFormApi = async (data: FormVO) => {
22+
export const updateForm = async (data: FormVO) => {
2323
return await request.put({
2424
url: '/bpm/form/update',
2525
data: data
2626
})
2727
}
2828

2929
// 删除工作流的表单定义
30-
export const deleteFormApi = async (id: number) => {
30+
export const deleteForm = async (id: number) => {
3131
return await request.delete({
3232
url: '/bpm/form/delete?id=' + id
3333
})
3434
}
3535

3636
// 获得工作流的表单定义
37-
export const getFormApi = async (id: number) => {
37+
export const getForm = async (id: number) => {
3838
return await request.get({
3939
url: '/bpm/form/get?id=' + id
4040
})
4141
}
4242

4343
// 获得工作流的表单定义分页
44-
export const getFormPageApi = async (params) => {
44+
export const getFormPage = async (params) => {
4545
return await request.get({
4646
url: '/bpm/form/page',
4747
params
4848
})
4949
}
5050

5151
// 获得动态表单的精简列表
52-
export const getSimpleFormsApi = async () => {
52+
export const getSimpleFormList = async () => {
5353
return await request.get({
5454
url: '/bpm/form/list-all-simple'
5555
})

src/api/bpm/model/index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,35 +25,35 @@ export type ModelVO = {
2525
bpmnXml: string
2626
}
2727

28-
export const getModelPageApi = async (params) => {
28+
export const getModelPage = async (params) => {
2929
return await request.get({ url: '/bpm/model/page', params })
3030
}
3131

32-
export const getModelApi = async (id: number) => {
32+
export const getModel = async (id: number) => {
3333
return await request.get({ url: '/bpm/model/get?id=' + id })
3434
}
3535

36-
export const updateModelApi = async (data: ModelVO) => {
36+
export const updateModel = async (data: ModelVO) => {
3737
return await request.put({ url: '/bpm/model/update', data: data })
3838
}
3939

4040
// 任务状态修改
41-
export const updateModelStateApi = async (id: number, state: number) => {
41+
export const updateModelState = async (id: number, state: number) => {
4242
const data = {
4343
id: id,
4444
state: state
4545
}
4646
return await request.put({ url: '/bpm/model/update-state', data: data })
4747
}
4848

49-
export const createModelApi = async (data: ModelVO) => {
49+
export const createModel = async (data: ModelVO) => {
5050
return await request.post({ url: '/bpm/model/create', data: data })
5151
}
5252

53-
export const deleteModelApi = async (id: number) => {
53+
export const deleteModel = async (id: number) => {
5454
return await request.delete({ url: '/bpm/model/delete?id=' + id })
5555
}
5656

57-
export const deployModelApi = async (id: number) => {
57+
export const deployModel = async (id: number) => {
5858
return await request.post({ url: '/bpm/model/deploy?id=' + id })
5959
}

src/api/bpm/processInstance/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export type Task = {
44
id: string
55
name: string
66
}
7+
78
export type ProcessInstanceVO = {
89
id: number
910
name: string

src/api/bpm/userGroup/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,37 +11,37 @@ export type UserGroupVO = {
1111
}
1212

1313
// 创建用户组
14-
export const createUserGroupApi = async (data: UserGroupVO) => {
14+
export const createUserGroup = async (data: UserGroupVO) => {
1515
return await request.post({
1616
url: '/bpm/user-group/create',
1717
data: data
1818
})
1919
}
2020

2121
// 更新用户组
22-
export const updateUserGroupApi = async (data: UserGroupVO) => {
22+
export const updateUserGroup = async (data: UserGroupVO) => {
2323
return await request.put({
2424
url: '/bpm/user-group/update',
2525
data: data
2626
})
2727
}
2828

2929
// 删除用户组
30-
export const deleteUserGroupApi = async (id: number) => {
30+
export const deleteUserGroup = async (id: number) => {
3131
return await request.delete({ url: '/bpm/user-group/delete?id=' + id })
3232
}
3333

3434
// 获得用户组
35-
export const getUserGroupApi = async (id: number) => {
35+
export const getUserGroup = async (id: number) => {
3636
return await request.get({ url: '/bpm/user-group/get?id=' + id })
3737
}
3838

3939
// 获得用户组分页
40-
export const getUserGroupPageApi = async (params) => {
40+
export const getUserGroupPage = async (params) => {
4141
return await request.get({ url: '/bpm/user-group/page', params })
4242
}
4343

4444
// 获取用户组精简信息列表
45-
export const listSimpleUserGroupsApi = async () => {
45+
export const getSimpleUserGroupList = async (): Promise<UserGroupVO[]> => {
4646
return await request.get({ url: '/bpm/user-group/list-all-simple' })
4747
}

src/api/infra/apiAccessLog/index.ts

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,32 +19,12 @@ export interface ApiAccessLogVO {
1919
createTime: Date
2020
}
2121

22-
export interface ApiAccessLogPageReqVO extends PageParam {
23-
userId?: number
24-
userType?: number
25-
applicationName?: string
26-
requestUrl?: string
27-
beginTime?: Date[]
28-
duration?: number
29-
resultCode?: number
30-
}
31-
32-
export interface ApiAccessLogExportReqVO {
33-
userId?: number
34-
userType?: number
35-
applicationName?: string
36-
requestUrl?: string
37-
beginTime?: Date[]
38-
duration?: number
39-
resultCode?: number
40-
}
41-
4222
// 查询列表API 访问日志
43-
export const getApiAccessLogPageApi = (params: ApiAccessLogPageReqVO) => {
23+
export const getApiAccessLogPage = (params: PageParam) => {
4424
return request.get({ url: '/infra/api-access-log/page', params })
4525
}
4626

4727
// 导出API 访问日志
48-
export const exportApiAccessLogApi = (params: ApiAccessLogExportReqVO) => {
28+
export const exportApiAccessLog = (params) => {
4929
return request.download({ url: '/infra/api-access-log/export-excel', params })
5030
}

0 commit comments

Comments
 (0)