diff --git a/frontend/src/business/components/api/automation/scenario/common/ApiBaseComponent.vue b/frontend/src/business/components/api/automation/scenario/common/ApiBaseComponent.vue index d2a439c0f7..d6b4ebb9fd 100644 --- a/frontend/src/business/components/api/automation/scenario/common/ApiBaseComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/common/ApiBaseComponent.vue @@ -107,7 +107,8 @@ }, methods: { active() { - this.$set(this.data, 'active', !this.data.active); + // 这种写法性能极差,不要再放开了 + //this.$set(this.data, 'active', !this.data.active); this.$emit('active'); }, copyRow() { diff --git a/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue b/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue index abe40bbd6f..6ea4c3543c 100644 --- a/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/component/ApiComponent.vue @@ -3,6 +3,7 @@ v-loading="loading" @copy="copyRow" @remove="remove" + @active="active" :is-show-name-input="!isDeletedOrRef" :data="request" :draggable="true" @@ -95,7 +96,6 @@ if (!this.request.requestResult) { this.request.requestResult = {responseResult: {}}; } - console.log(this.request) // 加载引用对象数据 this.getApiInfo(); if (this.request.protocol === 'HTTP') { diff --git a/frontend/src/business/components/api/automation/scenario/component/ApiScenarioComponent.vue b/frontend/src/business/components/api/automation/scenario/component/ApiScenarioComponent.vue index 8604026beb..ae6690aac9 100644 --- a/frontend/src/business/components/api/automation/scenario/component/ApiScenarioComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/component/ApiScenarioComponent.vue @@ -3,6 +3,7 @@ v-loading="loading" @copy="copyRow" @remove="remove" + @active="active" :data="scenario" :show-collapse="false" :is-show-name-input="!isDeletedOrRef" diff --git a/frontend/src/business/components/api/automation/scenario/component/Jsr233Processor.vue b/frontend/src/business/components/api/automation/scenario/component/Jsr233Processor.vue index 1a5bbd8562..c03c1d7bae 100644 --- a/frontend/src/business/components/api/automation/scenario/component/Jsr233Processor.vue +++ b/frontend/src/business/components/api/automation/scenario/component/Jsr233Processor.vue @@ -2,6 +2,7 @@ diff --git a/frontend/src/business/components/api/automation/scenario/component/LoopController.vue b/frontend/src/business/components/api/automation/scenario/component/LoopController.vue index b376bcb119..be8df59a1e 100644 --- a/frontend/src/business/components/api/automation/scenario/component/LoopController.vue +++ b/frontend/src/business/components/api/automation/scenario/component/LoopController.vue @@ -301,6 +301,7 @@ this.activeName = this.requestResult && this.requestResult.scenarios && this.requestResult.scenarios != null && this.requestResult.scenarios.length > 0 ? this.requestResult.scenarios[0].name : ""; // 把请求结果分给各个请求 this.setResult(this.controller.hashTree); + this.$emit('refReload'); } catch (e) { throw e; } diff --git a/frontend/src/business/components/api/definition/components/assertion/ApiAssertions.vue b/frontend/src/business/components/api/definition/components/assertion/ApiAssertions.vue index 82626640a9..d825f5cb74 100644 --- a/frontend/src/business/components/api/definition/components/assertion/ApiAssertions.vue +++ b/frontend/src/business/components/api/definition/components/assertion/ApiAssertions.vue @@ -131,7 +131,7 @@ }) }, active() { - // item.active = !item.active; + this.assertions.active = !this.assertions.active; this.reload(); }, remove() { diff --git a/frontend/src/business/components/api/definition/components/extract/ApiExtract.vue b/frontend/src/business/components/api/definition/components/extract/ApiExtract.vue index ed83fddc78..d8637ff3e6 100644 --- a/frontend/src/business/components/api/definition/components/extract/ApiExtract.vue +++ b/frontend/src/business/components/api/definition/components/extract/ApiExtract.vue @@ -2,12 +2,13 @@ -
+
{{$t('api_test.request.extract.description')}}
@@ -99,8 +100,8 @@ this.loading = false }) }, - active(item) { - item.active = !item.active; + active() { + this.extract.active = !this.extract.active; this.reload(); }, suggestJsonOpen() { @@ -157,6 +158,10 @@ border-radius: 5px; } + .icon.is-active { + transform: rotate(90deg); + } + /deep/ .el-card__body { padding: 15px; }