Ver código fonte

add route && page template

dev
powersir 1 ano atrás
pai
commit
0462511746
23 arquivos alterados com 524 adições e 4 exclusões
  1. +333
    -1
      src/layout/menu.json
  2. +2
    -3
      src/layout/slide/menus.tsx
  3. +9
    -0
      src/pages/ai/background/index.tsx
  4. +9
    -0
      src/pages/ai/fission/index.tsx
  5. +9
    -0
      src/pages/ai/makeup/index.tsx
  6. +9
    -0
      src/pages/ai/makeup2/index.tsx
  7. +9
    -0
      src/pages/ai/outline/index.tsx
  8. +9
    -0
      src/pages/ai/ps/index.tsx
  9. +9
    -0
      src/pages/ai/smart-libs/index.tsx
  10. +9
    -0
      src/pages/ai/try/index.tsx
  11. +9
    -0
      src/pages/ai/white-background/index.tsx
  12. +9
    -0
      src/pages/custom/platform-product/amazone/index.tsx
  13. +9
    -0
      src/pages/custom/platform-product/xiapi/index.tsx
  14. +9
    -0
      src/pages/custom/product/finished/index.tsx
  15. +9
    -0
      src/pages/custom/product/material/index.tsx
  16. +9
    -0
      src/pages/custom/product/sample/index.tsx
  17. +9
    -0
      src/pages/custom/product/shape/index.tsx
  18. +9
    -0
      src/pages/custom/sds/finished-product-warehouse/index.tsx
  19. +9
    -0
      src/pages/custom/sds/pattern-material/index.tsx
  20. +9
    -0
      src/pages/custom/sds/sds-shape/index.tsx
  21. +9
    -0
      src/pages/custom/template/dict/index.tsx
  22. +9
    -0
      src/pages/custom/template/rules/index.tsx
  23. +9
    -0
      src/pages/custom/template/xiapi/index.tsx

+ 333
- 1
src/layout/menu.json Ver arquivo

@@ -4,11 +4,343 @@
"parentId": "",
"name": "首页",
"icon": "HomeOutlined",
"type":1,
"type":0,
"route": "/dashboard",
"filePath": "/dashboard/index.tsx",
"orderNumber": 0,
"url":"",
"show":true
},
{
"id": "custom-made",
"parentId": "",
"name": "定制选品",
"icon": "BgColorsOutlined",
"type":0,
"route": "/custom",
"filePath": "",
"orderNumber": 0,
"url":"",
"show":true
},

{
"id": "custom-product",
"parentId": "custom-made",
"name": "定制商品",
"icon": "",
"type":2,
"route": "/product",
"filePath": "",
"orderNumber": 2,
"url":"",
"show":true
},
{
"id": "sample",
"parentId": "custom-product",
"name": "样机",
"icon": "",
"type":0,
"route": "/sample",
"filePath": "/custom/product/sample/index.tsx",
"orderNumber": 3,
"url":"",
"show":true
},
{
"id": "material",
"parentId": "custom-product",
"name": "素材",
"icon": "",
"type":0,
"route": "/material",
"filePath": "/custom/product/material/index.tsx",
"orderNumber": 3,
"url":"",
"show":true
},
{
"id": "shape",
"parentId": "custom-product",
"name": "款式",
"icon": "",
"type":0,
"route": "/shape",
"filePath": "/custom/product/shape/index.tsx",
"orderNumber": 3,
"url":"",
"show":true
},
{
"id": "finished",
"parentId": "custom-product",
"name": "成品",
"icon": "",
"type":0,
"route": "/finished",
"filePath": "/custom/product/finished/index.tsx",
"orderNumber": 3,
"url":"",
"show":true
},


{
"id": "template",
"parentId": "custom-made",
"name": "模板配置",
"icon": "",
"type":2,
"route": "/template",
"filePath": "",
"orderNumber": 2,
"url":"",
"show":true
},
{
"id": "dict",
"parentId": "template",
"name": "数据字典",
"icon": "",
"type":0,
"route": "/dict",
"filePath": "/custom/template/dict/index.tsx",
"orderNumber": 3,
"url":"",
"show":true
},
{
"id": "xp-template",
"parentId": "template",
"name": "虾皮模板",
"icon": "",
"type":0,
"route": "/xiapi",
"filePath": "/custom/template/xiapi/index.tsx",
"orderNumber": 3,
"url":"",
"show":true
},
{
"id": "rules",
"parentId": "template",
"name": "规则引擎",
"icon": "",
"type":0,
"route": "/rules",
"filePath": "/custom/template/rules/index.tsx",
"orderNumber": 3,
"url":"",
"show":true
},


