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
bd345940
Commit
bd345940
authored
Nov 22, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '消息中心推送方案配置,web功能路径选择判断拼接字符串'
parent
32fe9bba
Pipeline
#64274
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
9 deletions
+63
-9
itemCard.less
src/components/CheckGroup/itemCard.less
+1
-1
schemeDetail.jsx
...latformCenter/messageManage/schemeDetail/schemeDetail.jsx
+62
-8
No files found.
src/components/CheckGroup/itemCard.less
View file @
bd345940
...
...
@@ -59,7 +59,7 @@
top: 0;
right: 0px;
// background-color: #fff;
width: 10
0%;
// width: 2
0%;
height: 40px;
padding: 0 20px;
display: flex;
...
...
src/pages/platformCenter/messageManage/schemeDetail/schemeDetail.jsx
View file @
bd345940
...
...
@@ -205,6 +205,7 @@ const EditModal = props => {
a
.
children
=
aa
;
a
.
menuID
=
`praent
${
j
}
`
;
a
.
key
=
`praent
${
j
}
`
;
a
.
item
=
'father'
;
list
.
push
(
a
);
});
console
.
log
(
list
);
...
...
@@ -493,9 +494,18 @@ const EditModal = props => {
})
.
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
form
.
setFieldsValue
({
web_path
:
res
.
data
.
pageUrl
});
console
.
log
(
res
.
data
.
pageUrl
);
setTreeSelectValue
(
res
.
data
.
pageUrl
);
let
symbol
=
res
.
data
.
pageUrl
.
indexOf
(
'|'
);
let
widget
=
res
.
data
.
pageUrl
.
indexOf
(
'widget'
);
if
(
symbol
==
-
1
)
{
form
.
setFieldsValue
({
web_path
:
`
${
res
.
data
.
pageUrl
}
|widget=
${
e
}
`
.
replace
(
/
\s
/g
,
''
)
});
setTreeSelectValue
(
`
${
res
.
data
.
pageUrl
}
|widget=
${
e
}
`
.
replace
(
/
\s
/g
,
''
));
}
else
if
(
widget
==
-
1
)
{
form
.
setFieldsValue
({
web_path
:
`
${
res
.
data
.
pageUrl
}
&widget=
${
e
}
`
.
replace
(
/
\s
/g
,
''
)
});
setTreeSelectValue
(
`
${
res
.
data
.
pageUrl
}
&widget=
${
e
}
`
.
replace
(
/
\s
/g
,
''
));
}
else
{
form
.
setFieldsValue
({
web_path
:
res
.
data
.
pageUrl
});
setTreeSelectValue
(
res
.
data
.
pageUrl
);
}
}
else
{
notification
.
error
({
message
:
'提示'
,
...
...
@@ -517,8 +527,7 @@ const EditModal = props => {
.
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
form
.
setFieldsValue
({
app_path
:
res
.
data
.
pageUrl
});
console
.
log
(
res
.
data
.
pageUrl
);
setTreeSelectValue
(
res
.
data
.
pageUrl
);
setTreeSelectValueMoblie
(
res
.
data
.
pageUrl
);
}
else
{
notification
.
error
({
message
:
'提示'
,
...
...
@@ -534,6 +543,22 @@ const EditModal = props => {
const
mapTree
=
org
=>
{
const
haveChildren
=
Array
.
isArray
(
org
.
children
)
&&
org
.
children
.
length
>
0
;
// console.log(org);
if
(
org
.
key
)
{
if
(
haveChildren
)
{
return
(
<
TreeNode
value=
{
org
.
menuID
}
title=
{
org
.
text
}
icon=
{
org
.
key
?
<
DesktopOutlined
/>
:
<
FolderFilled
/>
}
disabled
>
{
org
.
children
.
map
(
item
=>
mapTree
(
item
))
}
</
TreeNode
>
);
}
return
<
TreeNode
value=
{
org
.
menuID
}
title=
{
org
.
text
}
icon=
{
<
DesktopOutlined
/>
}
disabled
/>;
}
return
haveChildren
?
(
<
TreeNode
value=
{
org
.
menuID
}
...
...
@@ -547,13 +572,35 @@ const EditModal = props => {
<
TreeNode
value=
{
org
.
menuID
}
title=
{
org
.
text
}
icon=
{
<
FileOutlined
style=
{
{
color
:
'#1890ff'
}
}
/>
}
icon=
{
org
.
menuType
==
'Web4MenuGroup'
?
(
<
FolderFilled
/>
)
:
(
<
FileOutlined
style=
{
{
color
:
'#1890ff'
}
}
/>
)
}
disabled=
{
org
.
menuType
==
'Web4MenuGroup'
}
/>
);
};
const
mapTreeMoblie
=
org
=>
{
const
haveChildren
=
Array
.
isArray
(
org
.
children
)
&&
org
.
children
.
length
>
0
;
if
(
org
.
key
)
{
if
(
haveChildren
)
{
return
(
<
TreeNode
value=
{
org
.
menuID
}
title=
{
org
.
text
}
icon=
{
org
.
key
?
<
MobileOutlined
/>
:
<
FolderFilled
/>
}
disabled
>
{
org
.
children
.
map
(
item
=>
mapTreeMoblie
(
item
))
}
</
TreeNode
>
);
}
return
<
TreeNode
value=
{
org
.
menuID
}
title=
{
org
.
text
}
icon=
{
<
MobileOutlined
/>
}
disabled
/>;
}
return
haveChildren
?
(
<
TreeNode
value=
{
org
.
menuID
}
...
...
@@ -561,13 +608,20 @@ const EditModal = props => {
icon=
{
org
.
key
?
<
MobileOutlined
/>
:
<
FolderFilled
/>
}
disabled
>
{
org
.
children
.
map
(
item
=>
mapTree
(
item
))
}
{
org
.
children
.
map
(
item
=>
mapTree
Moblie
(
item
))
}
</
TreeNode
>
)
:
(
<
TreeNode
value=
{
org
.
menuID
}
title=
{
org
.
text
}
icon=
{
<
FileOutlined
style=
{
{
color
:
'#1890ff'
}
}
/>
}
icon=
{
org
.
menuType
==
'MiniAppMenuGroup'
||
org
.
menuType
==
'MiniAppMenuGroupTwo'
?
(
<
FolderFilled
/>
)
:
(
<
FileOutlined
style=
{
{
color
:
'#1890ff'
}
}
/>
)
}
disabled=
{
org
.
menuType
==
'MiniAppMenuGroup'
||
org
.
menuType
==
'MiniAppMenuGroupTwo'
}
/>
);
};
...
...
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