Files
tms-erp-web/src/views/business/waybill-manage.vue
T

37 lines
922 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<!-- 同 waybill-manage-detail.vue:保留旧链接 /business/waybill-manage?detailId=xxx 的能力,
但只在当前路由确实属于本页时才透传,避免被其它页面的 detailId 污染。 -->
<waybill-manage-page
:api="api"
:config="config"
:crud-option="option"
:detail-id="detailId"
:menu-width="320"
standalone-form-page
/>
</template>
<script>
import WaybillManagePage from './components/waybill-manage-page.vue';
import * as api from '@/api/business/waybill-manage';
import { config, option } from '@/option/business/waybill-manage';
const listRoutePath = '/business/waybill-manage';
export default {
components: { WaybillManagePage },
data() {
return {
api,
config,
option,
};
},
computed: {
detailId() {
return this.$route.path === listRoutePath ? this.$route.query.detailId : '';
},
},
};
</script>