瀏覽代碼

页面跳转刷新

mushencc 3 年之前
父節點
當前提交
ff7e84a78c
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      src/views/PurchasingManage/RequisitionOrder/list.vue

+ 7 - 1
src/views/PurchasingManage/RequisitionOrder/list.vue

@@ -212,6 +212,13 @@ export default {
   mounted () {
     this.initData()
   },
+  beforeRouteEnter(to,from,next){
+        next(vm =>{ 
+      if(from.name === 'RequisitionOrderEdit'){
+        vm.initData()
+      }
+        })
+  },
   methods: {
     initData () {
       this.searchData.start_time = parseInt(new Date(this.searchData.time[0]).getTime() / 1000) || ''
@@ -223,7 +230,6 @@ export default {
           ...this.searchData
         }
       }).then((res) => {
-        console.log(res)
         this.tableData = res.data.data
         this.total = res.data.total
       }).catch((err) => { });