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
a30dedd7
Commit
a30dedd7
authored
Jan 20, 2021
by
Maofei94
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 删除503
parent
1dea9961
Pipeline
#22697
passed with stages
in 17 minutes 13 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
0 deletions
+39
-0
index.js
src/pages/mobileConfig/index.js
+4
-0
webConfigForm.js
src/pages/webConfig/components/webConfigForm.js
+13
-0
utils.js
src/pages/webConfig/utils.js
+22
-0
No files found.
src/pages/mobileConfig/index.js
View file @
a30dedd7
...
@@ -143,8 +143,12 @@ const MobileConfigPage = props => {
...
@@ -143,8 +143,12 @@ const MobileConfigPage = props => {
setLoading
(
false
);
setLoading
(
false
);
if
(
res
.
success
)
{
if
(
res
.
success
)
{
setMiniTitle
(
''
);
setMiniTitle
(
''
);
setTimeout
(()
=>
{
setFlag
(
flag
+
1
);
setFlag
(
flag
+
1
);
},
500
);
setTimeout
(()
=>
{
deleteMiniMenu
({
visible
:
val
});
deleteMiniMenu
({
visible
:
val
});
},
1500
);
notification
.
success
({
notification
.
success
({
message
:
'提示'
,
message
:
'提示'
,
duration
:
3
,
duration
:
3
,
...
...
src/pages/webConfig/components/webConfigForm.js
View file @
a30dedd7
...
@@ -4,6 +4,7 @@ import {
...
@@ -4,6 +4,7 @@ import {
getLoginPage
,
getLoginPage
,
getMapCofigs
,
getMapCofigs
,
getWebThemes
,
getWebThemes
,
getProductList
,
}
from
'@/services/webConfig/api'
;
}
from
'@/services/webConfig/api'
;
import
{
Row
,
Col
}
from
'antd'
;
import
{
Row
,
Col
}
from
'antd'
;
import
{
getDefaultGetWebconfig
,
singleStyleData
,
webMode
}
from
'../utils'
;
import
{
getDefaultGetWebconfig
,
singleStyleData
,
webMode
}
from
'../utils'
;
...
@@ -21,6 +22,7 @@ const WebConfigForm = props => {
...
@@ -21,6 +22,7 @@ const WebConfigForm = props => {
const
[
webThemes
,
setWebThemes
]
=
useState
([]);
const
[
webThemes
,
setWebThemes
]
=
useState
([]);
const
[
mapConfigs
,
setMapConfigs
]
=
useState
([]);
const
[
mapConfigs
,
setMapConfigs
]
=
useState
([]);
const
[
loginPages
,
setLoginPages
]
=
useState
([]);
const
[
loginPages
,
setLoginPages
]
=
useState
([]);
const
[
products
,
setProducts
]
=
useState
([]);
const
[
form
,
setForm
]
=
useState
(
null
);
const
[
form
,
setForm
]
=
useState
(
null
);
const
getForm
=
f
=>
{
const
getForm
=
f
=>
{
...
@@ -50,6 +52,15 @@ const WebConfigForm = props => {
...
@@ -50,6 +52,15 @@ const WebConfigForm = props => {
getMapCofigs
().
then
(
res
=>
setMapConfigs
(
res
));
getMapCofigs
().
then
(
res
=>
setMapConfigs
(
res
));
}
}
};
};
const
onGetProduct
=
()
=>
{
if
(
products
.
length
===
0
)
{
getProductList
().
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
setProducts
(
res
.
data
);
}
});
}
};
const
itemsMap
=
getDefaultGetWebconfig
({
const
itemsMap
=
getDefaultGetWebconfig
({
initialValues
:
config
,
initialValues
:
config
,
...
@@ -61,6 +72,8 @@ const WebConfigForm = props => {
...
@@ -61,6 +72,8 @@ const WebConfigForm = props => {
mapConfigs
,
mapConfigs
,
onGetLoginPages
,
onGetLoginPages
,
onGetMapConfig
,
onGetMapConfig
,
products
,
onGetProduct
,
isEdit
,
isEdit
,
});
});
...
...
src/pages/webConfig/utils.js
View file @
a30dedd7
...
@@ -80,6 +80,8 @@ export const getDefaultGetWebconfig = ({
...
@@ -80,6 +80,8 @@ export const getDefaultGetWebconfig = ({
onGetLoginPages
,
onGetLoginPages
,
mapConfigs
,
mapConfigs
,
onGetMapConfig
,
onGetMapConfig
,
products
,
onGetProduct
,
isEdit
,
isEdit
,
})
=>
{
})
=>
{
const
config
=
{
const
config
=
{
...
@@ -183,6 +185,26 @@ export const getDefaultGetWebconfig = ({
...
@@ -183,6 +185,26 @@ export const getDefaultGetWebconfig = ({
},
},
],
],
},
},
product
:
{
label
:
'产品类型'
,
formType
:
ITEM_TYPE
.
SELECT
,
placeholder
:
'请选择产品类型'
,
options
:
products
.
map
(
t
=>
({
value
:
t
.
ProductName
,
children
:
t
.
ProductName
,
key
:
t
.
Id
,
})),
onDropdownVisibleChange
:
onGetProduct
,
showSearch
:
true
,
filterOption
:
(
input
,
option
)
=>
option
.
children
.
toLowerCase
().
indexOf
(
input
.
toLowerCase
())
>=
0
,
rules
:
[
{
required
:
false
,
message
:
'产品类型必填'
,
},
],
},
theme
:
{
theme
:
{
label
:
'系统皮肤'
,
label
:
'系统皮肤'
,
formType
:
ITEM_TYPE
.
SELECT
,
formType
:
ITEM_TYPE
.
SELECT
,
...
...
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