Skip to content

Commit 3402bab

Browse files
committed
Merge branch 'dev'
2 parents c27f7fa + 4d82fe6 commit 3402bab

File tree

132 files changed

+3149
-1558
lines changed

Some content is hidden

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

132 files changed

+3149
-1558
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "go-admin",
3-
"version": "1.3.3",
3+
"version": "2.0.0",
44
"description": "A magical vue admin. An out-of-box UI solution for enterprise applications. Newest development stack of vue. Lots of awesome features",
55
"author": "https://github.com/wenjianzhang",
66
"license": "MIT",
@@ -72,7 +72,6 @@
7272
"showdown": "^1.9.1",
7373
"solarlunar": "^2.0.7",
7474
"sortablejs": "^1.10.2",
75-
"tui-editor": "1.4.10",
7675
"uuid": "^8.3.0",
7776
"viser-vue": "^2.4.8",
7877
"vue": "2.6.11",
@@ -108,6 +107,7 @@
108107
"connect": "3.7.0",
109108
"eslint": "7.6.0",
110109
"eslint-plugin-vue": "6.2.2",
110+
"form-gen-parser": "^1.0.3",
111111
"html-webpack-plugin": "4.3.0",
112112
"husky": "4.2.5",
113113
"lint-staged": "10.2.11",

src/App.vue

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,3 @@ var _hmt = _hmt || [];
1919
})();
2020
</script>
2121

22-
<style lang="scss">
23-
// .el-dialog__wrapper{
24-
// display: flex;
25-
// justify-content: center;
26-
// align-items: center;
27-
// }
28-
</style>
29-

src/api/system/dict/data.js renamed to src/api/admin/dict/data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function getData(dictCode) {
2020
// 根据字典类型查询字典数据信息
2121
export function getDicts(dictType) {
2222
return request({
23-
url: '/api/v1/dict/data-all?dictType=' + dictType,
23+
url: '/api/v1/dict-data/option-select?dictType=' + dictType,
2424
method: 'get'
2525
})
2626
}
File renamed without changes.

src/api/admin/sys-api.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import request from '@/utils/request'
2+
3+
// 查询SysApi列表
4+
export function listSysApi(query) {
5+
return request({
6+
url: '/api/v1/sys-api',
7+
method: 'get',
8+
params: query
9+
})
10+
}
11+
12+
// 查询SysApi详细
13+
export function getSysApi(id) {
14+
return request({
15+
url: '/api/v1/sys-api/' + id,
16+
method: 'get'
17+
})
18+
}
19+
20+
// 新增SysApi
21+
export function addSysApi(data) {
22+
return request({
23+
url: '/api/v1/sys-api',
24+
method: 'post',
25+
data: data
26+
})
27+
}
28+
29+
// 修改SysApi
30+
export function updateSysApi(data) {
31+
return request({
32+
url: '/api/v1/sys-api/' + data.id,
33+
method: 'put',
34+
data: data
35+
})
36+
}
37+
38+
// 删除SysApi
39+
export function delSysApi(data) {
40+
return request({
41+
url: '/api/v1/sys-api',
42+
method: 'delete',
43+
data: data
44+
})
45+
}
46+

src/api/system/config.js renamed to src/api/admin/sys-config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,17 @@ export function delConfig(data) {
5252
})
5353
}
5454

55+
export function getSetConfig(query) {
56+
return request({
57+
url: '/api/v1/set-config',
58+
method: 'get'
59+
})
60+
}
61+
62+
export function updateSetConfig(data) {
63+
return request({
64+
url: '/api/v1/set-config',
65+
method: 'put',
66+
data: data
67+
})
68+
}
File renamed without changes.
File renamed without changes.

src/api/system/menu.js renamed to src/api/admin/sys-menu.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ export function getMenu(menuId) {
1818
}
1919

2020
// 查询菜单下拉树结构
21-
export function treeselect() {
22-
return request({
23-
url: '/api/v1/menuTreeselect',
24-
method: 'get'
25-
})
26-
}
21+
// export function treeselect() {
22+
// return request({
23+
// url: '/api/v1/menuTreeselect',
24+
// method: 'get'
25+
// })
26+
// }
2727

2828
// 根据角色ID查询菜单下拉树结构
2929
export function roleMenuTreeselect(roleId) {
@@ -52,9 +52,10 @@ export function updateMenu(data, id) {
5252
}
5353

5454
// 删除菜单
55-
export function delMenu(menuId) {
55+
export function delMenu(data) {
5656
return request({
57-
url: '/api/v1/menu/' + menuId,
58-
method: 'delete'
57+
url: '/api/v1/menu',
58+
method: 'delete',
59+
data: data
5960
})
6061
}
File renamed without changes.

0 commit comments

Comments
 (0)