Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ant-design-pro-vue
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tianzhuanghu
ant-design-pro-vue
Commits
545b103f
Commit
545b103f
authored
Oct 14, 2018
by
Sendya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add pack method
fix font-family
parent
1ff7cfc0
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
64 additions
and
15 deletions
+64
-15
manage.js
src/api/manage.js
+45
-0
LayoutMain.vue
src/components/layout/LayoutMain.vue
+1
-1
request.js
src/utils/request.js
+1
-1
Login.vue
src/views/Login.vue
+1
-1
Index.vue
src/views/account/center/Index.vue
+1
-1
IndexOld.vue
src/views/account/settings/IndexOld.vue
+3
-3
TableList.vue
src/views/list/TableList.vue
+11
-7
Index.vue
src/views/profile/basic/Index.vue
+1
-1
No files found.
src/api/manage.js
0 → 100644
View file @
545b103f
import
{
axios
}
from
'@/utils/request'
const
api
=
{
user
:
'/user'
,
role
:
'/role'
,
service
:
'/service'
,
permission
:
'/permission'
,
}
export
default
api
export
function
getUserList
(
parameter
)
{
return
axios
({
url
:
api
.
user
,
method
:
'get'
,
params
:
parameter
})
}
export
function
getRoleList
(
parameter
)
{
return
axios
({
url
:
api
.
role
,
method
:
'get'
,
params
:
parameter
})
}
export
function
getServiceList
(
parameter
)
{
return
axios
({
url
:
api
.
service
,
method
:
'get'
,
params
:
parameter
})
}
// id == 0 add post
// id != 0 update put
export
function
saveService
(
parameter
)
{
return
axios
({
url
:
api
.
service
,
method
:
parameter
.
id
==
0
?
'post'
:
'put'
,
data
:
parameter
})
}
\ No newline at end of file
src/components/layout/LayoutMain.vue
View file @
545b103f
...
@@ -233,7 +233,7 @@
...
@@ -233,7 +233,7 @@
color
:
#fff
;
color
:
#fff
;
font-size
:
20px
;
font-size
:
20px
;
margin
:
0
0
0
12px
;
margin
:
0
0
0
12px
;
font-family
:
"
Myriad Pro"
,
"Helvetica Neue"
,
Arial
,
Helvetica
,
sans-serif
;
font-family
:
"
Chinese Quote"
,
-apple-system
,
BlinkMacSystemFont
,
"Segoe UI"
,
"PingFang SC"
,
"Hiragino Sans GB"
,
"Microsoft YaHei"
,
"Helvetica Neue"
,
Helvetica
,
Arial
,
sans-serif
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Segoe UI Symbol"
;
font-weight
:
600
;
font-weight
:
600
;
}
}
}
}
...
...
src/utils/request.js
View file @
545b103f
import
Vue
from
'vue'
import
Vue
from
'vue'
import
axios
from
'axios'
import
axios
from
'axios'
import
store
from
'
..
/store'
import
store
from
'
@
/store'
import
{
VueAxios
}
from
'./axios'
import
{
VueAxios
}
from
'./axios'
import
notification
from
'ant-design-vue/es/notification'
import
notification
from
'ant-design-vue/es/notification'
import
{
ACCESS_TOKEN
}
from
"@/store/mutation-types"
import
{
ACCESS_TOKEN
}
from
"@/store/mutation-types"
...
...
src/views/Login.vue
View file @
545b103f
...
@@ -295,7 +295,7 @@
...
@@ -295,7 +295,7 @@
.title
{
.title
{
font-size
:
33px
;
font-size
:
33px
;
color
:
rgba
(
0
,
0
,
0
,
.85
);
color
:
rgba
(
0
,
0
,
0
,
.85
);
font-family
:
"
Myriad Pro"
,
"Helvetica Neue"
,
Arial
,
Helvetica
,
sans-serif
;
font-family
:
"
Chinese Quote"
,
-apple-system
,
BlinkMacSystemFont
,
"Segoe UI"
,
"PingFang SC"
,
"Hiragino Sans GB"
,
"Microsoft YaHei"
,
"Helvetica Neue"
,
Helvetica
,
Arial
,
sans-serif
,
"Apple Color Emoji"
,
"Segoe UI Emoji"
,
"Segoe UI Symbol"
;
font-weight
:
600
;
font-weight
:
600
;
position
:
relative
;
position
:
relative
;
top
:
2px
;
top
:
2px
;
...
...
src/views/account/center/Index.vue
View file @
545b103f
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<
script
>
<
script
>
import
PageLayout
from
'@/components/layout/PageLayout'
import
PageLayout
from
'@/components/layout/PageLayout'
import
RouteView
from
"@/components/layout/RouteView"
;
import
RouteView
from
"@/components/layout/RouteView"
export
default
{
export
default
{
components
:
{
components
:
{
...
...
src/views/account/settings/IndexOld.vue
View file @
545b103f
...
@@ -91,9 +91,9 @@
...
@@ -91,9 +91,9 @@
import
PageLayout
from
'@/components/layout/PageLayout'
import
PageLayout
from
'@/components/layout/PageLayout'
import
HeadInfo
from
'@/components/tools/HeadInfo'
import
HeadInfo
from
'@/components/tools/HeadInfo'
import
ASelect
from
"ant-design-vue/es/select"
;
import
ASelect
from
"ant-design-vue/es/select"
import
AForm
from
"ant-design-vue/es/form/Form"
;
import
AForm
from
"ant-design-vue/es/form/Form"
import
VueCropper
from
"vue-cropper/example/src/vue-cropper/vue-cropper"
;
import
VueCropper
from
"vue-cropper/example/src/vue-cropper/vue-cropper"
export
default
{
export
default
{
name
:
"Index"
,
name
:
"Index"
,
...
...
src/views/list/TableList.vue
View file @
545b103f
...
@@ -180,8 +180,10 @@
...
@@ -180,8 +180,10 @@
<
script
>
<
script
>
import
STable
from
'@/components/table/'
import
STable
from
'@/components/table/'
import
ATextarea
from
"ant-design-vue/es/input/TextArea"
;
import
ATextarea
from
"ant-design-vue/es/input/TextArea"
import
AInput
from
"ant-design-vue/es/input/Input"
;
import
AInput
from
"ant-design-vue/es/input/Input"
import
{
getRoleList
,
getServiceList
}
from
'@/api/manage'
export
default
{
export
default
{
name
:
"TableList"
,
name
:
"TableList"
,
...
@@ -244,17 +246,19 @@
...
@@ -244,17 +246,19 @@
],
],
// 加载数据方法 必须为 Promise 对象
// 加载数据方法 必须为 Promise 对象
loadData
:
parameter
=>
{
loadData
:
parameter
=>
{
return
this
.
$http
.
get
(
'/service'
,
{
return
getServiceList
(
Object
.
assign
(
parameter
,
this
.
queryParam
))
params
:
Object
.
assign
(
parameter
,
this
.
queryParam
)
.
then
(
res
=>
{
}).
then
(
res
=>
{
return
res
.
result
return
res
.
result
})
})
},
},
selectedRowKeys
:
[],
selectedRowKeys
:
[],
selectedRows
:
[]
selectedRows
:
[]
}
}
},
},
created
()
{
getRoleList
({
t
:
new
Date
()})
},
methods
:
{
methods
:
{
handleEdit
(
record
)
{
handleEdit
(
record
)
{
this
.
mdl
=
Object
.
assign
({},
record
)
this
.
mdl
=
Object
.
assign
({},
record
)
...
...
src/views/profile/basic/Index.vue
View file @
545b103f
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
import
PageLayout
from
'@/components/layout/PageLayout'
import
PageLayout
from
'@/components/layout/PageLayout'
import
STable
from
'@/components/table/'
import
STable
from
'@/components/table/'
import
DetailList
from
'@/components/tools/DetailList'
import
DetailList
from
'@/components/tools/DetailList'
import
ABadge
from
"ant-design-vue/es/badge/Badge"
;
import
ABadge
from
"ant-design-vue/es/badge/Badge"
const
DetailListItem
=
DetailList
.
Item
const
DetailListItem
=
DetailList
.
Item
export
default
{
export
default
{
...
...
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