| | |
| | | }, |
| | | watch: { |
| | | $route (to, from) { |
| | | this.$router.go(0); |
| | | console.log("to:",to.fullPath) |
| | | console.log("form:",from.fullPath) |
| | | // 正确打印路由对象的方法 |
| | | if((from.fullPath === "/orderList"|| from.fullPath === "/fictitiousOrderList" ||from.fullPath === "/orderStatistics") && to.fullPath.includes("/order-detail")){ |
| | | this.sn = this.$route.query.sn; |
| | | this.getDataList(); |
| | | this.getOrderPackage(); |
| | | } |
| | | }, |
| | | }, |
| | | methods: { |
| | |
| | | // 获取订单详情 |
| | | getDataList () { |
| | | this.loading = true; |
| | | console.log("执行获取订单信息操作") |
| | | API_Order.orderDetail(this.sn).then((res) => { |
| | | this.loading = false; |
| | | if (res.success) { |
| | |
| | | }, |
| | | }, |
| | | mounted () { |
| | | console.log("加载数据") |
| | | this.sn = this.$route.query.sn; |
| | | this.getDataList(); |
| | | this.getOrderPackage(); |