projects/mes-lb #92

Merged
g7hoo merged 6 commits from projects/mes-lb into projects/mes-test 2023-11-17 10:15:37 +08:00
Showing only changes of commit 23c1b4b3c6 - Show all commits

View File

@ -223,12 +223,12 @@ export default {
node.attrs; node.attrs;
console.log('node clicked!', node) console.log('node clicked!', node)
this.currentDet = {}; this.currentDet = {};
this.$set(this.currentDet, 'detId', detId.text); this.$set(this.currentDet, 'detId', detId?.text);
this.$set(this.currentDet, 'sectionId', sectionId.text); this.$set(this.currentDet, 'sectionId', sectionId?.text);
this.$set(this.currentDet, 'detName', detName.text); this.$set(this.currentDet, 'detName', detName?.text);
this.$set(this.currentDet, 'detDesc', detDesc.text); this.$set(this.currentDet, 'detDesc', detDesc?.text);
this.$set(this.currentDet, 'flowId', processId.text); this.$set(this.currentDet, 'flowId', processId?.text);
this.$set(this.currentDet, 'sectionName', sectionName.text); this.$set(this.currentDet, 'sectionName', sectionName?.text);
this.currentNode = node; this.currentNode = node;
}); });
this.graph.on('edge:click', ({ e, x, y, edge, view }) => { this.graph.on('edge:click', ({ e, x, y, edge, view }) => {
@ -257,6 +257,8 @@ export default {
const status = await this.handleDelete(id); const status = await this.handleDelete(id);
if (status) { if (status) {
view.cell.remove(); view.cell.remove();
//
this.handleUpdateLayout();
} }
}) })
.catch((err) => { .catch((err) => {