{
"id": "platform-product",
"parentId": "custom-made",
"name": "平台商品",
"icon": "",
"type":2,
"route": "/platform-product",
"filePath": "",
"orderNumber": 2,
"url":"",
"show":true
},
{
"id": "xiapi",
"parentId": "platform-product",
"name": "虾皮",
"icon": "",
"type":0,
"route": "/xiapi",
"filePath": "/custom/platform-product/xiapi/index.tsx",
"orderNumber": 3,
"url":"",
"show":true
},
{
"id": "amazone",
"parentId": "platform-product",
"name": "亚马逊",
"icon": "",
"type":0,
"route": "/amazone",
"filePath": "/custom/platform-product/amazone/index.tsx",
"orderNumber": 3,
"url":"",
"show":true
},

{
"id": "sds",
"parentId": "custom-made",
"name": "SDS商品",
"icon": "",
"type":2,
"route": "/sds",
"filePath": "",
"orderNumber": 2,
"url":"",
"show":true
},
{
"id": "xiapi",
"parentId": "sds",
"name": "成品库",
"icon": "",
"type":0,
"route": "/finished-product-warehouse",
"filePath": "/custom/sds/finished-product-warehouse/index.tsx",
"orderNumber": 3,
"url":"",
"show":true
},
{
"id": "sds-shape",
"parentId": "sds",
"name": "款式",
"icon": "",
"type":0,
"route": "/sds-shape",
"filePath": "/custom/sds/sds-shape/index.tsx",
"orderNumber": 3,
"url":"",
"show":true
},
{
"id": "pattern-material",
"parentId": "sds",
"name": "图案素材",
"icon": "",
"type":0,
"route": "/pattern-material",
"filePath": "/custom/sds/pattern-material/index.tsx",
"orderNumber": 3,
"url":"",
"show":true
},


{
"id": "ai",
"parentId": "",
"name": "AI应用",
"icon": "HighlightOutlined",
"type":0,
"route": "/ai",
"filePath": "",
"orderNumber": 0,
"url":"",
"show":true
},
{
"id": "makeup",
"parentId": "ai",
"name": "AI 作图",
"icon": "",
"type":0,
"route": "/makeup",
"filePath": "/ai/makeup/index.tsx",
"orderNumber": 3,
"url":"",
"show":true
},
{
"id": "background",
"parentId": "ai",
"name": "AI 画背景",
"icon": "",
"type":0,
"route": "/background",
"filePath": "/ai/background/index.tsx",
"orderNumber": 3,
"url":"",
"show":true
},
{
"id": "fission",
"parentId": "ai",
"name": "图片裂变",
"icon": "",
"type":0,
"route": "/fission",
"filePath": "/ai/fission/index.tsx",
"orderNumber": 3,
"url":"",
"show":true
},
{
"id": "outline",
"parentId": "ai",
"name": "轮廓出图",
"icon": "",
"type":0,
"route": "/outline",
"filePath": "/ai/outline/index.tsx",
"orderNumber": 3,
"url":"",
"show":true
},
{
"id": "white-background",
"parentId": "ai",
"name": "一键白底",
"icon": "",
"type":0,
"route": "/white-background",
"filePath": "/ai/white-background/index.tsx",
"orderNumber": 3,
"url":"",
"show":true
},
{
"id": "ps",
"parentId": "ai",
"name": "AI P图",
"icon": "",
"type":0,
"route": "/ps",
"filePath": "/ai/ps/index.tsx",
"orderNumber": 3,
"url":"",
"show":true
},
{
"id": "try",
"parentId": "ai",
"name": "AI 试装",
"icon": "",
"type":0,
"route": "/try",
"filePath": "/ai/try/index.tsx",
"orderNumber": 3,
"url":"",
"show":true
},
{
"id": "makeup2",
"parentId": "ai",
"name": "AI 作图2",
"icon": "",
"type":0,
"route": "/makeup2",
"filePath": "/ai/makeup2/index.tsx",
"orderNumber": 3,
"url":"",
"show":true
},
{
"id": "smart-libs",
"parentId": "ai",
"name": "旺嘉智库",
"icon": "",
"type":0,
"route": "/smart-libs",
"filePath": "/ai/smart-libs/index.tsx",
"orderNumber": 3,
"url":"",
"show":true
}
]

+ 2
- 3
src/layout/slide/menus.tsx Ver arquivo

