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
P
pro-blocks
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
pro-blocks
Commits
3363969c
Commit
3363969c
authored
May 29, 2019
by
陈帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove serve block
parent
829e25b2
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
35 additions
and
35 deletions
+35
-35
AccountCenter/src/service.ts
AccountCenter/src/service.ts
+2
-2
AccountSettings/src/service.ts
AccountSettings/src/service.ts
+4
-4
DashboardAnalysis/src/service.tsx
DashboardAnalysis/src/service.tsx
+1
-1
DashboardMonitor/src/service.ts
DashboardMonitor/src/service.ts
+1
-1
DashboardWorkplace/src/service.ts
DashboardWorkplace/src/service.ts
+4
-4
FormAdvancedForm/src/service.ts
FormAdvancedForm/src/service.ts
+2
-2
FormBasicForm/src/service.ts
FormBasicForm/src/service.ts
+2
-2
FormStepForm/src/service.ts
FormStepForm/src/service.ts
+2
-2
ListBasicList/src/service.ts
ListBasicList/src/service.ts
+4
-4
ListCardList/src/service.ts
ListCardList/src/service.ts
+1
-1
ListSearchApplications/src/service.ts
ListSearchApplications/src/service.ts
+1
-1
ListSearchArticles/src/service.ts
ListSearchArticles/src/service.ts
+1
-1
ListSearchProjects/src/service.ts
ListSearchProjects/src/service.ts
+1
-1
ListTableList/src/service.ts
ListTableList/src/service.ts
+4
-4
ProfileAdvanced/src/service.ts
ProfileAdvanced/src/service.ts
+1
-1
ProfileBasic/src/service.ts
ProfileBasic/src/service.ts
+1
-1
UserLogin/src/service.ts
UserLogin/src/service.ts
+2
-2
UserRegister/src/service.ts
UserRegister/src/service.ts
+1
-1
No files found.
AccountCenter/src/service.ts
View file @
3363969c
import
request
from
'
umi-request
'
;
export
async
function
queryCurrent
()
{
return
request
(
'
/api/
BLOCK_NAME/
currentUser
'
);
return
request
(
'
/api/currentUser
'
);
}
export
async
function
queryFakeList
(
params
:
{
count
:
number
})
{
return
request
(
`/api/
BLOCK_NAME/
fake_list`
,
{
return
request
(
`/api/fake_list`
,
{
params
,
});
}
AccountSettings/src/service.ts
View file @
3363969c
import
request
from
'
umi-request
'
;
export
async
function
queryCurrent
()
{
return
request
(
'
/api/
BLOCK_NAME/
currentUser
'
);
return
request
(
'
/api/currentUser
'
);
}
export
async
function
queryProvince
()
{
return
request
(
'
/api/
BLOCK_NAME/
province
'
);
return
request
(
'
/api/province
'
);
}
export
async
function
queryCity
(
province
:
string
)
{
return
request
(
`/api/
BLOCK_NAME/
city/
${
province
}
`
);
return
request
(
`/api/city/
${
province
}
`
);
}
export
async
function
query
()
{
return
request
(
'
/api/
BLOCK_NAME/
users
'
);
return
request
(
'
/api/users
'
);
}
DashboardAnalysis/src/service.tsx
View file @
3363969c
import
request
from
'
umi-request
'
;
export
async
function
fakeChartData
()
{
return
request
(
'
/api/
BLOCK_NAME/
fake_chart_data
'
);
return
request
(
'
/api/fake_chart_data
'
);
}
DashboardMonitor/src/service.ts
View file @
3363969c
import
request
from
'
umi-request
'
;
export
async
function
queryTags
()
{
return
request
(
'
/api/
BLOCK_NAME/
tags
'
);
return
request
(
'
/api/tags
'
);
}
DashboardWorkplace/src/service.ts
View file @
3363969c
import
request
from
'
umi-request
'
;
export
async
function
queryProjectNotice
()
{
return
request
(
'
/api/
BLOCK_NAME/
project/notice
'
);
return
request
(
'
/api/project/notice
'
);
}
export
async
function
queryActivities
()
{
return
request
(
'
/api/
BLOCK_NAME/
activities
'
);
return
request
(
'
/api/activities
'
);
}
export
async
function
fakeChartData
()
{
return
request
(
'
/api/
BLOCK_NAME/
fake_chart_data
'
);
return
request
(
'
/api/fake_chart_data
'
);
}
export
async
function
queryCurrent
()
{
return
request
(
'
/api/
BLOCK_NAME/
currentUser
'
);
return
request
(
'
/api/currentUser
'
);
}
FormAdvancedForm/src/service.ts
View file @
3363969c
import
request
from
'
umi-request
'
;
export
async
function
fakeSubmitForm
(
params
)
{
return
request
(
'
/api/
BLOCK_NAME/
forms
'
,
{
export
async
function
fakeSubmitForm
(
params
:
any
)
{
return
request
(
'
/api/forms
'
,
{
method
:
'
POST
'
,
data
:
params
,
});
...
...
FormBasicForm/src/service.ts
View file @
3363969c
import
request
from
'
umi-request
'
;
export
async
function
fakeSubmitForm
(
params
)
{
return
request
(
'
/api/
BLOCK_NAME/
forms
'
,
{
export
async
function
fakeSubmitForm
(
params
:
any
)
{
return
request
(
'
/api/forms
'
,
{
method
:
'
POST
'
,
data
:
params
,
});
...
...
FormStepForm/src/service.ts
View file @
3363969c
import
request
from
'
umi-request
'
;
export
async
function
fakeSubmitForm
(
params
)
{
return
request
(
'
/api/
BLOCK_NAME/
forms
'
,
{
export
async
function
fakeSubmitForm
(
params
:
any
)
{
return
request
(
'
/api/forms
'
,
{
method
:
'
POST
'
,
data
:
params
,
});
...
...
ListBasicList/src/service.ts
View file @
3363969c
...
...
@@ -6,14 +6,14 @@ interface ParamsType extends Partial<BasicListItemDataType> {
}
export
async
function
queryFakeList
(
params
:
ParamsType
)
{
return
request
(
'
/api/
BLOCK_NAME/
fake_list
'
,
{
return
request
(
'
/api/fake_list
'
,
{
params
,
});
}
export
async
function
removeFakeList
(
params
:
ParamsType
)
{
const
{
count
=
5
,
...
restParams
}
=
params
;
return
request
(
'
/api/
BLOCK_NAME/
fake_list
'
,
{
return
request
(
'
/api/fake_list
'
,
{
method
:
'
POST
'
,
params
:
{
count
,
...
...
@@ -27,7 +27,7 @@ export async function removeFakeList(params: ParamsType) {
export
async
function
addFakeList
(
params
:
ParamsType
)
{
const
{
count
=
5
,
...
restParams
}
=
params
;
return
request
(
'
/api/
BLOCK_NAME/
fake_list
'
,
{
return
request
(
'
/api/fake_list
'
,
{
method
:
'
POST
'
,
params
:
{
count
,
...
...
@@ -41,7 +41,7 @@ export async function addFakeList(params: ParamsType) {
export
async
function
updateFakeList
(
params
:
ParamsType
)
{
const
{
count
=
5
,
...
restParams
}
=
params
;
return
request
(
'
/api/
BLOCK_NAME/
fake_list
'
,
{
return
request
(
'
/api/fake_list
'
,
{
method
:
'
POST
'
,
params
:
{
count
,
...
...
ListCardList/src/service.ts
View file @
3363969c
import
request
from
'
umi-request
'
;
export
async
function
queryFakeList
(
params
:
{
count
:
number
})
{
return
request
(
`/api/
BLOCK_NAME/
fake_list`
,
{
return
request
(
`/api/fake_list`
,
{
params
,
});
}
ListSearchApplications/src/service.ts
View file @
3363969c
import
request
from
'
umi-request
'
;
import
{
ListItemDataType
}
from
'
./data
'
;
export
async
function
queryFakeList
(
params
:
ListItemDataType
)
{
return
request
(
`/api/
BLOCK_NAME/
fake_list`
,
{
return
request
(
`/api/fake_list`
,
{
params
,
});
}
ListSearchArticles/src/service.ts
View file @
3363969c
...
...
@@ -2,7 +2,7 @@ import request from 'umi-request';
import
{
ListItemDataType
}
from
'
./data
'
;
export
async
function
queryFakeList
(
params
:
ListItemDataType
)
{
return
request
(
`/api/
BLOCK_NAME/
fake_list`
,
{
return
request
(
`/api/fake_list`
,
{
params
,
});
}
ListSearchProjects/src/service.ts
View file @
3363969c
import
request
from
'
umi-request
'
;
export
async
function
queryFakeList
(
params
:
{
count
:
number
})
{
return
request
(
`/api/
BLOCK_NAME/
fake_list`
,
{
return
request
(
`/api/fake_list`
,
{
params
,
});
}
ListTableList/src/service.ts
View file @
3363969c
...
...
@@ -2,13 +2,13 @@ import request from 'umi-request';
import
{
TableListParams
}
from
'
./data
'
;
export
async
function
queryRule
(
params
:
TableListParams
)
{
return
request
(
`/api
/BLOCK_NAME
`
,
{
return
request
(
`/api`
,
{
params
,
});
}
export
async
function
removeRule
(
params
:
TableListParams
)
{
return
request
(
'
/api
/BLOCK_NAME
'
,
{
return
request
(
'
/api
'
,
{
method
:
'
POST
'
,
data
:
{
...
params
,
...
...
@@ -18,7 +18,7 @@ export async function removeRule(params: TableListParams) {
}
export
async
function
addRule
(
params
:
TableListParams
)
{
return
request
(
'
/api
/BLOCK_NAME
'
,
{
return
request
(
'
/api
'
,
{
method
:
'
POST
'
,
data
:
{
...
params
,
...
...
@@ -28,7 +28,7 @@ export async function addRule(params: TableListParams) {
}
export
async
function
updateRule
(
params
:
TableListParams
)
{
return
request
(
'
/api
/BLOCK_NAME
'
,
{
return
request
(
'
/api
'
,
{
method
:
'
POST
'
,
data
:
{
...
params
,
...
...
ProfileAdvanced/src/service.ts
View file @
3363969c
import
request
from
'
umi-request
'
;
export
async
function
queryAdvancedProfile
()
{
return
request
(
'
/api/
BLOCK_NAME/
advanced
'
);
return
request
(
'
/api/advanced
'
);
}
ProfileBasic/src/service.ts
View file @
3363969c
import
request
from
'
umi-request
'
;
export
async
function
queryBasicProfile
()
{
return
request
(
'
/api/
BLOCK_NAME/
basic
'
);
return
request
(
'
/api/basic
'
);
}
UserLogin/src/service.ts
View file @
3363969c
...
...
@@ -2,12 +2,12 @@ import request from 'umi-request';
import
{
FromDataType
}
from
'
./index
'
;
export
async
function
fakeAccountLogin
(
params
:
FromDataType
)
{
return
request
(
'
/api/
BLOCK_NAME/
account
'
,
{
return
request
(
'
/api/account
'
,
{
method
:
'
POST
'
,
data
:
params
,
});
}
export
async
function
getFakeCaptcha
(
mobile
:
string
)
{
return
request
(
`/api/
BLOCK_NAME/
captcha?mobile=
${
mobile
}
`
);
return
request
(
`/api/captcha?mobile=
${
mobile
}
`
);
}
UserRegister/src/service.ts
View file @
3363969c
...
...
@@ -2,7 +2,7 @@ import request from 'umi-request';
import
{
IUserRegisterParams
}
from
'
./index
'
;
export
async
function
fakeRegister
(
params
:
IUserRegisterParams
)
{
return
request
(
'
/api/
BLOCK_NAME/
register
'
,
{
return
request
(
'
/api/register
'
,
{
method
:
'
POST
'
,
data
:
params
,
});
...
...
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