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
8f9b88c5
Commit
8f9b88c5
authored
2 years ago
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '添加台账添加编辑分组名不能未全部验证'
parent
1e35bbac
Pipeline
#50881
skipped with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
38 deletions
+65
-38
BookConfig.jsx
src/pages/bsmanager/base/standingBook/BookConfig.jsx
+33
-33
AddModal.jsx
src/pages/bsmanager/workOrder/incident/AddModal.jsx
+32
-5
No files found.
src/pages/bsmanager/base/standingBook/BookConfig.jsx
View file @
8f9b88c5
...
...
@@ -50,44 +50,44 @@ const BookConfig = props => {
const
onSubmit
=
()
=>
{
form
.
validateFields
().
then
(
validate
=>
{
if
(
validate
)
{
// let aa = form.getFieldsValue().Name;
// if (keepTableData.find(i => i.name == aa) && aa != formObj.name) {
// notification.warning({
// message: '提示',
// duration: 3,
// description: '台账名称已存在',
// });
// } else {
let
obj
=
type
===
'add'
?
{
...
validate
,
Order
:
maxLength
}
:
{
...
validate
,
Order
,
ID
:
formObj
.
ID
};
GetCMLedger_OperateLedger
(
obj
)
.
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
form
.
resetFields
();
callBackSubmit
();
notification
.
success
({
message
:
'提示'
,
duration
:
3
,
description
:
type
===
'add'
?
'新增成功'
:
'编辑成功'
,
});
}
else
{
let
aa
=
form
.
getFieldsValue
().
Type
;
if
(
aa
==
'全部'
)
{
notification
.
warning
({
message
:
'提示'
,
duration
:
3
,
description
:
'分组名称不能为全部'
,
});
}
else
{
let
obj
=
type
===
'add'
?
{
...
validate
,
Order
:
maxLength
}
:
{
...
validate
,
Order
,
ID
:
formObj
.
ID
};
GetCMLedger_OperateLedger
(
obj
)
.
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
form
.
resetFields
();
callBackSubmit
();
notification
.
success
({
message
:
'提示'
,
duration
:
3
,
description
:
type
===
'add'
?
'新增成功'
:
'编辑成功'
,
});
}
else
{
notification
.
error
({
message
:
'提示'
,
duration
:
3
,
description
:
res
.
msg
,
});
}
})
.
catch
(()
=>
{
notification
.
error
({
message
:
'提示'
,
duration
:
3
,
description
:
res
.
msg
,
description
:
'网络异常请稍后再试'
,
});
}
})
.
catch
(()
=>
{
notification
.
error
({
message
:
'提示'
,
duration
:
3
,
description
:
'网络异常请稍后再试'
,
});
});
// }
}
}
});
};
...
...
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/workOrder/incident/AddModal.jsx
View file @
8f9b88c5
...
...
@@ -1213,9 +1213,11 @@ const AddModal = props => {
return
arrRslt
;
};
const
inputType
=
e
=>
{
setType1
(
e
.
target
.
value
);
form
.
setFieldsValue
({
BusinessType
:
e
.
target
.
value
});
const
inputType
=
value
=>
{
console
.
log
(
value
);
if
(
value
)
{
form
.
setFieldsValue
({
BusinessType
:
value
});
}
};
const
onCancel
=
()
=>
{
setIsVisible
(
false
);
...
...
@@ -1224,6 +1226,13 @@ const AddModal = props => {
setIsVisibleEdit
(
false
);
};
// 搜索框监听
const
onSearch
=
value
=>
{
if
(
value
)
{
form
.
setFieldsValue
({
TableName
:
value
});
}
};
return
(
<
Drawer
title=
{
type
===
'add'
?
'添加事件类型'
:
'编辑事件类型'
}
...
...
@@ -1296,7 +1305,7 @@ const AddModal = props => {
},
]
}
>
<
div
>
{
/*
<div>
<Input
className="ue-editable-select-input"
onChange={inputType}
...
...
@@ -1338,7 +1347,23 @@ const AddModal = props => {
<DownOutlined style={{ fontSize: '12px', color: 'rgba(0, 0, 0, 0.25)' }} />
</div>
</Dropdown>
</
div
>
</div> */
}
<
Select
placeholder=
"选择业务类型"
// onChange={inputType}
onSearch=
{
inputType
}
showSearch
style=
{
{
marginLeft
:
'-3px'
}
}
>
{
treeData
?
treeData
.
map
((
item
,
index
)
=>
(
<
Option
key=
{
index
}
value=
{
item
}
>
{
item
}
</
Option
>
))
:
''
}
</
Select
>
</
Item
>
</
Col
>
<
Col
span=
{
24
}
>
...
...
@@ -1356,6 +1381,8 @@ const AddModal = props => {
<
Select
placeholder=
"选择事件主表"
onChange=
{
changTable
}
onSearch=
{
onSearch
}
showSearch
style=
{
{
marginLeft
:
'-3px'
}
}
>
{
standingTable
...
...
This diff is collapsed.
Click to expand it.
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