diff --git a/frontend/src/components/business/ms-params-input/index.vue b/frontend/src/components/business/ms-params-input/index.vue index 4b844b34ee..2697290ae6 100644 --- a/frontend/src/components/business/ms-params-input/index.vue +++ b/frontend/src/components/business/ms-params-input/index.vue @@ -231,6 +231,11 @@ class="ms-params-input-suffix-icon" @click.stop="openParamSetting" /> + diff --git a/frontend/src/locale/en-US/common.ts b/frontend/src/locale/en-US/common.ts index 54a4ec8d7c..9fa4cefb26 100644 --- a/frontend/src/locale/en-US/common.ts +++ b/frontend/src/locale/en-US/common.ts @@ -202,4 +202,5 @@ export default { 'common.gotIt': 'Got it', 'common.inputPleaseEnterTags': 'Please enter the update tag enter add, not more than 64 characters', 'common.cutSuccess': 'Cut successfully', + 'common.copySuccessToClipboard': 'Copied to clipboard', }; diff --git a/frontend/src/locale/zh-CN/common.ts b/frontend/src/locale/zh-CN/common.ts index d6d1d910f5..181180afcc 100644 --- a/frontend/src/locale/zh-CN/common.ts +++ b/frontend/src/locale/zh-CN/common.ts @@ -201,4 +201,5 @@ export default { 'common.gotIt': '知道了', 'common.inputPleaseEnterTags': '请输入更新标签回车添加,不得超过64字符', 'common.cutSuccess': '剪切成功', + 'common.copySuccessToClipboard': '已复制到剪切板', }; diff --git a/frontend/src/views/api-test/components/condition/content.vue b/frontend/src/views/api-test/components/condition/content.vue index eed92ce008..deecca2579 100644 --- a/frontend/src/views/api-test/components/condition/content.vue +++ b/frontend/src/views/api-test/components/condition/content.vue @@ -237,6 +237,7 @@ required: false, }" :selectable="false" + :show-quick-copy="props.showQuickCopy" @change="() => emit('change')" /> @@ -378,6 +380,7 @@ :selectable="false" :scroll="{ x: '700px' }" :response="props.response" + :show-quick-copy="props.showQuickCopy" @change="handleExtractParamTableChange" @more-action-select="(e,r)=> handleExtractParamMoreActionSelect(e,r as ExpressionConfig)" > @@ -537,6 +540,7 @@ totalList?: ExecuteConditionProcessor[]; // 总列表 sqlCodeEditorHeight?: string; // sql脚本编辑器高度 scriptCodeEditorHeight?: string; // 脚本的高度 + showQuickCopy?: boolean; // 显示快捷复制icon }>(), { showAssociatedScene: false, diff --git a/frontend/src/views/api-test/components/condition/index.vue b/frontend/src/views/api-test/components/condition/index.vue index c732f1065f..1f84e31dae 100644 --- a/frontend/src/views/api-test/components/condition/index.vue +++ b/frontend/src/views/api-test/components/condition/index.vue @@ -43,6 +43,7 @@ :show-pre-post-request="props.showPrePostRequest" :request-radio-text-props="props.requestRadioTextProps" :sql-code-editor-height="props.sqlCodeEditorHeight" + :show-quick-copy="props.showQuickCopy" @copy="copyListItem" @delete="deleteListItem" @change="changeHandler" @@ -73,6 +74,7 @@ showAssociatedScene?: boolean; showPrePostRequest?: boolean; // 是否展示前后置请求忽略选项 sqlCodeEditorHeight?: string; + showQuickCopy?: boolean; // 显示快捷复制icon }>(), { showAssociatedScene: false, diff --git a/frontend/src/views/api-test/components/paramTable.vue b/frontend/src/views/api-test/components/paramTable.vue index ebda5546e0..479f1d78d4 100644 --- a/frontend/src/views/api-test/components/paramTable.vue +++ b/frontend/src/views/api-test/components/paramTable.vue @@ -124,9 +124,17 @@ v-model:model-value="record[columnConfig.dataIndex as string]" :disabled="props.disabledExceptParam || columnConfig.disabledColumn" :placeholder="t('apiTestDebug.commonPlaceholder')" - class="ms-form-table-input ms-form-table-input--hasPlaceholder" + class="ms-form-table-input ms-params-input ms-form-table-input--hasPlaceholder" @input="() => addTableLine(rowIndex, columnConfig.addLineDisabled)" - /> + > + + @@ -268,8 +284,8 @@ v-model:value="record.value" :disabled="props.disabledParamValue" @change="() => addTableLine(rowIndex, columnConfig.addLineDisabled)" - @dblclick="() => quickInputParams(record)" @apply="() => addTableLine(rowIndex, columnConfig.addLineDisabled)" + @set-params="() => quickInputParams(record)" /> @@ -588,7 +604,8 @@