@@ -36,6 +36,12 @@ export default {
type: Boolean,
default: false
},
+ appendToBody: {
+ type: Boolean,
+ default() {
+ return false;
+ }
+ },
},
data() {
return {
diff --git a/frontend/src/business/components/api/definition/components/ApiVariableSetting.vue b/frontend/src/business/components/api/definition/components/ApiVariableSetting.vue
index ada7419ec3..669f47e873 100644
--- a/frontend/src/business/components/api/definition/components/ApiVariableSetting.vue
+++ b/frontend/src/business/components/api/definition/components/ApiVariableSetting.vue
@@ -4,6 +4,7 @@
width="30%"
:title="$t('run_mode.other_config')"
:with-footer="false"
+ :append-to-body="appendToBody"
:close-on-click-modal="true">
@@ -34,6 +35,14 @@
data: {}
}
},
+ props:{
+ appendToBody: {
+ type: Boolean,
+ default() {
+ return false;
+ }
+ },
+ },
methods: {
open(item) {
this.visible = true;
diff --git a/frontend/src/business/components/api/definition/components/mock/Components/MockApiBody.vue b/frontend/src/business/components/api/definition/components/mock/Components/MockApiBody.vue
index 62a4e5d49e..b32a044bd7 100644
--- a/frontend/src/business/components/api/definition/components/mock/Components/MockApiBody.vue
+++ b/frontend/src/business/components/api/definition/components/mock/Components/MockApiBody.vue
@@ -30,6 +30,7 @@
:is-read-only="isReadOnly"
:parameters="body.kvs"
:isShowEnable="isShowEnable"
+ :append-dialog-to-body="true"
type="body"/>
diff --git a/frontend/src/business/components/api/definition/components/mock/Components/MockRequestParam.vue b/frontend/src/business/components/api/definition/components/mock/Components/MockRequestParam.vue
index f7a328fb1a..04d680f937 100644
--- a/frontend/src/business/components/api/definition/components/mock/Components/MockRequestParam.vue
+++ b/frontend/src/business/components/api/definition/components/mock/Components/MockRequestParam.vue
@@ -17,7 +17,7 @@
{{ $t("commons.batch_add") }}
-
+
@@ -31,7 +31,7 @@
{{ $t("commons.batch_add") }}
-
+
@@ -47,7 +47,7 @@
{{ $t("commons.batch_add") }}
-
+
diff --git a/frontend/src/business/components/api/definition/components/mock/MockTab.vue b/frontend/src/business/components/api/definition/components/mock/MockTab.vue
index 40c5d88612..07c1f8e5b5 100644
--- a/frontend/src/business/components/api/definition/components/mock/MockTab.vue
+++ b/frontend/src/business/components/api/definition/components/mock/MockTab.vue
@@ -12,6 +12,8 @@
v-loading="result.loading"
:data="mockConfigData.mockExpectConfigList.filter(data=>!tableSearch || data.name.toLowerCase().includes(tableSearch.toLowerCase()))"
:operators="operators"
+ :page-size="pageSize"
+ :showSelectAll="false"
:screen-height="screenHeight"
@row-click="clickRow"
row-key="id"
@@ -93,6 +95,7 @@ export default {
mockConfigData: {},
tableSearch:"",
apiParams: [],
+ pageSize: 10,
screenHeight:document.documentElement.clientHeight - 250,
operators: [
{
diff --git a/frontend/src/business/components/common/components/table/MsTable.vue b/frontend/src/business/components/common/components/table/MsTable.vue
index af3f453a9c..02ca7a06ee 100644
--- a/frontend/src/business/components/common/components/table/MsTable.vue
+++ b/frontend/src/business/components/common/components/table/MsTable.vue
@@ -224,6 +224,8 @@ export default {
rowOrderGroupId: String,
rowOrderFunc: Function
},
+ created() {
+ },
mounted() {
this.setDefaultOrders();
},