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
c86dec82
Commit
c86dec82
authored
Jul 04, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '巡维保表单验证优化'
parent
8376372b
Pipeline
#54513
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
58 deletions
+20
-58
AddModal.jsx
src/pages/bsmanager/maintenance/AddModal.jsx
+20
-58
No files found.
src/pages/bsmanager/maintenance/AddModal.jsx
View file @
c86dec82
...
@@ -275,10 +275,12 @@ const AddModal = props => {
...
@@ -275,10 +275,12 @@ const AddModal = props => {
const
onOK
=
prop
=>
{
const
onOK
=
prop
=>
{
console
.
log
(
prop
.
isType
);
console
.
log
(
prop
.
isType
);
setIsVisible
(
false
);
setIsVisible
(
false
);
console
.
log
(
props
);
let
inputText
=
{
...
inputValue
};
let
inputText
=
{
...
inputValue
};
inputText
[
prop
.
pickItem
]
=
prop
.
str
;
inputText
[
prop
.
pickItem
]
=
prop
.
str
;
setCheckedList1
(
prop
.
checkedList
);
setCheckedList1
(
prop
.
checkedList
);
setInputValue
(
inputText
);
setInputValue
(
inputText
);
form
.
setFieldsValue
(
inputText
);
};
};
// const title = <ModalDrag title="巡维保计划配置" />
// const title = <ModalDrag title="巡维保计划配置" />
...
@@ -406,23 +408,7 @@ const AddModal = props => {
...
@@ -406,23 +408,7 @@ const AddModal = props => {
</
Col
>
</
Col
>
<
Col
span=
{
23
}
>
<
Col
span=
{
23
}
>
<
Item
<
Item
label=
{
label=
"反馈名称"
<>
<
span
style=
{
{
lineHeight
:
'12px'
,
verticalAlign
:
'middle'
,
color
:
'red'
,
fontSize
:
'16px'
,
marginRight
:
'4px'
,
marginTop
:
'4px'
,
}
}
>
*
</
span
>
<
span
>
反馈名称
</
span
>
</>
}
name=
"feedbackName"
name=
"feedbackName"
labelCol=
{
{
span
:
4
}
}
labelCol=
{
{
span
:
4
}
}
rules=
{
[
rules=
{
[
...
@@ -434,20 +420,16 @@ const AddModal = props => {
...
@@ -434,20 +420,16 @@ const AddModal = props => {
return
Promise
.
resolve
();
return
Promise
.
resolve
();
},
},
},
},
//
{
{
//
required: true,
required
:
true
,
//
message: '请选择反馈名称',
message
:
'请选择反馈名称'
,
//
},
},
]
}
]
}
>
>
<
div
className=
{
styles
.
filed_listItem
}
>
<
div
style=
{
{
display
:
'flex'
}
}
>
<
Input
<
Item
name=
"feedbackName"
style=
{
{
marginBottom
:
0
,
width
:
'100%'
}
}
>
style=
{
{
width
:
'83%'
}
}
<
Input
placeholder=
"请选择反馈名称"
allowClear
/>
placeholder=
"请选择反馈名称"
</
Item
>
onChange=
{
e
=>
changeText
(
e
,
'feedbackName'
)
}
value=
{
inputValue
.
feedbackName
}
allowClear
/>
<
Button
<
Button
type=
"dashed"
type=
"dashed"
onClick=
{
()
=>
pickFiled
(
'feedbackName'
)
}
onClick=
{
()
=>
pickFiled
(
'feedbackName'
)
}
...
@@ -459,23 +441,7 @@ const AddModal = props => {
...
@@ -459,23 +441,7 @@ const AddModal = props => {
</
Col
>
</
Col
>
<
Col
span=
{
23
}
>
<
Col
span=
{
23
}
>
<
Item
<
Item
label=
{
label=
"执行角色"
<>
<
span
style=
{
{
lineHeight
:
'12px'
,
verticalAlign
:
'middle'
,
color
:
'red'
,
fontSize
:
'16px'
,
marginRight
:
'4px'
,
marginTop
:
'4px'
,
}
}
>
*
</
span
>
<
span
>
执行角色
</
span
>
</>
}
name=
"doRole"
name=
"doRole"
labelCol=
{
{
span
:
4
}
}
labelCol=
{
{
span
:
4
}
}
rules=
{
[
rules=
{
[
...
@@ -487,20 +453,16 @@ const AddModal = props => {
...
@@ -487,20 +453,16 @@ const AddModal = props => {
return
Promise
.
resolve
();
return
Promise
.
resolve
();
},
},
},
},
//
{
{
//
required: true,
required
:
true
,
//
message: '请选择执行角色',
message
:
'请选择执行角色'
,
//
},
},
]
}
]
}
>
>
<
div
className=
{
styles
.
filed_listItem
}
>
<
div
style=
{
{
display
:
'flex'
}
}
>
<
Input
<
Item
name=
"doRole"
style=
{
{
marginBottom
:
0
,
width
:
'100%'
}
}
>
style=
{
{
width
:
'83%'
}
}
<
Input
placeholder=
"请选择执行角色"
allowClear
/>
placeholder=
"请选择执行角色"
</
Item
>
onChange=
{
e
=>
changeText
(
e
,
'doRole'
)
}
value=
{
inputValue
.
doRole
}
allowClear
/>
<
Button
<
Button
type=
"dashed"
type=
"dashed"
onClick=
{
()
=>
pickFiled1
(
'doRole'
)
}
onClick=
{
()
=>
pickFiled1
(
'doRole'
)
}
...
...
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