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
d0046413
Commit
d0046413
authored
Jul 29, 2021
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into v2
parents
aedcb53e
14712a2d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
7 deletions
+28
-7
index.ts
src/constants/index.ts
+9
-1
SituationList.tsx
...ontract/coordination/details/components/SituationList.tsx
+18
-5
index.tsx
src/pages/editor/shopEdit/index.tsx
+1
-1
No files found.
src/constants/index.ts
View file @
d0046413
...
@@ -18,10 +18,18 @@ export const TOP_DOMAIN = process.env.NODE_ENV !== 'development' ? getTopDomainB
...
@@ -18,10 +18,18 @@ export const TOP_DOMAIN = process.env.NODE_ENV !== 'development' ? getTopDomainB
// export const TOP_DOMAIN = getTopDomainByHost(GlobalConfig.global.siteInfo.siteUrl)
// export const TOP_DOMAIN = getTopDomainByHost(GlobalConfig.global.siteInfo.siteUrl)
/**
/**
* 获取平台首页子域名
*/
const
getPlatformSubDomain
=
(
defaultSubDomian
:
string
)
=>
{
const
siteUrl
=
GlobalConfig
.
global
.
siteInfo
.
siteUrl
return
siteUrl
.
split
(
'.'
)[
0
]
||
defaultSubDomian
}
/**
* 平台首页域名
* 平台首页域名
*/
*/
export
const
PLATFORM_DOMAIN
=
`
${
REQUEST_HEADER
}
www
.
${
TOP_DOMAIN
}
`
export
const
PLATFORM_DOMAIN
=
`
${
REQUEST_HEADER
}
${
getPlatformSubDomain
(
'lx-www'
)}
.
${
TOP_DOMAIN
}
`
/**
/**
* 企业商城域名
* 企业商城域名
...
...
src/pages/contract/coordination/details/components/SituationList.tsx
View file @
d0046413
...
@@ -44,7 +44,7 @@ const situationList: React.FC<Iprops> = ({ contractId }) => {
...
@@ -44,7 +44,7 @@ const situationList: React.FC<Iprops> = ({ contractId }) => {
startTime
:
""
,
startTime
:
""
,
endTime
:
""
,
endTime
:
""
,
current
:
1
,
current
:
1
,
pageSize
:
5
,
pageSize
:
size
,
}
}
getContracInfoList
(
data
)
getContracInfoList
(
data
)
}
}
...
@@ -204,16 +204,29 @@ const situationList: React.FC<Iprops> = ({ contractId }) => {
...
@@ -204,16 +204,29 @@ const situationList: React.FC<Iprops> = ({ contractId }) => {
getContracInfoList
(
data
)
getContracInfoList
(
data
)
};
};
/* 重置 */
const
Reset
=
()
=>
{
setPage
(
1
);
const
data
=
{
contractId
,
orderNo
:
''
,
orderAbstract
:
''
,
startTime
:
""
,
endTime
:
""
,
current
:
page
,
pageSize
:
size
,
}
getContracInfoList
(
data
)
}
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
contractId
)
{
if
(
contractId
)
{
let
data
=
{
let
data
=
{
contractId
,
contractId
,
current
:
1
,
current
:
page
,
pageSize
:
8
pageSize
:
size
}
}
getContracInfoList
(
data
)
getContracInfoList
(
data
)
}
}
console
.
log
(
data
,
'13132131'
)
},
[
contractId
])
},
[
contractId
])
return
(
return
(
<
div
id=
'docking'
className=
'ant-card ant-card-bordered'
>
<
div
id=
'docking'
className=
'ant-card ant-card-bordered'
>
...
@@ -229,7 +242,7 @@ const situationList: React.FC<Iprops> = ({ contractId }) => {
...
@@ -229,7 +242,7 @@ const situationList: React.FC<Iprops> = ({ contractId }) => {
allowClear
allowClear
onSearch=
{
onSearch
}
onSearch=
{
onSearch
}
/>
/>
<
Button
style=
{
{
paddingLeft
:
10
,
paddingRight
:
10
,
marginLeft
:
10
,
marginRight
:
10
}
}
>
重置
</
Button
>
<
Button
style=
{
{
paddingLeft
:
10
,
paddingRight
:
10
,
marginLeft
:
10
,
marginRight
:
10
}
}
onClick=
{
Reset
}
>
重置
</
Button
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
...
...
src/pages/editor/shopEdit/index.tsx
View file @
d0046413
...
@@ -71,7 +71,7 @@ const ShopEdit: React.FC<ShopEditPropsType> = (props) => {
...
@@ -71,7 +71,7 @@ const ShopEdit: React.FC<ShopEditPropsType> = (props) => {
return
new
Promise
((
resolve
)
=>
{
return
new
Promise
((
resolve
)
=>
{
const
params
:
any
=
{
const
params
:
any
=
{
templateId
:
id
,
templateId
:
id
,
type
:
2
,
type
:
3
,
memberId
,
memberId
,
roleId
:
memberRoleId
roleId
:
memberRoleId
}
}
...
...
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