Skip to content

Commit

Permalink
optimization: 资源配额-配额百分比例含义不明确 (closed #1093)
Browse files Browse the repository at this point in the history
  • Loading branch information
GONGONGONG authored and ZhuoZhuoCrayon committed Sep 22, 2022
1 parent 8e7080d commit 525caf2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions dev_log/2.2.23/daoqgong_202209202042.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
optimization:
- "资源配额-配额百分比例含义不明确 (closed #1093)"
4 changes: 2 additions & 2 deletions frontend/src/i18n/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -1016,13 +1016,13 @@ export default {

// 资源配额
资源配额: 'Resource quota',
限制最高CPU使用率: 'Limit maximum CPU usage',
限制最高内存使用率: 'Limit maximum memory usage',
'业务:': 'Biz:',
请输入关键词: '请输入关键词',
总数运行中异常: 'Total / running / abnormal',
CPU配额: 'CPU quota',
内存配额: 'Memory quota',
CPU配额tip: 'Percentage of CPU usage limit of each plugin (total percentage, non-single-core percentage)',
内存配额tip: 'Percentage of memory usage cap per plugin',
编辑资源配额: 'Edit resource quota',
还原默认: 'Reset',
CPU配额及单位: 'CPU quota(%)',
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/i18n/zh.js
Original file line number Diff line number Diff line change
Expand Up @@ -1017,13 +1017,13 @@ export default {

// 资源配额
资源配额: '资源配额',
限制最高CPU使用率: '限制最高 CPU 使用率',
限制最高内存使用率: '限制最高内存使用率',
'业务:': '业务:',
请输入关键词: '请输入关键词',
总数运行中异常: '总数 / 运行中 / 异常',
CPU配额: 'CPU 配额',
内存配额: '内存配额',
CPU配额tip: '每个插件 CPU 使用率上限百分比(总占比,非单核占比)',
内存配额tip: '每个插件内存使用率上限百分比',
编辑资源配额: '编辑资源配额',
还原默认: '还原默认',
CPU配额及单位: 'CPU 配额 (%)',
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/plugin/resource-quota/edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
<span>{{ $t('插件名称') }}</span>
</div>
<div class="form-head-item">
<span class="text-underline-dashed" v-bk-tooltips="$t('限制最高CPU使用率')">{{ $t('CPU配额') }}</span>
<span class="text-underline-dashed" v-bk-tooltips="$t('CPU配额tip')">{{ $t('CPU配额') }}</span>
</div>
<div class="form-head-item">
<span class="text-underline-dashed" v-bk-tooltips="$t('限制最高内存使用率')">{{ $t('内存配额') }}</span>
<span class="text-underline-dashed" v-bk-tooltips="$t('内存配额tip')">{{ $t('内存配额') }}</span>
</div>
</div>
<div class="form-horizontal-item" v-for="item in pluginList" :key="item.plugin_name">
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/plugin/resource-quota/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ export default class ResourceQuota extends Mixins(HeaderFilterMixins) {
public pluginListMap: any = {};
public pluginList: any[] = [];
public headTipsMap = {
cpu: this.$t('限制最高CPU使用率'),
mem: this.$t('限制最高内存使用率'),
cpu: this.$t('CPU配额tip'),
mem: this.$t('内存配额tip'),
};
// public biz: number[] = [];
public hasBizAuth = true;
Expand Down

0 comments on commit 525caf2

Please sign in to comment.