Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vipSupplier
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王淑敏
vipSupplier
Commits
6020d11f
Commit
6020d11f
authored
4 years ago
by
chuzhixin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/chuzhixin/vue-admin-beautiful
into master
parents
ab97312f
1696caa3
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
21 additions
and
25 deletions
+21
-25
mock/controller/roleManagement.js
+3
-5
mock/controller/table.js
+4
-4
mock/controller/user.js
+1
-3
src/api/user.js
+1
-0
src/colorfulIcon/svg/vab.svg
+3
-4
src/config/permission.js
+1
-1
src/plugins/support.js
+2
-1
src/plugins/vabKeel.js
+1
-0
src/plugins/vabMarkdownEditor.js
+1
-0
src/plugins/vabVerify.js
+1
-0
src/store/modules/user.js
+2
-2
src/views/vab/echarts/index.vue
+0
-3
vue.config.js
+1
-2
No files found.
mock/controller/roleManagement.js
View file @
6020d11f
import
{
mock
}
from
"mockjs"
;
const
totalCount
=
2
;
const
totalCount
=
2
;
const
List
=
[
const
List
=
[
{
{
...
@@ -17,8 +16,7 @@ export default [
...
@@ -17,8 +16,7 @@ export default [
response
(
config
)
{
response
(
config
)
{
const
{
title
=
""
,
pageNo
=
1
,
pageSize
=
20
}
=
config
.
body
;
const
{
title
=
""
,
pageNo
=
1
,
pageSize
=
20
}
=
config
.
body
;
let
mockList
=
List
.
filter
((
item
)
=>
{
let
mockList
=
List
.
filter
((
item
)
=>
{
if
(
title
&&
item
.
title
.
indexOf
(
title
)
<
0
)
return
false
;
return
!
(
title
&&
item
.
title
.
indexOf
(
title
)
<
0
);
return
true
;
});
});
const
pageList
=
mockList
.
filter
(
const
pageList
=
mockList
.
filter
(
(
item
,
index
)
=>
(
item
,
index
)
=>
...
@@ -35,7 +33,7 @@ export default [
...
@@ -35,7 +33,7 @@ export default [
{
{
url
:
"/roleManagement/doEdit"
,
url
:
"/roleManagement/doEdit"
,
type
:
"post"
,
type
:
"post"
,
response
(
config
)
{
response
()
{
return
{
return
{
code
:
200
,
code
:
200
,
msg
:
"模拟保存成功"
,
msg
:
"模拟保存成功"
,
...
@@ -45,7 +43,7 @@ export default [
...
@@ -45,7 +43,7 @@ export default [
{
{
url
:
"/roleManagement/doDelete"
,
url
:
"/roleManagement/doDelete"
,
type
:
"post"
,
type
:
"post"
,
response
(
config
)
{
response
()
{
return
{
return
{
code
:
200
,
code
:
200
,
msg
:
"模拟删除成功"
,
msg
:
"模拟删除成功"
,
...
...
This diff is collapsed.
Click to expand it.
mock/controller/table.js
View file @
6020d11f
import
{
mock
}
from
"mockjs"
;
import
{
mock
}
from
"mockjs"
;
import
{
handleRandomImage
}
from
"../utils"
;
import
{
handleRandomImage
}
from
"../utils"
;
const
List
=
[];
const
List
=
[];
const
count
=
999
;
const
count
=
999
;
for
(
let
i
=
0
;
i
<
count
;
i
++
)
{
for
(
let
i
=
0
;
i
<
count
;
i
++
)
{
...
@@ -50,8 +51,7 @@ export default [
...
@@ -50,8 +51,7 @@ export default [
}
}
const
{
title
=
""
,
pageNo
=
1
,
pageSize
=
20
}
=
config
.
body
;
const
{
title
=
""
,
pageNo
=
1
,
pageSize
=
20
}
=
config
.
body
;
let
mockList
=
List
.
filter
((
item
)
=>
{
let
mockList
=
List
.
filter
((
item
)
=>
{
if
(
title
&&
item
.
title
.
indexOf
(
title
)
<
0
)
return
false
;
return
!
(
title
&&
item
.
title
.
indexOf
(
title
)
<
0
);
return
true
;
});
});
const
pageList
=
mockList
.
filter
(
const
pageList
=
mockList
.
filter
(
(
item
,
index
)
=>
(
item
,
index
)
=>
...
@@ -68,7 +68,7 @@ export default [
...
@@ -68,7 +68,7 @@ export default [
{
{
url
:
"/table/doEdit"
,
url
:
"/table/doEdit"
,
type
:
"post"
,
type
:
"post"
,
response
(
config
)
{
response
()
{
return
{
return
{
code
:
200
,
code
:
200
,
msg
:
"模拟保存成功"
,
msg
:
"模拟保存成功"
,
...
@@ -78,7 +78,7 @@ export default [
...
@@ -78,7 +78,7 @@ export default [
{
{
url
:
"/table/doDelete"
,
url
:
"/table/doDelete"
,
type
:
"post"
,
type
:
"post"
,
response
(
config
)
{
response
()
{
return
{
return
{
code
:
200
,
code
:
200
,
msg
:
"模拟删除成功"
,
msg
:
"模拟删除成功"
,
...
...
This diff is collapsed.
Click to expand it.
mock/controller/user.js
View file @
6020d11f
import
{
handleRandomImage
}
from
"../utils"
;
const
accessTokens
=
{
const
accessTokens
=
{
admin
:
"admin-accessToken"
,
admin
:
"admin-accessToken"
,
editor
:
"editor-accessToken"
,
editor
:
"editor-accessToken"
,
...
@@ -9,7 +8,7 @@ export default [
...
@@ -9,7 +8,7 @@ export default [
{
{
url
:
"/publicKey"
,
url
:
"/publicKey"
,
type
:
"post"
,
type
:
"post"
,
response
(
config
)
{
response
()
{
return
{
return
{
code
:
200
,
code
:
200
,
msg
:
"success"
,
msg
:
"success"
,
...
@@ -83,7 +82,6 @@ export default [
...
@@ -83,7 +82,6 @@ export default [
};
};
},
},
},
},
{
{
url
:
"/logout"
,
url
:
"/logout"
,
type
:
"post"
,
type
:
"post"
,
...
...
This diff is collapsed.
Click to expand it.
src/api/user.js
View file @
6020d11f
...
@@ -29,6 +29,7 @@ export function logout() {
...
@@ -29,6 +29,7 @@ export function logout() {
method
:
"post"
,
method
:
"post"
,
});
});
}
}
export
function
register
()
{
export
function
register
()
{
return
request
({
return
request
({
url
:
"/register"
,
url
:
"/register"
,
...
...
This diff is collapsed.
Click to expand it.
src/colorfulIcon/svg/vab.svg
View file @
6020d11f
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<svg
version=
"1.1"
id=
"Layer_1"
<svg
version=
"1.1"
id=
"Layer_1"
xmlns=
"http://www.w3.org/2000/svg"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"550px"
height=
"400px"
width=
"550px"
height=
"400px"
xml:space=
"preserve"
>
xml:space=
"preserve"
>
<g
id=
"PathID_1"
transform=
"matrix(10.7099, 0, 0, 10.7099, 76.4, 396.15)"
opacity=
"1"
>
<g
id=
"PathID_1"
transform=
"matrix(10.7099, 0, 0, 10.7099, 76.4, 396.15)"
opacity=
"1"
>
<path
style=
"fill: #41b882; fill-opacity: 1;"
d=
"M3.75 -36.65L18.4 -36.65Q22.75 -36.65 24.85 -36.25Q27 -35.9 28.7 -34.75Q30.4 -33.6 31.5 -31.7Q32.65 -29.8 32.65 -27.4Q32.65 -24.85 31.25 -22.7Q29.85 -20.55 27.5 -19.5Q30.85 -18.5 32.65 -16.15Q34.45 -13.8 34.45 -10.6Q34.45 -8.1 33.25 -5.75Q32.1 -3.4 30.1 -1.95Q28.1 -0.55 25.15 -0.25Q23.3 -0.05 16.2 0L3.75 0L3.75 -36.65M11.15 -30.55L11.15 -22.1L16 -22.1Q20.3 -22.1 21.35 -22.2Q23.25 -22.4 24.35 -23.5Q25.45 -24.6 25.45 -26.35Q25.45 -28.05 24.5 -29.1Q23.55 -30.2 21.7 -30.4Q20.6 -30.55 15.4 -30.55L11.15 -30.55M11.15 -16L11.15 -6.2L18 -6.2Q22 -6.2 23.05 -6.4Q24.7 -6.7 25.75 -7.85Q26.8 -9.05 26.8 -11Q26.8 -12.65 26 -13.8Q25.2 -14.95 23.65 -15.45Q22.15 -16 17.1 -16L11.15 -16"
/>
<path
style=
"fill: #41b882; fill-opacity: 1;"
d=
"M3.75 -36.65L18.4 -36.65Q22.75 -36.65 24.85 -36.25Q27 -35.9 28.7 -34.75Q30.4 -33.6 31.5 -31.7Q32.65 -29.8 32.65 -27.4Q32.65 -24.85 31.25 -22.7Q29.85 -20.55 27.5 -19.5Q30.85 -18.5 32.65 -16.15Q34.45 -13.8 34.45 -10.6Q34.45 -8.1 33.25 -5.75Q32.1 -3.4 30.1 -1.95Q28.1 -0.55 25.15 -0.25Q23.3 -0.05 16.2 0L3.75 0L3.75 -36.65M11.15 -30.55L11.15 -22.1L16 -22.1Q20.3 -22.1 21.35 -22.2Q23.25 -22.4 24.35 -23.5Q25.45 -24.6 25.45 -26.35Q25.45 -28.05 24.5 -29.1Q23.55 -30.2 21.7 -30.4Q20.6 -30.55 15.4 -30.55L11.15 -30.55M11.15 -16L11.15 -6.2L18 -6.2Q22 -6.2 23.05 -6.4Q24.7 -6.7 25.75 -7.85Q26.8 -9.05 26.8 -11Q26.8 -12.65 26 -13.8Q25.2 -14.95 23.65 -15.45Q22.15 -16 17.1 -16L11.15 -16"
/>
</g>
</g>
...
...
This diff is collapsed.
Click to expand it.
src/config/permission.js
View file @
6020d11f
...
@@ -10,9 +10,9 @@ import getPageTitle from "@/utils/pageTitle";
...
@@ -10,9 +10,9 @@ import getPageTitle from "@/utils/pageTitle";
import
{
import
{
authentication
,
authentication
,
loginInterception
,
loginInterception
,
routesWhiteList
,
progressBar
,
progressBar
,
recordRoute
,
recordRoute
,
routesWhiteList
,
}
from
"./settings"
;
}
from
"./settings"
;
VabProgress
.
configure
({
VabProgress
.
configure
({
...
...
This diff is collapsed.
Click to expand it.
src/plugins/support.js
View file @
6020d11f
import
{
MessageBox
}
from
"element-ui"
;
import
{
MessageBox
}
from
"element-ui"
;
import
{
donation
}
from
"@/config/settings"
;
import
{
donation
}
from
"@/config/settings"
;
import
{
repository
,
dependencies
}
from
"../../package.json"
;
import
{
dependencies
,
repository
}
from
"../../package.json"
;
if
(
!!
window
.
ActiveXObject
||
"ActiveXObject"
in
window
)
{
if
(
!!
window
.
ActiveXObject
||
"ActiveXObject"
in
window
)
{
MessageBox
({
MessageBox
({
title
:
"温馨提示"
,
title
:
"温馨提示"
,
...
...
This diff is collapsed.
Click to expand it.
src/plugins/vabKeel.js
View file @
6020d11f
import
{
Heading
,
Img
,
Keel
,
Text
}
from
"zx-keel"
;
import
{
Heading
,
Img
,
Keel
,
Text
}
from
"zx-keel"
;
import
"zx-keel/dist/zx-keel.css"
;
import
"zx-keel/dist/zx-keel.css"
;
const
VabKeel
=
Keel
;
const
VabKeel
=
Keel
;
const
VabKeelHeading
=
Heading
;
const
VabKeelHeading
=
Heading
;
const
VabKeelImg
=
Img
;
const
VabKeelImg
=
Img
;
...
...
This diff is collapsed.
Click to expand it.
src/plugins/vabMarkdownEditor.js
View file @
6020d11f
import
ZxMarkdownEditor
from
"zx-markdown-editor"
;
import
ZxMarkdownEditor
from
"zx-markdown-editor"
;
import
"zx-markdown-editor/dist/zx-markdown-editor.css"
;
import
"zx-markdown-editor/dist/zx-markdown-editor.css"
;
const
VabMarkdownEditor
=
ZxMarkdownEditor
;
const
VabMarkdownEditor
=
ZxMarkdownEditor
;
export
default
VabMarkdownEditor
;
export
default
VabMarkdownEditor
;
This diff is collapsed.
Click to expand it.
src/plugins/vabVerify.js
View file @
6020d11f
import
VabVerify
from
"zx-verify"
;
import
VabVerify
from
"zx-verify"
;
import
"zx-verify/dist/zx-verify.css"
;
import
"zx-verify/dist/zx-verify.css"
;
export
default
VabVerify
;
export
default
VabVerify
;
This diff is collapsed.
Click to expand it.
src/store/modules/user.js
View file @
6020d11f
...
@@ -30,7 +30,7 @@ const mutations = {
...
@@ -30,7 +30,7 @@ const mutations = {
state
.
accessToken
=
accessToken
;
state
.
accessToken
=
accessToken
;
setAccessToken
(
accessToken
);
setAccessToken
(
accessToken
);
},
},
set
u
sername
(
state
,
username
)
{
set
U
sername
(
state
,
username
)
{
state
.
username
=
username
;
state
.
username
=
username
;
},
},
setAvatar
(
state
,
avatar
)
{
setAvatar
(
state
,
avatar
)
{
...
@@ -77,7 +77,7 @@ const actions = {
...
@@ -77,7 +77,7 @@ const actions = {
let
{
permissions
,
username
,
avatar
}
=
data
;
let
{
permissions
,
username
,
avatar
}
=
data
;
if
(
permissions
&&
username
&&
Array
.
isArray
(
permissions
))
{
if
(
permissions
&&
username
&&
Array
.
isArray
(
permissions
))
{
commit
(
"setPermissions"
,
permissions
);
commit
(
"setPermissions"
,
permissions
);
commit
(
"set
u
sername"
,
username
);
commit
(
"set
U
sername"
,
username
);
commit
(
"setAvatar"
,
avatar
);
commit
(
"setAvatar"
,
avatar
);
return
permissions
;
return
permissions
;
}
else
{
}
else
{
...
...
This diff is collapsed.
Click to expand it.
src/views/vab/echarts/index.vue
View file @
6020d11f
...
@@ -608,9 +608,6 @@
...
@@ -608,9 +608,6 @@
text
:
"2099年世界GDP(亿元)"
,
text
:
"2099年世界GDP(亿元)"
,
subtext
:
"数据来自vue-admin-beautiful杜撰"
,
subtext
:
"数据来自vue-admin-beautiful杜撰"
,
},
},
tooltip
:
{
trigger
:
"item"
,
},
dataRange
:
{
dataRange
:
{
orient
:
"horizontal"
,
orient
:
"horizontal"
,
min
:
0
,
min
:
0
,
...
...
This diff is collapsed.
Click to expand it.
vue.config.js
View file @
6020d11f
...
@@ -39,8 +39,7 @@ const resolve = (dir) => {
...
@@ -39,8 +39,7 @@ const resolve = (dir) => {
const
mockServer
=
()
=>
{
const
mockServer
=
()
=>
{
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
if
(
process
.
env
.
NODE_ENV
===
"development"
)
{
const
mockServer
=
require
(
"./mock/mockServer.js"
);
return
require
(
"./mock/mockServer.js"
);
return
mockServer
;
}
else
{
}
else
{
return
""
;
return
""
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment