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
7b9b149b
Commit
7b9b149b
authored
Oct 12, 2023
by
程恺文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
d2979f5c
Pipeline
#79953
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
9 deletions
+21
-9
AddModal.jsx
src/pages/platformCenter/integratedLogin/AddModal.jsx
+7
-7
Master.jsx
src/pages/platformCenter/integratedLogin/Master.jsx
+14
-2
No files found.
src/pages/platformCenter/integratedLogin/AddModal.jsx
View file @
7b9b149b
...
...
@@ -97,7 +97,7 @@ const AddModal = props => {
getMap
();
if
(
type
===
'edit'
)
{
setRadio
(
pickItem
.
target
!=
0
);
setRadio2
(
pickItem
.
controlBar
!=
'hide'
);
//
setRadio2(pickItem.controlBar != 'hide');
setRadio1
(
pickItem
.
isMaster
);
setIdentity
(
pickItem
.
siteType
);
setAccount
(
pickItem
.
accountType
);
...
...
@@ -114,7 +114,7 @@ const AddModal = props => {
subtitle
:
pickItem
.
Subtitle
,
accountType
:
pickItem
.
accountType
,
target
:
pickItem
.
target
!=
0
,
controlBar
:
pickItem
.
controlBar
!=
'hide'
,
//
controlBar:pickItem.controlBar != 'hide',
isMaster
:
pickItem
.
isMaster
,
images
:
pickItem
.
images
,
siteDescription
:
pickItem
.
siteDescription
,
...
...
@@ -173,7 +173,7 @@ const AddModal = props => {
form
.
setFieldsValue
({
accountParamValue
:
'熊猫ticket'
,
target
:
0
,
controlBar
:
true
,
//
controlBar:true,
isMaster
:
false
,
mapSetting
:
''
,
coordinate
:
''
,
...
...
@@ -424,7 +424,7 @@ const AddModal = props => {
accountType: account,
isHide: false,
target: radio ? 1 : 0,
controlBar:radio2?'
dock
':'
hide
',
//
controlBar:radio2?'
dock
':'
hide
',
isMaster: obj.isMaster,
images: dataList,
mapSetting: obj.mapSetting,
...
...
@@ -469,7 +469,7 @@ const AddModal = props => {
iconUrl: obj.iconUrl,
accountType: account,
target: radio ? 1 : 0,
controlBar:radio2?'
dock
':'
hide
',
//
controlBar:radio2?'
dock
':'
hide
',
isMaster: obj.isMaster,
images: dataList,
siteType: obj.siteType,
...
...
@@ -775,9 +775,9 @@ const AddModal = props => {
<
Item
label=
"新标签"
name=
"target"
>
<
Switch
checkedChildren=
"是"
unCheckedChildren=
"否"
checked=
{
radio
}
onChange=
{
onChange
}
/>
</
Item
>
<
Item
label=
"控制台"
name=
"controlBar"
>
{
/*
<Item label="控制台" name="controlBar">
<Switch checkedChildren="停靠" unCheckedChildren="隐藏" checked={radio2} onChange={onChange2} />
</
Item
>
</Item>
*/
}
<
Row
>
<
Col
span=
{
10
}
>
<
Item
...
...
src/pages/platformCenter/integratedLogin/Master.jsx
View file @
7b9b149b
...
...
@@ -16,6 +16,7 @@ import {
Radio
,
AutoComplete
,
InputNumber
,
Switch
}
from
'antd'
;
import
{
AddIntegratedloginSetting
,
...
...
@@ -64,7 +65,7 @@ const Master = props => {
const
[
flag
,
setFlag
]
=
useState
(
0
);
const
[
keepSettings
,
setKeepSettings
]
=
useState
([]);
const
[
isFromLocal
,
setIsFromLocal
]
=
useState
(
false
);
const
[
radio2
,
setRadio2
]
=
useState
();
useEffect
(()
=>
{
if
(
visible
)
{
// 获取城市选择器列表
...
...
@@ -105,6 +106,7 @@ const Master = props => {
primaryColor
:
res
.
data
.
primaryColor
,
displayMode
:
res
.
data
.
displayMode
||
'卡片'
,
// subtitle: res.data.subtitle,
controlBar
:
res
.
data
.
controlBar
!=
'hide'
,
title
:
aa
[
0
],
titlebr
:
aa
[
1
],
loginTemplate
:
res
.
data
.
loginTemplate
,
...
...
@@ -119,6 +121,7 @@ const Master = props => {
}
else
{
setFlag
(
1
);
}
setRadio2
(
res
.
data
.
controlBar
!=
'hide'
);
let
data
=
res
.
data
.
displayMode
||
'卡片'
;
setRadio
(
data
);
setImageUrl
(
window
.
location
.
origin
+
`/
${
res
.
data
.
logo
}
`
);
...
...
@@ -182,6 +185,7 @@ const Master = props => {
title: obj.title,
displayMode: obj.displayMode,
loadingTime: obj.loadingTime,
controlBar: radio2?'
dock
':'
hide
',
mapSettings: obj.displayMode == '
卡片
' ? keepSettings : obj.mapSettings,
qrCodeConfig: obj.qrCodename && obj.qrCodeurl && `${obj.qrCodename}|${obj.qrCodeurl}`,
})
...
...
@@ -274,7 +278,9 @@ const Master = props => {
reader.addEventListener('
load
', () => callback(reader.result));
reader.readAsDataURL(img);
};
const onChange2 = e => {
setRadio2(e);
};
const uploadButton = (
<div>
{loading ? <LoadingOutlined /> : <PlusOutlined />}
...
...
@@ -479,6 +485,12 @@ const Master = props => {
<Radio value="卡片">卡片</Radio>
<Radio value="地图">地图</Radio>
</Radio.Group>
</Item>
<Item label="控制台" name="controlBar">
<Switch checkedChildren="停靠" unCheckedChildren="隐藏" checked={radio2} onChange={onChange2} />
</Item>
{flag == 1 ? (
<Item
...
...
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