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

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

parent eb526406
Pipeline #70663 passed with stages
...@@ -9,7 +9,7 @@ const fnList = [ ...@@ -9,7 +9,7 @@ const fnList = [
{ label: '是否为工作时间', value: '$fn.isWorkTime()' }, { label: '是否为工作时间', value: '$fn.isWorkTime()' },
]; ];
const RuleConfig = props => { 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 [rule, setRule] = useState([]);
const [expandedKey, setExpandedKey] = useState(''); // 默认展开项 const [expandedKey, setExpandedKey] = useState(''); // 默认展开项
const [currentSelectId, setCurrentSelectId] = useState(''); // 选中得节点 const [currentSelectId, setCurrentSelectId] = useState(''); // 选中得节点
...@@ -37,7 +37,7 @@ const RuleConfig = props => { ...@@ -37,7 +37,7 @@ const RuleConfig = props => {
}, [visible]); }, [visible]);
// 保存线配置 // 保存线配置
const onSave = () => { const onSave = () => {
RuleValidation({ ruleContent: rule }).then(res => { RuleValidation({ ruleContent: rule, flowId: flowID }).then(res => {
if (res.data) { if (res.data) {
onSubumit(rule); onSubumit(rule);
} else { } else {
......
...@@ -346,6 +346,7 @@ const Confggateway = (props, ref) => { ...@@ -346,6 +346,7 @@ const Confggateway = (props, ref) => {
handleCancel={() => setShowRule(false)} handleCancel={() => setShowRule(false)}
onSubumit={e => saveRule(e)} onSubumit={e => saveRule(e)}
flag={1} flag={1}
flowID={flowID}
/> />
</div> </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