083d954765
Co-authored-by: Cursor <cursoragent@cursor.com>
37 lines
922 B
Vue
37 lines
922 B
Vue
<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>
|