Skip to content

Commit

Permalink
fix: API网关 0802体验修复 (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
leafage-collb authored Aug 3, 2023
1 parent 80095d7 commit 4d2b31a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/dashboard-front/src/language/lang/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ export default {
"通知对象、其他通知对象至少设置一个": "At least one of recipients and other recipients is valid",
"编辑成功!": "Updated!",
"请输入告警策略名称,按Enter搜索": "Please enter the name of the alarm policy and press Enter to search",
"策略删除后,将不再接收相关通知(提示语待补充)": "After the policy is deleted, you will no longer receive relevant notifications (prompts to be added)",
"策略删除后,将不再接收相关通知": "After the policy is deleted, you will no longer receive relevant notifications",
"编辑告警策略": "Update Alarm Strategy",
"新建告警策略": "Create Alarm Strategy",
"请求": "Request",
Expand Down Expand Up @@ -1213,5 +1213,5 @@ export default {
"服务异常": "Service exception",
"访问后端服务出现错误,请稍后再试。": "Access backend service error, please try again later.",
"未知错误": "Unknown error",
"次": "times"
"次": "request(s)"
}
2 changes: 1 addition & 1 deletion src/dashboard-front/src/language/lang/zh.js
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ export default {
"通知对象、其他通知对象至少设置一个": "通知对象、其他通知对象至少设置一个",
"编辑成功!": "编辑成功!",
"请输入告警策略名称,按Enter搜索": "请输入告警策略名称,按Enter搜索",
"策略删除后,将不再接收相关通知(提示语待补充)": "策略删除后,将不再接收相关通知(提示语待补充)",
"策略删除后,将不再接收相关通知": "策略删除后,将不再接收相关通知",
"编辑告警策略": "编辑告警策略",
"新建告警策略": "新建告警策略",
"请求": "请求",
Expand Down
10 changes: 8 additions & 2 deletions src/dashboard-front/src/views/access-log/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</bk-select>
</bk-form-item>
<bk-form-item :label="$t('查询条件')" class="ag-form-item-inline">
<search-input v-model="keyword" @search="handleSearch" class="top-search-input" />
<search-input v-model="keyword" @search="handleSearch" :class="['top-search-input', localLanguage === 'en' ? 'top-search-input-en' : '']" />
<span v-bk-tooltips="searchUsage.config" class="search-usage">
{{`${searchUsage.showed ? $t('隐藏示例') : $t('显示示例')}`}}
</span>
Expand Down Expand Up @@ -226,6 +226,9 @@
},
formatterValue () {
return params => this.$t(`{value} 次`, { value: params.value.toLocaleString() })
},
localLanguage () {
return this.$store.state.localLanguage
}
},
created () {
Expand Down Expand Up @@ -676,7 +679,7 @@
}
}
@media (max-width: 1660px) {
@media (max-width: 1753px) {
.search-form {
width: 700px !important;
Expand All @@ -688,6 +691,9 @@
.top-search-input {
width: 526px;
}
.top-search-input-en {
width: 460px;
}
}
}
.ap-nodata {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
:mask-close="true"
@cancel="deleteDialog.isShow = false"
@confirm="handleConfirmDelete">
<p class="tc p10"> {{ $t('策略删除后,将不再接收相关通知(提示语待补充)') }} </p>
<p class="tc p10"> {{ $t('策略删除后,将不再接收相关通知') }} </p>
</bk-dialog>
</div>
</template>
Expand Down

0 comments on commit 4d2b31a

Please sign in to comment.