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
fa858fee
Commit
fa858fee
authored
1 year ago
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '权限配置关联站点允许为空'
parent
3e068430
Pipeline
#82587
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
22 deletions
+21
-22
solutionConfig.jsx
...Center/gis/schemeConfig/solutionConfig/solutionConfig.jsx
+21
-22
No files found.
src/pages/platformCenter/gis/schemeConfig/solutionConfig/solutionConfig.jsx
View file @
fa858fee
...
...
@@ -165,28 +165,27 @@ const VectorData = props => {
const
onPushSubmit
=
value
=>
{
console
.
log
(
value
,
'value'
);
setAddVisible
(
false
);
if
(
value
.
length
)
{
let
query
=
{
schemename
:
record
.
schemename
,
terminalType
:
record
.
isStatus
,
isBaseMap
:
false
,
jsonCfg
:
JSON
.
stringify
({
roles
:
value
.
join
(
','
),
}),
};
SetServiceConfig
(
query
)
.
then
(
res
=>
{
if
(
res
.
code
==
'0'
)
{
prompt
(
'success'
,
'关联角色成功'
);
setFlag
(
flag
+
1
);
}
else
{
prompt
(
'fail'
,
'关联角色失败'
);
}
})
.
catch
(
err
=>
{
prompt
(
'fail'
,
'网络请求失败'
);
});
}
let
query
=
{
schemename
:
record
.
schemename
,
terminalType
:
record
.
isStatus
,
isBaseMap
:
false
,
jsonCfg
:
JSON
.
stringify
({
roles
:
value
.
join
(
','
),
}),
};
SetServiceConfig
(
query
)
.
then
(
res
=>
{
if
(
res
.
code
==
'0'
)
{
prompt
(
'success'
,
'关联角色成功'
);
setFlag
(
flag
+
1
);
}
else
{
prompt
(
'fail'
,
'关联角色失败'
);
}
})
.
catch
(
err
=>
{
prompt
(
'fail'
,
'网络请求失败'
);
});
};
const
rolCallBack
=
useCallback
(
list
=>
{
let
strList
=
[];
...
...
This diff is collapsed.
Click to expand it.
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