Merge branch 'dev-3.3' of https://git.mesalab.cn/nezha/nezha-fronted into dev-3.3
This commit is contained in:
@@ -45,6 +45,7 @@
|
|||||||
right: 0;
|
right: 0;
|
||||||
left: unset !important;
|
left: unset !important;
|
||||||
top: 30px;
|
top: 30px;
|
||||||
|
z-index: 600;
|
||||||
}
|
}
|
||||||
.nz-icon-minus-medium {
|
.nz-icon-minus-medium {
|
||||||
color: $--color-text-regular;
|
color: $--color-text-regular;
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
.profile {
|
.profile {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: calc(100% - 10px);
|
height: 100%;
|
||||||
.profile-left {
|
.profile-left {
|
||||||
margin: 10px 0 10px 10px;
|
//margin: 10px 0 10px 10px;
|
||||||
background: $--background-color-empty;
|
background: $--background-color-empty;
|
||||||
box-shadow: 0 1px 2px 0 rgba(0,0,0,0.06);
|
box-shadow: 0 1px 2px 0 rgba(0,0,0,0.06);
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
height: calc(100% - 20px);
|
//height: calc(100% - 20px);
|
||||||
|
border-right: 1px solid $--explore-border-color-bottom;
|
||||||
width: 360px;
|
width: 360px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -224,7 +225,7 @@
|
|||||||
}
|
}
|
||||||
.list-page.profile-right {
|
.list-page.profile-right {
|
||||||
width: calc(100% - 370px);
|
width: calc(100% - 370px);
|
||||||
padding: 11px 10px 7px 10px;
|
padding: 0px 0px 7px 0px;
|
||||||
pxbox-shadow: 0 1px 2px 0 rgba(0,0,0,0.06);
|
pxbox-shadow: 0 1px 2px 0 rgba(0,0,0,0.06);
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
.nz-table2 {
|
.nz-table2 {
|
||||||
|
|||||||
@@ -123,6 +123,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.select-panel-title{
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
/* end-chart list*/
|
/* end-chart list*/
|
||||||
.panel-loading {
|
.panel-loading {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -191,6 +191,9 @@ export default {
|
|||||||
offset = moment.tz(offset).format('Z')
|
offset = moment.tz(offset).format('Z')
|
||||||
offset = Number.parseInt(offset)
|
offset = Number.parseInt(offset)
|
||||||
const localOffset = new Date().getTimezoneOffset() * 60 * 1000 * -1 // 默认 一分钟显示时区偏移的结果
|
const localOffset = new Date().getTimezoneOffset() * 60 * 1000 * -1 // 默认 一分钟显示时区偏移的结果
|
||||||
|
if (window.dataJson) {
|
||||||
|
offset = new Date().getTimezoneOffset()* -1/60
|
||||||
|
}
|
||||||
const tData = new Date(value - localOffset + offset * 60 * 60 * 1000)
|
const tData = new Date(value - localOffset + offset * 60 * 60 * 1000)
|
||||||
let hour = tData.getHours()
|
let hour = tData.getHours()
|
||||||
hour = hour > 9 ? hour : '0' + hour // 加0补充为两位数字
|
hour = hour > 9 ? hour : '0' + hour // 加0补充为两位数字
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export default {
|
|||||||
format: 'html',
|
format: 'html',
|
||||||
panelId: this.showPanel.id,
|
panelId: this.showPanel.id,
|
||||||
start: this.$stringTimeParseToUnix(bus.formateTimeToTime(this.searchTime[0])),
|
start: this.$stringTimeParseToUnix(bus.formateTimeToTime(this.searchTime[0])),
|
||||||
end: this.$stringTimeParseToUnix(bus.formateTimeToTime(this.searchTime[0]))
|
end: this.$stringTimeParseToUnix(bus.formateTimeToTime(this.searchTime[1]))
|
||||||
}
|
}
|
||||||
this.$get('/visual/panel/snapshot', params, 'blob').then(res => {
|
this.$get('/visual/panel/snapshot', params, 'blob').then(res => {
|
||||||
const self = this
|
const self = this
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<span class="select-refresh-time-label" v-if="interval !== -1">{{interLabel}}</span>
|
<span class="select-refresh-time-label" v-if="interval !== -1">{{interLabel}}</span>
|
||||||
<i class="nz-icon nz-icon-arrow-down" style="font-size: 12px;"></i>
|
<i class="nz-icon nz-icon-arrow-down" style="font-size: 12px;"></i>
|
||||||
<transition name="el-zoom-in-top">
|
<transition name="el-zoom-in-top">
|
||||||
<ul v-show="dropdownShow" class="el-dropdown-menu el-popper el-dropdown-menu--mini nz-dropdown">
|
<ul v-show="dropdownShow" class="el-dropdown-menu el-popper el-dropdown-menu--mini nz-dropdown" v-clickoutside="dropdownHandler">
|
||||||
<li v-for="i in $CONSTANTS.intervalList" :key="i.value + i.label" :style="{color:interval === i.value || interval.value === i.value ? theme.themeColor : ''}" class="el-dropdown-menu__item dropdown-content" @click="selectInterval(i)">
|
<li v-for="i in $CONSTANTS.intervalList" :key="i.value + i.label" :style="{color:interval === i.value || interval.value === i.value ? theme.themeColor : ''}" class="el-dropdown-menu__item dropdown-content" @click="selectInterval(i)">
|
||||||
{{$t(i.label)}}
|
{{$t(i.label)}}
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -303,14 +303,12 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.theme-light .select-panel-title{
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
.starred-tree>>>.el-tree__empty-block{
|
.starred-tree>>>.el-tree__empty-block{
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.select-panel-title{
|
|
||||||
font-weight: bold;
|
|
||||||
font-size: 14px;
|
|
||||||
color: #333;
|
|
||||||
}
|
|
||||||
.el-rate__icon{
|
.el-rate__icon{
|
||||||
color: #C0C4CC !important;
|
color: #C0C4CC !important;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<div style="display: flex;flex-direction: column">
|
<div style="display: flex;flex-direction: column">
|
||||||
<!-- <i class="nz-icon nz-icon-arrow-down"/>-->
|
<!-- <i class="nz-icon nz-icon-arrow-down"/>-->
|
||||||
<div style="font-size: 18px;font-weight: 600;color: #333;margin-bottom: 3px;text-align: right"> {{dataJson.panel.data.name}} </div>
|
<div style="font-size: 18px;font-weight: 600;color: #333;margin-bottom: 3px;text-align: right"> {{dataJson.panel.data.name}} </div>
|
||||||
<span> {{timeFormate(dataJson.start * 1000)}} - {{timeFormate(dataJson.start * 1000)}} </span>
|
<span> {{timeFormate(dataJson.start * 1000)}} - {{timeFormate(dataJson.end * 1000)}} </span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="dashboardScrollbar" class="box-content" ref="dashboardScrollbar" style='overflow:hidden; overflow-y: auto;height: calc(100% - 60px)'>
|
<div id="dashboardScrollbar" class="box-content" ref="dashboardScrollbar" style='overflow:hidden; overflow-y: auto;height: calc(100% - 60px)'>
|
||||||
@@ -47,6 +47,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import chartList from '@/components/chart/chartList.vue'
|
import chartList from '@/components/chart/chartList.vue'
|
||||||
|
import moment from 'moment-timezone'
|
||||||
import { loadI18n } from '@/components/common/i18n'
|
import { loadI18n } from '@/components/common/i18n'
|
||||||
import i18nData from '@/entrance/exportHtml/i18nData'
|
import i18nData from '@/entrance/exportHtml/i18nData'
|
||||||
const dataJson = window.dataJson || {}
|
const dataJson = window.dataJson || {}
|
||||||
@@ -65,6 +66,8 @@ export default {
|
|||||||
created () {
|
created () {
|
||||||
this.$i18n.locale = this.dataJson.language
|
this.$i18n.locale = this.dataJson.language
|
||||||
loadI18n(i18nData)
|
loadI18n(i18nData)
|
||||||
|
const localOffset = moment.tz.guess()// 默认 一分钟显示时区偏移的结果
|
||||||
|
localStorage.setItem('nz-sys-timezone', JSON.stringify(localOffset))
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
},
|
},
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user