Commit 16138a37 by 潘际乾

复核bug

parent d25e6dbc
......@@ -89,6 +89,6 @@ export default {
},
async handlePass(data) {
this.$store.state.Transaction.operateFuns[data.operateId]["pass"]()
},
},
},
};
......@@ -5,6 +5,7 @@ import Display from "../views/Display";
import Login from "../views/Login";
import Layout from "../views/Layout";
import BusRouter from "../views/Business/BusRouter";
import ReviewRouter from "../views/Review/ReviewRouter";
import DocRouter from "../views/Docpan/DocRouter";
Vue.use(VueRouter);
......@@ -15,12 +16,6 @@ const DisplayRouter = BusRouter.map(route => {
return newRoute;
})
const ReviewRouter = BusRouter.map(route => {
const newRoute = Object.assign({}, route)
newRoute.name = newRoute.name + 'Review'
return newRoute;
})
/**
* Detail see: https://panjiachen.github.io/vue-element-admin-site/guide/essentials/router-and-nav.html
*
......
......@@ -145,7 +145,7 @@ const BusRouter = [
{ path: 'ditame', component: Ditame, name: 'Ditame', meta: { title: '信用证修改' } },
{ path: 'ditcan', component: Ditcan, name: 'Ditcan', meta: { title: '信用证注销' } },
{ path: 'ditsel', component: Ditsel, name: 'Ditsel', meta: { title: '信用证查询' } },
{ path: 'ditopn', component: Ditopn, name: 'Ditopn', meta: { title: (tag) => { return tag.path.startsWith("/review") ? "复核" : '买方信用证开立' } } },
{ path: 'ditopn', component: Ditopn, name: 'Ditopn', meta: { title: '买方信用证开立' } },
{ path: 'infdid', component: Infdid, name: 'Infdid', meta: { title: '信用证交易查询' } },
{ path: 'ditdck', component: Ditdck, name: 'Ditdck', meta: { title: '信用证到单' } },
// 例
......
......@@ -14,11 +14,7 @@
<el-main class="m-app-main">
<tagViews></tagViews>
<div style="height: 2px"></div>
<keep-alive>
<component v-bind:is="activeComponentName"></component>
</keep-alive>
<!-- <business v-if="activeComponentName === 'Business'"></business>
<review v-if="activeComponentName === 'Review'"></review> -->
<business></business>
<toolbars></toolbars>
</el-main>
</el-container>
......@@ -30,17 +26,11 @@ import headerCom from "./Header";
import sideMenu from "./SideMenu";
import tagViews from "./components/TagsView";
import business from "../Business";
import review from "../Review";
import toolbars from "~/components/Toolbars";
export default {
name: "Layout",
components: { headerCom, sideMenu, tagViews, business, review, toolbars },
computed: {
activeComponentName() {
return this.$route.path.startsWith("/review") ? "review" : "business"
}
}
components: { headerCom, sideMenu, tagViews, business, toolbars },
};
</script>
......
<template>
<ReviewWrapper>
<businessContainer ref="business"></businessContainer>
<Ditopn></Ditopn>
</ReviewWrapper>
</template>
<script>
import businessContainer from "../Business";
import { ReviewWrapper } from "../../components/gj-common.min.js";
import Ditopn from "~/views/Business/Ditopn";
import { ReviewWrapper } from "~/components/gj-common.min.js";
export default {
name: "Review",
components: { ReviewWrapper, businessContainer },
name: "ReviewDitopn",
components: { ReviewWrapper, Ditopn },
created() {},
mounted() {},
};
......
import ReviewDitopn from "./Business/ReviewDitopn.vue";
const ReviewRouter = [
{ path: "ditopn", component: ReviewDitopn, name: "ReviewDitopn", meta: { title: "复核-买方信用证开立" } },
];
export default ReviewRouter;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment