Skip to content

Commit d679a7a

Browse files
author
puhui999
committed
Merge remote-tracking branch 'yudao/dev' into dev
# Conflicts: # src/config/axios/service.ts # src/types/auto-components.d.ts
2 parents e22363d + 5fb61f8 commit d679a7a

File tree

125 files changed

+1221
-1011
lines changed

Some content is hidden

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

125 files changed

+1221
-1011
lines changed

.env

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@ VITE_APP_TENANT_ENABLE=true
1313
# 验证码的开关
1414
VITE_APP_CAPTCHA_ENABLE=true
1515

16+
# 验证码的开关
17+
VITE_APP_CAPTCHA_ENABLE=true
18+
19+
# 百度统计
20+
VITE_APP_BAIDU_CODE = a1ff8825baa73c3a78eb96aa40325abc

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
## 🐶 新手必读
1111

12+
* nodejs > 16.0.0 && pnpm > 7.30.0
1213
* 演示地址:<http://dashboard.yudao.iocoder.cn>
1314
* 启动文档:<https://doc.iocoder.cn/quick-start/>
1415
* 视频教程:<https://doc.iocoder.cn/video/>

build/vite/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export function createVitePlugins() {
9898
deleteOriginFile: false //压缩后是否删除源文件
9999
}),
100100
ViteEjsPlugin(),
101-
topLevelAwait({
101+
topLevelAwait({ // https://juejin.cn/post/7152191742513512485
102102
// The export name of top-level await promise for each chunk module
103103
promiseExportName: '__tla',
104104
// The function to generate import names of top-level await promise in each chunk module

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"build:dev": "node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode dev",
1414
"build:test": "node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode test",
1515
"build:static": "node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode static",
16+
"build:front": "node --max_old_space_size=8000 ./node_modules/vite/bin/vite.js build --mode front",
1617
"serve:pro": "vite preview --mode pro",
1718
"serve:dev": "vite preview --mode dev",
1819
"serve:test": "vite preview --mode test",
@@ -129,7 +130,7 @@
129130
"windicss": "^3.5.6"
130131
},
131132
"engines": {
132-
"node": ">=16.18.0"
133+
"node": ">=16.0.0"
133134
},
134135
"license": "MIT",
135136
"repository": {

src/api/bpm/leave/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ export type LeaveVO = {
1212
}
1313

1414
// 创建请假申请
15-
export const createLeaveApi = async (data: LeaveVO) => {
15+
export const createLeave = async (data: LeaveVO) => {
1616
return await request.post({ url: '/bpm/oa/leave/create', data: data })
1717
}
1818

1919
// 获得请假申请
20-
export const getLeaveApi = async (id: number) => {
20+
export const getLeave = async (id: number) => {
2121
return await request.get({ url: '/bpm/oa/leave/get?id=' + id })
2222
}
2323

2424
// 获得请假申请分页
25-
export const getLeavePageApi = async (params) => {
25+
export const getLeavePage = async (params) => {
2626
return await request.get({ url: '/bpm/oa/leave/page', params })
2727
}

src/api/bpm/processInstance/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ export type ProcessInstanceVO = {
2020
endTime: string
2121
}
2222

23-
export const getMyProcessInstancePageApi = async (params) => {
23+
export const getMyProcessInstancePage = async (params) => {
2424
return await request.get({ url: '/bpm/process-instance/my-page', params })
2525
}
2626

27-
export const createProcessInstanceApi = async (data) => {
27+
export const createProcessInstance = async (data) => {
2828
return await request.post({ url: '/bpm/process-instance/create', data: data })
2929
}
3030

31-
export const cancelProcessInstanceApi = async (id: number, reason: string) => {
31+
export const cancelProcessInstance = async (id: number, reason: string) => {
3232
const data = {
3333
id: id,
3434
reason: reason
3535
}
3636
return await request.delete({ url: '/bpm/process-instance/cancel', data: data })
3737
}
3838

39-
export const getProcessInstanceApi = async (id: number) => {
39+
export const getProcessInstance = async (id: number) => {
4040
return await request.get({ url: '/bpm/process-instance/get?id=' + id })
4141
}

src/api/bpm/task/index.ts

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

3+
export type TaskVO = {
4+
id: number
5+
}
6+
37
export const getTodoTaskPage = async (params) => {
48
return await request.get({ url: '/bpm/task/todo-page', params })
59
}
@@ -32,3 +36,8 @@ export const getTaskListByProcessInstanceId = async (processInstanceId) => {
3236
url: '/bpm/task/list-by-process-instance-id?processInstanceId=' + processInstanceId
3337
})
3438
}
39+
40+
// 导出任务
41+
export const exportTask = async (params) => {
42+
return await request.download({ url: '/bpm/task/export', params })
43+
}

src/api/infra/config/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ export const deleteConfig = (id: number) => {
4343
}
4444

4545
// 导出参数
46-
export const exportConfigApi = (params) => {
46+
export const exportConfig = (params) => {
4747
return request.download({ url: '/infra/config/export', params })
4848
}

src/api/infra/dbDoc/index.ts

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

33
// 导出Html
4-
export const exportHtmlApi = () => {
4+
export const exportHtml = () => {
55
return request.download({ url: '/infra/db-doc/export-html' })
66
}
77

88
// 导出Word
9-
export const exportWordApi = () => {
9+
export const exportWord = () => {
1010
return request.download({ url: '/infra/db-doc/export-word' })
1111
}
1212

1313
// 导出Markdown
14-
export const exportMarkdownApi = () => {
14+
export const exportMarkdown = () => {
1515
return request.download({ url: '/infra/db-doc/export-markdown' })
1616
}

src/api/infra/job/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const updateJobStatus = (id: number, status: number) => {
5353
}
5454

5555
// 定时任务立即执行一次
56-
export const runJobApi = (id: number) => {
56+
export const runJob = (id: number) => {
5757
return request.put({ url: '/infra/job/trigger?id=' + id })
5858
}
5959

0 commit comments

Comments
 (0)