Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
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
ReactWeb5
CivWeb
Commits
fa6eb9e9
Commit
fa6eb9e9
authored
Nov 05, 2024
by
周宏民
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref: 修改 集成登录配置
parent
d2045d42
Pipeline
#93665
passed with stages
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
16 deletions
+28
-16
index.js
src/pages/bootpage/template/integrationNew/index.js
+7
-3
AddModal.js
src/pages/integratedLogin/components/AddModal.js
+0
-0
index.js
src/pages/integratedLogin/index.js
+21
-13
No files found.
src/pages/bootpage/template/integrationNew/index.js
View file @
fa6eb9e9
...
...
@@ -162,6 +162,8 @@ const IntegrationNew = props => {
if
(
item
?.
openOpt
===
'当前页打开'
)
{
props
.
history
.
push
(
'/thirdParty'
,
{
linkUrl
:
apiPath
});
}
else
{
setJumpLoading
(
false
);
jumpProgressEnd
();
window
.
open
(
apiPath
,
'_blank'
);
}
}
else
{
...
...
@@ -178,7 +180,7 @@ const IntegrationNew = props => {
const
toClient
=
async
(
item
,
loginA
)
=>
{
const
token
=
props
.
global
?.
token
||
Cookies
.
get
(
'token'
);
const
cli
=
item
.
appKey
;
const
cli
=
item
.
client
;
const
res
=
await
getWebSiteConfig
({
identity
:
token
,
client
:
cli
,
...
...
@@ -229,9 +231,9 @@ const IntegrationNew = props => {
props.logout();
return;
}
const { url,
appKey
} = item;
const { url,
client
} = item;
if (item.subType === '内链' &&
appKey
) {
if (item.subType === '内链' &&
client
) {
toClient(item, loginA);
} else {
if (!url) return;
...
...
@@ -247,6 +249,8 @@ const IntegrationNew = props => {
if (item?.openOpt === '当前页打开') {
props.history.push('/thirdParty', { linkUrl: link });
} else {
setJumpLoading(false);
jumpProgressEnd();
window.open(link, '_blank');
}
}
...
...
src/pages/integratedLogin/components/AddModal.js
View file @
fa6eb9e9
This diff is collapsed.
Click to expand it.
src/pages/integratedLogin/index.js
View file @
fa6eb9e9
...
...
@@ -76,7 +76,7 @@ const IntegratedLogin = props => {
dataIndex
:
'icon'
,
key
:
'icon'
,
align
:
'center'
,
width
:
1
2
0
,
width
:
1
0
0
,
render
:
(
text
,
record
)
=>
{
if
(
text
)
{
return
(
...
...
@@ -109,23 +109,31 @@ const IntegratedLogin = props => {
{
title
:
'链接类型'
,
dataIndex
:
'subType'
,
width
:
1
2
0
,
width
:
1
0
0
,
align
:
'center'
,
render
:
(
text
,
record
)
=>
subTypeMap
[
text
]
||
''
,
render
:
(
text
,
record
)
=>
{
if
(
text
===
'内链'
)
{
return
(
<>
<
span
style
=
{{
color
:
'#1685ff'
}}
>
{
record
.
client
||
''
}
<
/span>
(
站内
)
<
/
>
);
}
return
'站外跳转'
;
},
},
{
title
:
'
APPKey
'
,
dataIndex
:
'
appKey
'
,
width
:
12
0
,
title
:
'
地址
'
,
dataIndex
:
'
url
'
,
width
:
25
0
,
align
:
'center'
,
},
{
title
:
'
地址
'
,
dataIndex
:
'
url
'
,
width
:
2
00
,
title
:
'
AppKey
'
,
dataIndex
:
'
appKey
'
,
width
:
1
00
,
align
:
'center'
,
},
{
title
:
'操作'
,
key
:
'action'
,
...
...
@@ -252,15 +260,15 @@ const IntegratedLogin = props => {
if
(
res
.
code
===
0
)
{
const
_allName
=
[];
const
_groupList
=
[];
res
.
data
.
forEach
(
item
=>
{
const
data
=
res
.
data
||
[];
data
.
forEach
(
item
=>
{
const
_name
=
item
.
name
;
_allName
.
push
(
_name
);
_groupList
.
push
({
value
:
_name
,
label
:
_name
});
});
setGroupList
(
_groupList
);
setKeepSystemName
(
_allName
);
setTableData
(
res
.
data
.
sort
((
a
,
b
)
=>
a
.
index
-
b
.
index
));
setTableData
(
data
.
sort
((
a
,
b
)
=>
a
.
index
-
b
.
index
));
}
else
{
res
.
msg
&&
message
.
error
(
res
.
msg
);
}
...
...
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