rev:流程线变色

This commit is contained in:
2024-07-02 17:19:52 +08:00
parent 0a006bb546
commit ed6ff228d9
2 changed files with 12 additions and 4 deletions

View File

@@ -121,7 +121,7 @@ export default {
strokeWidth: 1 strokeWidth: 1
}, },
polyline: { polyline: {
stroke: '#000000', // stroke: '#000000',
hoverStroke: '#000000', hoverStroke: '#000000',
selectedStroke: '#000000', selectedStroke: '#000000',
outlineColor: '#88f', outlineColor: '#88f',
@@ -178,8 +178,16 @@ export default {
curdExecution.queryHisActivityId(proc_inst_id).then(res => { curdExecution.queryHisActivityId(proc_inst_id).then(res => {
res.forEach((activity_id) => { res.forEach((activity_id) => {
const nodeModel = this.lf.getNodeModelById(activity_id); const nodeModel = this.lf.getNodeModelById(activity_id);
nodeModel.setStyle("stroke", "red") if (nodeModel !== undefined) {
nodeModel.setStyle("stroke-width", "1") nodeModel.setStyle("stroke", "red")
nodeModel.setStyle("stroke-width", "1")
} else {
const edgeModel = this.lf.getEdgeModelById(activity_id);
if (edgeModel !== undefined) {
edgeModel.setStyle("stroke", "red")
edgeModel.setStyle("stroke-width", "1");
}
}
}); });
}) })
}, },

View File

@@ -23,7 +23,7 @@ class SequenceModel extends PolylineEdgeModel {
if (properties.isActived) { if (properties.isActived) {
style.strokeDasharray = "4 4"; style.strokeDasharray = "4 4";
} }
style.stroke = "black"; // style.stroke = "black";
return style; return style;
} }
getTextStyle() { getTextStyle() {