Merge branches 'dev' and 'dev_dyd' of https://fcd.gdyditc.com/itc-framework/ma/2024/front into dev_dyd
This commit is contained in:
@ -125,21 +125,28 @@ function setColors(finishedIds: Array<string>, currentIds: Array<string>) {
|
|||||||
const elementRegistry = data.bpmnViewer.get('elementRegistry');
|
const elementRegistry = data.bpmnViewer.get('elementRegistry');
|
||||||
if (finishedIds.length > 0) {
|
if (finishedIds.length > 0) {
|
||||||
finishedIds.forEach((it) => {
|
finishedIds.forEach((it) => {
|
||||||
let Event = elementRegistry.get(it);
|
try {
|
||||||
|
let Event = elementRegistry.get(it);
|
||||||
modeling.setColor(Event, {
|
modeling.setColor(Event, {
|
||||||
stroke: 'green',
|
stroke: 'green',
|
||||||
fill: 'white',
|
fill: 'white',
|
||||||
});
|
});
|
||||||
|
} catch (error) {
|
||||||
|
console.error(`Error setColor element with id ${it}:`, error);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (currentIds.length > 0) {
|
if (currentIds.length > 0) {
|
||||||
currentIds.forEach((it) => {
|
currentIds.forEach((it) => {
|
||||||
let Event = elementRegistry.get(it);
|
try {
|
||||||
modeling.setColor(Event, {
|
let Event = elementRegistry.get(it);
|
||||||
stroke: '#409eff',
|
modeling.setColor(Event, {
|
||||||
fill: 'white',
|
stroke: '#409eff',
|
||||||
});
|
fill: 'white',
|
||||||
|
});
|
||||||
|
} catch (error) {
|
||||||
|
console.error(`Error setColor element with id ${it}:`, error);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user