feat(接口测试): 场景导入、接口列表导入 将复制和引用按钮放到右上角 列表高度放大可以多显示几行数据

--story=1004210 --user=王孝刚 6.场景导入、接口列表导入 将复制和引用按钮放到右上角 列表高度放大可以多显示几行数据
https://www.tapd.cn/55049933/s/1079739
This commit is contained in:
wxg0103 2021-12-10 16:26:55 +08:00 committed by 刘瑞斌
parent 1a20ebac8d
commit d9abf622c3
4 changed files with 36 additions and 20 deletions

View File

@ -32,11 +32,11 @@
@isApiListEnableChange="isApiListEnableChange"
ref="apiCaseList"/>
<template v-slot:footer>
<el-button type="primary" @click="copy" :loading="buttonIsWorking" @keydown.enter.native.prevent>
<template v-slot:headerBtn>
<el-button type="primary" @click="copy" :loading="buttonIsWorking" @keydown.enter.native.prevent size="mini">
{{ $t('commons.copy') }}
</el-button>
<el-button v-if="!isApiListEnable" type="primary" :loading="buttonIsWorking" @click="reference"
<el-button v-if="!isApiListEnable" type="primary" :loading="buttonIsWorking" @click="reference" size="mini"
@keydown.enter.native.prevent>
{{ $t('api_test.scenario.reference') }}
</el-button>

View File

@ -25,11 +25,11 @@
:custom-num="customNum"
ref="apiScenarioList"/>
<template v-slot:footer>
<el-button type="primary" @click="copy" :loading="buttonIsWorking" @keydown.enter.native.prevent>
<template v-slot:headerBtn>
<el-button type="primary" @click="copy" :loading="buttonIsWorking" @keydown.enter.native.prevent size="mini">
{{ $t('commons.copy') }}
</el-button>
<el-button type="primary" @click="reference" :loading="buttonIsWorking" @keydown.enter.native.prevent>
<el-button type="primary" @click="reference" :loading="buttonIsWorking" @keydown.enter.native.prevent size="mini">
{{ $t('api_test.scenario.reference') }}
</el-button>
</template>

View File

@ -5,7 +5,10 @@
<el-button type="primary" @click="confirm" @keydown.enter.native.prevent :size="btnSize">
{{ $t('commons.confirm') }}
</el-button>
<el-button type="primary" v-if="isShow" @click="saveAsEdit" @keydown.enter.native.prevent>{{ title }}</el-button>
<el-button type="primary" v-if="isShow" @click="saveAsEdit" @keydown.enter.native.prevent :size="btnSize">{{
title
}}
</el-button>
</div>
</template>

View File

@ -1,6 +1,19 @@
<template>
<relevance-dialog :width="width" :title="dialogTitle" ref="relevanceDialog">
<template v-slot:headerBtn>
<div v-if="$slots.headerBtn">
<slot name="headerBtn"></slot>
</div>
<div v-else>
<div style="margin-bottom: 5px" v-if="flag">
<el-checkbox v-model="checked">{{ $t('test_track.sync_add_api_load') }}</el-checkbox>
</div>
<ms-dialog-header @cancel="close" v-loading="isSaving" @confirm="save"/>
</div>
</template>
<template v-slot:aside>
<select-menu
:data="projects"
@ -14,25 +27,25 @@
<slot></slot>
<template v-slot:footer>
<!-- <template v-slot:footer>
<div v-if="$slots.footer">
<slot name="footer"></slot>
</div>
<div v-else>
<div style="margin-bottom: 15px" v-if="flag">
<el-checkbox v-model="checked">{{ $t('test_track.sync_add_api_load') }}</el-checkbox>
</div>
<ms-dialog-footer @cancel="close" v-loading="isSaving" @confirm="save"/>
</div>
</template>
<div v-if="$slots.footer">
<slot name="footer"></slot>
</div>
<div v-else>
<div style="margin-bottom: 15px" v-if="flag">
<el-checkbox v-model="checked">{{ $t('test_track.sync_add_api_load') }}</el-checkbox>
</div>
<ms-dialog-footer @cancel="close" v-loading="isSaving" @confirm="save"/>
</div>
</template>-->
</relevance-dialog>
</template>
<script>
import MsDialogFooter from '../../../../../common/components/MsDialogFooter'
import MsDialogHeader from '../../../../../common/components/MsDialogHeader'
import SelectMenu from "../../../../common/SelectMenu";
import RelevanceDialog from "./RelevanceDialog";
import {getCurrentProjectID, getCurrentUserId, getCurrentWorkspaceId} from "@/common/js/utils";
@ -42,7 +55,7 @@ import SelectMenu from "../../../../common/SelectMenu";
components: {
RelevanceDialog,
SelectMenu,
MsDialogFooter,
MsDialogHeader,
},
data() {
return {