|
@@ -180,7 +180,22 @@ export default {
|
|
this.stopQuest();
|
|
this.stopQuest();
|
|
this.alarmState = this.$route.query.alarmState
|
|
this.alarmState = this.$route.query.alarmState
|
|
},
|
|
},
|
|
|
|
+ beforeMount() {
|
|
|
|
+ console.log("beforeMount")
|
|
|
|
+ // 尝试从临时存储中获取搜索条件
|
|
|
|
+ let searchParam = window.sessionStorage.getItem("bellSearchParam");
|
|
|
|
+ searchParam = JSON.parse(searchParam);
|
|
|
|
+ if (searchParam) {
|
|
|
|
+ this.searchKey = searchParam.searchKey;
|
|
|
|
+ this.alarmState = searchParam.alarmState;
|
|
|
|
+ this.aiTypeVal = searchParam.aiTypeVal;
|
|
|
|
+ this.triggerTypeVal = searchParam.triggerTypeVal;
|
|
|
|
+ this.count = searchParam.count;
|
|
|
|
+ this.currentPage = searchParam.currentPage;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
mounted() {
|
|
mounted() {
|
|
|
|
+ console.log("mounted")
|
|
this.searchClickHandle();
|
|
this.searchClickHandle();
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
@@ -236,6 +251,15 @@ export default {
|
|
this.tabList = result.data;
|
|
this.tabList = result.data;
|
|
this.total = result.total;
|
|
this.total = result.total;
|
|
this.libList = result.list;
|
|
this.libList = result.list;
|
|
|
|
+ // 存储搜索条件
|
|
|
|
+ window.sessionStorage.setItem("bellSearchParam",JSON.stringify({
|
|
|
|
+ searchKey: this.searchKey,
|
|
|
|
+ alarmState: this.alarmState,
|
|
|
|
+ aiTypeVal: this.aiTypeVal,
|
|
|
|
+ triggerTypeVal: this.triggerTypeVal,
|
|
|
|
+ count: this.count,
|
|
|
|
+ currentPage: this.currentPage,
|
|
|
|
+ }));
|
|
}else{
|
|
}else{
|
|
this.$message.warning(result.msg);
|
|
this.$message.warning(result.msg);
|
|
}
|
|
}
|