style(接口自动化): 接口导入界面显示问题修复
This commit is contained in:
parent
d203b6cb8e
commit
5297c0aba3
|
@ -67,7 +67,7 @@
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
width="120px"
|
width="120px"
|
||||||
:key="index">
|
:key="index">
|
||||||
<template v-slot:default="scope" class="request-method">
|
<template v-slot:default="scope">
|
||||||
<el-tag size="mini"
|
<el-tag size="mini"
|
||||||
:style="{'background-color': getColor(true, scope.row.method), border: getColor(true, scope.row.method)}"
|
:style="{'background-color': getColor(true, scope.row.method), border: getColor(true, scope.row.method)}"
|
||||||
class="api-el-tag">
|
class="api-el-tag">
|
||||||
|
@ -144,68 +144,7 @@
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
:key="index"/>
|
:key="index"/>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
</ms-table>
|
</ms-table>
|
||||||
<!-- <el-table v-loading="result.loading"-->
|
|
||||||
<!-- border-->
|
|
||||||
<!-- :data="tableData" row-key="id" class="test-content adjust-table"-->
|
|
||||||
<!-- @select-all="handleSelectAll"-->
|
|
||||||
<!-- @select="handleSelect" ref="table">-->
|
|
||||||
<!-- <el-table-column reserve-selection type="selection"/>-->
|
|
||||||
|
|
||||||
<!-- <el-table-column prop="name" :label="$t('api_test.definition.api_name')" show-overflow-tooltip/>-->
|
|
||||||
|
|
||||||
<!-- <el-table-column-->
|
|
||||||
<!-- prop="status"-->
|
|
||||||
<!-- column-key="api_status"-->
|
|
||||||
<!-- :label="$t('api_test.definition.api_status')"-->
|
|
||||||
<!-- show-overflow-tooltip>-->
|
|
||||||
<!-- <template v-slot:default="scope">-->
|
|
||||||
<!-- <ms-tag v-if="scope.row.status == 'Prepare'" type="info" effect="plain" :content="$t('test_track.plan.plan_status_prepare')"/>-->
|
|
||||||
<!-- <ms-tag v-if="scope.row.status == 'Underway'" type="warning" effect="plain" :content="$t('test_track.plan.plan_status_running')"/>-->
|
|
||||||
<!-- <ms-tag v-if="scope.row.status == 'Completed'" type="success" effect="plain" :content="$t('test_track.plan.plan_status_completed')"/>-->
|
|
||||||
<!-- <ms-tag v-if="scope.row.status == 'Trash'" type="danger" effect="plain" :content="$t('test_track.plan.plan_status_trash')"/>-->
|
|
||||||
<!-- </template>-->
|
|
||||||
<!-- </el-table-column>-->
|
|
||||||
|
|
||||||
<!-- <el-table-column-->
|
|
||||||
<!-- prop="method"-->
|
|
||||||
<!-- :label="$t('api_test.definition.api_type')"-->
|
|
||||||
<!-- show-overflow-tooltip>-->
|
|
||||||
<!-- <template v-slot:default="scope" class="request-method">-->
|
|
||||||
<!-- <el-tag size="mini" :style="{'background-color': getColor(scope.row.method), border: getColor(true, scope.row.method)}" class="api-el-tag">-->
|
|
||||||
<!-- {{ scope.row.method }}-->
|
|
||||||
<!-- </el-tag>-->
|
|
||||||
<!-- </template>-->
|
|
||||||
<!-- </el-table-column>-->
|
|
||||||
|
|
||||||
<!-- <el-table-column-->
|
|
||||||
<!-- prop="path"-->
|
|
||||||
<!-- :label="$t('api_test.definition.api_path')"-->
|
|
||||||
<!-- show-overflow-tooltip/>-->
|
|
||||||
|
|
||||||
<!-- <el-table-column width="160" :label="$t('api_test.definition.api_last_time')" prop="updateTime">-->
|
|
||||||
<!-- <template v-slot:default="scope">-->
|
|
||||||
<!-- <span>{{ scope.row.updateTime | timestampFormatDate }}</span>-->
|
|
||||||
<!-- </template>-->
|
|
||||||
<!-- </el-table-column>-->
|
|
||||||
|
|
||||||
<!-- <el-table-column-->
|
|
||||||
<!-- prop="caseTotal"-->
|
|
||||||
<!-- :label="$t('api_test.definition.api_case_number')"-->
|
|
||||||
<!-- show-overflow-tooltip/>-->
|
|
||||||
|
|
||||||
<!-- <el-table-column-->
|
|
||||||
<!-- prop="caseStatus"-->
|
|
||||||
<!-- :label="$t('api_test.definition.api_case_status')"-->
|
|
||||||
<!-- show-overflow-tooltip/>-->
|
|
||||||
|
|
||||||
<!-- <el-table-column-->
|
|
||||||
<!-- prop="casePassingRate"-->
|
|
||||||
<!-- :label="$t('api_test.definition.api_case_passing_rate')"-->
|
|
||||||
<!-- show-overflow-tooltip/>-->
|
|
||||||
<!-- </el-table>-->
|
|
||||||
<ms-table-pagination :change="initTable" :current-page.sync="currentPage" :page-size.sync="pageSize"
|
<ms-table-pagination :change="initTable" :current-page.sync="currentPage" :page-size.sync="pageSize"
|
||||||
:total="total"/>
|
:total="total"/>
|
||||||
</api-list-container>
|
</api-list-container>
|
||||||
|
@ -407,7 +346,7 @@ export default {
|
||||||
buildPagePath(path) {
|
buildPagePath(path) {
|
||||||
return path + "/" + this.currentPage + "/" + this.pageSize;
|
return path + "/" + this.currentPage + "/" + this.pageSize;
|
||||||
},
|
},
|
||||||
getColor(method) {
|
getColor(flag, method) {
|
||||||
return this.methodColorMap.get(method);
|
return this.methodColorMap.get(method);
|
||||||
},
|
},
|
||||||
setEnvironment(data) {
|
setEnvironment(data) {
|
||||||
|
|
Loading…
Reference in New Issue