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
a9ba22cf
Commit
a9ba22cf
authored
Dec 14, 2023
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '维保模板增加SQL过滤'
parent
55f5a357
Pipeline
#83079
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
26 deletions
+27
-26
AddModalNew.jsx
...s/bsmanager/patrolMaintenance/maintenance/AddModalNew.jsx
+27
-26
No files found.
src/pages/bsmanager/patrolMaintenance/maintenance/AddModalNew.jsx
View file @
a9ba22cf
...
...
@@ -1212,6 +1212,32 @@ const AddModal = props => {
</
TreeSelect
>
</
Item
>
</
Col
>
<
Col
span=
{
24
}
>
<
Item
label=
"设备条件"
name=
"filterCondition"
labelCol=
{
{
span
:
5
}
}
rules=
{
[
{
validator
:
(
rule
,
value
)
=>
{
let
filterValue
=
form
.
getFieldsValue
().
filterCondition
;
if
(
filterValue
)
{
if
(
filterValue
.
substring
(
0
,
3
)
!==
'and'
&&
filterValue
.
substring
(
0
,
3
)
!==
'AND'
)
{
return
Promise
.
reject
(
'请以and开头'
);
}
return
Promise
.
resolve
();
}
return
Promise
.
resolve
();
},
},
]
}
>
<
Input
placeholder=
"例如:and 泵房品牌='熊猫'(SQL表达式)"
/>
</
Item
>
</
Col
>
{
form
.
getFieldsValue
().
accountName
?
(
<
Col
span=
{
24
}
>
<
Item
...
...
@@ -1479,32 +1505,7 @@ const AddModal = props => {
/>
</Item>
</Col>
<Col span={24}>
<Item
label="SQL过滤"
name="filterCondition"
labelCol={{ span: 5 }}
rules={[
{
validator: (rule, value) => {
let filterValue = form.getFieldsValue().filterCondition;
if (filterValue) {
if (
filterValue.substring(0, 3) !== 'and' &&
filterValue.substring(0, 3) !== 'AND'
) {
return Promise.reject('请以and开头');
}
return Promise.resolve();
}
return Promise.resolve();
},
},
]}
>
<Input placeholder="例如:and 泵房品牌='熊猫'(SQL表达式)" />
</Item>
</Col> */
}
*/
}
<
Col
span=
{
24
}
>
<
div
className=
{
styles
.
titleIcon
}
>
<
div
className=
{
styles
.
icon
}
/>
...
...
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