Skip to content

Commit 7c5ae17

Browse files
committed
Merge branch 'master' of https://gitee.com/yudaocode/yudao-ui-admin-vue3 into dev
# Conflicts: # src/components/DiyEditor/components/ComponentContainer.vue
2 parents c1a92ba + 538783c commit 7c5ae17

Some content is hidden

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

59 files changed

+5151
-235
lines changed

.eslintrc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = defineConfig({
2121
'plugin:vue/vue3-recommended',
2222
'plugin:@typescript-eslint/recommended',
2323
'prettier',
24-
'plugin:prettier/recommended',
24+
'plugin:prettier/recommended',
2525
'@unocss'
2626
],
2727
rules: {
@@ -67,6 +67,7 @@ module.exports = defineConfig({
6767
}
6868
],
6969
'vue/multi-word-component-names': 'off',
70-
'vue/no-v-html': 'off'
70+
'vue/no-v-html': 'off',
71+
'prettier/prettier': 'off' // 芋艿:默认关闭 prettier 的 ESLint 校验,因为我们使用的是 IDE 的 Prettier 插件
7172
}
7273
})

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@
3838

3939
| 框架 | 说明 | 版本 |
4040
|----------------------------------------------------------------------|------------------|--------|
41-
| [Vue](https://staging-cn.vuejs.org/) | Vue 框架 | 3.3.4 |
42-
| [Vite](https://cn.vitejs.dev//) | 开发与构建工具 | 4.4.11 |
43-
| [Element Plus](https://element-plus.org/zh-CN/) | Element Plus | 2.4.0 |
41+
| [Vue](https://staging-cn.vuejs.org/) | Vue 框架 | 3.3.8 |
42+
| [Vite](https://cn.vitejs.dev//) | 开发与构建工具 | 4.5.0 |
43+
| [Element Plus](https://element-plus.org/zh-CN/) | Element Plus | 2.4.2 |
4444
| [TypeScript](https://www.typescriptlang.org/docs/) | JavaScript 的超集 | 5.2.2 |
4545
| [pinia](https://pinia.vuejs.org/) | Vue 存储库 替代 vuex5 | 2.1.7 |
46-
| [vueuse](https://vueuse.org/) | 常用工具集 | 10.5.0 |
47-
| [vue-i18n](https://kazupon.github.io/vue-i18n/zh/introduction.html/) | 国际化 | 9.5.0 |
46+
| [vueuse](https://vueuse.org/) | 常用工具集 | 10.6.1 |
47+
| [vue-i18n](https://kazupon.github.io/vue-i18n/zh/introduction.html/) | 国际化 | 9.6.5 |
4848
| [vue-router](https://router.vuejs.org/) | Vue 路由 | 4.2.5 |
49-
| [unocss](https://uno.antfu.me/) | 原子 css | 0.56.5 |
49+
| [unocss](https://uno.antfu.me/) | 原子 css | 0.57.4 |
5050
| [iconify](https://icon-sets.iconify.design/) | 在线图标库 | 3.1.1 |
5151
| [wangeditor](https://www.wangeditor.com/) | 富文本编辑器 | 5.1.23 |
5252

package.json

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,23 @@
3131
"@form-create/element-ui": "^3.1.24",
3232
"@iconify/iconify": "^3.1.1",
3333
"@videojs-player/vue": "^1.0.0",
34-
"@vueuse/core": "^10.5.0",
34+
"@vueuse/core": "^10.6.1",
3535
"@wangeditor/editor": "^5.1.23",
3636
"@wangeditor/editor-for-vue": "^5.1.10",
3737
"@zxcvbn-ts/core": "^3.0.4",
3838
"animate.css": "^4.1.1",
39-
"axios": "^1.6.0",
39+
"axios": "^1.6.1",
4040
"benz-amr-recorder": "^1.1.5",
4141
"bpmn-js-token-simulation": "^0.10.0",
4242
"camunda-bpmn-moddle": "^7.0.1",
4343
"cropperjs": "^1.6.1",
4444
"crypto-js": "^4.2.0",
4545
"dayjs": "^1.11.10",
46-
"diagram-js": "^12.6.0",
47-
"driver.js": "^1.3.0",
46+
"diagram-js": "^12.8.0",
47+
"driver.js": "^1.3.1",
4848
"echarts": "^5.4.3",
4949
"echarts-wordcloud": "^2.1.0",
50-
"element-plus": "2.4.1",
50+
"element-plus": "2.4.2",
5151
"fast-xml-parser": "^4.3.2",
5252
"highlight.js": "^11.9.0",
5353
"jsencrypt": "^3.3.2",
@@ -62,59 +62,59 @@
6262
"steady-xml": "^0.1.0",
6363
"url": "^0.11.3",
6464
"video.js": "^7.21.5",
65-
"vue": "^3.3.7",
65+
"vue": "^3.3.8",
6666
"vue-dompurify-html": "^4.1.4",
67-
"vue-i18n": "^9.6.2",
67+
"vue-i18n": "^9.6.5",
6868
"vue-router": "^4.2.5",
6969
"vue-types": "^5.1.1",
7070
"vuedraggable": "^4.1.0",
7171
"web-storage-cache": "^1.1.1",
7272
"xml-js": "^1.6.11"
7373
},
7474
"devDependencies": {
75-
"@commitlint/cli": "^18.2.0",
76-
"@commitlint/config-conventional": "^18.1.0",
77-
"@iconify/json": "^2.2.135",
78-
"@intlify/unplugin-vue-i18n": "^1.4.0",
75+
"@commitlint/cli": "^18.4.1",
76+
"@commitlint/config-conventional": "^18.4.0",
77+
"@iconify/json": "^2.2.142",
78+
"@intlify/unplugin-vue-i18n": "^1.5.0",
7979
"@purge-icons/generated": "^0.9.0",
80-
"@types/lodash-es": "^4.17.10",
81-
"@types/node": "^20.8.9",
82-
"@types/nprogress": "^0.2.2",
83-
"@types/qrcode": "^1.5.4",
84-
"@types/qs": "^6.9.9",
85-
"@types/sortablejs": "^1.15.4",
86-
"@typescript-eslint/eslint-plugin": "^6.9.1",
87-
"@typescript-eslint/parser": "^6.9.1",
88-
"@unocss/transformer-variant-group": "^0.57.1",
89-
"@unocss/eslint-config": "^0.57.1",
80+
"@types/lodash-es": "^4.17.11",
81+
"@types/node": "^20.9.0",
82+
"@types/nprogress": "^0.2.3",
83+
"@types/qrcode": "^1.5.5",
84+
"@types/qs": "^6.9.10",
85+
"@types/sortablejs": "^1.15.5",
86+
"@typescript-eslint/eslint-plugin": "^6.11.0",
87+
"@typescript-eslint/parser": "^6.11.0",
88+
"@unocss/transformer-variant-group": "^0.57.4",
89+
"@unocss/eslint-config": "^0.57.4",
9090
"@vitejs/plugin-legacy": "^4.1.1",
91-
"@vitejs/plugin-vue": "^4.4.0",
91+
"@vitejs/plugin-vue": "^4.4.1",
9292
"@vitejs/plugin-vue-jsx": "^3.0.2",
9393
"autoprefixer": "^10.4.16",
9494
"bpmn-js": "8.9.0",
9595
"bpmn-js-properties-panel": "0.46.0",
9696
"consola": "^3.2.3",
97-
"eslint": "^8.52.0",
97+
"eslint": "^8.53.0",
9898
"eslint-config-prettier": "^9.0.0",
9999
"eslint-define-config": "^1.24.1",
100100
"eslint-plugin-prettier": "^5.0.1",
101101
"eslint-plugin-vue": "^9.18.1",
102-
"lint-staged": "^15.0.2",
102+
"lint-staged": "^15.1.0",
103103
"postcss": "^8.4.31",
104104
"postcss-html": "^1.5.0",
105105
"postcss-scss": "^4.0.9",
106-
"prettier": "^3.0.3",
106+
"prettier": "^3.1.0",
107107
"rimraf": "^5.0.5",
108-
"rollup": "^4.1.5",
108+
"rollup": "^4.4.1",
109109
"sass": "^1.69.5",
110110
"stylelint": "^15.11.0",
111111
"stylelint-config-html": "^1.1.0",
112112
"stylelint-config-recommended": "^13.0.0",
113113
"stylelint-config-standard": "^34.0.0",
114114
"stylelint-order": "^6.0.3",
115-
"terser": "^5.23.0",
115+
"terser": "^5.24.0",
116116
"typescript": "5.2.2",
117-
"unocss": "^0.57.1",
117+
"unocss": "^0.57.4",
118118
"unplugin-auto-import": "^0.16.7",
119119
"unplugin-element-plus": "^0.8.0",
120120
"unplugin-vue-components": "^0.25.2",

src/api/crm/contact/index.ts

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/*
2+
* @Author: zyna
3+
* @Date: 2023-11-05 13:34:41
4+
* @LastEditTime: 2023-11-11 16:20:19
5+
* @FilePath: \yudao-ui-admin-vue3\src\api\crm\contact\index.ts
6+
* @Description:
7+
*/
8+
import request from '@/config/axios'
9+
10+
export interface ContactVO {
11+
name: string
12+
nextTime: Date
13+
mobile: string
14+
telephone: string
15+
email: string
16+
post: string
17+
customerId: number
18+
address: string
19+
remark: string
20+
ownerUserId: string
21+
lastTime: Date
22+
id: number
23+
parentId: number
24+
qq: number
25+
webchat: string
26+
sex: number
27+
policyMakers: boolean
28+
creatorName: string
29+
updateTime?: Date
30+
createTime?: Date
31+
customerName: string
32+
}
33+
34+
// 查询crm联系人列表
35+
export const getContactPage = async (params) => {
36+
return await request.get({ url: `/crm/contact/page`, params })
37+
}
38+
39+
// 查询crm联系人详情
40+
export const getContact = async (id: number) => {
41+
return await request.get({ url: `/crm/contact/get?id=` + id })
42+
}
43+
44+
// 新增crm联系人
45+
export const createContact = async (data: ContactVO) => {
46+
return await request.post({ url: `/crm/contact/create`, data })
47+
}
48+
49+
// 修改crm联系人
50+
export const updateContact = async (data: ContactVO) => {
51+
return await request.put({ url: `/crm/contact/update`, data })
52+
}
53+
54+
// 删除crm联系人
55+
export const deleteContact = async (id: number) => {
56+
return await request.delete({ url: `/crm/contact/delete?id=` + id })
57+
}
58+
59+
// 导出crm联系人 Excel
60+
export const exportContact = async (params) => {
61+
return await request.download({ url: `/crm/contact/export-excel`, params })
62+
}
63+
export const simpleAlllist = async () => {
64+
return await request.get({ url: `/crm/contact/simpleAlllist` })
65+
}

src/api/infra/codegen/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ export type CodegenCreateListReqVO = {
6767
tableNames: string[]
6868
}
6969

70+
// 查询列表代码生成表定义
71+
export const getCodegenTableList = (dataSourceConfigId: number) => {
72+
return request.get({ url: '/infra/codegen/table/list?dataSourceConfigId=' + dataSourceConfigId })
73+
}
74+
7075
// 查询列表代码生成表定义
7176
export const getCodegenTablePage = (params: PageParam) => {
7277
return request.get({ url: '/infra/codegen/table/page', params })
@@ -92,11 +97,6 @@ export const syncCodegenFromDB = (id: number) => {
9297
return request.put({ url: '/infra/codegen/sync-from-db?tableId=' + id })
9398
}
9499

95-
// 基于 SQL 建表语句,同步数据库的表和字段定义
96-
export const syncCodegenFromSQL = (id: number, sql: string) => {
97-
return request.put({ url: '/infra/codegen/sync-from-sql?tableId=' + id + '&sql=' + sql })
98-
}
99-
100100
// 预览生成代码
101101
export const previewCodegen = (id: number) => {
102102
return request.get({ url: '/infra/codegen/preview?tableId=' + id })

src/api/infra/demo/demo01/index.ts

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import request from '@/config/axios'
2+
3+
export interface Demo01ContactVO {
4+
id: number
5+
name: string
6+
sex: number
7+
birthday: Date
8+
description: string
9+
avatar: string
10+
}
11+
12+
// 查询示例联系人分页
13+
export const getDemo01ContactPage = async (params) => {
14+
return await request.get({ url: `/infra/demo01-contact/page`, params })
15+
}
16+
17+
// 查询示例联系人详情
18+
export const getDemo01Contact = async (id: number) => {
19+
return await request.get({ url: `/infra/demo01-contact/get?id=` + id })
20+
}
21+
22+
// 新增示例联系人
23+
export const createDemo01Contact = async (data: Demo01ContactVO) => {
24+
return await request.post({ url: `/infra/demo01-contact/create`, data })
25+
}
26+
27+
// 修改示例联系人
28+
export const updateDemo01Contact = async (data: Demo01ContactVO) => {
29+
return await request.put({ url: `/infra/demo01-contact/update`, data })
30+
}
31+
32+
// 删除示例联系人
33+
export const deleteDemo01Contact = async (id: number) => {
34+
return await request.delete({ url: `/infra/demo01-contact/delete?id=` + id })
35+
}
36+
37+
// 导出示例联系人 Excel
38+
export const exportDemo01Contact = async (params) => {
39+
return await request.download({ url: `/infra/demo01-contact/export-excel`, params })
40+
}

src/api/infra/demo/demo02/index.ts

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import request from '@/config/axios'
2+
3+
export interface Demo02CategoryVO {
4+
id: number
5+
name: string
6+
parentId: number
7+
}
8+
9+
// 查询示例分类列表
10+
export const getDemo02CategoryList = async (params) => {
11+
return await request.get({ url: `/infra/demo02-category/list`, params })
12+
}
13+
14+
// 查询示例分类详情
15+
export const getDemo02Category = async (id: number) => {
16+
return await request.get({ url: `/infra/demo02-category/get?id=` + id })
17+
}
18+
19+
// 新增示例分类
20+
export const createDemo02Category = async (data: Demo02CategoryVO) => {
21+
return await request.post({ url: `/infra/demo02-category/create`, data })
22+
}
23+
24+
// 修改示例分类
25+
export const updateDemo02Category = async (data: Demo02CategoryVO) => {
26+
return await request.put({ url: `/infra/demo02-category/update`, data })
27+
}
28+
29+
// 删除示例分类
30+
export const deleteDemo02Category = async (id: number) => {
31+
return await request.delete({ url: `/infra/demo02-category/delete?id=` + id })
32+
}
33+
34+
// 导出示例分类 Excel
35+
export const exportDemo02Category = async (params) => {
36+
return await request.download({ url: `/infra/demo02-category/export-excel`, params })
37+
}

0 commit comments

Comments
 (0)