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