Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
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
陈智峰
jinfa-platform
Commits
868c5ebe
Commit
868c5ebe
authored
Aug 26, 2020
by
LeeJiancong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'物流-去除物流静态数据'
parent
b9863fef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
63 deletions
+17
-63
global.d.ts
src/global/config/global.d.ts
+0
-47
addCompany.tsx
src/pages/logistics/list/addCompany.tsx
+17
-16
No files found.
src/global/config/global.d.ts
deleted
100644 → 0
View file @
b9863fef
export
interface
MemberType
{
id
:
number
;
typeName
:
string
;
}
export
interface
BusinessType
{
id
:
number
;
typeName
:
string
;
}
export
interface
UseType
{
memberType
:
MemberType
[];
businessType
:
BusinessType
[];
}
export
interface
UserRegister
{
useType
:
UseType
;
}
export
interface
Web
{
shopInfo
:
any
[];
}
export
interface
PayConfig
{
paymemberConfig
?:
any
;
}
export
interface
CountryList
{
name
:
string
;
key
:
string
;
icon
:
string
;
}
export
interface
Global
{
siteId
:
number
;
siteUrl
:
string
;
logo
:
string
;
countryList
:
CountryList
[];
}
export
interface
RootObject
{
userRegister
:
UserRegister
;
web
:
Web
;
payConfig
:
PayConfig
;
global
:
Global
;
}
\ No newline at end of file
src/pages/logistics/list/addCompany.tsx
View file @
868c5ebe
...
...
@@ -65,23 +65,23 @@ const columns: ColumnType<any>[] = [
}
]
// 模拟请求
const
fetchData
=
(
params
:
any
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
const
queryResult
=
data
.
find
(
v
=>
v
.
key
===
params
.
keywords
)
setTimeout
(()
=>
{
resolve
({
code
:
200
,
message
:
''
,
data
:
queryResult
?
[
queryResult
]
:
data
})
},
1000
)
})
}
//
const fetchData = (params: any) => {
//
return new Promise((resolve, reject) => {
//
const queryResult = data.find(v => v.key === params.keywords)
//
setTimeout(() => {
//
resolve({
//
code: 200,
//
message: '',
//
data: queryResult ? [queryResult] : data
//
})
//
}, 1000)
//
})
//
}
//
const fetchData = async (params) =>{
//
const res = await PublicApi.getMemberManageLowerPageBynamerole(params)
//
return res.data
//
}
const
fetchData
=
async
(
params
)
=>
{
const
res
=
await
PublicApi
.
getMemberManageLowerPageBynamerole
(
params
)
return
res
.
data
}
const
{
Option
}
=
Select
;
...
...
@@ -240,6 +240,7 @@ const company: React.FC<{}> = () => {
(<
Form
form=
{
menuForm
}
colon=
{
false
}
name=
"edit_infomation"
layout=
"horizontal"
labelAlign=
"left"
...
...
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