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
829e25b2
Commit
829e25b2
authored
May 29, 2019
by
期贤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ts error
parent
c468a497
Changes
19
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
30 additions
and
30 deletions
+30
-30
AccountCenter/src/_mock.ts
AccountCenter/src/_mock.ts
+2
-2
AccountSettings/src/_mock.ts
AccountSettings/src/_mock.ts
+3
-3
DashboardAnalysis/src/_mock.ts
DashboardAnalysis/src/_mock.ts
+1
-1
DashboardMonitor/src/_mock.ts
DashboardMonitor/src/_mock.ts
+1
-1
DashboardWorkplace/src/_mock.ts
DashboardWorkplace/src/_mock.ts
+5
-5
FormAdvancedForm/src/_mock.ts
FormAdvancedForm/src/_mock.ts
+1
-1
FormBasicForm/src/_mock.ts
FormBasicForm/src/_mock.ts
+1
-1
FormStepForm/src/_mock.ts
FormStepForm/src/_mock.ts
+1
-1
ListBasicList/src/_mock.ts
ListBasicList/src/_mock.ts
+2
-2
ListCardList/src/_mock.ts
ListCardList/src/_mock.ts
+1
-1
ListSearchApplications/src/_mock.ts
ListSearchApplications/src/_mock.ts
+1
-1
ListSearchApplications/src/data.d.ts
ListSearchApplications/src/data.d.ts
+1
-1
ListSearchArticles/src/_mock.ts
ListSearchArticles/src/_mock.ts
+1
-1
ListSearchProjects/src/_mock.ts
ListSearchProjects/src/_mock.ts
+1
-1
ListTableList/src/_mock.ts
ListTableList/src/_mock.ts
+3
-3
ProfileAdvanced/src/_mock.ts
ProfileAdvanced/src/_mock.ts
+1
-1
ProfileBasic/src/_mock.ts
ProfileBasic/src/_mock.ts
+1
-1
UserLogin/src/_mock.ts
UserLogin/src/_mock.ts
+2
-2
UserRegister/src/_mock.ts
UserRegister/src/_mock.ts
+1
-1
No files found.
AccountCenter/src/_mock.ts
View file @
829e25b2
...
...
@@ -173,9 +173,9 @@ function getFakeList(req: { query: any }, res: { json: (arg0: ListItemDataType[]
}
export
default
{
'
GET
/api/BLOCK_NAME
/fake_list
'
:
getFakeList
,
'
GET
/api
/fake_list
'
:
getFakeList
,
// 支持值为 Object 和 Array
'
GET
/api/BLOCK_NAME
/currentUser
'
:
{
'
GET
/api
/currentUser
'
:
{
name
:
'
Serati Ma
'
,
avatar
:
'
https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png
'
,
userid
:
'
00000001
'
,
...
...
AccountSettings/src/_mock.ts
View file @
829e25b2
...
...
@@ -14,7 +14,7 @@ function getCity(
// 代码中会兼容本地 service mock 以及部署站点的静态数据
export
default
{
// 支持值为 Object 和 Array
'
GET
/api/BLOCK_NAME
/currentUser
'
:
{
'
GET
/api
/currentUser
'
:
{
name
:
'
Serati Ma
'
,
avatar
:
'
https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png
'
,
userid
:
'
00000001
'
,
...
...
@@ -64,6 +64,6 @@ export default {
address
:
'
西湖区工专路 77 号
'
,
phone
:
'
0752-268888888
'
,
},
'
GET
/api/BLOCK_NAME
/province
'
:
getProvince
,
'
GET
/api/BLOCK_NAME
/city/:province
'
:
getCity
,
'
GET
/api
/province
'
:
getProvince
,
'
GET
/api
/city/:province
'
:
getCity
,
};
DashboardAnalysis/src/_mock.ts
View file @
829e25b2
...
...
@@ -193,5 +193,5 @@ const getFakeChartData: IAnalysisData = {
};
export
default
{
'
GET
/api/BLOCK_NAME
/fake_chart_data
'
:
getFakeChartData
,
'
GET
/api
/fake_chart_data
'
:
getFakeChartData
,
};
DashboardMonitor/src/_mock.ts
View file @
829e25b2
import
mockjs
from
'
mockjs
'
;
export
default
{
'
GET
/api/BLOCK_NAME
/tags
'
:
mockjs
.
mock
({
'
GET
/api
/tags
'
:
mockjs
.
mock
({
'
list|100
'
:
[{
name
:
'
@city
'
,
'
value|1-100
'
:
150
,
'
type|0-2
'
:
1
}],
}),
};
DashboardWorkplace/src/_mock.ts
View file @
829e25b2
...
...
@@ -223,7 +223,7 @@ const radarOriginData = [
},
];
const
radarData
=
[];
const
radarData
:
any
[]
=
[];
const
radarTitleMap
=
{
ref
:
'
引用
'
,
koubei
:
'
口碑
'
,
...
...
@@ -244,13 +244,13 @@ radarOriginData.forEach(item => {
});
export
default
{
'
GET
/api/BLOCK_NAME
/project/notice
'
:
getNotice
,
'
GET
/api/BLOCK_NAME
/activities
'
:
getActivities
,
'
GET
/api/BLOCK_NAME
/fake_chart_data
'
:
{
'
GET
/api
/project/notice
'
:
getNotice
,
'
GET
/api
/activities
'
:
getActivities
,
'
GET
/api
/fake_chart_data
'
:
{
radarData
,
},
'
GET
/api/BLOCK_NAME
/currentUser
'
:
{
'
GET
/api
/currentUser
'
:
{
name
:
'
Serati Ma
'
,
avatar
:
'
https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png
'
,
userid
:
'
00000001
'
,
...
...
FormAdvancedForm/src/_mock.ts
View file @
829e25b2
export
default
{
'
POST
/api/BLOCK_NAME/forms
'
:
(
req
,
res
)
=>
{
'
POST
/api/forms
'
:
(
req
:
any
,
res
:
any
)
=>
{
res
.
send
({
message
:
'
Ok
'
});
},
};
FormBasicForm/src/_mock.ts
View file @
829e25b2
export
default
{
'
POST
/api/BLOCK_NAME/forms
'
:
(
req
,
res
)
=>
{
'
POST
/api/forms
'
:
(
req
:
any
,
res
:
any
)
=>
{
res
.
send
({
message
:
'
Ok
'
});
},
};
FormStepForm/src/_mock.ts
View file @
829e25b2
export
default
{
'
POST
/api/BLOCK_NAME
/forms
'
:
(
req
:
any
,
res
:
{
send
:
(
arg0
:
{
message
:
string
})
=>
void
})
=>
{
'
POST
/api
/forms
'
:
(
req
:
any
,
res
:
{
send
:
(
arg0
:
{
message
:
string
})
=>
void
})
=>
{
res
.
send
({
message
:
'
Ok
'
});
},
};
ListBasicList/src/_mock.ts
View file @
829e25b2
...
...
@@ -145,6 +145,6 @@ function postFakeList(req: { body: any }, res: { json: (arg0: BasicListItemDataT
}
export
default
{
'
GET
/api/BLOCK_NAME
/fake_list
'
:
getFakeList
,
'
POST
/api/BLOCK_NAME
/fake_list
'
:
postFakeList
,
'
GET
/api
/fake_list
'
:
getFakeList
,
'
POST
/api
/fake_list
'
:
postFakeList
,
};
ListCardList/src/_mock.ts
View file @
829e25b2
...
...
@@ -110,5 +110,5 @@ function getFakeList(req: { query: any }, res: { json: (arg0: CardListItemDataTy
}
export
default
{
'
GET
/api/BLOCK_NAME
/fake_list
'
:
getFakeList
,
'
GET
/api
/fake_list
'
:
getFakeList
,
};
ListSearchApplications/src/_mock.ts
View file @
829e25b2
...
...
@@ -109,5 +109,5 @@ function getFakeList(req: { query: any }, res: { json: (arg0: any[]) => void })
}
export
default
{
'
GET
/api/BLOCK_NAME
/fake_list
'
:
getFakeList
,
'
GET
/api
/fake_list
'
:
getFakeList
,
};
ListSearchApplications/src/data.d.ts
View file @
829e25b2
...
...
@@ -4,7 +4,7 @@ export interface Member {
id
:
string
;
}
export
interface
ListItemData
t
ype
{
export
interface
ListItemData
T
ype
{
id
:
string
;
owner
:
string
;
title
:
string
;
...
...
ListSearchArticles/src/_mock.ts
View file @
829e25b2
...
...
@@ -109,5 +109,5 @@ function getFakeList(req: { query: any }, res: { json: (arg0: any[]) => void })
}
export
default
{
'
GET
/api/BLOCK_NAME
/fake_list
'
:
getFakeList
,
'
GET
/api
/fake_list
'
:
getFakeList
,
};
ListSearchProjects/src/_mock.ts
View file @
829e25b2
...
...
@@ -109,5 +109,5 @@ function getFakeList(req: { query: any }, res: { json: (arg0: any[]) => void })
}
export
default
{
'
GET
/api/BLOCK_NAME
/fake_list
'
:
getFakeList
,
'
GET
/api
/fake_list
'
:
getFakeList
,
};
ListTableList/src/_mock.ts
View file @
829e25b2
...
...
@@ -85,7 +85,7 @@ function getRule(
pagination
:
{
total
:
dataSource
.
length
,
pageSize
,
current
:
parseInt
(
params
.
currentPage
,
10
)
||
1
,
current
:
parseInt
(
`
${
params
.
currentPage
}
`
,
10
)
||
1
,
},
};
...
...
@@ -155,6 +155,6 @@ function postRule(
}
export
default
{
'
GET /api/
BLOCK_NAME
'
:
getRule
,
'
POST /api/
BLOCK_NAME
'
:
postRule
,
'
GET /api/
'
:
getRule
,
'
POST /api/
'
:
postRule
,
};
ProfileAdvanced/src/_mock.ts
View file @
829e25b2
...
...
@@ -70,5 +70,5 @@ const getProfileAdvancedData = {
};
export
default
{
'
GET
/api/BLOCK_NAME
/advanced
'
:
getProfileAdvancedData
,
'
GET
/api
/advanced
'
:
getProfileAdvancedData
,
};
ProfileBasic/src/_mock.ts
View file @
829e25b2
...
...
@@ -82,5 +82,5 @@ const getProfileBasicData = {
};
export
default
{
'
GET
/api/BLOCK_NAME
/basic
'
:
getProfileBasicData
,
'
GET
/api
/basic
'
:
getProfileBasicData
,
};
UserLogin/src/_mock.ts
View file @
829e25b2
...
...
@@ -3,7 +3,7 @@ function getFakeCaptcha(req: any, res: { json: (arg0: string) => void }) {
}
export
default
{
'
POST
/api/BLOCK_NAME
/account
'
:
(
'
POST
/api
/account
'
:
(
req
:
{
body
:
{
password
:
any
;
userName
:
any
;
type
:
any
}
},
res
:
{
send
:
(
data
:
any
)
=>
void
;
...
...
@@ -32,5 +32,5 @@ export default {
currentAuthority
:
'
guest
'
,
});
},
'
GET
/api/BLOCK_NAME
/captcha
'
:
getFakeCaptcha
,
'
GET
/api
/captcha
'
:
getFakeCaptcha
,
};
UserRegister/src/_mock.ts
View file @
829e25b2
export
default
{
'
POST
/api/BLOCK_NAME
/register
'
:
(
'
POST
/api
/register
'
:
(
req
:
any
,
res
:
{
send
:
(
arg0
:
{
status
:
string
;
currentAuthority
:
string
})
=>
void
},
)
=>
{
...
...
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