diff --git a/src/page/wel.vue b/src/page/wel.vue index 4033584..c9f20c7 100644 --- a/src/page/wel.vue +++ b/src/page/wel.vue @@ -976,7 +976,7 @@ export default { }else{ this.$router.push({ path: "/Equipment/state", - query: { flag: 2,electricity:20}, + query: { flag: 2,electricity:'20'}, }); } }, diff --git a/src/views/Equipment/state.vue b/src/views/Equipment/state.vue index 9b8b5cd..bc872b5 100644 --- a/src/views/Equipment/state.vue +++ b/src/views/Equipment/state.vue @@ -723,11 +723,12 @@ export default { mounted() { if(this.$route.query.flag){ if(this.$route.query.flag==1){ - this.searchForm.onLine='0' + this.searchForm.onLine='0'; }else{ - this.searchForm.onLine='1' + this.searchForm.onLine='1'; + this.searchForm.electricity=this.$route.query.electricity } - this.searchForm.electricity=this.$route.query.electricity + } // asd this.getTableList();