2019-12-02 16:16:26 +08:00
|
|
|
import zhLocale from 'element-ui/lib/locale/lang/zh-CN' //引入element语言包
|
|
|
|
|
const cn = {
|
2019-12-06 16:43:04 +08:00
|
|
|
overall: {
|
|
|
|
|
dashboard: '仪表盘',
|
|
|
|
|
project: '工程',
|
2019-12-10 17:00:28 +08:00
|
|
|
alert: "告警",
|
2019-12-06 16:43:04 +08:00
|
|
|
asset: '资产',
|
|
|
|
|
config: '设置',
|
2019-12-05 15:46:40 +08:00
|
|
|
create: '新增',
|
|
|
|
|
edit: '修改',
|
|
|
|
|
delete: '删除',
|
|
|
|
|
esc: '取消',
|
|
|
|
|
cancel: '取消',
|
|
|
|
|
save: '保存',
|
2019-12-10 17:00:28 +08:00
|
|
|
search: '搜索',
|
|
|
|
|
add: '新增',
|
|
|
|
|
option: "操作"
|
2019-12-02 16:16:26 +08:00
|
|
|
},
|
2019-12-26 13:00:22 +08:00
|
|
|
dashboard:{
|
|
|
|
|
title:'仪表盘',
|
|
|
|
|
panel:{
|
|
|
|
|
title:'看板',
|
2020-01-08 16:44:41 +08:00
|
|
|
searchItem:{
|
|
|
|
|
name:'标题'
|
|
|
|
|
},
|
2020-01-03 17:17:09 +08:00
|
|
|
//面板-侧滑框
|
2019-12-26 13:00:22 +08:00
|
|
|
createPanelTitle: "创建面板",
|
2020-01-14 21:20:30 +08:00
|
|
|
selectPanelTitle:"选择面板",
|
2019-12-26 13:00:22 +08:00
|
|
|
createPanelTitleSec:"创建新面板",
|
|
|
|
|
editPanelTitle: "编辑面板",
|
|
|
|
|
panelForm:{
|
|
|
|
|
panelName:"面板名称" ,
|
|
|
|
|
panelId:"ID"
|
2020-01-03 17:17:09 +08:00
|
|
|
} ,
|
|
|
|
|
//图表-侧滑框
|
|
|
|
|
createChartTitle: "Create Chart",
|
|
|
|
|
editChartTitle: "Edit Chart",
|
|
|
|
|
chartForm:{
|
|
|
|
|
chartId:"ID",
|
|
|
|
|
chartName:"图表名称",
|
|
|
|
|
type:"类型",
|
|
|
|
|
typeVal:{
|
|
|
|
|
line:{
|
|
|
|
|
label:"曲线"
|
|
|
|
|
},
|
|
|
|
|
bar:{
|
|
|
|
|
label:"柱状图"
|
|
|
|
|
},
|
|
|
|
|
table:{
|
|
|
|
|
label:"表格",
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
width:"宽度",
|
|
|
|
|
high:"高度",
|
|
|
|
|
metric:"指标",
|
|
|
|
|
addMetric:"添加指标",
|
|
|
|
|
},
|
2020-01-07 17:12:48 +08:00
|
|
|
chartTableColumn:{
|
|
|
|
|
metric:'指标',
|
|
|
|
|
label:'标签',
|
|
|
|
|
time:'时间',
|
|
|
|
|
value:'值',
|
|
|
|
|
},
|
|
|
|
|
startTime:'开始时间',
|
|
|
|
|
endTime:'结束时间',
|
|
|
|
|
to:'至',
|
|
|
|
|
recOne:'近1小时',
|
|
|
|
|
recFour:'近4小时',
|
|
|
|
|
recOneDay:'近1日',
|
|
|
|
|
yesterday:'昨日',
|
|
|
|
|
recSevenDay:'近7日',
|
|
|
|
|
recOneMonth:'近一个月',
|
|
|
|
|
curMonth:'本月',
|
2020-01-08 16:44:41 +08:00
|
|
|
lastMonth:'上月',
|
|
|
|
|
refreshInterval:{
|
|
|
|
|
never:'从不',
|
|
|
|
|
oneMinute:'1分钟',
|
|
|
|
|
threeMinutes:'3分钟',
|
|
|
|
|
fiveMinutes:'5分钟',
|
|
|
|
|
tenMinutes:'10分钟',
|
2020-01-10 17:13:41 +08:00
|
|
|
},
|
|
|
|
|
view:'查看',
|
|
|
|
|
confirm:'确 定',
|
|
|
|
|
cancel:'取 消'
|
2020-01-03 17:17:09 +08:00
|
|
|
},
|
|
|
|
|
metric:{
|
|
|
|
|
name:"指标名称",
|
|
|
|
|
normal:"Normal",
|
|
|
|
|
expert:"Expert",
|
|
|
|
|
label:"指标标签",
|
|
|
|
|
addMetric:"添加指标",
|
2020-01-15 17:17:08 +08:00
|
|
|
expertTip:"请输入表达式",
|
|
|
|
|
goPanelTip:"是否前去看板,查看创建的图表?",
|
|
|
|
|
previewChart:"预览图表",
|
|
|
|
|
singleChartShow:"单图展示",
|
|
|
|
|
multiChartsShow:"多图展示",
|
|
|
|
|
createPanel:"创建面板",
|
|
|
|
|
selectPanel:"选择已有面板",
|
|
|
|
|
saveChartToPanel:"保存图表到看板"
|
2019-12-26 13:00:22 +08:00
|
|
|
},
|
|
|
|
|
metricPreview:{
|
|
|
|
|
title:'指标预览',
|
2020-01-03 17:17:09 +08:00
|
|
|
},
|
|
|
|
|
refresh:'刷新',
|
|
|
|
|
edit:'编辑',
|
|
|
|
|
delete:'删除',
|
|
|
|
|
screen:'全屏'
|
2019-12-26 13:00:22 +08:00
|
|
|
},
|
2019-12-05 16:48:23 +08:00
|
|
|
asset: {
|
|
|
|
|
tableTitle: {
|
|
|
|
|
id: 'ID',
|
|
|
|
|
assetType: '资产类型',
|
2019-12-06 15:53:50 +08:00
|
|
|
device: 'Device SN',
|
|
|
|
|
ip: 'IP',
|
2019-12-05 16:48:23 +08:00
|
|
|
assetState: '资产状态',
|
2019-12-06 15:53:50 +08:00
|
|
|
module: 'Module',
|
2019-12-10 17:00:28 +08:00
|
|
|
alert: 'alert',
|
2019-12-05 16:48:23 +08:00
|
|
|
dataCenter: '数据中心',
|
|
|
|
|
cabinet: '机柜',
|
|
|
|
|
model: '型号',
|
|
|
|
|
manufacturer: '厂商',
|
|
|
|
|
procurementDate: '采购日期',
|
|
|
|
|
warrantyDate: '保修截止期',
|
|
|
|
|
deviceDuty: '设备责任人',
|
2019-12-06 16:43:04 +08:00
|
|
|
option: '操作',
|
2019-12-05 16:48:23 +08:00
|
|
|
},
|
|
|
|
|
tagTableTitle: {
|
|
|
|
|
projectName: '项目名称',
|
|
|
|
|
moduleName: 'Module Name',
|
|
|
|
|
endPoint: 'EndPoint',
|
2019-12-10 17:00:28 +08:00
|
|
|
alert: 'alert',
|
2019-12-05 16:48:23 +08:00
|
|
|
},
|
2019-12-04 13:45:37 +08:00
|
|
|
},
|
2019-12-05 15:46:40 +08:00
|
|
|
config: {
|
|
|
|
|
account: {
|
|
|
|
|
//列表表头
|
|
|
|
|
account: "用户",
|
|
|
|
|
language: "语言",
|
|
|
|
|
receiver: "用户组",
|
|
|
|
|
createTime: "创建时间",
|
|
|
|
|
enable: "可用",
|
|
|
|
|
option: "操作",
|
|
|
|
|
|
|
|
|
|
//侧滑框
|
|
|
|
|
accountId: "用户ID",
|
|
|
|
|
createAccount: "新增用户",
|
|
|
|
|
editAccount: "修改用户",
|
|
|
|
|
notCurrentlySupport: '暂不支持'
|
2019-12-05 18:07:58 +08:00
|
|
|
},
|
|
|
|
|
promServer: {
|
|
|
|
|
//侧滑框
|
|
|
|
|
promId: "Prometheus Server ID",
|
|
|
|
|
createProm: "新增Prometheus Server",
|
|
|
|
|
editProm: "修改Prometheus Server"
|
|
|
|
|
},
|
2019-12-05 15:46:40 +08:00
|
|
|
},
|
2019-12-10 17:00:28 +08:00
|
|
|
alert: {
|
|
|
|
|
alert: "告警",
|
|
|
|
|
alertList: "告警列表",
|
|
|
|
|
alertConfig: "告警设置",
|
2019-12-06 17:36:33 +08:00
|
|
|
list: {
|
2019-12-10 17:00:28 +08:00
|
|
|
alertName: "告警名称",
|
2019-12-06 17:36:33 +08:00
|
|
|
linkedId: "关联ID",
|
|
|
|
|
severity: "告警级别",
|
|
|
|
|
type: "类型",
|
|
|
|
|
summary: "摘要",
|
|
|
|
|
description: "描述",
|
|
|
|
|
state: "状态",
|
|
|
|
|
startAt: "时间",
|
|
|
|
|
endAt: "消除时间",
|
|
|
|
|
charts: "图表",
|
|
|
|
|
|
|
|
|
|
//表内容
|
2019-12-10 17:00:28 +08:00
|
|
|
projectalert: "Project Alert",
|
|
|
|
|
modulealert: "Module Alert",
|
|
|
|
|
devicealert: "Device Alert",
|
2019-12-06 17:36:33 +08:00
|
|
|
pending: "Pending",
|
|
|
|
|
expired: "Expired"
|
|
|
|
|
}
|
|
|
|
|
},
|
2019-12-10 17:00:28 +08:00
|
|
|
project: {
|
|
|
|
|
endpoint: {
|
|
|
|
|
endpoint: "Endpoint",
|
|
|
|
|
endpointId: "Endpoint ID",
|
|
|
|
|
host: "Host",
|
|
|
|
|
port: "Port",
|
|
|
|
|
param: "Param",
|
|
|
|
|
path: "Path",
|
|
|
|
|
asset: "Asset",
|
|
|
|
|
lastUpdate: "Last Update",
|
|
|
|
|
},
|
|
|
|
|
metrics: "Metrics",
|
|
|
|
|
},
|
2019-12-02 16:16:26 +08:00
|
|
|
...zhLocale
|
|
|
|
|
}
|
|
|
|
|
|
2019-12-05 15:46:40 +08:00
|
|
|
export default cn;
|