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
3f76e2bb
Commit
3f76e2bb
authored
Sep 23, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '巡检反馈增加分组'
parent
06887645
Pipeline
#60890
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
21 deletions
+54
-21
AddModal.jsx
...s/bsmanager/patrolMaintenance/patrolFeedback/AddModal.jsx
+48
-21
patrolFeedback.jsx
...nager/patrolMaintenance/patrolFeedback/patrolFeedback.jsx
+6
-0
No files found.
src/pages/bsmanager/patrolMaintenance/patrolFeedback/AddModal.jsx
View file @
3f76e2bb
...
...
@@ -112,26 +112,48 @@ const AddModal = props => {
form
.
validateFields
().
then
(
validate
=>
{
if
(
validate
)
{
let
obj
=
form
.
getFieldsValue
();
CM_Feedback_OperatePatrolFeedback
({
...
obj
,
id
:
formObj
.
id
,
}).
then
(
res
=>
{
if
(
res
.
msg
==
''
)
{
form
.
resetFields
();
callBackSubmit
();
notification
.
success
({
message
:
'提示'
,
duration
:
3
,
description
:
type
==
'add'
?
'添加成功'
:
'编辑成功'
,
});
}
else
{
notification
.
error
({
message
:
'提示'
,
duration
:
3
,
description
:
res
.
msg
,
});
}
});
if
(
type
==
'add'
)
{
CM_Feedback_OperatePatrolFeedback
({
...
obj
,
}).
then
(
res
=>
{
if
(
res
.
msg
==
''
)
{
form
.
resetFields
();
callBackSubmit
();
notification
.
success
({
message
:
'提示'
,
duration
:
3
,
description
:
type
==
'add'
?
'添加成功'
:
'编辑成功'
,
});
}
else
{
notification
.
error
({
message
:
'提示'
,
duration
:
3
,
description
:
res
.
msg
,
});
}
});
}
else
{
CM_Feedback_OperatePatrolFeedback
({
...
obj
,
id
:
formObj
.
id
,
}).
then
(
res
=>
{
if
(
res
.
msg
==
''
)
{
form
.
resetFields
();
callBackSubmit
();
notification
.
success
({
message
:
'提示'
,
duration
:
3
,
description
:
type
==
'add'
?
'添加成功'
:
'编辑成功'
,
});
}
else
{
notification
.
error
({
message
:
'提示'
,
duration
:
3
,
description
:
res
.
msg
,
});
}
});
}
}
});
};
...
...
@@ -366,6 +388,11 @@ const AddModal = props => {
<
Input
placeholder=
"巡检对象名称不可重复"
/>
</
Item
>
</
Col
>
<
Col
span=
{
23
}
>
<
Item
label=
"分组"
name=
"groupType"
labelCol=
{
{
span
:
4
}
}
>
<
Input
placeholder=
"请输入分组名称"
/>
</
Item
>
</
Col
>
<
Col
span=
{
23
}
>
<
Item
label=
"GIS图层"
name=
"gisLayer"
labelCol=
{
{
span
:
4
}
}
>
<
Input
placeholder=
"请输入GIS图层"
/>
...
...
@@ -373,7 +400,7 @@ const AddModal = props => {
</
Col
>
<
Col
span=
{
23
}
>
<
Item
label=
"GIS条件"
name=
"gisFilterValue"
labelCol=
{
{
span
:
4
}
}
>
<
Input
placeholder=
"
请输入GIS条件
"
/>
<
Input
placeholder=
"
示例:设备级别 = '小区阀门' (设备级别来自图层表字段)
"
/>
</
Item
>
</
Col
>
<
Col
span=
{
23
}
>
...
...
src/pages/bsmanager/patrolMaintenance/patrolFeedback/patrolFeedback.jsx
View file @
3f76e2bb
...
...
@@ -30,6 +30,12 @@ const patrolFeedback = () => {
key
:
'layerName'
,
align
:
'center'
,
},
{
title
:
'分组'
,
dataIndex
:
'groupType'
,
key
:
'groupType'
,
align
:
'center'
,
},
{
title
:
'GIS图层'
,
dataIndex
:
'gisLayer'
,
...
...
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