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
17e790bd
Commit
17e790bd
authored
Nov 12, 2024
by
涂伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '导入用户逻辑优化'
parent
a1b68fd9
Pipeline
#93833
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
UserManage.jsx
src/pages/userCenter/userManage/UserManage.jsx
+10
-7
No files found.
src/pages/userCenter/userManage/UserManage.jsx
View file @
17e790bd
...
...
@@ -1601,12 +1601,15 @@ const UserManage = () => {
ImportUserData(params).then(res => {
console.log(res, '
ressssssssssssssss
');
if (res.code === 0 && res.data.includes('
成功
')) {
message.success(res.data)
setImportAccountVisible(false);
// setAlertTxt('
1116666
')
if (res.code === 0) {
if (res.data.includes('
成功
')) {
message.success(res.data)
setImportAccountVisible(false);
} else {
setAlertTxt(res.data || '
导入失败!
')
}
} else {
setAlertTxt(res.
data
|| '
导入失败!
')
setAlertTxt(res.
msg
|| '
导入失败!
')
}
})
})
...
...
@@ -1675,7 +1678,7 @@ const UserManage = () => {
<
Menu
.
Item
key=
"22"
onClick=
{
()
=>
{
exportRoles
({
isModal
:
true
})
}
}
icon=
{
<
SnippetsOutlined
/>
}
>
导出模板
</
Menu
.
Item
>
<
Menu
.
Item
key=
"33"
onClick=
{
()
=>
{
exportRoles
({
all
:
true
})
}
}
icon=
{
<
UserSwitchOutlined
/>
}
>
<
Menu
.
Item
key=
"33"
onClick=
{
()
=>
{
exportRoles
({
all
:
true
})
}
}
icon=
{
<
UserSwitchOutlined
/>
}
>
导出全部用户
</
Menu
.
Item
>
<
Menu
.
Item
key=
"44"
onClick=
{
exportRoles
}
icon=
{
<
UserSwitchOutlined
/>
}
>
...
...
@@ -2181,7 +2184,7 @@ const UserManage = () => {
{
alertTxt
?
<
Alert
message=
"错误信息"
description=
{
<
div
dangerouslySetInnerHTML=
{
{
__html
:
alertTxt
}
}
/>
<
div
dangerouslySetInnerHTML=
{
{
__html
:
alertTxt
}
}
/>
}
type=
"error"
closable
...
...
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