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
shenshaokai
jinfa-platform
Commits
e7548b1b
Commit
e7548b1b
authored
Jul 05, 2021
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:设置cookie无效
parent
12d44049
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
74 deletions
+6
-74
addForm.tsx
...ion/dealAbility/productInquiry/waitAddInquiry/addForm.tsx
+0
-22
basicInfo.tsx
...ty/productInquiry/waitAddInquiry/components/basicInfo.tsx
+0
-45
LoginWrap.tsx
src/pages/user/components/LoginWrap.tsx
+5
-5
auth.ts
src/utils/auth.ts
+0
-1
index.tsx
src/utils/index.tsx
+1
-1
No files found.
src/pages/transaction/dealAbility/productInquiry/waitAddInquiry/addForm.tsx
View file @
e7548b1b
...
...
@@ -74,28 +74,6 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
setLoading
(
false
)
})
}
<
<<<<<<
HEAD
useEffect
(()
=
>
{
if
(
id
&&
type
===
2
)
{
handleGetDetails
();
setCount
(
'3'
);
}
else
if
(
id
&&
type
===
3
)
{
const
data
:
any
=
getCookie
(
spam_id
);
const
inquiryGoods
:
any
[]
=
[];
inquiryGoods
.
push
({
commodityId
:
id
,
productId
:
data
.
id
,
productName
:
data
.
name
,
category
:
data
.
category
,
brand
:
data
.
brand
.
name
,
unit
:
data
.
unitName
,
purchaseCount
:
1
,
logistics
:
data
.
logistics
,
memberId
:
data
.
memberId
,
memberRoleId
:
data
.
memberRoleId
})
=======
>>>>>>>
dev
-
srm
const
getMemberInfo
=
(
value
)
=>
{
form
.
setFieldsValue
({
"memberName"
:
value
.
name
});
...
...
src/pages/transaction/dealAbility/productInquiry/waitAddInquiry/components/basicInfo.tsx
View file @
e7548b1b
...
...
@@ -85,50 +85,6 @@ const BasicInfoLayout: React.FC<BasicInfoLayoutProps> = (props: any) => {
},
[
memb
])
return
(
<
<<<<<<
HEAD
<
>
<
Form
{
...
layout
}
form=
{
basicform
}
className=
{
styles
.
revise_style
}
>
<
Form
.
Item
label=
'询价单摘要'
name=
'details'
rules=
{
[{
required
:
true
,
message
:
'请输入询价单摘要'
}]
}
>
<
Input
/>
</
Form
.
Item
>
<
Form
.
Item
label=
'被询价会员'
name=
'memberId'
rules=
{
[{
required
:
true
,
message
:
'请选择被询价会员'
}]
}
>
<
Search
disabled=
{
type
===
3
||
type
===
2
}
value=
{
memberName
?
memberName
:
undefined
}
readOnly
enterButton=
{
<><
LinkOutlined
/>
选择
</>
}
onSearch=
{
()
=>
setVisibleChannelMember
(
true
)
}
/>
{
memberName
&&
<
Button
type=
'link'
onClick=
{
()
=>
window
.
open
(
`${ENTERPRISE_CENTER_URL}/shop/${memberId}_${roleId}`
)
}
>
查看会员详情
</
Button
>
}
</
Form
.
Item
>
<
Form
.
Item
label=
'询价单号'
name=
'orderNumber'
>
<
span
>
{
(
Object
.
keys
(
editData
).
length
>
0
&&
editData
.
inquiryListNo
)
?
editData
.
inquiryListNo
:
'-'
}
</
span
>
</
Form
.
Item
>
<
Form
.
Item
label=
'单据时间'
name=
'time'
>
<
span
>
{
(
Object
.
keys
(
editData
).
length
>
0
&&
editData
.
voucherTime
)
?
format
(
editData
.
voucherTime
)
:
'-'
}
</
span
>
</
Form
.
Item
>
<
Form
.
Item
label=
'外部状态'
name=
'external'
>
<
span
>
{
(
Object
.
keys
(
editData
).
length
>
0
&&
editData
.
externalState
)
?
<
Tag
color=
{
EXTERNALSTATE_COLOR
[
editData
.
externalState
]
}
>
{
editData
.
externalStateName
}
</
Tag
>
:
'-'
}
</
span
>
</
Form
.
Item
>
<
Form
.
Item
label=
'内部状态'
name=
'internal'
>
<
span
>
{
(
Object
.
keys
(
editData
).
length
>
0
&&
editData
.
interiorState
)
?
<
Badge
status=
{
INTERNALSTATE_COLOR
[
editData
.
interiorState
]
}
text=
{
editData
.
interiorStateName
}
/>
:
'-'
}
</
span
>
</
Form
.
Item
>
</
Form
>
{
/* 选择会员弹框 */
}
<
ModalTable
modalTitle=
'选择会员'
confirm=
{
handleOkAddMember
}
cancel=
{
handleCancelAddMember
}
visible=
{
visibleChannelMember
}
forceRender=
{
visibleChannelMember
}
resetModal=
{
{
destroyOnClose
:
true
,
forceRender
:
true
}
}
columns=
{
columnsSetMember
}
rowSelection=
{
memberRowSelection
}
fetchTableData=
{
params
=>
fetchMemberList
(
params
)
}
formilyProps=
{
{
ctx
:
{
schema
:
formSearch
}
}
}
=======
<
Card
id=
"basicInfoLayout"
title=
"基本信息"
...
...
@@ -150,7 +106,6 @@ const BasicInfoLayout: React.FC<BasicInfoLayoutProps> = (props: any) => {
visible=
{
visible
}
title=
"选择会员"
mode=
"radio"
>
>>>>>>
dev-srm
tableProps=
{
{
rowKey
:
'id'
,
}
}
...
...
src/pages/user/components/LoginWrap.tsx
View file @
e7548b1b
...
...
@@ -30,11 +30,11 @@ const LoginWrap: React.FC = () => {
// 设置同域名cookie缓存
setAuth
(
data
)
// 此处需使用href跳转, 否则无法触发app.ts中的路由初始化校验
if
(
redirect
)
{
window
.
location
.
replace
(
decodeURIComponent
(
atob
(
redirect
)))
}
else
{
window
.
location
.
replace
(
'/memberCenter/home'
)
}
//
if (redirect) {
//
window.location.replace(decodeURIComponent(atob(redirect)))
//
} else {
//
window.location.replace('/memberCenter/home')
//
}
}
else
{
setLoginLoading
(
false
)
}
...
...
src/utils/auth.ts
View file @
e7548b1b
...
...
@@ -32,7 +32,6 @@ export const setAuth = (info: AuthInfo) => {
memberRoleType
:
info
.
memberRoleType
,
memberRoleId
:
info
.
memberRoleId
}
console
.
log
(
getTopDomainByHost
(
TOP_DOMAIN
,
true
))
setCookie
(
AUTH_KEY
,
JSON
.
stringify
(
auth
),
{
domain
:
getTopDomainByHost
(
TOP_DOMAIN
,
true
)
})
setCookie
(
AUTH_ROLES_KEY
,
JSON
.
stringify
(
info
.
roles
),
{
domain
:
getTopDomainByHost
(
TOP_DOMAIN
,
true
)
})
setLocalAuth
(
info
)
...
...
src/utils/index.tsx
View file @
e7548b1b
...
...
@@ -645,7 +645,7 @@ export const getIChannelInfo = () => {
export
const
getTopDomainByHost
=
(
url
:
string
,
isPort
=
false
):
string
=>
{
if
(
!
url
)
return
''
// 如果后缀带有端口号, 可通过第二个参数把端口去掉
const
splitUrl
=
url
.
split
(
':'
)
const
splitUrl
=
url
.
replace
(
/
(
http|https
)\:\/\/
/
,
''
).
split
(
':'
)
if
(
splitUrl
.
length
>
1
&&
isPort
)
{
return
`
${
splitUrl
[
0
].
split
(
'.'
).
slice
(
-
2
).
join
(
'.'
)}
`
}
...
...
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