diff --git a/nezha-fronted/src/components/charts/chart-alert-list.vue b/nezha-fronted/src/components/charts/chart-alert-list.vue
index 26220fc4b..f97d0a22d 100644
--- a/nezha-fronted/src/components/charts/chart-alert-list.vue
+++ b/nezha-fronted/src/components/charts/chart-alert-list.vue
@@ -51,6 +51,7 @@
@deleteMessage="deleteMessage"
ref="alertListTable"
:form="'chartList'"
+ :fromPath="'/alertList'"
>
@@ -71,6 +72,7 @@
@deleteMessage="deleteMessage"
ref="alertListScreenTable"
:form="'chartList'"
+ :fromPath="'/alertList'"
>
diff --git a/nezha-fronted/src/components/common/alert/alertMessageTable.vue b/nezha-fronted/src/components/common/alert/alertMessageTable.vue
index 58c583073..b2a95ee3f 100644
--- a/nezha-fronted/src/components/common/alert/alertMessageTable.vue
+++ b/nezha-fronted/src/components/common/alert/alertMessageTable.vue
@@ -159,12 +159,13 @@
+ v-clickoutside="elementsetHide"
+ :table-title="tableTitle"
+ :dropCol="dropCol"
+ @tablelable="tablelabelEmit"
+ ref="elementset"
+ :path="this.fromPath"
+ >
@@ -234,7 +235,8 @@
tableHeight:{},
tableId:{},
projectAlertId:{},
- from:{}
+ from:{},
+ fromPath:{},
},
data() {
vm = this;
@@ -859,6 +861,9 @@
showSubList(n) {
this.$bottomBoxWindow.showSubListWatch(vm, n);
},
+ from(n){
+ console.log(n)
+ },
},
mounted() {
//是否存在分页缓存
@@ -887,22 +892,25 @@
});
}
});
- if(this.from=='alertMessage' || this.from=='chartList'){
+ if(this.from=='alertMessage'){
this.tablelable = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path)
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path))
: this.tableTitle;
this.dropCol = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path)
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-" + this.$route.path))
: this.tableTitle;
+ console.log(1);
}
- if(this.from=='alertMessageTab'){
+ if(this.from=='alertMessageTab' || this.from=='chartList'){
this.tablelable = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-/alertList")
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-/alertList"))
: this.tableTitle;
this.dropCol = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-/alertList")
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-/alertList"))
: this.tableTitle;
+ console.log(2);
}
+ console.log( this.tableTitle,this.fromPath,this.form,this.tablelable);
}
}
diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue
index 622e4318e..8bab1980b 100644
--- a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue
+++ b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue
@@ -28,18 +28,19 @@
@tableDataSort="tableDataSort"
@deleteMessage="deleteMessage"
:from="'alertMessageTab'"
+ :fromPath="'/alertList'"
>
-
+
+
+
+
+
+
+
+
+
+
diff --git a/nezha-fronted/src/components/page/alert/list.vue b/nezha-fronted/src/components/page/alert/list.vue
index bff6ea1b3..d9a36ef11 100644
--- a/nezha-fronted/src/components/page/alert/list.vue
+++ b/nezha-fronted/src/components/page/alert/list.vue
@@ -38,7 +38,7 @@
:tableId="tableId"
@tableDataSort="tableDataSort"
@deleteMessage="deleteMessage"
- :form="'chartList'"
+ :from="'alertMessage'"
>