Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
ece1a97b
Commit
ece1a97b
authored
Aug 14, 2018
by
sorrycc
Committed by
ιεΈ
Aug 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make model and page together
parent
d6b2123b
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
25 additions
and
23 deletions
+25
-23
config/plugin.config.js
config/plugin.config.js
+2
-0
src/models/list.js
src/models/list.js
+1
-1
src/models/project.js
src/models/project.js
+1
-1
src/pages/Account/Settings/models/geographic.js
src/pages/Account/Settings/models/geographic.js
+0
-0
src/pages/Account/Settings/services/geographic.js
src/pages/Account/Settings/services/geographic.js
+1
-1
src/pages/Dashboard/Workplace.js
src/pages/Dashboard/Workplace.js
+3
-3
src/pages/Dashboard/models/activities.js
src/pages/Dashboard/models/activities.js
+1
-1
src/pages/Dashboard/models/chart.js
src/pages/Dashboard/models/chart.js
+1
-1
src/pages/Dashboard/models/monitor.js
src/pages/Dashboard/models/monitor.js
+1
-1
src/pages/Exception/models/error.js
src/pages/Exception/models/error.js
+0
-0
src/pages/Exception/services/error.js
src/pages/Exception/services/error.js
+1
-1
src/pages/Forms/models/form.js
src/pages/Forms/models/form.js
+1
-1
src/pages/List/models/rule.js
src/pages/List/models/rule.js
+1
-1
src/pages/Profile/models/profile.js
src/pages/Profile/models/profile.js
+1
-1
src/pages/Result/Error.js
src/pages/Result/Error.js
+2
-2
src/pages/Result/Success.js
src/pages/Result/Success.js
+1
-1
src/pages/User/models/login.js
src/pages/User/models/login.js
+4
-4
src/pages/User/models/register.js
src/pages/User/models/register.js
+3
-3
No files found.
config/plugin.config.js
View file @
ece1a97b
...
...
@@ -5,6 +5,8 @@ const AntDesignThemePlugin = require('antd-theme-webpack-plugin');
const
path
=
require
(
'
path
'
);
const
plugin
=
config
=>
{
return
;
// ε°ζζ less εεΉΆδΈΊδΈδΈͺδΎ themePluginδ½Ώη¨
const
outFile
=
path
.
join
(
__dirname
,
'
../.temp/ant-design-pro.less
'
);
const
stylesDir
=
path
.
join
(
__dirname
,
'
../src/
'
);
...
...
src/models/list.js
View file @
ece1a97b
import
{
queryFakeList
,
removeFakeList
,
addFakeList
,
updateFakeList
}
from
'
..
/services/api
'
;
import
{
queryFakeList
,
removeFakeList
,
addFakeList
,
updateFakeList
}
from
'
@
/services/api
'
;
export
default
{
namespace
:
'
list
'
,
...
...
src/models/project.js
View file @
ece1a97b
import
{
queryProjectNotice
}
from
'
..
/services/api
'
;
import
{
queryProjectNotice
}
from
'
@
/services/api
'
;
export
default
{
namespace
:
'
project
'
,
...
...
src/models/geographic.js
→
src/
pages/Account/Settings/
models/geographic.js
View file @
ece1a97b
File moved
src/services/geographic.js
→
src/
pages/Account/Settings/
services/geographic.js
View file @
ece1a97b
import
request
from
'
../utils/request
'
;
import
request
from
'
../
../../../
utils/request
'
;
export
async
function
queryProvince
()
{
return
request
(
'
/api/geographic/province
'
);
...
...
src/pages/Dashboard/Workplace.js
View file @
ece1a97b
...
...
@@ -4,9 +4,9 @@ import { connect } from 'dva';
import
{
Link
}
from
'
dva/router
'
;
import
{
Row
,
Col
,
Card
,
List
,
Avatar
}
from
'
antd
'
;
import
{
Radar
}
from
'
components/Charts
'
;
import
EditableLinkGroup
from
'
components/EditableLinkGroup
'
;
import
PageHeaderLayout
from
'
../..
/layouts/PageHeaderLayout
'
;
import
{
Radar
}
from
'
@/
components/Charts
'
;
import
EditableLinkGroup
from
'
@/
components/EditableLinkGroup
'
;
import
PageHeaderLayout
from
'
@
/layouts/PageHeaderLayout
'
;
import
styles
from
'
./Workplace.less
'
;
...
...
src/models/activities.js
→
src/
pages/Dashboard/
models/activities.js
View file @
ece1a97b
import
{
queryActivities
}
from
'
..
/services/api
'
;
import
{
queryActivities
}
from
'
@
/services/api
'
;
export
default
{
namespace
:
'
activities
'
,
...
...
src/models/chart.js
→
src/
pages/Dashboard/
models/chart.js
View file @
ece1a97b
import
{
fakeChartData
}
from
'
..
/services/api
'
;
import
{
fakeChartData
}
from
'
@
/services/api
'
;
export
default
{
namespace
:
'
chart
'
,
...
...
src/models/monitor.js
→
src/
pages/Dashboard/
models/monitor.js
View file @
ece1a97b
import
{
queryTags
}
from
'
..
/services/api
'
;
import
{
queryTags
}
from
'
@
/services/api
'
;
export
default
{
namespace
:
'
monitor
'
,
...
...
src/models/error.js
→
src/
pages/Exception/
models/error.js
View file @
ece1a97b
File moved
src/services/error.js
→
src/
pages/Exception/
services/error.js
View file @
ece1a97b
import
request
from
'
../utils/request
'
;
import
request
from
'
../
../../
utils/request
'
;
export
async
function
query
(
code
)
{
return
request
(
`/api/
${
code
}
`
);
...
...
src/models/form.js
→
src/
pages/Forms/
models/form.js
View file @
ece1a97b
import
{
routerRedux
}
from
'
dva/router
'
;
import
{
message
}
from
'
antd
'
;
import
{
fakeSubmitForm
}
from
'
..
/services/api
'
;
import
{
fakeSubmitForm
}
from
'
@
/services/api
'
;
export
default
{
namespace
:
'
form
'
,
...
...
src/models/rule.js
→
src/
pages/List/
models/rule.js
View file @
ece1a97b
import
{
queryRule
,
removeRule
,
addRule
,
updateRule
}
from
'
..
/services/api
'
;
import
{
queryRule
,
removeRule
,
addRule
,
updateRule
}
from
'
@
/services/api
'
;
export
default
{
namespace
:
'
rule
'
,
...
...
src/models/profile.js
→
src/
pages/Profile/
models/profile.js
View file @
ece1a97b
import
{
queryBasicProfile
,
queryAdvancedProfile
}
from
'
..
/services/api
'
;
import
{
queryBasicProfile
,
queryAdvancedProfile
}
from
'
@
/services/api
'
;
export
default
{
namespace
:
'
profile
'
,
...
...
src/pages/Result/Error.js
View file @
ece1a97b
import
React
,
{
Fragment
}
from
'
react
'
;
import
{
formatMessage
,
FormattedMessage
}
from
'
umi/locale
'
;
import
{
Button
,
Icon
,
Card
}
from
'
antd
'
;
import
Result
from
'
components/Result
'
;
import
PageHeaderLayout
from
'
../..
/layouts/PageHeaderLayout
'
;
import
Result
from
'
@/
components/Result
'
;
import
PageHeaderLayout
from
'
@
/layouts/PageHeaderLayout
'
;
const
extra
=
(
<
Fragment
>
...
...
src/pages/Result/Success.js
View file @
ece1a97b
...
...
@@ -2,7 +2,7 @@ import React, { Fragment } from 'react';
import
{
formatMessage
,
FormattedMessage
}
from
'
umi/locale
'
;
import
{
Button
,
Row
,
Col
,
Icon
,
Steps
,
Card
}
from
'
antd
'
;
import
Result
from
'
components/Result
'
;
import
PageHeaderLayout
from
'
../..
/layouts/PageHeaderLayout
'
;
import
PageHeaderLayout
from
'
@
/layouts/PageHeaderLayout
'
;
const
{
Step
}
=
Steps
;
...
...
src/models/login.js
→
src/
pages/User/
models/login.js
View file @
ece1a97b
import
{
routerRedux
}
from
'
dva/router
'
;
import
{
stringify
}
from
'
qs
'
;
import
{
fakeAccountLogin
,
getFakeCaptcha
}
from
'
..
/services/api
'
;
import
{
setAuthority
}
from
'
..
/utils/authority
'
;
import
{
getPageQuery
}
from
'
..
/utils/utils
'
;
import
{
reloadAuthorized
}
from
'
..
/utils/Authorized
'
;
import
{
fakeAccountLogin
,
getFakeCaptcha
}
from
'
@
/services/api
'
;
import
{
setAuthority
}
from
'
@
/utils/authority
'
;
import
{
getPageQuery
}
from
'
@
/utils/utils
'
;
import
{
reloadAuthorized
}
from
'
@
/utils/Authorized
'
;
export
default
{
namespace
:
'
login
'
,
...
...
src/models/register.js
→
src/
pages/User/
models/register.js
View file @
ece1a97b
import
{
fakeRegister
}
from
'
..
/services/api
'
;
import
{
setAuthority
}
from
'
..
/utils/authority
'
;
import
{
reloadAuthorized
}
from
'
..
/utils/Authorized
'
;
import
{
fakeRegister
}
from
'
@
/services/api
'
;
import
{
setAuthority
}
from
'
@
/utils/authority
'
;
import
{
reloadAuthorized
}
from
'
@
/utils/Authorized
'
;
export
default
{
namespace
:
'
register
'
,
...
...
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