Commit 5fd356a5 authored by 涂伟's avatar 涂伟

fix: '网关配置参数添加flowId'

parent eb526406
Pipeline #70663 passed with stages
......@@ -9,7 +9,7 @@ const fnList = [
{ label: '是否为工作时间', value: '$fn.isWorkTime()' },
];
const RuleConfig = props => {
const { visible, handleCancel, fieldList, onSubumit, RuleContent, flag } = props;
const { visible, handleCancel, fieldList, onSubumit, RuleContent, flag, flowID } = props;
const [rule, setRule] = useState([]);
const [expandedKey, setExpandedKey] = useState(''); // 默认展开项
const [currentSelectId, setCurrentSelectId] = useState(''); // 选中得节点
......@@ -37,7 +37,7 @@ const RuleConfig = props => {
}, [visible]);
// 保存线配置
const onSave = () => {
RuleValidation({ ruleContent: rule }).then(res => {
RuleValidation({ ruleContent: rule, flowId: flowID }).then(res => {
if (res.data) {
onSubumit(rule);
} else {
......
......@@ -346,6 +346,7 @@ const Confggateway = (props, ref) => {
handleCancel={() => setShowRule(false)}
onSubumit={e => saveRule(e)}
flag={1}
flowID={flowID}
/>
</div>
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment