refactor(测试计划): 脑图执行用例-修改执行后处理实际结果节点的逻辑
This commit is contained in:
parent
a2cf676081
commit
ca8d95f9a6
|
@ -315,8 +315,8 @@
|
||||||
.arco-select-view-disabled,
|
.arco-select-view-disabled,
|
||||||
.arco-textarea-disabled,
|
.arco-textarea-disabled,
|
||||||
.arco-input-disabled {
|
.arco-input-disabled {
|
||||||
border-color: var(--color-text-n8) !important;
|
border-color: var(--color-text-n9) !important;
|
||||||
background-color: var(--color-text-n8) !important;
|
background-color: var(--color-text-n9) !important;
|
||||||
}
|
}
|
||||||
.arco-textarea-disabled {
|
.arco-textarea-disabled {
|
||||||
.arco-textarea {
|
.arco-textarea {
|
||||||
|
|
|
@ -555,10 +555,15 @@
|
||||||
item.data?.resource?.includes(actualResultTag)
|
item.data?.resource?.includes(actualResultTag)
|
||||||
);
|
);
|
||||||
if (actualResultNode) {
|
if (actualResultNode) {
|
||||||
actualResultNode.setData('text', content ?? '').render();
|
if (content.length) {
|
||||||
} else {
|
actualResultNode.setData('text', content).render();
|
||||||
|
} else {
|
||||||
|
// 删除实际结果节点
|
||||||
|
window.minder.removeNode(actualResultNode);
|
||||||
|
}
|
||||||
|
} else if (content.length) {
|
||||||
actualResultNode = createNode(
|
actualResultNode = createNode(
|
||||||
{ resource: [actualResultTag], text: content ?? '', id: `actualResult-${node.data?.id}` },
|
{ resource: [actualResultTag], text: content, id: `actualResult-${node.data?.id}` },
|
||||||
node
|
node
|
||||||
);
|
);
|
||||||
handleRenderNode(node, [actualResultNode]);
|
handleRenderNode(node, [actualResultNode]);
|
||||||
|
|
Loading…
Reference in New Issue