Skip to content

Commit a0a3c5c

Browse files
author
cuicui
committed
Merge remote-tracking branch 'origin/master' into feature/bpm-back
2 parents bd2f6a6 + 3a1d7c0 commit a0a3c5c

File tree

51 files changed

+10397
-9486
lines changed

Some content is hidden

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

51 files changed

+10397
-9486
lines changed

.env.development renamed to .env.dev

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ ENV = 'development'
55
VUE_APP_TITLE = 芋道管理系统
66

77
# 芋道管理系统/开发环境
8-
VUE_APP_BASE_API = '/dev-api'
9-
# VUE_APP_BASE_API = '/api'
8+
VUE_APP_BASE_API = 'http://192.168.225.2'
109

1110
# 路由懒加载
1211
VUE_CLI_BABEL_TRANSPILE_MODULES = true

.env.local

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# 开发环境配置
2+
ENV = 'development'
3+
4+
# 页面标题
5+
VUE_APP_TITLE = 芋道管理系统
6+
7+
# 芋道管理系统/本地环境
8+
VUE_APP_BASE_API = '/dev-api'
9+
10+
# 路由懒加载
11+
VUE_CLI_BABEL_TRANSPILE_MODULES = true
12+
13+
# 多租户的开关
14+
VUE_APP_TENANT_ENABLE = true
15+
16+
# 文档的开关
17+
VUE_APP_DOC_ENABLE = true
18+
19+
# 百度统计
20+
VUE_APP_BAIDU_CODE = fadc1bd5db1a1d6f581df60a1807f8ab
File renamed without changes.

.env.staging renamed to .env.stage

