| | |
| | | <div class="single-page-con" :style="{ 'top': setting.isUseTabsRouter ? '100px' : '60px', height: setting.isUseTabsRouter ? 'calc(100% - 110px)' : 'calc(100% - 70px)' }"> |
| | | <div class="single-page"> |
| | | <!-- <keep-alive :include="cachePage"> --> |
| | | <keep-alive include="orderList"> |
| | | <router-view></router-view> |
| | | </keep-alive> |
| | | <!-- </keep-alive> --> |
| | | </div> |
| | | </div> |
| | |
| | | }, |
| | | }, |
| | | |
| | | watch: { |
| | | $route (to, from) { |
| | | // 正确打印路由对象的方法 |
| | | if(from.fullPath === "/member" && to.fullPath.includes("/orderList")){ |
| | | this.id = this.$route.query.id; |
| | | this.init(); |
| | | |
| | | } |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.id = this.$route.query.id; |
| | | this.init(); |
| | |
| | | }, |
| | | watch: { |
| | | $route (to, from) { |
| | | this.$router.go(0); |
| | | console.log("to:",to.fullPath) |
| | | console.log("form:",from.fullPath) |
| | | // 正确打印路由对象的方法 |
| | | if(from.fullPath === "/orderList" && to.fullPath.includes("/order-detail")){ |
| | | this.sn = this.$route.query.sn; |
| | | this.getDataList(); |
| | | this.getOrderPackage(); |
| | | } |
| | | }, |
| | | }, |
| | | methods: { |
| | |
| | | }, |
| | | }, |
| | | mounted () { |
| | | console.log("加载数据") |
| | | this.sn = this.$route.query.sn; |
| | | this.getDataList(); |
| | | this.getOrderPackage(); |
| | |
| | | :data="data" |
| | | ref="table" |
| | | sortable="custom" |
| | | ></Table> |
| | | > |
| | | <template slot="sn" slot-scope="{ row }"> |
| | | <div style="width: 100%" @click="detail(row)"> |
| | | <span>{{row.sn}}</span> |
| | | </div> |
| | | </template> |
| | | <template slot="nickName" slot-scope="{ row }"> |
| | | <div style="width: 100%" @click="handleNickNameClick(row)"> |
| | | <span >{{row.nickName}}</span> |
| | | </div> |
| | | |
| | | </template> |
| | | |
| | | </Table> |
| | | |
| | | <Row type="flex" justify="end" class="mt_10"> |
| | | <Page |
| | |
| | | key: "sn", |
| | | minWidth: 240, |
| | | tooltip: true, |
| | | slot: 'sn' |
| | | }, |
| | | |
| | | { |
| | |
| | | }, |
| | | { |
| | | title: "买家名称", |
| | | key: "memberName", |
| | | key: "nickName", |
| | | minWidth: 130, |
| | | tooltip: true, |
| | | slot:'nickName' |
| | | }, |
| | | |
| | | { |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | handleNickNameClick(row){ |
| | | this.$options.filters.customRouterPush({ name: "member-detail", query: { id: row.memberId } }) |
| | | }, |
| | | // 初始化数据 |
| | | init() { |
| | | this.getDataList(); |
| | |
| | | // 跳转详情页面 |
| | | detail(v) { |
| | | let sn = v.sn; |
| | | this.$options.filters.customRouterPush({ |
| | | this.$router.push({ |
| | | name: "order-detail", |
| | | query: { sn: sn }, |
| | | }) |
| | | |
| | | }, |
| | | // 导出订单 |
| | | async exportOrder() { |