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
af0705b6
Commit
af0705b6
authored
Jul 08, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '网站配置新增SaaS配置'
parent
92a4242a
Pipeline
#54897
waiting for manual action with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
58 deletions
+74
-58
fieldEditor.jsx
...s/bsmanager/base/tablemanager/filedConfig/fieldEditor.jsx
+64
-57
siteConfigDrawer.js
...es/productCenter/webConfig/components/siteConfigDrawer.js
+10
-1
No files found.
src/pages/bsmanager/base/tablemanager/filedConfig/fieldEditor.jsx
View file @
af0705b6
...
...
@@ -216,8 +216,9 @@ const AddModal = props => {
break
;
case
'图片'
:
case
'可预览图片'
:
data
[
0
].
Preset
=
pramData
.
picture
?
'拍照相册'
:
''
;
data
[
0
].
ValidationRule
=
pramData
.
must
?
'required'
:
''
;
data
[
0
].
Config
=
pramData
.
picture
?
'拍照相册'
:
''
;
// data[0].Preset = pramData.picture ? '拍照相册' : '';
// data[0].ValidationRule = pramData.must ? 'required' : '';
break
;
case
'平铺值选择器'
:
case
'搜索选择器'
:
...
...
@@ -432,8 +433,9 @@ const AddModal = props => {
break
;
case
'图片'
:
case
'可预览图片'
:
res
[
0
].
data
.
root
.
Preset
===
'拍照相册'
?
(
picture
=
true
)
:
(
picture
=
false
);
res
[
0
].
data
.
root
.
ValidationRule
===
'required'
?
(
must
=
true
)
:
(
must
=
false
);
res
[
0
].
data
.
root
.
Config
===
'拍照相册'
?
(
picture
=
true
)
:
(
picture
=
false
);
// res[0].data.root.Preset === '拍照相册' ? (picture = true) : (picture = false);
// res[0].data.root.ValidationRule === 'required' ? (must = true) : (must = false);
break
;
case
'编码'
:
let
code
=
res
[
0
].
data
.
root
.
Config
.
split
(
'.'
);
...
...
@@ -1042,8 +1044,9 @@ const AddModal = props => {
break
;
case
'图片'
:
case
'可预览图片'
:
aa
.
Preset
===
'拍照相册'
?
(
picture
=
true
)
:
(
picture
=
false
);
aa
.
ValidationRule
===
'required'
?
(
must
=
true
)
:
(
must
=
false
);
aa
.
Config
===
'拍照相册'
?
(
picture
=
true
)
:
(
picture
=
false
);
// aa.Preset === '拍照相册' ? (picture = true) : (picture = false);
// aa.ValidationRule === 'required' ? (must = true) : (must = false);
break
;
case
'编码'
:
let
code
=
aa
.
Config
.
split
(
'.'
);
...
...
@@ -1289,8 +1292,9 @@ const AddModal = props => {
break
;
case
'图片'
:
case
'可预览图片'
:
res
[
0
].
data
.
root
.
Preset
===
'拍照相册'
?
(
picture
=
true
)
:
(
picture
=
false
);
res
[
0
].
data
.
root
.
ValidationRule
===
'required'
?
(
must
=
true
)
:
(
must
=
false
);
res
[
0
].
data
.
root
.
Config
===
'拍照相册'
?
(
picture
=
true
)
:
(
picture
=
false
);
// res[0].data.root.Preset === '拍照相册' ? (picture = true) : (picture = false);
// res[0].data.root.ValidationRule === 'required' ? (must = true) : (must = false);
break
;
case
'编码'
:
let
code
=
res
[
0
].
data
.
root
.
Config
.
split
(
'.'
);
...
...
@@ -1526,8 +1530,9 @@ const AddModal = props => {
break
;
case
'图片'
:
case
'可预览图片'
:
data
[
0
].
Preset
=
pramData
.
picture
?
'拍照相册'
:
''
;
data
[
0
].
ValidationRule
=
pramData
.
must
?
'required'
:
''
;
data
[
0
].
Config
=
pramData
.
picture
?
'拍照相册'
:
''
;
// data[0].Preset = pramData.picture ? '拍照相册' : '';
// data[0].ValidationRule = pramData.must ? 'required' : '';
break
;
case
'平铺值选择器'
:
case
'搜索选择器'
:
...
...
@@ -2108,7 +2113,7 @@ const AddModal = props => {
</>
);
case
'图片'
:
//
case '可预览图片':
case
'可预览图片'
:
return
(
<
Item
name=
"ReadOnly"
label=
"选项"
labelCol=
{
{
span
:
4
}
}
>
<
div
>
...
...
@@ -2118,12 +2123,12 @@ const AddModal = props => {
>
允许从相册选取
</
Checkbox
>
<
Checkbox
{
/*
<Checkbox
checked={pramData.must}
onChange={e => onChangeReady(e, 'must')}
>
必填字段
</
Checkbox
>
</Checkbox>
*/
}
</
div
>
</
Item
>
);
...
...
@@ -2144,7 +2149,7 @@ const AddModal = props => {
<
Item
label=
"字段名"
name=
"fieldName"
labelCol=
{
{
span
:
8
}
}
labelCol=
{
{
span
:
9
}
}
rules=
{
[{
required
:
true
,
message
:
'请输入表名'
}]
}
>
<
Input
placeholder=
"请输入字段名"
/>
...
...
@@ -2170,7 +2175,7 @@ const AddModal = props => {
<
Item
label=
"字段名"
name=
"fieldName"
labelCol=
{
{
span
:
8
}
}
labelCol=
{
{
span
:
7
}
}
rules=
{
[{
required
:
true
,
message
:
'请输入表名'
}]
}
>
<
Input
placeholder=
"请输入字段名"
/>
...
...
@@ -2512,49 +2517,51 @@ const AddModal = props => {
}
})()
}
{
/* </div> */
}
{
Shape
===
'图片'
||
Shape
===
'可预览图片'
?
(
{
/* {
Shape === '图片' || Shape === '可预览图片' ? (
''
)
:
(
<
Item
label=
"预设值"
labelCol=
{
{
span
:
4
}
}
>
{
/* <div className={styles.listEvent}> */
}
<
Row
>
<
Col
span=
{
10
}
>
<
Input
// style=
{{
width
:
'41%',
height
:
'1
.
8
rem
'
}}
value=
{
pramData
.
Preset
}
onChange=
{
e
=>
handleInput
(
e
,
'Preset'
)
}
placeholder=
""
allowClear
/>
</
Col
>
<
Col
span=
{
13
}
>
<
Item
style=
{
{
marginLeft
:
'1rem'
}
}
label=
"验证"
labelCol=
{
{
span
:
8
}
}
name=
"ValidationRule"
>
<
Input
style=
{
{
width
:
'92%'
}
}
placeholder=
""
allowClear
/>
</
Item
>
</
Col
>
<
Col
span=
{
1
}
>
<
Tooltip
title=
"选择验证规则"
>
<
PlusSquareOutlined
onClick=
{
()
=>
{
add
(
'rule'
);
}
}
style=
{
{
fontSize
:
'24px'
,
color
:
'#1890FF'
,
marginTop
:
'8px'
,
marginLeft
:
'-3px'
,
}
}
/>
</
Tooltip
>
</
Col
>
</
Row
>
</
Item
>
)
}
) : ( */
}
{
/* <Item label="预设值" labelCol={{ span: 4 }}> */
}
{
/* <div className={styles.listEvent}> */
}
<
Row
>
<
Col
span=
{
12
}
>
<
Item
label=
"预设值"
labelCol=
{
{
span
:
8
}
}
>
<
Input
// style=
{{
width
:
'41%',
height
:
'1
.
8
rem
'
}}
value=
{
pramData
.
Preset
}
onChange=
{
e
=>
handleInput
(
e
,
'Preset'
)
}
placeholder=
""
allowClear
/>
</
Item
>
</
Col
>
<
Col
span=
{
11
}
>
<
Item
style=
{
{
marginLeft
:
'1rem'
}
}
label=
"验证"
labelCol=
{
{
span
:
7
}
}
name=
"ValidationRule"
>
<
Input
style=
{
{
width
:
'92%'
}
}
placeholder=
""
allowClear
/>
</
Item
>
</
Col
>
<
Col
span=
{
1
}
>
<
Tooltip
title=
"选择验证规则"
>
<
PlusSquareOutlined
onClick=
{
()
=>
{
add
(
'rule'
);
}
}
style=
{
{
fontSize
:
'24px'
,
color
:
'#1890FF'
,
marginTop
:
'8px'
,
marginLeft
:
'-3px'
,
}
}
/>
</
Tooltip
>
</
Col
>
</
Row
>
{
/* </Item> */
}
{
/* // )} */
}
{
/* <Item label="异常值">
<div className={styles.listEvent}>
<Input
...
...
src/pages/productCenter/webConfig/components/siteConfigDrawer.js
View file @
af0705b6
...
...
@@ -91,7 +91,7 @@ export default props => {
form
.
setFieldsValue
({
...
config
,
primaryColor
:
config
.
primaryColor
?
config
.
primaryColor
:
'#0087F7'
,
navTheme
:
config
.
navTheme
?
config
.
navTheme
:
'
light
'
,
navTheme
:
config
.
navTheme
?
config
.
navTheme
:
'
dark
'
,
headerPrimaryColor
:
config
.
headerPrimaryColor
?
config
.
headerPrimaryColor
:
'linear-gradient(0deg, #0066D6 0%, #39A9FF 100%)'
,
...
...
@@ -110,6 +110,7 @@ export default props => {
loginTemplate
:
'Default.html'
,
primaryColor
:
'#0087F7'
,
navTheme
:
'dark'
,
CloudStyle
:
'是'
,
headerPrimaryColor
:
'linear-gradient(0deg, #0066D6 0%, #39A9FF 100%)'
,
});
}
...
...
@@ -341,6 +342,14 @@ export default props => {
/
>
<
/Form.Item
>
<
div
style
=
{{
display
:
showAdvanced
?
'block'
:
'none'
}}
>
<
Form
.
Item
label
=
"SaaS样式"
name
=
"CloudStyle"
>
<
Radio
.
Group
>
<
Radio
value
=
"是"
>
云
<
/Radio
>
<
Radio
value
=
"否"
>
租户
<
/Radio
>
<
/Radio.Group
>
{
/* <br />
<span>说明:用于云平台模式,默认云,选择租户会在SaaS访问情况下,展示租户样式。</span> */
}
<
/Form.Item
>
<
Form
.
Item
name
=
"topMenu"
label
=
"顶部功能"
>
<
Checkbox
indeterminate
=
{
indeterminate
}
...
...
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