@@ -286,7 +286,9 @@ const SlideMenu = () => {
return (menus)
.map((menu: MenuType) => {
const children = menu?.children?.filter(menu => menu.show) || [];
const type = menu.type === 2 ? "group": (menu.type === 3 ? "divider" : "")
return {
type: type,
key: menu.path,
label: getMenuTitle(menu),
icon: menu.icon && antdIcons[menu.icon] && React.createElement(antdIcons[menu.icon]),
@@ -297,9 +299,6 @@ const SlideMenu = () => {


const { menus } = useMenusStore();
console.log(menus)
debugger

const menuData = useMemo(() => {
return treeMenuData(menus?.filter(menu => menu.show) || []);
}, [menus]);


+ 9
- 0
src/pages/ai/background/index.tsx Ver arquivo

@@ -0,0 +1,9 @@
import { Empty } from 'antd';

const CustomMade = () => {
return (
<Empty />
);
};

export default CustomMade;

+ 9
- 0
src/pages/ai/fission/index.tsx Ver arquivo

@@ -0,0 +1,9 @@
import { Empty } from 'antd';

const CustomMade = () => {
return (
<Empty />
);
};

export default CustomMade;

+ 9
- 0
src/pages/ai/makeup/index.tsx Ver arquivo

@@ -0,0 +1,9 @@
import { Empty } from 'antd';

const CustomMade = () => {
return (
<Empty />
);
};

export default CustomMade;

+ 9
- 0
src/pages/ai/makeup2/index.tsx Ver arquivo

@@ -0,0 +1,9 @@
import { Empty } from 'antd';

const CustomMade = () => {
return (
<Empty />
);
};

export default CustomMade;

+ 9
- 0
src/pages/ai/outline/index.tsx Ver arquivo

@@ -0,0 +1,9 @@
import { Empty } from 'antd';

const CustomMade = () => {
return (
<Empty />
);
};

export default CustomMade;

+ 9
- 0
src/pages/ai/ps/index.tsx Ver arquivo

@@ -0,0 +1,9 @@
import { Empty } from 'antd';

const CustomMade = () => {
return (
<Empty />
);
};

export default CustomMade;

+ 9
- 0
src/pages/ai/smart-libs/index.tsx Ver arquivo

@@ -0,0 +1,9 @@
import { Empty } from 'antd';

const CustomMade = () => {
return (
<Empty />
);
};

export default CustomMade;

+ 9
- 0
src/pages/ai/try/index.tsx Ver arquivo

@@ -0,0 +1,9 @@
import { Empty } from 'antd';

const CustomMade = () => {
return (
<Empty />
);
};

export default CustomMade;

+ 9
- 0
src/pages/ai/white-background/index.tsx Ver arquivo

@@ -0,0 +1,9 @@
import { Empty } from 'antd';

const CustomMade = () => {
return (
<Empty />
);
};

export default CustomMade;

+ 9
- 0
src/pages/custom/platform-product/amazone/index.tsx Ver arquivo

@@ -0,0 +1,9 @@
import { Empty } from 'antd';

const CustomMade = () => {
return (
<Empty />
);
};

export default CustomMade;

+ 9
- 0
src/pages/custom/platform-product/xiapi/index.tsx Ver arquivo

@@ -0,0 +1,9 @@
import { Empty } from 'antd';

const CustomMade = () => {
return (
<Empty />
);
};

export default CustomMade;

+ 9
- 0
src/pages/custom/product/finished/index.tsx Ver arquivo

@@ -0,0 +1,9 @@
import { Empty } from 'antd';

const CustomMade = () => {
return (
<Empty />
);
};

export default CustomMade;

+ 9
- 0
src/pages/custom/product/material/index.tsx Ver arquivo

@@ -0,0 +1,9 @@
import { Empty } from 'antd';

const CustomMade = () => {
return (
<Empty />
);
};

export default CustomMade;

+ 9
- 0
src/pages/custom/product/sample/index.tsx Ver arquivo

@@ -0,0 +1,9 @@
import { Empty } from 'antd';

const CustomMade = () => {
return (
<Empty />
);
};

export default CustomMade;

+ 9
- 0
src/pages/custom/product/shape/index.tsx Ver arquivo

@@ -0,0 +1,9 @@
import { Empty } from 'antd';

const CustomMade = () => {
return (
<Empty />
);
};

export default CustomMade;

+ 9
- 0
src/pages/custom/sds/finished-product-warehouse/index.tsx Ver arquivo

@@ -0,0 +1,9 @@
import { Empty } from 'antd';

const CustomMade = () => {
return (
<Empty />
);
};

export default CustomMade;

+ 9
- 0
src/pages/custom/sds/pattern-material/index.tsx Ver arquivo

@@ -0,0 +1,9 @@
import { Empty } from 'antd';

const CustomMade = () => {
return (
<Empty />
);
};

export default CustomMade;

+ 9
- 0
src/pages/custom/sds/sds-shape/index.tsx Ver arquivo

@@ -0,0 +1,9 @@
import { Empty } from 'antd';

const CustomMade = () => {
return (
<Empty />
);
};

export default CustomMade;

+ 9
- 0
src/pages/custom/template/dict/index.tsx Ver arquivo

@@ -0,0 +1,9 @@
import { Empty } from 'antd';

const CustomMade = () => {
return (
<Empty />
);
};

export default CustomMade;

+ 9
- 0
src/pages/custom/template/rules/index.tsx Ver arquivo

@@ -0,0 +1,9 @@
import { Empty } from 'antd';

const CustomMade = () => {
return (
<Empty />
);
};

export default CustomMade;

+ 9
- 0
src/pages/custom/template/xiapi/index.tsx Ver arquivo

@@ -0,0 +1,9 @@
import { Empty } from 'antd';

const CustomMade = () => {
return (
<Empty />
);
};

export default CustomMade;

Carregando…
Cancelar
Salvar