diff --git a/frontend/src/business/components/api/automation/scenario/ApiComponent.vue b/frontend/src/business/components/api/automation/scenario/ApiComponent.vue
index e1efdda542..7bac52dada 100644
--- a/frontend/src/business/components/api/automation/scenario/ApiComponent.vue
+++ b/frontend/src/business/components/api/automation/scenario/ApiComponent.vue
@@ -4,6 +4,7 @@
@copy="copyRow"
@remove="remove"
:data="request"
+ :draggable="true"
:color="displayColor.color"
:background-color="displayColor.backgroundColor"
:title="displayTitle">
@@ -48,7 +49,7 @@
{{$t('api_test.definition.request.res_param')}}
-
+
@@ -71,7 +72,6 @@
import MsRun from "../../definition/components/Run";
import {getUUID} from "@/common/js/utils";
import ApiBaseComponent from "./common/ApiBaseComponent";
-
export default {
name: "MsApiComponent",
props: {
@@ -227,7 +227,6 @@
this.loading = true;
this.runData = [];
this.request.useEnvironment = this.currentEnvironmentId;
-
let debugData = {
id: this.currentScenario.id, name: this.currentScenario.name, type: "scenario",
variables: this.currentScenario.variables, referenced: 'Created', enableCookieShare: this.enableCookieShare,
@@ -236,7 +235,6 @@
this.runData.push(debugData);
/*触发执行操作*/
this.reportId = getUUID().substring(0, 8);
-
},
runRefresh(data) {
this.request.requestResult = data;
@@ -253,17 +251,14 @@
diff --git a/frontend/src/business/components/api/automation/scenario/LoopController.vue b/frontend/src/business/components/api/automation/scenario/LoopController.vue
index b01724f5dd..08a84e1fda 100644
--- a/frontend/src/business/components/api/automation/scenario/LoopController.vue
+++ b/frontend/src/business/components/api/automation/scenario/LoopController.vue
@@ -4,6 +4,7 @@
@copy="copyRow"
@remove="remove"
:data="controller"
+ :draggable="true"
color="#015478"
background-color="#E6EEF2"
:title="$t('api_test.automation.loop_controller')">
@@ -15,7 +16,7 @@
-
+
{{$t('loop.loops')}}
@@ -34,7 +35,7 @@
-
+
@@ -52,7 +53,7 @@
-
+
diff --git a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue
index dd63acb6a0..e2d383b5bb 100644
--- a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue
+++ b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue
@@ -1,7 +1,7 @@
-
+
@@ -11,30 +11,29 @@
-
+
- {{ apiCase.id ? apiCase.name : '' }}
-
+ {{ apiCase.id ? apiCase.name : '' }}
+
-
-
- {{ apiCase.createTime | timestampFormatDate }}
- {{ apiCase.createUser }} {{ $t('api_test.definition.request.create_info') }}
-
- {{ apiCase.updateTime | timestampFormatDate }}
- {{ apiCase.updateUser }} {{ $t('api_test.definition.request.update_info') }}
-
+ {{ apiCase.createTime | timestampFormatDate }}
+ {{ apiCase.createUser }} {{ $t('api_test.definition.request.create_info') }}
+
+
+ {{ apiCase.updateTime | timestampFormatDate }}
+ {{ apiCase.updateUser }} {{ $t('api_test.definition.request.update_info') }}
+
diff --git a/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue b/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue
index 3d18694bff..5e9affcd1d 100644
--- a/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue
+++ b/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue
@@ -121,7 +121,7 @@
// testCaseId 不为空则为用例编辑页面
this.testCaseId = testCaseId;
this.condition = {components: API_CASE_CONFIGS};
- this.getApiTest();
+ this.getApiTest(true);
this.visible = true;
},
setEnvironment(environment) {
@@ -145,7 +145,7 @@
this.visible = false;
},
- runRefresh(data) {
+ runRefresh() {
this.batchLoading = false;
this.singleLoading = false;
this.singleRunId = "";
@@ -154,12 +154,12 @@
this.$emit('refresh');
},
- refresh(data) {
+ refresh() {
this.getApiTest();
this.$emit('refresh');
},
- getApiTest() {
+ getApiTest(addCase) {
if (this.api) {
this.condition.projectId = this.projectId;
if (this.isCaseEdit) {
@@ -176,9 +176,9 @@
}
}
this.apiCaseList = response.data;
- // if (this.apiCaseList.length == 0 && !this.loaded) {
- // this.addCase();
- // }
+ if (addCase && this.apiCaseList.length == 0 && !this.loaded) {
+ this.addCase();
+ }
this.apiCaseList.forEach(apiCase => {
if (apiCase.tags && apiCase.tags.length > 0) {
apiCase.tags = JSON.parse(apiCase.tags);
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 c14bbe1bcc..3968774ef6 100644
--- a/frontend/src/business/components/api/definition/components/extract/ApiExtract.vue
+++ b/frontend/src/business/components/api/definition/components/extract/ApiExtract.vue
@@ -46,10 +46,8 @@
import MsApiJsonpathSuggest from "../assertion/ApiJsonpathSuggest";
import {ExtractJSONPath} from "../../../test/model/ScenarioModel";
import ApiBaseComponent from "../../../automation/scenario/common/ApiBaseComponent";
-
export default {
name: "MsApiExtract",
-
components: {
ApiBaseComponent,
MsApiJsonpathSuggest,
@@ -57,7 +55,6 @@
MsApiExtractCommon,
MsApiExtractEdit,
},
-
props: {
extract: {},
response: {},
@@ -71,7 +68,6 @@
default: false
}
},
-
data() {
return {
options: EXTRACT_TYPE,
@@ -80,7 +76,6 @@
loading: false,
}
},
-
methods: {
after() {
this.type = "";
@@ -144,18 +139,15 @@
font-size: 13px;
margin-bottom: 10px;
}
-
.extract-item {
width: 100%;
}
-
.extract-add {
padding: 10px;
border: #DCDFE6 solid 1px;
margin: 5px 0;
border-radius: 5px;
}
-
/deep/ .el-card__body {
padding: 15px;
}
diff --git a/frontend/src/business/components/xpack b/frontend/src/business/components/xpack
index 3d96d7c61b..010ad7a5f0 160000
--- a/frontend/src/business/components/xpack
+++ b/frontend/src/business/components/xpack
@@ -1 +1 @@
-Subproject commit 3d96d7c61bc50f32f18311d23f447663e02d7d44
+Subproject commit 010ad7a5f072a5e9d368c756a2473bbd20781433