diff --git a/nezha-fronted/src/assets/css/components/chart/chart.scss b/nezha-fronted/src/assets/css/components/chart/chart.scss index 426dffe62..ff02f21a2 100644 --- a/nezha-fronted/src/assets/css/components/chart/chart.scss +++ b/nezha-fronted/src/assets/css/components/chart/chart.scss @@ -16,7 +16,7 @@ display: flex; position: relative; flex-direction: column; - &:hover .chart-header.chart-header--float{ + &:hover > .chart-header.chart-header--float{ background-color: $--chart-title-hover-background-color; height: 39px; opacity: 1; @@ -748,4 +748,4 @@ white-space: nowrap; text-overflow: ellipsis; overflow: hidden; -} \ No newline at end of file +} diff --git a/nezha-fronted/src/assets/css/components/common/alert/alertMessageInfo.scss b/nezha-fronted/src/assets/css/components/common/alert/alertMessageInfo.scss index 099500fd7..167abb546 100644 --- a/nezha-fronted/src/assets/css/components/common/alert/alertMessageInfo.scss +++ b/nezha-fronted/src/assets/css/components/common/alert/alertMessageInfo.scss @@ -51,16 +51,23 @@ display: flex; flex-direction: column; - .nz-chart { + .info-box-left-top { height: 36%; margin-bottom: 20px; border: 1px solid $--border-color-light; flex: none; + .nz-chart{ + height: 100%; + } + } + .nz-chart{ + height: 100%; + padding-bottom: 0; } - .alert-message-info-tab { height: 61.8%; flex: 1; + flex-shrink: 0; .alert-label-header-title3 { display: none; @@ -401,6 +408,49 @@ .alert-message-info-tab { .el-tabs.el-tabs--card.el-tabs--top { .el-tabs__content { + height: 100%; + width: 100%; + overflow: hidden; + box-sizing: border-box; + .el-tab-pane { + height: 100%; + width: 100%; + .vue-grid-layout { + padding-bottom: 0; + } + } + .alert-message-info-dashboard { + height: 100%; + width: 100%; + overflow: hidden; + box-sizing: border-box; + .integration-dashboard{ + box-sizing: border-box; + height: 100%; + .dashboard-container{ + height: 100%; + .table-list{ + height: 100%; + .no-data { + text-align: center; + position: absolute; + width: 100%; + top: 50%; + margin-top: -54px; + .no-data-div { + color: $--color-text-regular; + } + } + } + } + .right-box.right-box-dashboard-temp{ + top: 0; + height: 100%; + z-index: 2001; + } + } + } + #pane-alertRule{ .alert-rule-nfo{ .alert-rule-box{ diff --git a/nezha-fronted/src/components/chart/chartList.vue b/nezha-fronted/src/components/chart/chartList.vue index 9121c1008..648d35b66 100644 --- a/nezha-fronted/src/components/chart/chartList.vue +++ b/nezha-fronted/src/components/chart/chartList.vue @@ -768,10 +768,10 @@ export default { // 当前设备是移动设备 this.isPhone = true } + this.noData = !n || n.length < 1 this.gridLayoutShow = false this.firstInit = true this.gridLayoutLoading = true - this.noData = !n || n.length < 1 if (!this.isGroup) { const position = getLayoutPosition(n) this.$store.commit('setChartLastPosition', position) diff --git a/nezha-fronted/src/components/common/alert/alertMessageInfo.vue b/nezha-fronted/src/components/common/alert/alertMessageInfo.vue index e30d1cff6..0ef16d518 100644 --- a/nezha-fronted/src/components/common/alert/alertMessageInfo.vue +++ b/nezha-fronted/src/components/common/alert/alertMessageInfo.vue @@ -23,25 +23,28 @@
- +
+ +
diff --git a/nezha-fronted/src/components/common/alert/alertMessageInfoTab.vue b/nezha-fronted/src/components/common/alert/alertMessageInfoTab.vue index b7c55e858..ccad019ba 100644 --- a/nezha-fronted/src/components/common/alert/alertMessageInfoTab.vue +++ b/nezha-fronted/src/components/common/alert/alertMessageInfoTab.vue @@ -5,6 +5,9 @@
+
+ +
-

{{showPanel.name}}

+

{{showPanel.name}}

- @@ -18,13 +18,15 @@
@@ -51,7 +53,24 @@ import chartDataFormat from '@/components/chart/chartDataFormat' export default { name: 'integration-dashboard', props: { - tempId: Number + tempId: Number, + showImport: { + type: Boolean, + default: true + }, + showName: { + type: Boolean, + default: true + }, + urlType: { + type: String, + default: 'template' + }, + time: {}, + from: { + type: String, + default: fromRoute.integration + } }, computed: { chartRightBoxShow () { @@ -145,7 +164,7 @@ export default { }, // 公用操作 getTableData () { - this.$get('visual/dashboard', { type: 'template', ids: this.tempId }).then(response => { + this.$get('visual/dashboard', { type: this.urlType, ids: this.tempId }).then(response => { if (response.code === 200) { this.panelData = response.data.list if (this.panelData.length > 0) { @@ -174,9 +193,22 @@ export default { mounted () { this.scrollbarWrap = this.$refs.dashboardScrollbar this.onScroll() - this.getTableData() + // this.getTableData() }, watch: { + urlType: { // 判断请求的是temp 还是正常访问 + immediate: true, + handler () {} + }, + time: { // 时间范围 + immediate: true, + handler () { + if (this.time) { + this.getTableData() + this.searchTime = this.time + } + } + }, // 监听图表联动配置 'showPanel.param.chartShare': { handler (value) { diff --git a/nezha-fronted/src/components/page/integration/integration-tabs/integration-tabs.vue b/nezha-fronted/src/components/page/integration/integration-tabs/integration-tabs.vue index 91c8af676..362cada24 100644 --- a/nezha-fronted/src/components/page/integration/integration-tabs/integration-tabs.vue +++ b/nezha-fronted/src/components/page/integration/integration-tabs/integration-tabs.vue @@ -9,7 +9,7 @@ - +
@@ -45,7 +45,8 @@ export default { data () { return { tabs: [], - tabId: '' + tabId: '', + time: [0, 15] } }, methods: { diff --git a/nezha-fronted/src/components/page/monitor/project/projectList.vue b/nezha-fronted/src/components/page/monitor/project/projectList.vue index 7517fc6c8..fde3b187c 100644 --- a/nezha-fronted/src/components/page/monitor/project/projectList.vue +++ b/nezha-fronted/src/components/page/monitor/project/projectList.vue @@ -134,7 +134,6 @@ export default { }, methods: { getTableData (params) { - console.log('213123123') if (params && Object.keys(params).length > 0) { for (const key in params) { this.$set(this.searchLabel, key, params[key]) @@ -197,9 +196,7 @@ export default { }) }, delCallBack (id) { - console.log(id, 'id') if (id.indexOf(this.$store.state.currentProject.id) !== -1) { - console.log(123, id) this.$store.commit('currentProjectChange', { id: '', name: '',