diff --git a/api-test/frontend/package.json b/api-test/frontend/package.json index 0b155de161..77013d1930 100644 --- a/api-test/frontend/package.json +++ b/api-test/frontend/package.json @@ -17,7 +17,7 @@ "@fortawesome/free-regular-svg-icons": "^5.12.0", "@fortawesome/free-solid-svg-icons": "^5.12.0", "@fortawesome/vue-fontawesome": "^0.1.9", - "@ba1q1/vue-easy-tree": "^1.0.4", + "@ba1q1/vue-easy-tree": "^1.1.0", "axios": "^0.27.2", "diffable-html": "^4.0.0", "echarts": "^5.0.2", diff --git a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue index 7f7986f0ef..2336f73c89 100644 --- a/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue +++ b/api-test/frontend/src/business/automation/scenario/EditApiScenario.vue @@ -87,26 +87,26 @@
- - - - - - - -
+ + + + + + + +
{{ $t('api_test.automation.step_total') }}:{{ scenarioDefinition.length }}
+ class="ml-10" /> -
- - +
+ + + - - - - + v-show="!node.expanded" + class="el-icon-circle-plus-outline custom-node_e" + @click="openOrClose(node, data)" /> - - - - - - - - - -
+ v-show="node.expanded" + class="el-icon-remove-outline custom-node_e" + @click="openOrClose(node, data)" /> + + + + + + + + + +
+
+
- - - +
{ - if (item.data && item.data.id + '_' + item.data.parentIndex === sub.resourceId - && item.data.requestResult.length === 0) { + if ( + item.data && + item.data.id + '_' + item.data.parentIndex === sub.resourceId && + item.data.requestResult.length === 0 + ) { sub.responseResult.console = console; item.data.requestResult.push(sub); // 更新父节点状态 @@ -1767,7 +1765,7 @@ export default { this.clearResult(this.scenarioDefinition); this.clearNodeStatus(this.$refs.stepTree.root.childNodes); runScenario.run = false; - this.message = "STOP"; + this.message = 'STOP'; return; } let hasRequest = runScenario && runScenario.hasRequest;