refactor: K8S 资源池提示优化

This commit is contained in:
CaptainB 2022-05-09 17:39:39 +08:00 committed by 刘瑞斌
parent 55a11cae5e
commit b5cb38b67d
4 changed files with 18 additions and 5 deletions

View File

@ -94,9 +94,11 @@
v-if="form.type === 'K8S'"
placement="bottom"
width="450"
title="使用K8S资源池需要的权限"
:title="$t('test_resource_pool.k8s_sa_tips')"
trigger="hover">
<el-link type="primary" @click="downloadYaml({deployType:'sa', deployName:'sa'})">sa.yaml</el-link>
<el-link type="primary" @click="downloadYaml({deployType:'sa', deployName:'sa'})">
{{ $t('test_resource_pool.k8s_sa_download_tips') }}
</el-link>
<i class="el-icon-info" slot="reference"></i>
</el-popover>
</template>
@ -137,10 +139,9 @@
<el-popover
placement="bottom"
width="450"
title="执行接口测试需要部署 DaemonSet 或 Deployment"
:title="$t('test_resource_pool.k8s_deploy_type_tips')"
trigger="hover">
<el-link type="primary" @click="downloadYaml(item)">daemonset.yaml</el-link> &nbsp;
<el-link type="primary" @click="downloadYaml(item)">deployment.yaml</el-link>
<el-link type="primary" @click="downloadYaml(item)">{{ $t('test_resource_pool.k8s_deploy_download_tips') }}</el-link>
<i class="el-icon-info" slot="reference"></i>
</el-popover>
</template>

View File

@ -2450,6 +2450,10 @@ export default {
usage: 'Usage',
backend_listener: 'Backend Listener',
batch_add_resource_tips: 'Format: IP, Port, Monitor, maximum concurrent number<br/>such as: 192.168.1.52,8082,9100,500',
k8s_sa_tips: 'Permissions required to use the K8S resource pool',
k8s_sa_download_tips: 'Download SA executable file',
k8s_deploy_type_tips: 'A DaemonSet or Deployment needs to be deployed to perform interface testing',
k8s_deploy_download_tips: 'Download the YAML executable file',
},
system_parameter_setting: {
mailbox_service_settings: 'Mailbox Settings',

View File

@ -2454,6 +2454,10 @@ export default {
usage: '用途',
backend_listener: '后置监听器',
batch_add_resource_tips: '格式IP,Port,Monitor,最大并发数<br/>如192.168.1.52,8082,9100,500',
k8s_sa_tips: '使用K8S资源池需要的权限',
k8s_sa_download_tips: '下载SA执行文件',
k8s_deploy_type_tips: '执行接口测试需要部署 DaemonSet 或 Deployment',
k8s_deploy_download_tips: '下载YAML执行文件',
},
system_parameter_setting: {
mailbox_service_settings: '邮件设置',

View File

@ -2453,6 +2453,10 @@ export default {
usage: '用途',
backend_listener: '後置監聽器',
batch_add_resource_tips: '格式IP,Port,Monitor,最大並發數<br/>如192.168.1.52,8082,9100,500',
k8s_sa_tips: '使用K8S資源池需要的權限',
k8s_sa_download_tips: '下載SA執行文件',
k8s_deploy_type_tips: '執行接口測試需要部署 DaemonSet 或 Deployment',
k8s_deploy_download_tips: '下載YAML執行文件',
},
system_parameter_setting: {
mailbox_service_settings: '郵件設置',