feat: 国际化修改
This commit is contained in:
@@ -1,6 +1,22 @@
|
|||||||
import zhLocale from 'element-ui/lib/locale/lang/zh-CN' // 引入element语言包
|
import zhLocale from 'element-ui/lib/locale/lang/zh-CN' // 引入element语言包
|
||||||
const cn = {
|
const cn = {
|
||||||
overall: {
|
overall: {
|
||||||
|
uploadCustomPicture: '上传图片',
|
||||||
|
customPicture: '上传图片',
|
||||||
|
endpointTemplate: 'endpoint模板',
|
||||||
|
AddByTemplate: '使用模板创建',
|
||||||
|
oneHour: '1 小时',
|
||||||
|
twoHour: '2 小时',
|
||||||
|
sixHour: '6 小时',
|
||||||
|
twelveHour: '12 小时',
|
||||||
|
oneDay: '1 天',
|
||||||
|
twoDay: '2 天',
|
||||||
|
week: '1 周',
|
||||||
|
startTime: '开始时间',
|
||||||
|
endTime: '结束时间',
|
||||||
|
metric: '指标',
|
||||||
|
locked: '已锁定',
|
||||||
|
unlocked: '已解锁',
|
||||||
dashboard: '仪表盘',
|
dashboard: '仪表盘',
|
||||||
dc: '数据中心',
|
dc: '数据中心',
|
||||||
project: '系统',
|
project: '系统',
|
||||||
@@ -294,12 +310,12 @@ const cn = {
|
|||||||
value: 'Value',
|
value: 'Value',
|
||||||
range: 'Range'
|
range: 'Range'
|
||||||
},
|
},
|
||||||
legendValue: 'Legend option',
|
legendValue: '图例选项',
|
||||||
content: '内容',
|
content: '内容',
|
||||||
tooltip: 'Tooltip',
|
tooltip: 'Tooltip',
|
||||||
displayChart: '图表',
|
displayChart: '图表',
|
||||||
aggregation: 'Aggregation',
|
aggregation: 'Aggregation',
|
||||||
varType: 'Variable type',
|
varType: '变量类型',
|
||||||
pid: 'Chart 模板',
|
pid: 'Chart 模板',
|
||||||
selectAsset: '请选择Asset',
|
selectAsset: '请选择Asset',
|
||||||
selectEndpoint: '请选择Endpoint'
|
selectEndpoint: '请选择Endpoint'
|
||||||
@@ -528,7 +544,7 @@ const cn = {
|
|||||||
},
|
},
|
||||||
asset: {
|
asset: {
|
||||||
asset: '资产',
|
asset: '资产',
|
||||||
alertNum: '资产编号',
|
alertNum: '告警',
|
||||||
assetType: '资产类型', // '资产类型'
|
assetType: '资产类型', // '资产类型'
|
||||||
batchEditAsset: '批量修改资产',
|
batchEditAsset: '批量修改资产',
|
||||||
selectAsset: '已选择的资产',
|
selectAsset: '已选择的资产',
|
||||||
@@ -695,21 +711,28 @@ const cn = {
|
|||||||
agent: {
|
agent: {
|
||||||
name: '名称',
|
name: '名称',
|
||||||
type: '类型',
|
type: '类型',
|
||||||
createProm: '创建代理服务',
|
host: '主机名',
|
||||||
|
port: '端口',
|
||||||
|
checkTime: '检查时间',
|
||||||
|
createProm: '创建客户端',
|
||||||
|
editProm: '修改客户端',
|
||||||
up: 'UP',
|
up: 'UP',
|
||||||
down: 'Down',
|
down: 'Down',
|
||||||
agent: {
|
agent: {
|
||||||
agent: '代理',
|
agent: '客户端',
|
||||||
title: 'Download agent',
|
title: '下载客户端',
|
||||||
download: 'Download',
|
download: '下载',
|
||||||
osType: 'OS type',
|
osType: '操作系统',
|
||||||
autoScript: 'Auto install script',
|
autoScript: '自动安装脚本',
|
||||||
type: 'Agent type'
|
type: '客户端类型'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
terminallog: {
|
terminallog: {
|
||||||
terminallog: '终端日志',
|
terminallog: '终端日志',
|
||||||
status: '状态',
|
status: '状态',
|
||||||
|
username: '用户名',
|
||||||
|
SessionID: '会话ID',
|
||||||
|
authtype: '认证方式',
|
||||||
statusItem: {
|
statusItem: {
|
||||||
connecting: '连接中',
|
connecting: '连接中',
|
||||||
connectionFailed: '连接失败',
|
connectionFailed: '连接失败',
|
||||||
@@ -802,7 +825,7 @@ const cn = {
|
|||||||
name: '资产型号',
|
name: '资产型号',
|
||||||
brand: '品牌',
|
brand: '品牌',
|
||||||
ChartTemplate: '图表模板',
|
ChartTemplate: '图表模板',
|
||||||
assetNum: '资产编号',
|
assetNum: '资产',
|
||||||
editModel: '编辑型号',
|
editModel: '编辑型号',
|
||||||
createModel: '创建型号',
|
createModel: '创建型号',
|
||||||
remark: '备注',
|
remark: '备注',
|
||||||
@@ -849,7 +872,7 @@ const cn = {
|
|||||||
vendor: '厂商',
|
vendor: '厂商',
|
||||||
type: '类型',
|
type: '类型',
|
||||||
mibBrowser: 'MIB浏览器',
|
mibBrowser: 'MIB浏览器',
|
||||||
credentials: '证书',
|
credentials: '凭证',
|
||||||
noData: '暂无数据',
|
noData: '暂无数据',
|
||||||
credential: {
|
credential: {
|
||||||
type: '协议类型',
|
type: '协议类型',
|
||||||
@@ -860,7 +883,11 @@ const cn = {
|
|||||||
encryption: '加密',
|
encryption: '加密',
|
||||||
pin: '密码',
|
pin: '密码',
|
||||||
edit: '编辑证书',
|
edit: '编辑证书',
|
||||||
create: '创建证书'
|
create: '创建证书',
|
||||||
|
ReadCommunity: '读团体字',
|
||||||
|
writeCommunity: '写团体字',
|
||||||
|
username: '用户名',
|
||||||
|
contextName: '上下文名称'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
system: {
|
system: {
|
||||||
@@ -869,19 +896,19 @@ const cn = {
|
|||||||
basic: '基础设置',
|
basic: '基础设置',
|
||||||
alertApi: '告警API',
|
alertApi: '告警API',
|
||||||
assetPingSwith: '资产Ping开关',
|
assetPingSwith: '资产Ping开关',
|
||||||
assetPingInterval: '间隔',
|
assetPingInterval: 'Ping 间隔',
|
||||||
exporterTarget: 'Exporter路径',
|
exporterTarget: 'Exporter路径',
|
||||||
scrapeInterval: '获取数据间隔',
|
scrapeInterval: '指标抓取间隔',
|
||||||
storageRetention: '本地保留时间',
|
storageRetention: '指标本地保存',
|
||||||
systemName: '系统名称',
|
systemName: '系统名称',
|
||||||
curUrl: '网站URL',
|
curUrl: '网站URL',
|
||||||
timezone: '时区',
|
timezone: '时区',
|
||||||
defaultCabinetUsize: '机柜默认U位',
|
defaultCabinetUsize: '机柜默认U位',
|
||||||
sessionTimeout: 'Session超时',
|
sessionTimeout: '登陆会话超时',
|
||||||
minute: '分',
|
minute: '分',
|
||||||
second: '秒',
|
second: '秒',
|
||||||
day: '天',
|
day: '天',
|
||||||
maxSeries: 'Query max series',
|
maxSeries: '指标查询最大条数',
|
||||||
unsaved: '未保存提示',
|
unsaved: '未保存提示',
|
||||||
mapConfig: '地图中心点',
|
mapConfig: '地图中心点',
|
||||||
mapTitle: '配置地图',
|
mapTitle: '配置地图',
|
||||||
@@ -890,7 +917,7 @@ const cn = {
|
|||||||
zoom: '缩放',
|
zoom: '缩放',
|
||||||
lnglat: '坐标',
|
lnglat: '坐标',
|
||||||
sysLogo: '系统Logo',
|
sysLogo: '系统Logo',
|
||||||
scrapeTimeout: 'Scrape timeout',
|
scrapeTimeout: '指标抓取超时',
|
||||||
snmpTrapPort: 'SNMP trap端口',
|
snmpTrapPort: 'SNMP trap端口',
|
||||||
logoTip: 'Logo支持格式为jpg、jpeg、png且大小小于2M的图片'
|
logoTip: 'Logo支持格式为jpg、jpeg、png且大小小于2M的图片'
|
||||||
},
|
},
|
||||||
@@ -918,8 +945,8 @@ const cn = {
|
|||||||
terminal: '终端',
|
terminal: '终端',
|
||||||
terminalNum: '最大终端数量',
|
terminalNum: '最大终端数量',
|
||||||
timeout: '超时时间',
|
timeout: '超时时间',
|
||||||
userTip: 'Telnet user prompt',
|
userTip: 'Telnet 用户名提示',
|
||||||
pinTip: 'Ternet password prompt',
|
pinTip: 'Telnet 密码提示',
|
||||||
localRetention: '本地存储'
|
localRetention: '本地存储'
|
||||||
},
|
},
|
||||||
ldap: {
|
ldap: {
|
||||||
@@ -937,7 +964,7 @@ const cn = {
|
|||||||
timeout: '超时时间'
|
timeout: '超时时间'
|
||||||
},
|
},
|
||||||
link: {
|
link: {
|
||||||
link: 'Link',
|
link: '链接',
|
||||||
name: '名称',
|
name: '名称',
|
||||||
url: 'Url',
|
url: 'Url',
|
||||||
operation: '操作',
|
operation: '操作',
|
||||||
@@ -949,8 +976,10 @@ const cn = {
|
|||||||
create: '创建人'
|
create: '创建人'
|
||||||
},
|
},
|
||||||
notification: {
|
notification: {
|
||||||
notification: 'Notification',
|
notification: '通知方式',
|
||||||
name: '名称',
|
name: '名称',
|
||||||
|
state: '状态',
|
||||||
|
account: '通知账号',
|
||||||
filePath: '文件路径',
|
filePath: '文件路径',
|
||||||
operation: '操作',
|
operation: '操作',
|
||||||
add: '添加',
|
add: '添加',
|
||||||
@@ -1002,6 +1031,7 @@ const cn = {
|
|||||||
assetLabel: {
|
assetLabel: {
|
||||||
example: '示例',
|
example: '示例',
|
||||||
assetLabel: '资产标签',
|
assetLabel: '资产标签',
|
||||||
|
editMeta: '编辑标签',
|
||||||
addMeta: '创建标签',
|
addMeta: '创建标签',
|
||||||
all: '全部',
|
all: '全部',
|
||||||
addGroup: '创建分组',
|
addGroup: '创建分组',
|
||||||
@@ -1044,7 +1074,7 @@ const cn = {
|
|||||||
labelOptionNull: '请填写选项信息'
|
labelOptionNull: '请填写选项信息'
|
||||||
},
|
},
|
||||||
exprTemp: {
|
exprTemp: {
|
||||||
exprTemp: 'expression模板',
|
exprTemp: '表达式模板',
|
||||||
exprTempInfo: 'Expression 模板详情',
|
exprTempInfo: 'Expression 模板详情',
|
||||||
exprTempRender: 'expression模板渲染',
|
exprTempRender: 'expression模板渲染',
|
||||||
exprTempDown: 'expression模板下载',
|
exprTempDown: 'expression模板下载',
|
||||||
@@ -1060,11 +1090,11 @@ const cn = {
|
|||||||
edit: '修改表达式模板',
|
edit: '修改表达式模板',
|
||||||
create: '创建表达式模板',
|
create: '创建表达式模板',
|
||||||
expressionError: '请填写表达式',
|
expressionError: '请填写表达式',
|
||||||
type: 'Type',
|
type: '类型',
|
||||||
varType: 'Variable type'
|
varType: '变量类型'
|
||||||
},
|
},
|
||||||
chartTemp: {
|
chartTemp: {
|
||||||
chartTemp: 'Chart 模板',
|
chartTemp: '图表模板',
|
||||||
type: 'Type',
|
type: 'Type',
|
||||||
varType: 'Variable type'
|
varType: 'Variable type'
|
||||||
}
|
}
|
||||||
@@ -1221,8 +1251,8 @@ const cn = {
|
|||||||
stateInfo_230011: 'Endpoint 连接错误',
|
stateInfo_230011: 'Endpoint 连接错误',
|
||||||
alerts: '告警',
|
alerts: '告警',
|
||||||
labels: '标签',
|
labels: '标签',
|
||||||
pattern: 'Name pattern',
|
pattern: '名称格式',
|
||||||
credentials: '资格证书',
|
credentials: '资格凭证',
|
||||||
scrape_interval: '时间间隔',
|
scrape_interval: '时间间隔',
|
||||||
scrape_interval_placeholder: '默认全局时间间隔',
|
scrape_interval_placeholder: '默认全局时间间隔',
|
||||||
scrape_timeout: '超时时间',
|
scrape_timeout: '超时时间',
|
||||||
@@ -1480,13 +1510,13 @@ const cn = {
|
|||||||
guide: {
|
guide: {
|
||||||
title: '开始使用 通过 6 简单步骤',
|
title: '开始使用 通过 6 简单步骤',
|
||||||
dc: '数据中心',
|
dc: '数据中心',
|
||||||
dcTip: '数据中心包含机柜和资产,与Prometheus服务相关联;机柜是资产的容器',
|
dcTip: '数据中心包含机柜和资产,机柜是资产的容器',
|
||||||
addDc: '新增数据中心',
|
addDc: '新增数据中心',
|
||||||
addCabinet: '新增机柜',
|
addCabinet: '新增机柜',
|
||||||
agent: 'Agent',
|
agent: '客户端',
|
||||||
agentTip: 'Prometheus(agent)是本系统的核心,包含“Global”和“Per-datacenter”两种类型,前者汇总数据并发出告警消息,后者从Endpoint中采集监控数据。两者都必须配置',
|
agentTip: '客户端包含"Global”和"Per-datacenter”两种类型,前者汇总数据并发出告警消息,后者从Endpoint中采集监控数据。',
|
||||||
addAgent: '新增agent',
|
addAgent: '新增客户端',
|
||||||
downloadAgent: '下载agent',
|
downloadAgent: '下载客户端',
|
||||||
asset: '资产',
|
asset: '资产',
|
||||||
assetTip: '资产是被系统监控的主要部分',
|
assetTip: '资产是被系统监控的主要部分',
|
||||||
addAsset: '新增资产',
|
addAsset: '新增资产',
|
||||||
|
|||||||
@@ -7,12 +7,28 @@ const en = {
|
|||||||
// 账号用Account,username、password等都属于account的一部分
|
// 账号用Account,username、password等都属于account的一部分
|
||||||
// A user is the person who uses the account, the account is an inanimate object that is merely registered to an e-mail address.
|
// A user is the person who uses the account, the account is an inanimate object that is merely registered to an e-mail address.
|
||||||
overall: {
|
overall: {
|
||||||
|
uploadCustomPicture: 'Upload custom picture',
|
||||||
|
customPicture: 'Custom picture',
|
||||||
|
endpointTemplate: 'Endpoint template',
|
||||||
|
AddByTemplate: 'Add by template',
|
||||||
|
oneHour: '1 hour',
|
||||||
|
twoHour: '2 hours',
|
||||||
|
sixHour: '6 hours',
|
||||||
|
twelveHour: '12 hours',
|
||||||
|
oneDay: '1 day',
|
||||||
|
twoDay: '2 days',
|
||||||
|
week: '1 week',
|
||||||
|
startTime: 'Start time',
|
||||||
|
endTime: 'End time',
|
||||||
|
metric: 'Metric',
|
||||||
|
locked: 'Locked',
|
||||||
|
unlocked: 'Unlocked',
|
||||||
dashboard: 'Dashboards', // '仪表盘'
|
dashboard: 'Dashboards', // '仪表盘'
|
||||||
project: 'Projects', // '系统'
|
project: 'Project', // '系统'
|
||||||
monitor: 'Monitor', // 监控
|
monitor: 'Monitor', // 监控
|
||||||
alert: 'Alert', // "告警"
|
alert: 'Alert', // "告警"
|
||||||
asset: 'Assets', // '资产'
|
asset: 'Asset', // '资产'
|
||||||
config: 'Settings', // '设置'
|
config: 'Setting', // '设置'
|
||||||
administration: 'Administration',
|
administration: 'Administration',
|
||||||
configuration: 'configuration',
|
configuration: 'configuration',
|
||||||
create: 'New', // '新增'
|
create: 'New', // '新增'
|
||||||
@@ -404,7 +420,7 @@ const en = {
|
|||||||
traffic: 'Traffic',
|
traffic: 'Traffic',
|
||||||
projectTopoLogy: 'Project Topology',
|
projectTopoLogy: 'Project Topology',
|
||||||
asset: {
|
asset: {
|
||||||
title: 'Assets',
|
title: 'Asset',
|
||||||
assetType: 'Asset type',
|
assetType: 'Asset type',
|
||||||
modelStat: 'Model',
|
modelStat: 'Model',
|
||||||
dcStat: 'Data center',
|
dcStat: 'Data center',
|
||||||
@@ -534,7 +550,7 @@ const en = {
|
|||||||
},
|
},
|
||||||
asset: {
|
asset: {
|
||||||
asset: 'Asset',
|
asset: 'Asset',
|
||||||
assets: 'Assets', // '资产'
|
assets: 'Asset', // '资产'
|
||||||
editAsset: 'Edit asset', // '编辑资产'
|
editAsset: 'Edit asset', // '编辑资产'
|
||||||
createAsset: 'New asset', // '编辑资产'
|
createAsset: 'New asset', // '编辑资产'
|
||||||
batchEditAsset: 'Edit asset in bulk',
|
batchEditAsset: 'Edit asset in bulk',
|
||||||
@@ -617,7 +633,7 @@ const en = {
|
|||||||
pingInfo: 'Ping'
|
pingInfo: 'Ping'
|
||||||
},
|
},
|
||||||
config: {
|
config: {
|
||||||
config: 'Settings', // "设置"
|
config: 'Setting', // "设置"
|
||||||
user: {
|
user: {
|
||||||
userList: 'User list', // "用户列表"
|
userList: 'User list', // "用户列表"
|
||||||
user: 'User',
|
user: 'User',
|
||||||
@@ -652,7 +668,7 @@ const en = {
|
|||||||
mobile: 'Mobile'
|
mobile: 'Mobile'
|
||||||
},
|
},
|
||||||
roles: {
|
roles: {
|
||||||
roles: 'Roles',
|
roles: 'Role',
|
||||||
name: 'Name',
|
name: 'Name',
|
||||||
description: 'Description',
|
description: 'Description',
|
||||||
option: 'Operation', // "操作"
|
option: 'Operation', // "操作"
|
||||||
@@ -693,6 +709,8 @@ const en = {
|
|||||||
name: 'Name',
|
name: 'Name',
|
||||||
up: 'UP',
|
up: 'UP',
|
||||||
down: 'Down',
|
down: 'Down',
|
||||||
|
host: 'Host',
|
||||||
|
port: 'Port',
|
||||||
agent: {
|
agent: {
|
||||||
agent: 'Agent',
|
agent: 'Agent',
|
||||||
title: 'Download agent',
|
title: 'Download agent',
|
||||||
@@ -746,7 +764,10 @@ const en = {
|
|||||||
},
|
},
|
||||||
terminallog: {
|
terminallog: {
|
||||||
terminallog: 'Terminal log',
|
terminallog: 'Terminal log',
|
||||||
status: 'Statu', // "状态"
|
status: 'State', // "状态"
|
||||||
|
username: 'Username',
|
||||||
|
SessionID: 'Session ID',
|
||||||
|
authtype: 'AuthType',
|
||||||
statusItem: {
|
statusItem: {
|
||||||
connecting: 'Connecting',
|
connecting: 'Connecting',
|
||||||
connectionFailed: 'Connection failed',
|
connectionFailed: 'Connection failed',
|
||||||
@@ -861,7 +882,11 @@ const en = {
|
|||||||
auth: 'Authentication',
|
auth: 'Authentication',
|
||||||
method: 'Method',
|
method: 'Method',
|
||||||
encryption: 'Encryption',
|
encryption: 'Encryption',
|
||||||
pin: 'Password'
|
pin: 'Password',
|
||||||
|
ReadCommunity: 'Read community',
|
||||||
|
writeCommunity: 'Write community',
|
||||||
|
username: 'Username',
|
||||||
|
contextName: 'Context name'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
system: {
|
system: {
|
||||||
@@ -1014,9 +1039,10 @@ const en = {
|
|||||||
editAssetState: 'Edit asset state'
|
editAssetState: 'Edit asset state'
|
||||||
},
|
},
|
||||||
assetLabel: {
|
assetLabel: {
|
||||||
addMeta: 'Add labels',
|
addMeta: 'Add label',
|
||||||
example: 'Example',
|
example: 'Example',
|
||||||
assetLabel: 'Asset labels',
|
editMeta: 'Edit lables',
|
||||||
|
assetLabel: 'Asset label',
|
||||||
all: 'All',
|
all: 'All',
|
||||||
addGroup: 'Add group',
|
addGroup: 'Add group',
|
||||||
editGroup: 'Edit group',
|
editGroup: 'Edit group',
|
||||||
@@ -1234,7 +1260,7 @@ const en = {
|
|||||||
stateInfo_230010: 'Promserver can be used',
|
stateInfo_230010: 'Promserver can be used',
|
||||||
stateInfo_230011: 'Endpoint connection refused',
|
stateInfo_230011: 'Endpoint connection refused',
|
||||||
alerts: 'Alert',
|
alerts: 'Alert',
|
||||||
labels: 'Labels',
|
labels: 'Label',
|
||||||
pattern: 'Name pattern',
|
pattern: 'Name pattern',
|
||||||
credentials: 'Credentials',
|
credentials: 'Credentials',
|
||||||
scrape_interval: 'Scrape interval',
|
scrape_interval: 'Scrape interval',
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<el-dropdown-menu slot="dropdown">
|
<el-dropdown-menu slot="dropdown">
|
||||||
<el-dropdown-item v-if="showLock">
|
<el-dropdown-item v-if="showLock">
|
||||||
<div @click="panelLock=!panelLock" id="panel-lock"><i :class="{'nz-icon nz-icon-lock':panelLock,'nz-icon nz-icon-unlock':!panelLock}"></i>{{panelLock ? 'Locked' : 'Unlocked'}}</div>
|
<div @click="panelLock=!panelLock" id="panel-lock"><i :class="{'nz-icon nz-icon-lock':panelLock,'nz-icon nz-icon-unlock':!panelLock}"></i>{{panelLock ? $t("overall.locked") : $t("overall.unlocked")}}</div>
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
<slot name="before"></slot>
|
<slot name="before"></slot>
|
||||||
<el-dropdown-item v-if="importUrl">
|
<el-dropdown-item v-if="importUrl">
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
<div class="upload-pic-box" @click="uploadPicChange" v-has="'topo_icon_save'">
|
<div class="upload-pic-box" @click="uploadPicChange" v-has="'topo_icon_save'">
|
||||||
<i class="el-icon-plus"></i>
|
<i class="el-icon-plus"></i>
|
||||||
<span>
|
<span>
|
||||||
Upload custom picture
|
{{ $t('overall.uploadCustomPicture') }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -264,7 +264,7 @@
|
|||||||
</el-dialog>
|
</el-dialog>
|
||||||
<!--Custom picture-->
|
<!--Custom picture-->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
title="Custom picture"
|
:title="title"
|
||||||
:visible.sync="uploadPicShow"
|
:visible.sync="uploadPicShow"
|
||||||
width="auto"
|
width="auto"
|
||||||
@close="uploadPicShow = false"
|
@close="uploadPicShow = false"
|
||||||
@@ -369,6 +369,7 @@ export default {
|
|||||||
name: 'topologyL5',
|
name: 'topologyL5',
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
|
title: this.$t("overall.customPicture"),
|
||||||
objChange: false, // project 变化 用于判断 init是否执行完成 执行完成 才可以执行下次变化
|
objChange: false, // project 变化 用于判断 init是否执行完成 执行完成 才可以执行下次变化
|
||||||
chartDataInfo: {},
|
chartDataInfo: {},
|
||||||
topoPrevData: {}, // 预览数据
|
topoPrevData: {}, // 预览数据
|
||||||
|
|||||||
@@ -23,18 +23,18 @@
|
|||||||
<el-form-item :label='$t("alert.silence.time")' prop="time" class="range-time">
|
<el-form-item :label='$t("alert.silence.time")' prop="time" class="range-time">
|
||||||
<div>
|
<div>
|
||||||
<el-radio-group v-model="rangeTime" size="small" @change="rangeTimeChange">
|
<el-radio-group v-model="rangeTime" size="small" @change="rangeTimeChange">
|
||||||
<el-radio-button label="1">1 hour</el-radio-button>
|
<el-radio-button label="1">{{ $t("overall.oneHour") }}</el-radio-button>
|
||||||
<el-radio-button label="2">2 hour</el-radio-button>
|
<el-radio-button label="2">{{ $t("overall.twoHour") }}</el-radio-button>
|
||||||
<el-radio-button label="6">6hour</el-radio-button>
|
<el-radio-button label="6">{{ $t("overall.sixHour") }}</el-radio-button>
|
||||||
<el-radio-button label="12">12 hour</el-radio-button>
|
<el-radio-button label="12">{{ $t("overall.twelveHour") }}</el-radio-button>
|
||||||
<el-radio-button label="24">1 day</el-radio-button>
|
<el-radio-button label="24">{{ $t("overall.oneDay") }}</el-radio-button>
|
||||||
<el-radio-button label="48">2 day</el-radio-button>
|
<el-radio-button label="48">{{ $t("overall.twoDay") }}</el-radio-button>
|
||||||
<el-radio-button label="168">1 week</el-radio-button>
|
<el-radio-button label="168">{{ $t("overall.week") }}</el-radio-button>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</div>
|
</div>
|
||||||
<div class="datepicker">
|
<div class="datepicker">
|
||||||
<div class="datepicker-box">
|
<div class="datepicker-box">
|
||||||
<span class="datepicker-title">start time</span>
|
<span class="datepicker-title">{{ $t("overall.startTime") }}</span>
|
||||||
<my-date-picker prefix-icon=" " class=" " size="mini" ref="calendar"
|
<my-date-picker prefix-icon=" " class=" " size="mini" ref="calendar"
|
||||||
format="yyyy/MM/dd HH:mm:ss" @change="(val)=>{dateChange(val,'startAt')}" v-model="editAlertSilence.startAt"
|
format="yyyy/MM/dd HH:mm:ss" @change="(val)=>{dateChange(val,'startAt')}" v-model="editAlertSilence.startAt"
|
||||||
type="datetime"
|
type="datetime"
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
</my-date-picker>
|
</my-date-picker>
|
||||||
</div>
|
</div>
|
||||||
<div class="datepicker-box">
|
<div class="datepicker-box">
|
||||||
<span class="datepicker-title">end time</span>
|
<span class="datepicker-title">{{ $t("overall.endTime") }}</span>
|
||||||
<my-date-picker prefix-icon=" " class=" " size="mini" ref="calendar"
|
<my-date-picker prefix-icon=" " class=" " size="mini" ref="calendar"
|
||||||
format="yyyy/MM/dd HH:mm:ss" @change="(val)=>{dateChange(val,'endAt')}" v-model="editAlertSilence.endAt"
|
format="yyyy/MM/dd HH:mm:ss" @change="(val)=>{dateChange(val,'endAt')}" v-model="editAlertSilence.endAt"
|
||||||
type="datetime"
|
type="datetime"
|
||||||
|
|||||||
@@ -93,7 +93,7 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<!--Enpoint template-->
|
<!--Enpoint template-->
|
||||||
<div class="right-box-sub-title">Enpoint template
|
<div class="right-box-sub-title">{{ $t("overall.endpointTemplate") }}
|
||||||
<el-tooltip placement="top" effect="light">
|
<el-tooltip placement="top" effect="light">
|
||||||
<div slot="content">
|
<div slot="content">
|
||||||
{{$t('project.module.tip.defaultEndpointSet')}}
|
{{$t('project.module.tip.defaultEndpointSet')}}
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<!--Enpoint template-->
|
<!--Enpoint template-->
|
||||||
<div class="right-box-sub-title">Enpoint template
|
<div class="right-box-sub-title">{{ $t("overall.endpointTemplate") }}
|
||||||
<el-tooltip placement="top" effect="light">
|
<el-tooltip placement="top" effect="light">
|
||||||
<div slot="content">
|
<div slot="content">
|
||||||
{{$t('project.module.tip.defaultEndpointSet')}}
|
{{$t('project.module.tip.defaultEndpointSet')}}
|
||||||
|
|||||||
@@ -27,16 +27,16 @@
|
|||||||
<el-form-item :label='$t("config.mib.credential.port")' prop="port" >
|
<el-form-item :label='$t("config.mib.credential.port")' prop="port" >
|
||||||
<el-input placeholder="" v-model.number="editCredential.port" size="small" id="credential-box-input-port"></el-input>
|
<el-input placeholder="" v-model.number="editCredential.port" size="small" id="credential-box-input-port"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label='Read community' prop="readCommunity" v-if="editCredential.type ===1 || editCredential.type === 2">
|
<el-form-item :label='$t("config.mib.credential.ReadCommunity")' prop="readCommunity" v-if="editCredential.type ===1 || editCredential.type === 2">
|
||||||
<el-input placeholder="" autocomplete="new-password" v-model="editCredential.config.readCommunity" size="small" id="credential-box-input-readCommunity"></el-input>
|
<el-input placeholder="" autocomplete="new-password" v-model="editCredential.config.readCommunity" size="small" id="credential-box-input-readCommunity"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label='Write community' prop="writeCommunity" v-if="editCredential.type ===1 || editCredential.type === 2">
|
<el-form-item :label='$t("config.mib.credential.writeCommunity")' prop="writeCommunity" v-if="editCredential.type ===1 || editCredential.type === 2">
|
||||||
<el-input placeholder="" autocomplete="new-password" v-model="editCredential.config.writeCommunity" size="small" id="credential-box-input-writeCommunity" type="password" show-password></el-input>
|
<el-input placeholder="" autocomplete="new-password" v-model="editCredential.config.writeCommunity" size="small" id="credential-box-input-writeCommunity" type="password" show-password></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Username" prop="username" v-if="editCredential.type === 3">
|
<el-form-item :label='$t("config.mib.credential.username")' prop="username" v-if="editCredential.type === 3">
|
||||||
<el-input placeholder="" v-model="editCredential.config.username" size="small" id="credential-box-input-username"></el-input>
|
<el-input placeholder="" v-model="editCredential.config.username" size="small" id="credential-box-input-username"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="Content name" prop="contextname" v-if="editCredential.type === 3">
|
<el-form-item :label='$t("config.mib.credential.contextName")' prop="contextname" v-if="editCredential.type === 3">
|
||||||
<el-input placeholder="" v-model="editCredential.config.contextname" size="small" id="credential-box-input-contextname"></el-input>
|
<el-input placeholder="" v-model="editCredential.config.contextname" size="small" id="credential-box-input-contextname"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
|
|||||||
@@ -93,11 +93,11 @@ export default {
|
|||||||
show: true,
|
show: true,
|
||||||
sortable:'custom'
|
sortable:'custom'
|
||||||
}, {
|
}, {
|
||||||
label: 'Host',
|
label: this.$t('config.agent.host'),
|
||||||
prop: 'host',
|
prop: 'host',
|
||||||
show: true
|
show: true
|
||||||
}, {
|
}, {
|
||||||
label: 'Port',
|
label: this.$t('config.agent.port'),
|
||||||
prop: 'port',
|
prop: 'port',
|
||||||
show: true
|
show: true
|
||||||
}, {
|
}, {
|
||||||
|
|||||||
@@ -114,11 +114,11 @@ export default {
|
|||||||
show: true,
|
show: true,
|
||||||
width: 80
|
width: 80
|
||||||
}, {
|
}, {
|
||||||
label: 'Session ID',
|
label: this.$t('config.terminallog.SessionID'),
|
||||||
prop: 'uuid',
|
prop: 'uuid',
|
||||||
show: true
|
show: true
|
||||||
}, {
|
}, {
|
||||||
label: 'Username',
|
label: this.$t('config.terminallog.username'),
|
||||||
prop: 'username',
|
prop: 'username',
|
||||||
show: true
|
show: true
|
||||||
},
|
},
|
||||||
@@ -148,7 +148,7 @@ export default {
|
|||||||
show: true
|
show: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'AuthType',
|
label: this.$t('config.terminallog.authtype'),
|
||||||
prop: 'authType',
|
prop: 'authType',
|
||||||
show: false
|
show: false
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<div v-if="plugins.indexOf('metric-selector') > -1">
|
<div v-if="plugins.indexOf('metric-selector') > -1">
|
||||||
<el-dropdown class="metric-selector">
|
<el-dropdown class="metric-selector">
|
||||||
<el-dropdown-menu style="display: none"></el-dropdown-menu>
|
<el-dropdown-menu style="display: none"></el-dropdown-menu>
|
||||||
<button class="top-tool-btn top-tool-btn--text" type="button" @click="toggleDropdown">Metric
|
<button class="top-tool-btn top-tool-btn--text" type="button" @click="toggleDropdown">{{ $t("overall.metric") }}
|
||||||
<i class="nz-icon nz-icon-arrow-down" style="font-size: 12px"></i></button>
|
<i class="nz-icon nz-icon-arrow-down" style="font-size: 12px"></i></button>
|
||||||
<el-cascader-panel v-show="dropDownVisible" ref="metricSelector" slot="dropdown" v-model="cascaderValue"
|
<el-cascader-panel v-show="dropDownVisible" ref="metricSelector" slot="dropdown" v-model="cascaderValue"
|
||||||
v-clickoutside="closeDropdown" v-loading="tempBoxShowLoading" :loading="loading" :options="metricOptions"
|
v-clickoutside="closeDropdown" v-loading="tempBoxShowLoading" :loading="loading" :options="metricOptions"
|
||||||
|
|||||||
@@ -52,12 +52,12 @@
|
|||||||
>
|
>
|
||||||
<template v-slot:before>
|
<template v-slot:before>
|
||||||
<el-dropdown-item>
|
<el-dropdown-item>
|
||||||
<div id="panel-lock" @click="panelLock=!panelLock"><i :class="{'nz-icon nz-icon-lock':panelLock,'nz-icon nz-icon-unlock':!panelLock}"></i>{{panelLock ? 'Locked' : 'Unlocked'}}</div>
|
<div id="panel-lock" @click="panelLock=!panelLock"><i :class="{'nz-icon nz-icon-lock':panelLock,'nz-icon nz-icon-unlock':!panelLock}"></i>{{panelLock ? $t('overall.locked') : $t('overall.unlocked')}}</div>
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
</template>
|
</template>
|
||||||
<template v-slot:after>
|
<template v-slot:after>
|
||||||
<el-dropdown-item v-has="'panel_chart_add'">
|
<el-dropdown-item v-has="'panel_chart_add'">
|
||||||
<div id="chart-temp-add" @click="addChartByTemp"><i class="nz-icon nz-icon-add"></i>Add by template</div>
|
<div id="chart-temp-add" @click="addChartByTemp"><i class="nz-icon nz-icon-add"></i>{{ $t('overall.AddByTemplate') }}</div>
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
</template>
|
</template>
|
||||||
</top-tool-more-options>
|
</top-tool-more-options>
|
||||||
|
|||||||
Reference in New Issue
Block a user