diff --git a/backend/src/main/java/io/metersphere/config/MybatisConfig.java b/backend/src/main/java/io/metersphere/config/MybatisConfig.java index a78dad72a2..6495f83b93 100644 --- a/backend/src/main/java/io/metersphere/config/MybatisConfig.java +++ b/backend/src/main/java/io/metersphere/config/MybatisConfig.java @@ -2,6 +2,7 @@ package io.metersphere.config; import com.github.pagehelper.PageInterceptor; import io.metersphere.base.domain.ApiTestReportDetail; +import io.metersphere.base.domain.AuthSource; import io.metersphere.base.domain.FileContent; import io.metersphere.base.domain.TestResource; import io.metersphere.commons.utils.CompressUtils; @@ -45,6 +46,7 @@ public class MybatisConfig { configList.add(new MybatisInterceptorConfig(FileContent.class, "file", CompressUtils.class, "zip", "unzip")); configList.add(new MybatisInterceptorConfig(ApiTestReportDetail.class, "content", CompressUtils.class, "compress", "decompress")); configList.add(new MybatisInterceptorConfig(TestResource.class, "configuration")); + configList.add(new MybatisInterceptorConfig(AuthSource.class, "configuration")); interceptor.setInterceptorConfigList(configList); return interceptor; } diff --git a/backend/src/main/java/io/metersphere/xpack b/backend/src/main/java/io/metersphere/xpack index bb9c030916..387ca56312 160000 --- a/backend/src/main/java/io/metersphere/xpack +++ b/backend/src/main/java/io/metersphere/xpack @@ -1 +1 @@ -Subproject commit bb9c0309161c91bf7d0a9f85cc44bc0eb0fc11ac +Subproject commit 387ca56312b62ae5edb3d7f34afa08946d86d621 diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index f7fc3ea11a..582b148523 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -143,7 +143,7 @@ highlight-current @node-expand="nodeExpand" @node-collapse="nodeCollapse" - :allow-drop="allowDrop" @node-drag-end="allowDrag" @node-click="nodeClick" v-if="!loading" draggable class="ms-is-leaf"> + :allow-drop="allowDrop" @node-drag-end="allowDrag" @node-click="nodeClick" v-if="!loading" draggable> >> .el-tree-node__expand-icon.expanded { color: #7C3985; } - /deep/ .el-icon-caret-right { + .ms-el-icon-caret-right .el-icon-caret-right { color: #7C3985; } diff --git a/frontend/src/business/components/api/automation/scenario/MsInputTag.vue b/frontend/src/business/components/api/automation/scenario/MsInputTag.vue index c53111a410..ee43a990c8 100644 --- a/frontend/src/business/components/api/automation/scenario/MsInputTag.vue +++ b/frontend/src/business/components/api/automation/scenario/MsInputTag.vue @@ -21,7 +21,7 @@ v-if="!readOnly" class="tag-input el-input" v-model="newTag" - placeholder="$t('commons.tag_tip)" + :placeholder="$t('commons.tag_tip')" @keydown.delete.stop="removeLastTag" @keydown="addNew" @blur="addNew"/> diff --git a/frontend/src/business/components/api/definition/components/debug/DebugDubboPage.vue b/frontend/src/business/components/api/definition/components/debug/DebugDubboPage.vue index e3459af13d..508f84f008 100644 --- a/frontend/src/business/components/api/definition/components/debug/DebugDubboPage.vue +++ b/frontend/src/business/components/api/definition/components/debug/DebugDubboPage.vue @@ -24,7 +24,7 @@
- {{$t('commons.save')}} + {{$t('commons.save')}}
@@ -103,7 +103,10 @@ handleCommand(e) { if (e === "save_as") { this.saveAs(); - } else { + } else if (e === 'save_as_api') { + this.saveAsApi(); + } + else { this.runDebug(); } }, @@ -121,6 +124,11 @@ this.loading = false; this.$refs.debugResult.reload(); }, + saveAsApi() { + let obj = {request: this.request}; + obj.request.id = getUUID(); + this.$emit('saveAs', obj); + }, saveAs() { let obj = {request: this.request}; obj.request.id = getUUID(); diff --git a/frontend/src/business/components/api/definition/components/debug/DebugHttpPage.vue b/frontend/src/business/components/api/definition/components/debug/DebugHttpPage.vue index 67dfb4b088..ce99bcbdcc 100644 --- a/frontend/src/business/components/api/definition/components/debug/DebugHttpPage.vue +++ b/frontend/src/business/components/api/definition/components/debug/DebugHttpPage.vue @@ -39,7 +39,7 @@
- {{$t('commons.save')}} + {{$t('commons.save')}}
@@ -131,7 +131,10 @@ handleCommand(e) { if (e === "save_as") { this.saveAs(); - } else { + } else if (e === 'save_as_api') { + this.saveAsApi(); + } + else { this.runDebug(); } }, @@ -157,6 +160,22 @@ this.loading = false; this.$refs.debugResult.reload(); }, + saveAsApi() { + this.$refs['debugForm'].validate((valid) => { + if (valid) { + this.debugForm.id = null; + this.request.id = getUUID(); + this.debugForm.request = this.request; + this.debugForm.userId = getCurrentUser().id; + this.debugForm.status = "Underway"; + this.debugForm.protocol = this.currentProtocol; + this.$emit('saveAs', this.debugForm); + } + else { + return false; + } + }) + }, saveAs() { this.$refs['debugForm'].validate((valid) => { if (valid) { diff --git a/frontend/src/business/components/api/definition/components/debug/DebugJdbcPage.vue b/frontend/src/business/components/api/definition/components/debug/DebugJdbcPage.vue index ef54ae3535..b1bd7200ab 100644 --- a/frontend/src/business/components/api/definition/components/debug/DebugJdbcPage.vue +++ b/frontend/src/business/components/api/definition/components/debug/DebugJdbcPage.vue @@ -25,7 +25,7 @@
- {{$t('commons.save')}} + {{$t('commons.save')}}
@@ -105,7 +105,10 @@ handleCommand(e) { if (e === "save_as") { this.saveAs(); - } else { + } else if (e === 'save_as_api') { + this.saveAsApi(); + } + else { this.$refs['requestForm'].validate(); } }, @@ -123,6 +126,11 @@ this.loading = false; this.$refs.debugResult.reload(); }, + saveAsApi() { + let obj = {request: this.request}; + obj.request.id = getUUID(); + this.$emit('saveAs', obj); + }, saveAs() { let obj = {request: this.request}; obj.request.id = getUUID(); diff --git a/frontend/src/business/components/api/definition/components/debug/DebugTcpPage.vue b/frontend/src/business/components/api/definition/components/debug/DebugTcpPage.vue index 4396231a90..575df88736 100644 --- a/frontend/src/business/components/api/definition/components/debug/DebugTcpPage.vue +++ b/frontend/src/business/components/api/definition/components/debug/DebugTcpPage.vue @@ -35,7 +35,7 @@
- {{$t('commons.save')}} + {{$t('commons.save')}}
@@ -120,6 +120,8 @@ handleCommand(e) { if (e === "save_as") { this.saveAs(); + } else if (e === 'save_as_api') { + this.saveAsApi(); } else { this.$refs['requestForm'].validate(); } @@ -138,6 +140,11 @@ this.loading = false; this.$refs.debugResult.reload(); }, + saveAsApi() { + let obj = {request: this.request}; + obj.request.id = getUUID(); + this.$emit('saveAs', obj); + }, saveAs() { let obj = {request: this.request}; obj.request.server = this.debugForm.server; diff --git a/frontend/src/business/components/xpack b/frontend/src/business/components/xpack index 3a3363c7d6..2b0af7c05f 160000 --- a/frontend/src/business/components/xpack +++ b/frontend/src/business/components/xpack @@ -1 +1 @@ -Subproject commit 3a3363c7d651f340cc37fca74c1edb92af484915 +Subproject commit 2b0af7c05f8148046fd17e4f2c06129367d69ac9