|
@@ -1,10 +1,14 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
|
|
|
- <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal">
|
|
|
+ <!--<el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal">
|
|
|
<el-menu-item index="1" @click="backToList">订单列表</el-menu-item>
|
|
|
<el-menu-item index="2">收退款记录</el-menu-item>
|
|
|
- </el-menu>
|
|
|
+ </el-menu>-->
|
|
|
+ <div class="app-header-top" style="width: 100%;float: right;margin-bottom: 10px;">
|
|
|
+ <div class="app-title">收退款记录</div>
|
|
|
+ <el-button type="primary" icon="el-icon-back" style="float: right;" @click="backToList">返回</el-button>
|
|
|
+ </div>
|
|
|
|
|
|
<el-card v-if="order" class="box-card">
|
|
|
<el-row :gutter="24" class="box-row">
|
|
@@ -188,10 +192,18 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
backToList() {
|
|
|
+ let parentPath = '/order/list'
|
|
|
+ const parentView = this.$store.getters.visitedViews.slice(-2)[0]
|
|
|
+ if (parentView) {
|
|
|
+ const oid = parentView.fullPath.split('/').reverse()[0] * 1
|
|
|
+ if (this.orderID === oid) {
|
|
|
+ parentPath = parentView.fullPath
|
|
|
+ }
|
|
|
+ }
|
|
|
this.$store.dispatch('tagsView/delView', this.$route).then(() => {
|
|
|
this.$nextTick(() => {
|
|
|
this.$router.replace({
|
|
|
- path: '/order/list'
|
|
|
+ path: parentPath
|
|
|
})
|
|
|
})
|
|
|
})
|
|
@@ -201,6 +213,13 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
+ .app-title{
|
|
|
+ float: left;
|
|
|
+ line-height: 36px;
|
|
|
+ font-size: 18px;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #999999;
|
|
|
+ }
|
|
|
h1{
|
|
|
color: #409EFF;
|
|
|
font-size: 24px;
|