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
51748078
Commit
51748078
authored
Aug 26, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 表字段字段配置图片配置bug修复'
parent
68cada4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
22 deletions
+24
-22
fieldEditor.jsx
...s/bsmanager/base/tablemanager/filedConfig/fieldEditor.jsx
+24
-22
No files found.
src/pages/bsmanager/base/tablemanager/filedConfig/fieldEditor.jsx
View file @
51748078
...
...
@@ -221,9 +221,9 @@ const AddModal = props => {
break
;
case
'图片'
:
case
'可预览图片'
:
data
[
0
].
Config
=
pramData
.
picture
?
'拍照相册'
:
''
;
//
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
'搜索选择器'
:
...
...
@@ -458,9 +458,9 @@ const AddModal = props => {
break
;
case
'图片'
:
case
'可预览图片'
:
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);
//
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
(
'.'
);
...
...
@@ -1183,9 +1183,9 @@ const AddModal = props => {
break
;
case
'图片'
:
case
'可预览图片'
:
aa
.
Config
===
'拍照相册'
?
(
picture
=
true
)
:
(
picture
=
false
);
//
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
(
'.'
);
...
...
@@ -1532,9 +1532,9 @@ const AddModal = props => {
break
;
case
'图片'
:
case
'可预览图片'
:
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);
//
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
(
'.'
);
...
...
@@ -1867,9 +1867,9 @@ const AddModal = props => {
break
;
case
'图片'
:
case
'可预览图片'
:
data
[
0
].
Config
=
pramData
.
picture
?
'拍照相册'
:
''
;
//
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
'搜索选择器'
:
...
...
@@ -2524,12 +2524,12 @@ const AddModal = props => {
>
允许从相册选取
</
Checkbox
>
{
/*
<Checkbox
<
Checkbox
checked=
{
pramData
.
must
}
onChange=
{
e
=>
onChangeReady
(
e
,
'must'
)
}
>
必填字段
</Checkbox>
*/
}
</
Checkbox
>
</
div
>
</
Item
>
);
...
...
@@ -3012,10 +3012,10 @@ const AddModal = props => {
}
})()
}
{
/* </div> */
}
{
/* {
Shape === '图片' || Shape === '可预览图片' ? (
{
Shape
===
'图片'
||
Shape
===
'可预览图片'
?
(
''
) : (
*/
}
{
/* <Item label="预设值" labelCol={{ span: 4 }}> */
}
)
:
(
<
Item
labelCol=
{
{
span
:
4
}
}
>
{
/* <div className={styles.listEvent}> */
}
<
Row
>
<
Col
span=
{
12
}
>
...
...
@@ -3055,8 +3055,10 @@ const AddModal = props => {
</
Tooltip
>
</
Col
>
</
Row
>
{
/* </Item> */
}
{
/* // )} */
}
</
Item
>
)
}
{
/* <Item label="异常值">
<div className={styles.listEvent}>
<Input
...
...
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