fix(通用功能): 修复环境列表搜索条件不满足时的显示问题

--bug=1021615 --user=郭雨琦
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001021615
This commit is contained in:
guoyuqi 2023-01-05 19:58:30 +08:00 committed by xiaomeinvG
parent fe72f990d0
commit e9a8bc3527
7 changed files with 14 additions and 7 deletions

View File

@ -21,7 +21,8 @@
{{ $t('api_test.environment.environment_config') }}
</el-button>
<template v-slot:empty>
<div v-if="isShowConfirmButton(pe.id)" class="empty-environment">
<!--这里只做没有可搜索内容时使用否则如果没有符合搜索条件的也会显示该项与上面的btn重复显示 -->
<div v-if="isShowConfirmButton(pe.id) && pe.envs.length===0" class="empty-environment">
<el-button
class="ms-scenario-button"
size="mini"

View File

@ -19,7 +19,8 @@
{{ $t('api_test.environment.environment_config') }}
</el-button>
<template v-slot:empty>
<div class="empty-environment">
<!--这里只做没有可搜索内容时使用否则如果没有符合搜索条件的也会显示该项与上面的btn重复显示 -->
<div class="empty-environment" v-if="environments.length===0">
<el-button class="environment-button" size="mini" type="primary" @click="openEnvironmentConfig">
{{ $t('api_test.environment.environment_config') }}
</el-button>

View File

@ -18,7 +18,8 @@
{{ $t('api_test.environment.environment_config') }}
</el-button>
<template v-slot:empty>
<div class="empty-environment">
<!--这里只做没有可搜索内容时使用否则如果没有符合搜索条件的也会显示该项与上面的btn重复显示 -->
<div class="empty-environment" v-if="environments.length===0">
<el-button class="environment-button" size="mini" type="primary" @click="openEnvironmentConfig">
{{ $t('api_test.environment.environment_config') }}
</el-button>

View File

@ -9,7 +9,8 @@
{{ $t('api_test.environment.environment_config') }}
</el-button>
<template v-slot:empty>
<div class="empty-environment">
<!--这里只做没有可搜索内容时使用否则如果没有符合搜索条件的也会显示该项与上面的btn重复显示 -->
<div class="empty-environment" v-if="environments.length===0">
<el-button class="environment-button" size="mini" type="primary" @click="openEnvironmentConfig">
{{ $t('api_test.environment.environment_config') }}
</el-button>

View File

@ -9,7 +9,8 @@
{{ $t('api_test.environment.environment_config') }}
</el-button>
<template v-slot:empty>
<div class="empty-environment">
<!--这里只做没有可搜索内容时使用否则如果没有符合搜索条件的也会显示该项与上面的btn重复显示 -->
<div class="empty-environment" v-if="environments.length===0">
<el-button class="environment-button" size="mini" type="primary" @click="openEnvironmentConfig">
{{ $t('api_test.environment.environment_config') }}
</el-button>

View File

@ -11,7 +11,8 @@
{{ $t('api_test.environment.environment_config') }}
</el-button>
<template v-slot:empty>
<div v-if="isShowConfirmButton(pe.id)" class="empty-environment">
<!--这里只做没有可搜索内容时使用否则如果没有符合搜索条件的也会显示该项与上面的btn重复显示 -->
<div v-if="isShowConfirmButton(pe.id) && pe.envs.length===0" class="empty-environment">
<el-button class="ms-scenario-button" size="mini" type="primary" @click="openEnvironmentConfig(pe.id)">
{{ $t('api_test.environment.environment_config') }}
</el-button>

View File

@ -11,7 +11,8 @@
{{ $t('api_test.environment.environment_config') }}
</el-button>
<template v-slot:empty>
<div v-if="isShowConfirmButton(pe.id)" class="empty-environment">
<!--这里只做没有可搜索内容时使用否则如果没有符合搜索条件的也会显示该项与上面的btn重复显示 -->
<div v-if="isShowConfirmButton(pe.id) && pe.envs.length===0" class="empty-environment">
<el-button class="ms-scenario-button" size="mini" type="primary"
@click="openEnvironmentConfig(pe.id, pe['selectEnv'])">
{{ $t('api_test.environment.environment_config') }}