File renamed without changes.

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
{
22
"name": "yudao-ui-admin",
3-
"version": "1.6.1-snapshot",
3+
"version": "1.6.2-snapshot",
44
"description": "芋道管理系统",
55
"author": "芋道",
66
"license": "MIT",
77
"scripts": {
8-
"dev": "vue-cli-service serve",
9-
"build:prod": "vue-cli-service build",
10-
"build:stage": "vue-cli-service build --mode staging",
8+
"local": "vue-cli-service serve --mode local",
9+
"dev": "vue-cli-service serve --mode dev",
10+
"build:prod": "vue-cli-service build --mode prod",
11+
"build:stage": "vue-cli-service build --mode stage",
12+
"build:dev": "vue-cli-service build --mode dev",
1113
"build:demo1024": "vue-cli-service build --mode demo1024",
1214
"preview": "node build/index.js --preview",
1315
"lint": "eslint --ext .js,.vue src"

src/api/infra/codegen.js

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -73,26 +73,11 @@ export function getSchemaTableList(query) {
7373
}
7474

7575
// 基于数据库的表结构,创建代码生成器的表定义
76-
export function createCodegenListFromDB(tableNames) {
76+
export function createCodegenList(data) {
7777
return request({
78-
url: '/infra/codegen/create-list-from-db',
78+
url: '/infra/codegen/create-list',
7979
method: 'post',
80-
headers:{
81-
'Content-type': 'application/x-www-form-urlencoded'
82-
},
83-
data: 'tableNames=' + tableNames
84-
})
85-
}
86-
87-
// 基于 SQL 建表语句,创建代码生成器的表定义
88-
export function createCodegenListFromSQL(data) {
89-
return request({
90-
url: '/infra/codegen/create-list-from-sql',
91-
method: 'post',
92-
headers:{
93-
'Content-type': 'application/x-www-form-urlencoded'
94-
},
95-
data: 'sql=' + data.sql,
80+
data: data
9681
})
9782
}
9883

src/api/infra/dataSourceConfig.js

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import request from '@/utils/request'
2+
3+
// 创建数据源配置
4+
export function createDataSourceConfig(data) {
5+
return request({
6+
url: '/infra/data-source-config/create',
7+
method: 'post',
8+
data: data
9+
})
10+
}
11+
12+
// 更新数据源配置
13+
export function updateDataSourceConfig(data) {
14+
return request({
15+
url: '/infra/data-source-config/update',
16+
method: 'put',
17+
data: data
18+
})
19+
}
20+
21+
// 删除数据源配置
22+
export function deleteDataSourceConfig(id) {
23+
return request({
24+
url: '/infra/data-source-config/delete?id=' + id,
25+
method: 'delete'
26+
})
27+
}
28+
29+
// 获得数据源配置
30+
export function getDataSourceConfig(id) {
31+
return request({
32+
url: '/infra/data-source-config/get?id=' + id,
33+
method: 'get'
34+
})
35+
}
36+
37+
// 获得数据源配置列表
38+
export function getDataSourceConfigList() {
39+
return request({
40+
url: '/infra/data-source-config/list',
41+
method: 'get',
42+
})
43+
}

src/api/login.js

Lines changed: 9 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function login(username, password, code, uuid) {
99
uuid
1010
}
1111
return request({
12-
url: '/system/login',
12+
url: '/system/auth/login',
1313
method: 'post',
1414
data: data
1515
})
@@ -18,7 +18,7 @@ export function login(username, password, code, uuid) {
1818
// 获取用户详细信息
1919
export function getInfo() {
2020
return request({
21-
url: '/system/get-permission-info',
21+
url: '/system/auth/get-permission-info',
2222
method: 'get'
2323
})
2424
}
@@ -43,15 +43,15 @@ export function getCodeImg() {
4343
// 社交授权的跳转
4444
export function socialAuthRedirect(type, redirectUri) {
4545
return request({
46-
url: '/system/social-auth-redirect?type=' + type + '&redirectUri=' + redirectUri,
46+
url: '/system/auth/social-auth-redirect?type=' + type + '&redirectUri=' + redirectUri,
4747
method: 'get'
4848
})
4949
}
5050

51-
// 社交登录,使用 code 授权码
52-
export function socialLogin(type, code, state) {
51+
// 社交快捷登录,使用 code 授权码
52+
export function socialQuickLogin(type, code, state) {
5353
return request({
54-
url: '/system/social-login',
54+
url: '/system/auth/social-quick-login',
5555
method: 'post',
5656
data: {
5757
type,
@@ -61,10 +61,10 @@ export function socialLogin(type, code, state) {
6161
})
6262
}
6363

64-
// 社交登录,使用 code 授权码 + + 账号密码
65-
export function socialLogin2(type, code, state, username, password) {
64+
// 社交绑定登录,使用 code 授权码 + + 账号密码
65+
export function socialBindLogin(type, code, state, username, password) {
6666
return request({
67-
url: '/system/social-login2',
67+
url: '/system/auth/social-bind-login',
6868
method: 'post',
6969
data: {
7070
type,
@@ -75,28 +75,3 @@ export function socialLogin2(type, code, state, username, password) {
7575
}
7676
})
7777
}
78-
79-
// 社交绑定,使用 code 授权码
80-
export function socialBind(type, code, state) {
81-
return request({
82-
url: '/system/social-bind',
83-
method: 'post',
84-
data: {
85-
type,
86-
code,
87-
state,
88-
}
89-
})
90-
}
91-
92-
// 取消社交绑定
93-
export function socialUnbind(type, unionId) {
94-
return request({
95-
url: '/system/social-unbind',
96-
method: 'delete',
97-
data: {
98-
type,
99-
unionId
100-
}
101-
})
102-
}

src/api/menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import request from '@/utils/request'
33
// 获取路由
44
export const getRouters = () => {
55
return request({
6-
url: '/system/list-menus',
6+
url: '/system/auth/list-menus',
77
method: 'get'
88
})
99
}

src/api/system/sensitiveWord.js

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
import request from '@/utils/request'
2+
import qs from 'qs'
3+
4+
// 创建敏感词
5+
export function createSensitiveWord(data) {
6+
return request({
7+
url: '/system/sensitive-word/create',
8+
method: 'post',
9+
data: data
10+
})
11+
}
12+
13+
// 更新敏感词
14+
export function updateSensitiveWord(data) {
15+
return request({
16+
url: '/system/sensitive-word/update',
17+
method: 'put',
18+
data: data
19+
})
20+
}
21+
22+
// 删除敏感词
23+
export function deleteSensitiveWord(id) {
24+
return request({
25+
url: '/system/sensitive-word/delete?id=' + id,
26+
method: 'delete'
27+
})
28+
}
29+
30+
// 获得敏感词
31+
export function getSensitiveWord(id) {
32+
return request({
33+
url: '/system/sensitive-word/get?id=' + id,
34+
method: 'get'
35+
})
36+
}
37+
38+
// 获得敏感词分页
39+
export function getSensitiveWordPage(query) {
40+
return request({
41+
url: '/system/sensitive-word/page',
42+
method: 'get',
43+
params: query
44+
})
45+
}
46+
47+
// 导出敏感词 Excel
48+
export function exportSensitiveWordExcel(query) {
49+
return request({
50+
url: '/system/sensitive-word/export-excel',
51+
method: 'get',
52+
params: query,
53+
responseType: 'blob'
54+
})
55+
}
56+
57+
// 获取所有敏感词的标签数组
58+
export function getSensitiveWordTags(){
59+
return request({
60+
url: '/system/sensitive-word/get-tags',
61+
method: 'get'
62+
})
63+
}
64+
65+
// 获得文本所包含的不合法的敏感词数组
66+
export function validateText(query) {
67+
return request({
68+
url: '/system/sensitive-word/validate-text?' + qs.stringify(query, {arrayFormat: 'repeat'}),
69+
method: 'get',
70+
})
71+
}

0 commit comments

Comments
 (0)