gcz hace 4 años
padre
commit
dac61c10e4
Se han modificado 2 ficheros con 4 adiciones y 3 borrados
  1. 3 3
      src/views/oms/order/index.vue
  2. 1 0
      src/views/pms/product/index.vue

+ 3 - 3
src/views/oms/order/index.vue

@@ -320,10 +320,10 @@
     },
     created() {
       let storage = window.sessionStorage;  
-      let currentPage = storage.getItem('productPage');
+      let currentPage = storage.getItem('orderPage');
       if(currentPage){this.listQuery.pageNum = Number(currentPage)};
       this.getList();
-      storage.removeItem('productPage');//使用后删除,否则从其他页面进来也不一定是第一页
+      storage.removeItem('orderPage');//使用后删除,否则从其他页面进来也不一定是第一页
     },
     filters: {
       formatCreateTime(time) {
@@ -476,7 +476,7 @@
           this.total = response.data.total;
         });
         let storage = window.sessionStorage; 
-        storage.setItem('productPage',this.listQuery.pageNum);
+        storage.setItem('orderPage',this.listQuery.pageNum);
       },
       deleteOrder(ids){
         this.$confirm('是否要进行该删除操作?', '提示', {

+ 1 - 0
src/views/pms/product/index.vue

@@ -635,6 +635,7 @@
         this.getList();
       },
       handleAddProduct() {
+        window.sessionStorage.removeItem('productPage');//新增需要返回第一页
         this.$router.push({path:'/pms/addProduct'});
       },
       handleBatchOperate() {