Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
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
CivManage
Commits
d212ad7d
Commit
d212ad7d
authored
May 25, 2023
by
涂伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '继承登录图片上传修改'
parent
6268d2e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
1 deletion
+67
-1
AddModal.jsx
src/pages/platformCenter/integratedLogin/AddModal.jsx
+14
-1
Integrate.jsx
src/pages/platformCenter/integratedLogin/Integrate.jsx
+53
-0
No files found.
src/pages/platformCenter/integratedLogin/AddModal.jsx
View file @
d212ad7d
...
...
@@ -384,6 +384,11 @@ const AddModal = props => {
message
.
error
(
'请选择图标!'
);
return
;
}
if
(
obj
.
iconUrl
.
includes
(
'CityTemp'
)
&&
obj
.
iconUrl
.
includes
(
'图库'
))
{
obj
.
iconUrl
=
obj
.
iconUrl
;
}
else
{
obj
.
iconUrl
=
'CityTemp
\\
图库
\
\'
+ obj.iconUrl;
}
if (type === '
add
') {
AddIntegratedLogin({
systemName: obj.systemName,
...
...
@@ -534,7 +539,15 @@ const AddModal = props => {
// };
// });
if (info.file.response.code === 0) {
setImageUrl
(
getImg
(
info
.
file
.
response
.
data
));
console.log('
触发咯
');
if (
info.file.response.data.includes('
CityTemp
') &&
info.file.response.data.includes('
图库
')
) {
setImageUrl(getImg(info.file.response.data));
} else {
setImageUrl(getImg('
CityTemp
\\图库\\
' + info.file.response.data));
}
setLoading(false);
} else {
message.error(info.file.response.msg);
...
...
src/pages/platformCenter/integratedLogin/Integrate.jsx
View file @
d212ad7d
...
...
@@ -396,6 +396,25 @@ const Integrate = () => {
if
(
resnew
.
code
===
0
)
{
setTableData
(
resnew
.
data
);
setShowSearchStyle
(
true
);
let
aa
=
[];
if
(
resnew
.
data
.
length
>
0
)
{
resnew
.
data
.
map
((
i
,
j
)
=>
{
aa
.
push
(
i
.
SystemName
);
resnew
.
data
[
j
].
AccountParamKey
=
i
.
AccountParam
[
0
].
key
;
resnew
.
data
[
j
].
AccountParamValue
=
i
.
AccountParam
[
0
].
value
;
if
(
resnew
.
data
[
j
].
iconUrl
&&
!
resnew
.
data
[
j
].
iconUrl
.
includes
(
'images'
))
{
resnew
.
data
[
j
].
showUrl
=
getImg
(
resnew
.
data
[
j
].
iconUrl
);
}
else
{
resnew
.
data
[
j
].
showUrl
=
`
${
window
.
location
.
origin
}
/
${
resnew
.
data
[
j
].
iconUrl
}
`
;
}
});
}
console
.
log
(
aa
);
setKeepSystemName
(
aa
);
console
.
log
(
resnew
.
data
);
console
.
log
(
resnew
.
data
,
'resnew.dataresnew.dataresnew.data'
);
setTableData
(
resnew
.
data
);
}
else
{
notification
.
error
({
message
:
'获取失败'
,
...
...
@@ -406,6 +425,40 @@ const Integrate = () => {
});
};
// const getData = () => {
// setLoading(true);
// GetIntegratedLogin({ isHide: false }).then(resnew => {
// if (resnew.code === 0) {
// console.log(resnew.data);
// let aa = [];
// if (resnew.data.length > 0) {
// resnew.data.map((i, j) => {
// aa.push(i.SystemName);
// resnew.data[j].AccountParamKey = i.AccountParam[0].key;
// resnew.data[j].AccountParamValue = i.AccountParam[0].value;
// if (resnew.data[j].iconUrl && !resnew.data[j].iconUrl.includes('images')) {
// resnew.data[j].showUrl = getImg(resnew.data[j].iconUrl);
// } else {
// resnew.data[j].showUrl = `${window.location.origin}/${resnew.data[j].iconUrl}`;
// }
// });
// }
// console.log(aa);
// setKeepSystemName(aa);
// console.log(resnew.data);
// console.log(resnew.data, 'resnew.dataresnew.dataresnew.data');
// setTableData(resnew.data);
// } else {
// notification.error({
// message: '获取失败',
// description: resnew.msg,
// });
// }
// setLoading(false);
// });
// };
const
handleReset
=
()
=>
{
setSearchWord
(
''
);
setShowSearchStyle
(
false
);
...
...
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