Skip to content

Commit 9fec65f

Browse files
committed
Merge branch 'dev' of https://github.com/wenjianzhang/go-admin-ui into dev
2 parents e4fd2f5 + 9d8cada commit 9fec65f

File tree

100 files changed

+2624
-274
lines changed

Some content is hidden

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

100 files changed

+2624
-274
lines changed

.npmrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
2+
phantomjs_cdnurl=https://npm.taobao.org/mirrors/phantomjs/
3+
electron_mirror=https://npm.taobao.org/mirrors/electron/
4+
registry=https://registry.npm.taobao.org

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
},
4545
"dependencies": {
4646
"@riophae/vue-treeselect": "0.4.0",
47+
"awe-dnd": "^0.3.4",
4748
"axios": "0.19.2",
4849
"clipboard": "2.0.6",
4950
"codemirror": "5.56.0",
@@ -62,12 +63,14 @@
6263
"normalize.css": "8.0.1",
6364
"nprogress": "0.2.0",
6465
"path-to-regexp": "6.1.0",
66+
"remixicon": "^2.5.0",
6567
"sass-resources-loader": "^2.0.3",
6668
"screenfull": "5.0.2",
6769
"showdown": "^1.9.1",
6870
"solarlunar": "^2.0.7",
69-
"sortablejs": "1.10.2",
71+
"sortablejs": "^1.10.2",
7072
"tui-editor": "1.4.10",
73+
"uuid": "^8.3.0",
7174
"viser-vue": "^2.4.8",
7275
"vue": "2.6.11",
7376
"vue-count-to": "1.0.13",
@@ -112,7 +115,7 @@
112115
"script-ext-html-webpack-plugin": "2.1.4",
113116
"script-loader": "0.7.2",
114117
"serve-static": "^1.14.1",
115-
"svg-sprite-loader": "5.0.0",
118+
"svg-sprite-loader": "^5.0.0",
116119
"svgo": "1.3.2",
117120
"vue-template-compiler": "2.6.11"
118121
},

src/api/file.js

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import request from '@/utils/request'
2+
import { data } from 'autoprefixer'
3+
4+
export const sysfiledirList = data => request({
5+
url: '/api/v1/sysfiledirList',
6+
method: 'GET',
7+
data
8+
})
9+
10+
export const sysfiledirAcionAdd = data => request({
11+
url: '/api/v1/sysfiledir',
12+
method: 'POST',
13+
data
14+
})
15+
16+
export const sysfiledirAcionEdit = data => request({
17+
url: '/api/v1/sysfiledir',
18+
method: 'PUT',
19+
data
20+
})
21+
22+
export const sysfiledirAcionDel = data => request({
23+
url: '/api/v1/sysfiledir/' + data,
24+
method: 'DELETE'
25+
})
26+
27+
export const sysfileinfoList = data => request({
28+
url: `/api/v1/sysfileinfoList?pId=${data.pId}&pageSize=${data.pageSize}&pageIndex=${data.pageIndex}`,
29+
method: 'GET',
30+
data
31+
})
32+
33+
export const sysfileinfo = id => request({
34+
url: '/api/v1/sysfileinfo/' + id,
35+
method: 'GET'
36+
})
37+
38+
export const sysfileinfoAdd = data => request({
39+
url: '/api/v1/sysfileinfo',
40+
method: 'POST',
41+
data
42+
})
43+
44+
export const sysfileinfoEdit = data => request({
45+
url: '/api/v1/sysfileinfo',
46+
method: 'put',
47+
data
48+
})
49+
50+
export const sysfileinfoDelete = id => request({
51+
url: '/api/v1/sysfileinfo/' + id,
52+
method: 'DELETE',
53+
data
54+
})

src/api/syscategory.js

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

src/api/syscontent.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+
// 查询SysContent列表
4+
export function listSysContent(query) {
5+
return request({
6+
url: '/api/v1/syscontentList',
7+
method: 'get',
8+
params: query
9+
})
10+
}
11+
12+
// 查询SysContent详细
13+
export function getSysContent (id) {
14+
return request({
15+
url: '/api/v1/syscontent/' + id,
16+
method: 'get'
17+
})
18+
}
19+
20+
21+
// 新增SysContent
22+
export function addSysContent(data) {
23+
return request({
24+
url: '/api/v1/syscontent',
25+
method: 'post',
26+
data: data
27+
})
28+
}
29+
30+
// 修改SysContent
31+
export function updateSysContent(data) {
32+
return request({
33+
url: '/api/v1/syscontent',
34+
method: 'put',
35+
data: data
36+
})
37+
}
38+
39+
// 删除SysContent
40+
export function delSysContent(id) {
41+
return request({
42+
url: '/api/v1/syscontent/' + id,
43+
method: 'delete'
44+
})
45+
}
46+

src/api/sysjob.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ export function updateSysJob(data) {
3636
}
3737

3838
// 删除SysJob
39-
export function delSysJob(jobId) {
39+
export function delSysJob(jobId, data) {
4040
return request({
4141
url: '/api/v1/sysjob/' + jobId,
42-
method: 'delete'
42+
method: 'delete',
43+
data: data
4344
})
4445
}
4546

src/api/table.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// 查询列表
2+
export function getItems(f, query) {
3+
query = query || { pageSize: 10000 }
4+
return f(query)
5+
}
6+
7+
export function setItems(response, k, v) {
8+
const data = []
9+
k = k || 'id'
10+
v = v || 'name'
11+
if (response.data && response.data.list && response.data.list.length > 0) {
12+
response.data.list.forEach(e => {
13+
data.push({
14+
key: e[k].toString(),
15+
value: e[v].toString()
16+
})
17+
})
18+
return data
19+
}
20+
}

src/api/tools/gen.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ export function getGenTable(tableId) {
2525
})
2626
}
2727

28+
export function getGenTableInfo(tablename) {
29+
return request({
30+
url: '/api/v1/sys/tables?tableName=' + tablename,
31+
method: 'get'
32+
})
33+
}
34+
2835
// 修改代码生成信息
2936
export function updateGenTable(data) {
3037
return request({
@@ -79,3 +86,10 @@ export function toDBTable(tableId) {
7986
method: 'get'
8087
})
8188
}
89+
90+
export function getTableTree() {
91+
return request({
92+
url: '/api/v1/gen/tabletree',
93+
method: 'get'
94+
})
95+
}

src/api/ws.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import request from '@/utils/request'
2+
3+
// 查询SysJob列表
4+
export function unWsLogout(id, group) {
5+
return request({
6+
url: '/wslogout/' + id + '/' + group,
7+
method: 'get'
8+
})
9+
}

src/assets/icons/12-01.png

5.67 KB

src/assets/icons/AU-01.png

4.29 KB

src/assets/icons/Access.png

9.32 KB

src/assets/icons/AndroidStudio.png

17.6 KB

src/assets/icons/Awesome.png

12.6 KB

src/assets/icons/AwesomeVue.png

17.9 KB

src/assets/icons/Clion-01-01.png

14.6 KB

src/assets/icons/Dm-01-01.png

2.26 KB

src/assets/icons/Edge-01.png

17.4 KB

src/assets/icons/Excel.png

5.86 KB

src/assets/icons/Ic-01.png

4.26 KB

src/assets/icons/Idea.png

12.7 KB

src/assets/icons/Link.png

5.13 KB

src/assets/icons/OneDrive.png

8.12 KB

src/assets/icons/OneNote.png

4.7 KB

src/assets/icons/PDFbeifen.png

5.15 KB

src/assets/icons/Phpstorm-01.png

13.5 KB

src/assets/icons/PictureUnknow.png

4.57 KB
5.45 KB

src/assets/icons/Pl-01.png

2.97 KB

src/assets/icons/Pn-01.png

3.8 KB

src/assets/icons/PowerPoint.png

8.51 KB

src/assets/icons/PowerShell.png

12.1 KB

src/assets/icons/Pycharm.png

14.2 KB

src/assets/icons/Typora.png

10.1 KB

src/assets/icons/UTools.png

10 KB

src/assets/icons/Unknow.png

4.91 KB

src/assets/icons/Visio.png

7.66 KB

src/assets/icons/VisualStudio.png

14.6 KB

src/assets/icons/Web.png

7.81 KB

src/assets/icons/Webstorm.png

15.9 KB

src/assets/icons/Windows.png

8.11 KB
6.81 KB

src/assets/icons/Word.png

5.58 KB

src/assets/icons/Wordbeifen.png

5.53 KB

src/assets/icons/Zip.png

4.35 KB

src/assets/icons/adobe-01-01-01.png

7 KB

src/assets/icons/bianxingjingang.png

23.5 KB

src/assets/icons/bianxingjingang1.png

26.7 KB

src/assets/icons/chayue2.png

6.8 KB

src/assets/icons/daiyue.png

10.3 KB

src/assets/icons/excelbeifen.png

5.53 KB

src/assets/icons/fl-01-01.png

4.22 KB

src/assets/icons/nasa.png

26.2 KB

src/assets/icons/pf-01.png

3.49 KB

src/assets/icons/picture.png

8.47 KB

src/assets/icons/pptbeifen.png

4.24 KB

src/assets/icons/rar.png

3.94 KB
3.63 KB
7.57 KB
4.19 KB
4.98 KB
3.54 KB
8.33 KB
6.17 KB
3.5 KB
3.9 KB
2.46 KB
6.23 KB

src/assets/icons/txtbeifen.png

5.1 KB

src/assets/icons/video.png

3.79 KB

src/assets/icons/video2.png

5.61 KB

src/assets/icons/voice.png

5.02 KB

src/assets/icons/wendang.png

4.26 KB

src/assets/icons/wenjianjia.png

3.42 KB

src/components/Breadcrumb/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</template>
1111

1212
<script>
13-
import pathToRegexp from 'path-to-regexp'
13+
import { compile } from 'path-to-regexp'
1414
1515
export default {
1616
data() {
@@ -52,7 +52,7 @@ export default {
5252
pathCompile(path) {
5353
// To solve this problem https://github.com/PanJiaChen/vue-element-admin/issues/561
5454
const { params } = this.$route
55-
var toPath = pathToRegexp.compile(path)
55+
var toPath = compile(path)
5656
return toPath(params)
5757
},
5858
handleLink(item) {

0 commit comments

Comments
 (0)