style: 系统资源多语言
This commit is contained in:
@@ -505,20 +505,27 @@ export default {
|
|||||||
logoutSuccess: "User {num} has been forcibly retired",
|
logoutSuccess: "User {num} has been forcibly retired",
|
||||||
},
|
},
|
||||||
monitor:{
|
monitor:{
|
||||||
avgLoad: '平均负载',
|
filter: "Global Filter",
|
||||||
memory: '内存',
|
startTime: 'Start Time',
|
||||||
cache: '缓存',
|
endTime: 'End Time',
|
||||||
io: '磁盘',
|
today: 'Today',
|
||||||
network: '网络',
|
yesterday: 'Yesterday',
|
||||||
loadDetail: "负载率",
|
week: 'This Week',
|
||||||
resourceUsage: "资源使用率",
|
month: 'This Month',
|
||||||
read: '读取',
|
avgLoad: 'Average loads',
|
||||||
write: '写入',
|
memory: 'RAM',
|
||||||
readWriteCount: '读写次数',
|
cache: 'Cache',
|
||||||
count: '次',
|
io: 'Disk',
|
||||||
readWriteTime: '读写延迟',
|
network: 'Network',
|
||||||
up: '上行',
|
loadDetail: "Load Factor",
|
||||||
down: '下行',
|
resourceUsage: "Resource utilization rate",
|
||||||
|
read: 'retrieve',
|
||||||
|
write: 'write',
|
||||||
|
readWriteCount: 'Number of reads and writes',
|
||||||
|
count: 'substandard',
|
||||||
|
readWriteTime: 'Read/Write Delay',
|
||||||
|
up: 'up train',
|
||||||
|
down: 'down train',
|
||||||
},
|
},
|
||||||
online:{
|
online:{
|
||||||
mettingId:'Session number',
|
mettingId:'Session number',
|
||||||
|
|||||||
@@ -505,6 +505,13 @@ export default {
|
|||||||
logoutSuccess: "已强退用户 {num}",
|
logoutSuccess: "已强退用户 {num}",
|
||||||
},
|
},
|
||||||
monitor:{
|
monitor:{
|
||||||
|
filter: "全局过滤",
|
||||||
|
startTime: '开始时间',
|
||||||
|
endTime: '结束时间',
|
||||||
|
today: '昨天',
|
||||||
|
yesterday: '今天',
|
||||||
|
week: '本周',
|
||||||
|
month: '本月',
|
||||||
avgLoad: '平均负载',
|
avgLoad: '平均负载',
|
||||||
memory: '内存',
|
memory: '内存',
|
||||||
cache: '缓存',
|
cache: '缓存',
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ const { t } = useI18n();
|
|||||||
|
|
||||||
/**开始结束时间类型 */
|
/**开始结束时间类型 */
|
||||||
type RangePickerType = {
|
type RangePickerType = {
|
||||||
|
placeholder: [string, string];
|
||||||
ranges: Record<string, [Dayjs, Dayjs]>;
|
ranges: Record<string, [Dayjs, Dayjs]>;
|
||||||
/**全局时间 */
|
/**全局时间 */
|
||||||
all: [string, string];
|
all: [string, string];
|
||||||
@@ -34,14 +35,24 @@ type RangePickerType = {
|
|||||||
|
|
||||||
/**开始结束时间 */
|
/**开始结束时间 */
|
||||||
let rangePicker = reactive<RangePickerType>({
|
let rangePicker = reactive<RangePickerType>({
|
||||||
|
placeholder: [
|
||||||
|
t('views.monitor.monitor.startTime'),
|
||||||
|
t('views.monitor.monitor.endTime'),
|
||||||
|
],
|
||||||
ranges: {
|
ranges: {
|
||||||
昨天: [
|
[t('views.monitor.monitor.today')]: [
|
||||||
dayjs().subtract(1, 'day').startOf('day'),
|
dayjs().subtract(1, 'day').startOf('day'),
|
||||||
dayjs().subtract(1, 'day').endOf('day'),
|
dayjs().subtract(1, 'day').endOf('day'),
|
||||||
],
|
],
|
||||||
今天: [dayjs().startOf('day'), dayjs()],
|
[t('views.monitor.monitor.yesterday')]: [dayjs().startOf('day'), dayjs()],
|
||||||
本周: [dayjs().startOf('week'), dayjs().endOf('week')],
|
[t('views.monitor.monitor.week')]: [
|
||||||
本月: [dayjs().startOf('month'), dayjs().endOf('month')],
|
dayjs().startOf('week'),
|
||||||
|
dayjs().endOf('week'),
|
||||||
|
],
|
||||||
|
[t('views.monitor.monitor.month')]: [
|
||||||
|
dayjs().startOf('month'),
|
||||||
|
dayjs().endOf('month'),
|
||||||
|
],
|
||||||
},
|
},
|
||||||
all: ['', ''],
|
all: ['', ''],
|
||||||
load: ['', ''],
|
load: ['', ''],
|
||||||
@@ -427,7 +438,10 @@ onMounted(() => {
|
|||||||
<a-form name="queryParams" layout="horizontal">
|
<a-form name="queryParams" layout="horizontal">
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
<a-col :lg="10" :md="10" :xs="24">
|
<a-col :lg="10" :md="10" :xs="24">
|
||||||
<a-form-item label="全局过滤" name="neTypeSelect">
|
<a-form-item
|
||||||
|
:label="t('views.monitor.monitor.filter')"
|
||||||
|
name="neTypeSelect"
|
||||||
|
>
|
||||||
<a-range-picker
|
<a-range-picker
|
||||||
v-model:value="rangePicker.all"
|
v-model:value="rangePicker.all"
|
||||||
:allow-clear="false"
|
:allow-clear="false"
|
||||||
@@ -435,7 +449,7 @@ onMounted(() => {
|
|||||||
value-format="YYYY-MM-DD HH:mm:ss"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
format="YYYY-MM-DD HH:mm:ss"
|
format="YYYY-MM-DD HH:mm:ss"
|
||||||
show-time
|
show-time
|
||||||
:placeholder="['开始时间', '结束时间']"
|
:placeholder="rangePicker.placeholder"
|
||||||
:ranges="rangePicker.ranges"
|
:ranges="rangePicker.ranges"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
></a-range-picker>
|
></a-range-picker>
|
||||||
@@ -469,7 +483,7 @@ onMounted(() => {
|
|||||||
value-format="YYYY-MM-DD HH:mm:ss"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
format="YYYY-MM-DD HH:mm:ss"
|
format="YYYY-MM-DD HH:mm:ss"
|
||||||
show-time
|
show-time
|
||||||
:placeholder="['开始时间', '结束时间']"
|
:placeholder="rangePicker.placeholder"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
@change="(_:any, d:[string,string]) => fnGetQuery('load', d)"
|
@change="(_:any, d:[string,string]) => fnGetQuery('load', d)"
|
||||||
></a-range-picker>
|
></a-range-picker>
|
||||||
@@ -499,7 +513,7 @@ onMounted(() => {
|
|||||||
value-format="YYYY-MM-DD HH:mm:ss"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
format="YYYY-MM-DD HH:mm:ss"
|
format="YYYY-MM-DD HH:mm:ss"
|
||||||
show-time
|
show-time
|
||||||
:placeholder="['开始时间', '结束时间']"
|
:placeholder="rangePicker.placeholder"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
@change="(_:any, d:[string,string]) => fnGetQuery('cpu', d)"
|
@change="(_:any, d:[string,string]) => fnGetQuery('cpu', d)"
|
||||||
></a-range-picker>
|
></a-range-picker>
|
||||||
@@ -527,7 +541,7 @@ onMounted(() => {
|
|||||||
value-format="YYYY-MM-DD HH:mm:ss"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
format="YYYY-MM-DD HH:mm:ss"
|
format="YYYY-MM-DD HH:mm:ss"
|
||||||
show-time
|
show-time
|
||||||
:placeholder="['开始时间', '结束时间']"
|
:placeholder="rangePicker.placeholder"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
@change="(_:any, d:[string,string]) => fnGetQuery('memory', d)"
|
@change="(_:any, d:[string,string]) => fnGetQuery('memory', d)"
|
||||||
></a-range-picker>
|
></a-range-picker>
|
||||||
@@ -557,7 +571,7 @@ onMounted(() => {
|
|||||||
value-format="YYYY-MM-DD HH:mm:ss"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
format="YYYY-MM-DD HH:mm:ss"
|
format="YYYY-MM-DD HH:mm:ss"
|
||||||
show-time
|
show-time
|
||||||
:placeholder="['开始时间', '结束时间']"
|
:placeholder="rangePicker.placeholder"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
@change="fnGetQueryIO"
|
@change="fnGetQueryIO"
|
||||||
></a-range-picker>
|
></a-range-picker>
|
||||||
@@ -585,7 +599,7 @@ onMounted(() => {
|
|||||||
value-format="YYYY-MM-DD HH:mm:ss"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
format="YYYY-MM-DD HH:mm:ss"
|
format="YYYY-MM-DD HH:mm:ss"
|
||||||
show-time
|
show-time
|
||||||
:placeholder="['开始时间', '结束时间']"
|
:placeholder="rangePicker.placeholder"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
@change="fnGetQueryNetwork"
|
@change="fnGetQueryNetwork"
|
||||||
></a-range-picker>
|
></a-range-picker>
|
||||||
|
|||||||
Reference in New Issue
Block a user