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
b3476e55
Commit
b3476e55
authored
Jun 20, 2022
by
邓超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改web配置
parent
e40fbba7
Pipeline
#53455
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
24 deletions
+39
-24
standingBook.jsx
src/pages/bsmanager/base/standingBook/standingBook.jsx
+8
-2
siteConfigDrawer.js
...es/productCenter/webConfig/components/siteConfigDrawer.js
+31
-22
No files found.
src/pages/bsmanager/base/standingBook/standingBook.jsx
View file @
b3476e55
...
@@ -177,7 +177,11 @@ const StandingBook = props => {
...
@@ -177,7 +177,11 @@ const StandingBook = props => {
if
(
res
.
msg
===
'Ok'
&&
res
.
data
.
root
)
{
if
(
res
.
msg
===
'Ok'
&&
res
.
data
.
root
)
{
console
.
log
(
res
.
data
.
root
);
console
.
log
(
res
.
data
.
root
);
setKeepTableData
(
res
.
data
.
root
);
setKeepTableData
(
res
.
data
.
root
);
setMaxLength
(
res
.
data
.
root
.
length
+
1
);
const
maxOrder
=
res
.
data
.
root
.
reduce
((
pre
,
cur
)
=>
pre
.
order
>
cur
.
order
?
pre
.
order
:
cur
.
order
,
);
setMaxLength
(
maxOrder
+
1
);
// setMaxLength(res.data.root.length + 1);
let
arr
=
formateArrDataA
(
res
.
data
.
root
,
'type'
);
let
arr
=
formateArrDataA
(
res
.
data
.
root
,
'type'
);
let
newArr
=
[];
let
newArr
=
[];
let
dataList
=
[];
let
dataList
=
[];
...
@@ -290,7 +294,8 @@ const StandingBook = props => {
...
@@ -290,7 +294,8 @@ const StandingBook = props => {
}
}
}
}
console
.
log
(
aa
);
console
.
log
(
aa
);
setMaxLength
(
aa
.
length
+
1
);
// const maxOrder = aa.reduce((pre, cur) => (pre.order > cur.order ? pre.order : cur.order));
// setMaxLength(maxOrder + 1);
let
arr
=
formateArrDataA
(
aa
,
'type'
);
let
arr
=
formateArrDataA
(
aa
,
'type'
);
console
.
log
(
arr
);
console
.
log
(
arr
);
setShowSearchStyle
(
true
);
setShowSearchStyle
(
true
);
...
@@ -399,6 +404,7 @@ const StandingBook = props => {
...
@@ -399,6 +404,7 @@ const StandingBook = props => {
tableData
.
map
((
item
,
index
)
=>
{
tableData
.
map
((
item
,
index
)
=>
{
return
(
return
(
<
div
<
div
title=
{
`${item}(${allData[item] ? allData[item].length : 0})`
}
className=
{
classnames
({
className=
{
classnames
({
[
styles
.
listItem
]:
true
,
[
styles
.
listItem
]:
true
,
[
styles
.
pickItem
]:
item
===
pickItem
,
[
styles
.
pickItem
]:
item
===
pickItem
,
...
...
src/pages/productCenter/webConfig/components/siteConfigDrawer.js
View file @
b3476e55
...
@@ -26,14 +26,16 @@ const { Option } = Select;
...
@@ -26,14 +26,16 @@ const { Option } = Select;
const
plainOptions
=
[
'搜索'
,
'消息'
,
'反馈'
];
const
plainOptions
=
[
'搜索'
,
'消息'
,
'反馈'
];
const
defaultCheckedList
=
[
'搜索'
,
'消息'
];
const
defaultCheckedList
=
[
'搜索'
,
'消息'
];
const
colorList
=
[
const
colorList
=
[
{
key
:
'薄暮'
,
color
:
'#F5222D'
},
{
{
key
:
'火山'
,
color
:
'#FA541C'
},
key
:
'科技蓝'
,
{
key
:
'日暮'
,
color
:
'#FAAD14'
},
color
:
'#0087F7'
,
{
key
:
'明青'
,
color
:
'#13C2C2'
},
headerColor
:
'linear-gradient(0deg, #0066D6 0%, #39A9FF 100%)'
,
{
key
:
'极光绿'
,
color
:
'#52C41A'
},
},
{
key
:
'拂晓蓝'
,
color
:
'#1890FF'
},
{
{
key
:
'极客蓝'
,
color
:
'#2F54EB'
},
key
:
'环保绿'
,
{
key
:
'酱紫'
,
color
:
'#722ED1'
},
color
:
'#009C73'
,
headerColor
:
'linear-gradient(0deg, #008E64 0%, #00AE73 100%)'
,
},
];
];
export
default
props
=>
{
export
default
props
=>
{
...
@@ -83,21 +85,27 @@ export default props => {
...
@@ -83,21 +85,27 @@ export default props => {
console
.
log
(
config
,
'config'
);
console
.
log
(
config
,
'config'
);
form
.
setFieldsValue
({
form
.
setFieldsValue
({
...
config
,
...
config
,
primaryColor
:
config
.
primaryColor
?
config
.
primaryColor
:
'#
1890FF
'
,
primaryColor
:
config
.
primaryColor
?
config
.
primaryColor
:
'#
0087F7
'
,
navTheme
:
config
.
navTheme
?
config
.
navTheme
:
'light'
,
navTheme
:
config
.
navTheme
?
config
.
navTheme
:
'light'
,
headerPrimaryColor
:
config
.
headerPrimaryColor
?
config
.
headerPrimaryColor
:
'#1890FF'
,
headerPrimaryColor
:
config
.
headerPrimaryColor
?
config
.
headerPrimaryColor
:
'linear-gradient(0deg, #0066D6 0%, #39A9FF 100%)'
,
});
});
setColor
(
config
.
headerPrimaryColor
?
config
.
headerPrimaryColor
:
'#1890FF'
);
setColor
(
config
.
headerPrimaryColor
?
config
.
headerPrimaryColor
:
'linear-gradient(0deg, #0066D6 0%, #39A9FF 100%)'
,
);
}
else
{
}
else
{
setColor
(
'
#1890FF
'
);
setColor
(
'
linear-gradient(0deg, #0066D6 0%, #39A9FF 100%)
'
);
form
.
setFieldsValue
({
form
.
setFieldsValue
({
messageMarking
:
'All'
,
messageMarking
:
'All'
,
messageVoice
:
true
,
messageVoice
:
true
,
hideMap
:
false
,
hideMap
:
false
,
loginTemplate
:
'Default.html'
,
loginTemplate
:
'Default.html'
,
primaryColor
:
'#
1890FF
'
,
primaryColor
:
'#
0087F7
'
,
navTheme
:
'dark'
,
navTheme
:
'dark'
,
headerPrimaryColor
:
'
#1890FF
'
,
headerPrimaryColor
:
'
linear-gradient(0deg, #0066D6 0%, #39A9FF 100%)
'
,
});
});
}
}
}
else
{
}
else
{
...
@@ -129,9 +137,10 @@ export default props => {
...
@@ -129,9 +137,10 @@ export default props => {
validate
.
topMenu
=
checkedList
.
toString
();
validate
.
topMenu
=
checkedList
.
toString
();
console
.
log
(
validate
);
console
.
log
(
validate
);
if
(
validate
)
{
if
(
validate
)
{
const
colorIndex
=
colorList
.
findIndex
(
item
=>
item
.
color
===
validate
.
primaryColor
);
onOk
({
onOk
({
...
validate
,
...
validate
,
headerPrimaryColor
:
validate
.
primary
Color
,
headerPrimaryColor
:
colorList
[
colorIndex
].
header
Color
,
mode
:
'single'
,
mode
:
'single'
,
menu
:
'banner-left'
,
menu
:
'banner-left'
,
});
});
...
@@ -292,13 +301,7 @@ export default props => {
...
@@ -292,13 +301,7 @@ export default props => {
</div>
</div>
</div>
</div>
</Form.Item> */
}
</Form.Item> */
}
<
Form
.
Item
name
=
"navTheme"
label
=
"菜单"
>
<
Form
.
Item
name
=
"primaryColor"
label
=
"主题色"
>
<
Radio
.
Group
>
<
Radio
value
=
"dark"
>
黑
<
/Radio
>
<
Radio
value
=
"light"
>
白
<
/Radio
>
<
/Radio.Group
>
<
/Form.Item
>
<
Form
.
Item
name
=
"primaryColor"
label
=
"基础"
>
<
Select
placeholder
=
"请选择颜色"
>
<
Select
placeholder
=
"请选择颜色"
>
{
colorList
.
map
(
item
=>
(
{
colorList
.
map
(
item
=>
(
<
Option
value
=
{
item
.
color
}
key
=
{
item
.
color
}
>
<
Option
value
=
{
item
.
color
}
key
=
{
item
.
color
}
>
...
@@ -317,6 +320,12 @@ export default props => {
...
@@ -317,6 +320,12 @@ export default props => {
))}
))}
<
/Select
>
<
/Select
>
<
/Form.Item
>
<
/Form.Item
>
<
Form
.
Item
name
=
"navTheme"
label
=
"菜单"
>
<
Radio
.
Group
>
<
Radio
value
=
"dark"
>
暗
<
/Radio
>
<
Radio
value
=
"light"
>
亮
<
/Radio
>
<
/Radio.Group
>
<
/Form.Item
>
<
Form
.
Item
>
<
Form
.
Item
>
<
Switch
<
Switch
...
...
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