style:去除按钮hover样式 以及修改单词
This commit is contained in:
@@ -267,11 +267,11 @@ li{
|
|||||||
padding: 4px 6px;
|
padding: 4px 6px;
|
||||||
}
|
}
|
||||||
.nz-btn.nz-btn-style-light:hover:not(.nz-btn-disabled) {
|
.nz-btn.nz-btn-style-light:hover:not(.nz-btn-disabled) {
|
||||||
background-image: $btn-light-background-color-hover;
|
//background-image: $btn-light-background-color-hover;
|
||||||
}
|
}
|
||||||
.nz-btn.nz-btn-style-normal:hover:not(.nz-btn-disabled) {
|
.nz-btn.nz-btn-style-normal:hover:not(.nz-btn-disabled) {
|
||||||
background-image: none;
|
background-image: none;
|
||||||
background-color: $btn-normal-background-color-hover;
|
//background-color: $btn-normal-background-color-hover;
|
||||||
}
|
}
|
||||||
.nz-btn.nz-btn-style-pure-white:hover:not(.nz-btn-disabled) {
|
.nz-btn.nz-btn-style-pure-white:hover:not(.nz-btn-disabled) {
|
||||||
background-color: #dedede;
|
background-color: #dedede;
|
||||||
|
|||||||
@@ -730,14 +730,14 @@ export default {
|
|||||||
params.forEach((item, i) => {
|
params.forEach((item, i) => {
|
||||||
const tip = legend[item.seriesIndex]
|
const tip = legend[item.seriesIndex]
|
||||||
const color = self.bgColorList[item.seriesIndex]
|
const color = self.bgColorList[item.seriesIndex]
|
||||||
if (i === 0) {
|
if (i === 0 && tip.alias.indexOf('Previous ') === -1) {
|
||||||
const value = item.data[0]
|
const value = item.data[0]
|
||||||
const tData = new Date(value)
|
const tData = new Date(value)
|
||||||
str += '<div style="margin-bottom: 5px">'
|
str += '<div style="margin-bottom: 5px">'
|
||||||
str += bus.timeFormate(tData)
|
str += bus.timeFormate(tData)
|
||||||
str += '</div>'
|
str += '</div>'
|
||||||
}
|
}
|
||||||
if (tip.alias.indexOf('process_') !== -1 && minusFlag) {
|
if (tip.alias.indexOf('Previous ') !== -1 && minusFlag) {
|
||||||
const value = item.data[0] - minusTime
|
const value = item.data[0] - minusTime
|
||||||
const tData = new Date(value)
|
const tData = new Date(value)
|
||||||
str += '<div style="margin-bottom: 5px;margin-top: 5px">'
|
str += '<div style="margin-bottom: 5px;margin-top: 5px">'
|
||||||
@@ -1585,8 +1585,8 @@ export default {
|
|||||||
alias = host
|
alias = host
|
||||||
}
|
}
|
||||||
if (pos >= this.data.elements.length) {
|
if (pos >= this.data.elements.length) {
|
||||||
legend.push({ name: 'process_' + host + '-' + elements.id + '-' + innerPos, alias: 'process_' + alias })
|
legend.push({ name: 'Previous ' + host + '-' + elements.id + '-' + innerPos, alias: 'Previous ' + alias })
|
||||||
seriesItem.theData.name = 'process_' + host + '-' + elements.id + '-' + innerPos
|
seriesItem.theData.name = 'Previous ' + host + '-' + elements.id + '-' + innerPos
|
||||||
seriesItem.metric_name = seriesItem.theData.name
|
seriesItem.metric_name = seriesItem.theData.name
|
||||||
} else {
|
} else {
|
||||||
legend.push({ name: host + '-' + elements.id + '-' + innerPos, alias: alias })
|
legend.push({ name: host + '-' + elements.id + '-' + innerPos, alias: alias })
|
||||||
|
|||||||
@@ -501,9 +501,9 @@ export default {
|
|||||||
isGray: false
|
isGray: false
|
||||||
}
|
}
|
||||||
if (promIndex >= this.selectedEndpoints.length) {
|
if (promIndex >= this.selectedEndpoints.length) {
|
||||||
legend.name = 'process_' + legend.name
|
legend.name = 'Previous ' + legend.name
|
||||||
chartData.name = legend.name
|
chartData.name = legend.name
|
||||||
legend.alias = 'process_' + legend.alias
|
legend.alias = 'Previous ' + legend.alias
|
||||||
}
|
}
|
||||||
this.legend.push(legend)
|
this.legend.push(legend)
|
||||||
chartData.data = queryData.values.map((dpsItem, dpsIndex) => {
|
chartData.data = queryData.values.map((dpsItem, dpsIndex) => {
|
||||||
|
|||||||
@@ -304,17 +304,17 @@ const en = {
|
|||||||
lastTwoDay: 'Last 2 days',
|
lastTwoDay: 'Last 2 days',
|
||||||
lastSevenDay: 'Last 7 days',
|
lastSevenDay: 'Last 7 days',
|
||||||
lastThirtyDay: 'Last 30 days',
|
lastThirtyDay: 'Last 30 days',
|
||||||
beforeFiveMin: 'Before 5 minutes',
|
beforeFiveMin: 'Previous 5 minutes',
|
||||||
beforeFifteenMin: 'Before 15 minutes',
|
beforeFifteenMin: 'Previous 15 minutes',
|
||||||
beforeThirtyMin: 'Before 30 minutes',
|
beforeThirtyMin: 'Previous 30 minutes',
|
||||||
beforeOneHour: 'Before 1 hour',
|
beforeOneHour: 'Previous 1 hour',
|
||||||
beforeThreeHour: 'Before 3 hours',
|
beforeThreeHour: 'Previous 3 hours',
|
||||||
beforeSixHour: 'Before 6 hours',
|
beforeSixHour: 'Previous 6 hours',
|
||||||
beforeTwelveHour: 'Before 12 hours',
|
beforeTwelveHour: 'Previous 12 hours',
|
||||||
beforeTwentyFourHour: 'Before 24 hours',
|
beforeTwentyFourHour: 'Previous 24 hours',
|
||||||
beforeTwoDay: 'Before 2 days',
|
beforeTwoDay: 'Previous 2 days',
|
||||||
beforeSevenDay: 'Before 7 days',
|
beforeSevenDay: 'Previous 7 days',
|
||||||
beforeThirtyDay: 'Before 30 days',
|
beforeThirtyDay: 'Previous 30 days',
|
||||||
refreshInterval: {
|
refreshInterval: {
|
||||||
never: 'Off', // '从不'
|
never: 'Off', // '从不'
|
||||||
oneMinute: '1 minute', // 1 minute
|
oneMinute: '1 minute', // 1 minute
|
||||||
|
|||||||
@@ -413,15 +413,15 @@ export default {
|
|||||||
let minusFlag = true
|
let minusFlag = true
|
||||||
let str = '<div>'
|
let str = '<div>'
|
||||||
params.forEach((item, i) => {
|
params.forEach((item, i) => {
|
||||||
if (i === 0) {
|
const alias = this.queryAlias(i)
|
||||||
|
if (i === 0 && alias.indexOf('Previous ') === -1) {
|
||||||
const value = item.data[0]
|
const value = item.data[0]
|
||||||
const tData = new Date(value)
|
const tData = new Date(value)
|
||||||
str += [tData.getFullYear(), tData.getMonth() + 1, tData.getDate()].join('-') + ' ' +
|
str += [tData.getFullYear(), tData.getMonth() + 1, tData.getDate()].join('-') + ' ' +
|
||||||
[tData.getHours(), tData.getMinutes(), tData.getSeconds()].join(':')
|
[tData.getHours(), tData.getMinutes(), tData.getSeconds()].join(':')
|
||||||
str += '<br/>'
|
str += '<br/>'
|
||||||
}
|
}
|
||||||
const alias = this.queryAlias(i)
|
if (alias.indexOf('Previous ') !== -1 && minusFlag) {
|
||||||
if (alias.indexOf('process_') !== -1 && minusFlag) {
|
|
||||||
const value = item.data[0] - this.minusTime
|
const value = item.data[0] - this.minusTime
|
||||||
const tData = new Date(value)
|
const tData = new Date(value)
|
||||||
str += [tData.getFullYear(), tData.getMonth() + 1, tData.getDate()].join('-') + ' ' +
|
str += [tData.getFullYear(), tData.getMonth() + 1, tData.getDate()].join('-') + ' ' +
|
||||||
|
|||||||
Reference in New Issue
Block a user