feat:【antd】mall 发布界面,独立目录
This commit is contained in:
@@ -18,7 +18,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
title: '商品添加',
|
title: '商品添加',
|
||||||
activePath: '/mall/product/spu',
|
activePath: '/mall/product/spu',
|
||||||
},
|
},
|
||||||
component: () => import('#/views/mall/product/spu/modules/form.vue'),
|
component: () => import('#/views/mall/product/spu/form/index.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: String.raw`spu/edit/:id(\d+)`,
|
path: String.raw`spu/edit/:id(\d+)`,
|
||||||
@@ -27,7 +27,7 @@ const routes: RouteRecordRaw[] = [
|
|||||||
title: '商品编辑',
|
title: '商品编辑',
|
||||||
activePath: '/mall/product/spu',
|
activePath: '/mall/product/spu',
|
||||||
},
|
},
|
||||||
component: () => import('#/views/mall/product/spu/modules/form.vue'),
|
component: () => import('#/views/mall/product/spu/form/index.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: String.raw`spu/detail/:id(\d+)`,
|
path: String.raw`spu/detail/:id(\d+)`,
|
||||||
|
|||||||
@@ -62,4 +62,4 @@ const getPropertyList = (spu: MallSpuApi.Spu): PropertyAndValues[] => {
|
|||||||
export { getPropertyList };
|
export { getPropertyList };
|
||||||
|
|
||||||
// 导出组件
|
// 导出组件
|
||||||
export { default as SkuList } from './sku-list.vue';
|
export { default as SkuList } from './modules/sku-list.vue';
|
||||||
@@ -20,11 +20,11 @@ import {
|
|||||||
useInfoFormSchema,
|
useInfoFormSchema,
|
||||||
useOtherFormSchema,
|
useOtherFormSchema,
|
||||||
useSkuFormSchema,
|
useSkuFormSchema,
|
||||||
} from './form-data';
|
} from './data';
|
||||||
import { getPropertyList } from './index';
|
import { getPropertyList } from './index';
|
||||||
import ProductAttributes from './product-attributes.vue';
|
import ProductAttributes from './modules/product-attributes.vue';
|
||||||
import ProductPropertyAddForm from './product-property-add-form.vue';
|
import ProductPropertyAddForm from './modules/product-property-add-form.vue';
|
||||||
import SkuList from './sku-list.vue';
|
import SkuList from './modules/sku-list.vue';
|
||||||
|
|
||||||
const spuId = ref<number>();
|
const spuId = ref<number>();
|
||||||
const { params, name } = useRoute();
|
const { params, name } = useRoute();
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<!-- 商品发布 - 库存价格 - 属性列表 -->
|
<!-- 商品发布 - 库存价格 - 属性列表 -->
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { PropertyAndValues } from './index';
|
import type { PropertyAndValues } from '../index';
|
||||||
|
|
||||||
import type { MallPropertyApi } from '#/api/mall/product/property';
|
import type { MallPropertyApi } from '#/api/mall/product/property';
|
||||||
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type { Ref } from 'vue';
|
import type { Ref } from 'vue';
|
||||||
|
|
||||||
import type { PropertyAndValues, RuleConfig } from './index';
|
import type { PropertyAndValues, RuleConfig } from '../index';
|
||||||
|
|
||||||
import type { MallSpuApi } from '#/api/mall/product/spu';
|
import type { MallSpuApi } from '#/api/mall/product/spu';
|
||||||
|
|
||||||
@@ -4,7 +4,7 @@ import { Page } from '@vben/common-ui';
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Page>
|
<Page>
|
||||||
<!-- TODO @xingyu:待开发 -->
|
<!-- TODO @puhui999:详情界面; -->
|
||||||
<div>detail</div>
|
<div>detail</div>
|
||||||
</Page>
|
</Page>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user