feat(接口测试): 场景导入、接口列表导入 将复制和引用按钮放到右上角 列表高度放大可以多显示几行数据
--story=1004210 --user=王孝刚 6.场景导入、接口列表导入 将复制和引用按钮放到右上角 列表高度放大可以多显示几行数据 https://www.tapd.cn/55049933/s/1079739
This commit is contained in:
parent
1a20ebac8d
commit
d9abf622c3
|
@ -32,11 +32,11 @@
|
||||||
@isApiListEnableChange="isApiListEnableChange"
|
@isApiListEnableChange="isApiListEnableChange"
|
||||||
ref="apiCaseList"/>
|
ref="apiCaseList"/>
|
||||||
|
|
||||||
<template v-slot:footer>
|
<template v-slot:headerBtn>
|
||||||
<el-button type="primary" @click="copy" :loading="buttonIsWorking" @keydown.enter.native.prevent>
|
<el-button type="primary" @click="copy" :loading="buttonIsWorking" @keydown.enter.native.prevent size="mini">
|
||||||
{{ $t('commons.copy') }}
|
{{ $t('commons.copy') }}
|
||||||
</el-button>
|
</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>
|
@keydown.enter.native.prevent>
|
||||||
{{ $t('api_test.scenario.reference') }}
|
{{ $t('api_test.scenario.reference') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
|
|
|
@ -25,11 +25,11 @@
|
||||||
:custom-num="customNum"
|
:custom-num="customNum"
|
||||||
ref="apiScenarioList"/>
|
ref="apiScenarioList"/>
|
||||||
|
|
||||||
<template v-slot:footer>
|
<template v-slot:headerBtn>
|
||||||
<el-button type="primary" @click="copy" :loading="buttonIsWorking" @keydown.enter.native.prevent>
|
<el-button type="primary" @click="copy" :loading="buttonIsWorking" @keydown.enter.native.prevent size="mini">
|
||||||
{{ $t('commons.copy') }}
|
{{ $t('commons.copy') }}
|
||||||
</el-button>
|
</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') }}
|
{{ $t('api_test.scenario.reference') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -5,7 +5,10 @@
|
||||||
<el-button type="primary" @click="confirm" @keydown.enter.native.prevent :size="btnSize">
|
<el-button type="primary" @click="confirm" @keydown.enter.native.prevent :size="btnSize">
|
||||||
{{ $t('commons.confirm') }}
|
{{ $t('commons.confirm') }}
|
||||||
</el-button>
|
</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>
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -1,6 +1,19 @@
|
||||||
<template>
|
<template>
|
||||||
<relevance-dialog :width="width" :title="dialogTitle" ref="relevanceDialog">
|
<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>
|
<template v-slot:aside>
|
||||||
<select-menu
|
<select-menu
|
||||||
:data="projects"
|
:data="projects"
|
||||||
|
@ -14,25 +27,25 @@
|
||||||
|
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
|
|
||||||
<template v-slot:footer>
|
<!-- <template v-slot:footer>
|
||||||
|
|
||||||
<div v-if="$slots.footer">
|
<div v-if="$slots.footer">
|
||||||
<slot name="footer"></slot>
|
<slot name="footer"></slot>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<div style="margin-bottom: 15px" v-if="flag">
|
<div style="margin-bottom: 15px" v-if="flag">
|
||||||
<el-checkbox v-model="checked">{{ $t('test_track.sync_add_api_load') }}</el-checkbox>
|
<el-checkbox v-model="checked">{{ $t('test_track.sync_add_api_load') }}</el-checkbox>
|
||||||
</div>
|
</div>
|
||||||
<ms-dialog-footer @cancel="close" v-loading="isSaving" @confirm="save"/>
|
<ms-dialog-footer @cancel="close" v-loading="isSaving" @confirm="save"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>-->
|
||||||
|
|
||||||
</relevance-dialog>
|
</relevance-dialog>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import MsDialogFooter from '../../../../../common/components/MsDialogFooter'
|
import MsDialogHeader from '../../../../../common/components/MsDialogHeader'
|
||||||
import SelectMenu from "../../../../common/SelectMenu";
|
import SelectMenu from "../../../../common/SelectMenu";
|
||||||
import RelevanceDialog from "./RelevanceDialog";
|
import RelevanceDialog from "./RelevanceDialog";
|
||||||
import {getCurrentProjectID, getCurrentUserId, getCurrentWorkspaceId} from "@/common/js/utils";
|
import {getCurrentProjectID, getCurrentUserId, getCurrentWorkspaceId} from "@/common/js/utils";
|
||||||
|
@ -42,7 +55,7 @@ import SelectMenu from "../../../../common/SelectMenu";
|
||||||
components: {
|
components: {
|
||||||
RelevanceDialog,
|
RelevanceDialog,
|
||||||
SelectMenu,
|
SelectMenu,
|
||||||
MsDialogFooter,
|
MsDialogHeader,
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue