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
0a1f20c2
Commit
0a1f20c2
authored
Nov 16, 2023
by
田翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 代码修复
parent
17d39cb4
Pipeline
#81763
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
index.js
.../menuconfig/WorkDesign/components/Designer/Right/index.js
+14
-6
No files found.
src/pages/productCenter/mobileConfig/menuconfig/WorkDesign/components/Designer/Right/index.js
View file @
0a1f20c2
...
...
@@ -26,6 +26,8 @@ const themes = [
{
name
:
'农饮水主题背景'
},
]
const
urlArray
=
[]
const
Right
=
()
=>
{
const
{
shema
,
setShema
}
=
useContext
(
GlobalStore
)
...
...
@@ -130,14 +132,17 @@ const Right = () => {
const
mapTreeMoblie
=
(
org
)
=>
{
const
haveChildren
=
Array
.
isArray
(
org
.
children
)
&&
org
.
children
.
length
>
0
;
if
(
!
haveChildren
&&
[
'flutter'
,
'MobileGCK'
].
includes
(
org
?.
product
))
{
if
(
!
haveChildren
&&
[
'flutter'
].
includes
(
org
?.
product
))
{
return
null
}
if
(
!
haveChildren
)
{
urlArray
.
push
(
org
)
}
if
(
org
.
key
)
{
if
(
haveChildren
)
{
return
(
<
TreeNode
value
=
{
org
.
pageUrl
||
org
.
menuID
}
value
=
{
org
.
menuID
}
title
=
{
org
.
text
}
icon
=
{
org
.
key
?
<
MobileOutlined
/>
:
<
FolderFilled
/>
}
disabled
...
...
@@ -146,11 +151,11 @@ const Right = () => {
<
/TreeNode
>
);
}
return
<
TreeNode
value
=
{
org
.
pageUrl
||
org
.
menuID
}
title
=
{
org
.
text
}
icon
=
{
<
MobileOutlined
/>
}
disabled
/>
;
return
<
TreeNode
value
=
{
org
.
menuID
}
title
=
{
org
.
text
}
icon
=
{
<
MobileOutlined
/>
}
disabled
/>
;
}
return
haveChildren
?
(
<
TreeNode
value
=
{
org
.
pageUrl
||
org
.
menuID
}
value
=
{
org
.
menuID
}
title
=
{
org
.
text
}
icon
=
{
org
.
key
?
<
MobileOutlined
/>
:
<
FolderFilled
/>
}
disabled
...
...
@@ -159,7 +164,7 @@ const Right = () => {
<
/TreeNode
>
)
:
(
<
TreeNode
value
=
{
org
.
pageUrl
||
org
.
menuID
}
value
=
{
org
.
menuID
}
title
=
{
org
.
text
}
icon
=
{
org
.
menuType
==
'MiniAppMenuGroup'
||
org
.
menuType
==
'MiniAppMenuGroupTwo'
?
(
...
...
@@ -304,7 +309,10 @@ const Right = () => {
treeDefaultExpandAll
treeIcon
// onSearch={(value) => cardSettingOther(value, 'url')}
onChange
=
{(
value
)
=>
cardSettingOther
(
value
,
'url'
)}
onChange
=
{(
value
)
=>
{
let
item
=
urlArray
.
find
(
v
=>
v
.
menuID
===
value
)
cardSettingOther
(
item
.
product
+
item
.
pageUrl
,
'url'
)
}}
>
{
moblieList
.
map
(
i
=>
mapTreeMoblie
(
i
))}
<
/TreeSelect
>
...
...
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