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
ac0d34bb
Commit
ac0d34bb
authored
Nov 28, 2024
by
涂伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://g.civnet.cn:8443/ReactWeb5/maintenance
parents
c480131e
9c0f796d
Pipeline
#94247
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
5 deletions
+37
-5
NodeModal.jsx
...Edit/workFlowComponents/flowChartComponents/NodeModal.jsx
+37
-5
No files found.
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/flowChartComponents/NodeModal.jsx
View file @
ac0d34bb
import
React
,
{
useEffect
,
useState
,
useRef
}
from
'react'
;
import
{
Button
,
Divider
,
Tooltip
,
message
}
from
'antd'
;
import
{
Button
,
Divider
,
Tooltip
,
message
,
Modal
}
from
'antd'
;
import
classNames
from
'classnames'
;
import
ConfigSubprocess
from
'./nodeModalComponents/ConfigSubprocess'
;
...
...
@@ -14,7 +14,10 @@ import ConfigGIS from './nodeModalComponents/ConfigGIS';
import
ConfigAccount
from
'./ConfigAccount'
;
import
ConfigTimeLimit
from
'./nodeModalComponents/ConfigTimeLimit'
;
import
CongfigHeightMsg
from
'./nodeModalComponents/CongfigHeightMsg'
;
import
{
getTableInfo
,
}
from
'@/services/tablemanager/tablemanager'
;
const
{
confirm
}
=
Modal
;
import
styles
from
'./NodeModal.less'
;
const
tabList
=
[
'常用配置'
,
'权限配置'
,
'高级配置'
];
const
NodeModal
=
props
=>
{
...
...
@@ -42,12 +45,40 @@ const NodeModal = props => {
const
refConfigAccount
=
useRef
();
const
refConfigTimeLimit
=
useRef
();
const
refCongfigHeightMsg
=
useRef
();
let
needConfigField
=
useRef
(
false
);
//首节点验证是否配置了处理站点
useEffect
(()
=>
{
console
.
log
(
editMsg
,
afterNodes
,
'editMsgeditMsgeditMsg'
);
setActiveConfig
(
'常用配置'
);
if
(
editMsg
.
NodeType
==
1
){
getVaildField
();
}
},
[
editMsg
]);
const
getVaildField
=
()
=>
{
getTableInfo
({
tableName
:
editMsg
.
TableName
,
isIncludeField
:
true
}).
then
(
res
=>
{
if
(
res
.
data
.
root
&&
res
.
data
.
root
.
length
)
{
const
tableFields
=
res
.
data
.
root
[
0
].
TableFields
||
[];
needConfigField
.
current
=
tableFields
.
some
(
t
=>
t
.
Key
===
'处理站点'
);
}
// eslint-disable-next-line no-lone-blocks
// {
// form.setFieldsValue({ tableStyle: '大' });
// }
});
}
const
onOk
=
()
=>
{
//首节点检查有无配置处【处理站点】
if
(
needConfigField
.
current
&&
!
editMsg
.
Fields
?.
split
(
','
)?.
includes
(
'处理站点'
)){
confirm
({
title
:
'提示'
,
content
:
<>
首节点未配置
<
span
style=
{
{
color
:
'red'
}
}
>
处理站点
</
span
>
,确定继续吗?
</>,
onOk
:
onFinish
})
}
else
{
onFinish
();
}
}
// 提交表单
const
onFinish
=
()
=>
{
// 规则填写校验
...
...
@@ -64,6 +95,7 @@ const NodeModal = props => {
...
refConfigAccount
.
current
?.
getParmar
(),
...
refConfigTimeLimit
.
current
?.
getParmar
(),
};
// 开始中间结束节点才校验表名编辑字段
const
arr
=
[
'0'
,
'1'
,
'2'
];
...
...
@@ -296,7 +328,7 @@ const NodeModal = props => {
</
div
>
</
div
>
<
div
className=
{
styles
.
footer
}
>
<
Button
type=
"primary"
onClick=
{
on
Finish
}
>
<
Button
type=
"primary"
onClick=
{
on
Ok
}
>
确定
</
Button
>
</
div
>
...
...
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