Commit b1b88379 authored by 邓超's avatar 邓超

fix: 修改颜色

parent 8c231f25
Pipeline #47545 passed with stages
in 6 minutes 41 seconds
......@@ -185,7 +185,7 @@ const FlowChart = props => {
new go.Binding('fill', 'NodeType', v => {
// 普通节点
if (v === '0') {
return '#FAAD14';
return '#DCF2FE';
}
// 开始节点
if (v === '1') {
......@@ -204,7 +204,7 @@ const FlowChart = props => {
go.TextBlock,
{ maxSize: new go.Size(130, NaN), wrap: go.TextBlock.WrapFit },
new go.Binding('text', 'NodeName', v => v.slice(0, 6)),
new go.Binding('stroke', 'NodeType', v => (v === '0' ? '#fff' : '#fff')),
new go.Binding('stroke', 'NodeType', v => (v === '0' ? '#077BD6' : '#fff')),
),
objGo(
go.Picture,
......@@ -413,16 +413,16 @@ const FlowChart = props => {
// 保存流程
const saveFlow = () => {
let diagramObj = JSON.parse(diagram.model.toJson());
let list = isRepeat(diagramObj.nodeDataArray, 'SerialNo');
// let list = isRepeat(diagramObj.nodeDataArray, 'SerialNo');
if (!list) {
notification.error({
message: '提示',
duration: 3,
description: '请检查序号是否重复',
});
return;
}
// if (!list) {
// notification.error({
// message: '提示',
// duration: 3,
// description: '请检查序号是否重复',
// });
// return;
// }
SaveNodeChange({
FlowId: flowID,
DeleteNodes,
......
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