diff --git a/frontend/src/components/pure/ms-form-table/index.vue b/frontend/src/components/pure/ms-form-table/index.vue
index 5b613153b3..6526ba2d16 100644
--- a/frontend/src/components/pure/ms-form-table/index.vue
+++ b/frontend/src/components/pure/ms-form-table/index.vue
@@ -1,5 +1,5 @@
-
+
handleFormChange(record, rowIndex, item)"
@@ -528,6 +532,11 @@
padding: 0 8px !important;
}
}
+ .arco-table-th {
+ .arco-icon-settings {
+ margin-left: 4px;
+ }
+ }
.arco-table-tr-checked {
.arco-table-td {
background-color: white;
@@ -536,6 +545,22 @@
.arco-scrollbar-track-direction-horizontal {
bottom: -8px;
}
+ .arco-textarea-disabled,
+ .arco-input-disabled,
+ .arco-select-view-disabled {
+ @apply !bg-transparent;
+ .arco-select-view-value {
+ color: var(--color-text-4) !important;
+ }
+ }
+ }
+ .ms-form-table--disabled {
+ :deep(.arco-table-td-content) {
+ span,
+ div {
+ color: var(--color-text-4) !important;
+ }
+ }
}
:deep(.arco-table-content) {
border-top: 1px solid var(--color-text-n8) !important;
diff --git a/frontend/src/components/pure/ms-json-schema/index.vue b/frontend/src/components/pure/ms-json-schema/index.vue
index 855ec21064..e4b108de12 100644
--- a/frontend/src/components/pure/ms-json-schema/index.vue
+++ b/frontend/src/components/pure/ms-json-schema/index.vue
@@ -14,13 +14,14 @@
}"
:table-key="TableKeyEnum.JSON_SCHEMA"
:scroll="{ x: 'max-content' }"
+ :disabled="props.disabled"
show-setting
class="ms-json-schema"
@row-select="handleSelect"
@select-all="handleSelectAll"
>
-
+
{{ t('apiTestDebug.batchAdd') }}
@@ -60,6 +61,7 @@
type="icon"
class="!mr-[4px] !p-[4px]"
size="mini"
+ :disabled="props.disabled"
@click="() => (record.required = !record.required)"
>
-
- quickInputParams(record)" />
+ quickInputParams(record)"
+ />
-
@@ -102,6 +112,7 @@
:min="0"
:precision="0"
size="medium"
+ :disabled="props.disabled"
/>
-
@@ -111,6 +122,7 @@
v-model:model-value="record.minimum"
class="ms-form-table-input-number"
size="medium"
+ :disabled="props.disabled"
/>
-
@@ -128,6 +141,7 @@
v-model:model-value="record.maximum"
class="ms-form-table-input-number"
size="medium"
+ :disabled="props.disabled"
/>
-
@@ -148,6 +163,7 @@
:min="0"
:step="1"
:precision="0"
+ :disabled="props.disabled"
/>
-
@@ -160,6 +176,7 @@
:min="0"
:step="1"
:precision="0"
+ :disabled="props.disabled"
/>
-
@@ -169,6 +186,7 @@
v-model:model-value="record.defaultValue"
class="ms-form-table-input-number"
size="medium"
+ :disabled="props.disabled"
/>
-
@@ -208,9 +229,10 @@
v-else
v-model:model-value="record.enumValues"
:title="t('ms.json.schema.enum')"
- :popover-title="JSON.stringify(record.enumValues.split('\n'))"
+ :popover-title="record.enumValues ? JSON.stringify(record.enumValues.split('\n')) : ''"
class="ms-form-table-input"
type="textarea"
+ :disabled="props.disabled"
>
@@ -221,12 +243,15 @@
-
+
-
+
@@ -269,7 +294,7 @@
:ok-text="t('common.save')"
@confirm="applySetting"
>
-
+
();
const { t } = useI18n();
const defaultItem: JsonSchemaTableItem = {
diff --git a/frontend/src/views/api-test/components/paramTable.vue b/frontend/src/views/api-test/components/paramTable.vue
index cf6b89d11c..70cb04af1f 100644
--- a/frontend/src/views/api-test/components/paramTable.vue
+++ b/frontend/src/views/api-test/components/paramTable.vue
@@ -74,7 +74,13 @@
-
+
{{ t('apiTestDebug.batchAdd') }}
diff --git a/frontend/src/views/api-test/components/requestComposition/body.vue b/frontend/src/views/api-test/components/requestComposition/body.vue
index 284ec81cfb..939bf8d8be 100644
--- a/frontend/src/views/api-test/components/requestComposition/body.vue
+++ b/frontend/src/views/api-test/components/requestComposition/body.vue
@@ -130,6 +130,7 @@
ref="jsonSchemaRef"
v-model:data="innerParams.jsonBody.jsonSchemaTableData"
v-model:selectedKeys="selectedKeys"
+ :disabled="props.disabledExceptParam"
/>
-
+
{{ t('apiTestManagement.autoMake') }}