Blame view

.umirc.ts 2.56 KB
calmound authored
1
2
3
import { defineConfig } from '@umijs/max';

export default defineConfig({
4
  esbuildMinifyIIFE: true,
calmound authored
5
6
7
  antd: {
    style: 'less',
  },
calmound authored
8
9
10
11
12
  access: {},
  model: {},
  initialState: {},
  request: {},
  layout: {
sanmu authored
13
    title: '订单管理系统',
calmound authored
14
15
  },
  proxy: {
sanmu authored
16
    '/api/': {
zhongnanhuang authored
17
      target: 'http://localhost:8085/',
zhongnanhuang authored
18
      // target: 'http://192.168.1.6:8085/',
zhongnanhuang authored
19
      // target: 'http://39.108.227.113:8085/',
calmound authored
20
      changeOrigin: true,
sanmu authored
21
      pathRewrite: { '^/api': '' },
calmound authored
22
    },
zhongnanhuang authored
23
24
25
26
27
    '/previewApi/': {
      target: 'http://39.108.227.113:8092/',
      changeOrigin: true,
      pathRewrite: { '^/previewApi': '' },
    },
calmound authored
28
29
30
31
  },
  routes: [
    {
      path: '/',
sanmu authored
32
      redirect: '/order',
calmound authored
33
    },
sanmu authored
34
35
36
37
38
39
40
    {
      name: '登录',
      path: '/login',
      component: './Login',
      layout: false,
    },
calmound authored
41
    {
sanmu authored
42
43
44
      name: '订单管理',
      path: '/order',
      component: './Order',
zhongnanhuang authored
45
      icon: 'ProfileOutlined',
calmound authored
46
    },
sanmu authored
47
    {
zhongnanhuang authored
48
49
50
51
      name: '订单报表',
      path: '/orderReport',
      component: './OrderReport',
      icon: 'LineChartOutlined',
52
      access: 'canReadAdminAndFinance',
zhongnanhuang authored
53
    },
zhongnanhuang authored
54
55
56
57
58
    {
      name: '发票管理',
      path: '/invoiceManage',
      component: './Invoice',
      icon: 'BookOutlined',
zhongnanhuang authored
59
      access: 'canReadAdminAndFinance',
zhongnanhuang authored
60
    },
61
    {
zhongnanhuang authored
62
63
64
65
66
67
68
      name: '预存管理',
      path: '/prepaidManage',
      component: './Prepaid',
      icon: 'AccountBookOutlined',
      access: 'canReadAdminAndFinanceAndSales',
    },
    {
69
70
71
72
73
74
75
      name: '课题组管理',
      path: '/researchGroup',
      component: './ResearchGroup',
      icon: 'AccountBookOutlined',
      access: 'canReadAdminAndSales',
    },
    {
PurelzMgnead authored
76
77
78
79
      name: '分期账单',
      path: '/instalment',
      component: './Instalment',
      icon: 'BookOutlined',
PurelzMgnead authored
80
      access: 'canReadLinda',
PurelzMgnead authored
81
    },
PurelzMgnead authored
82
83
84
85
86
    {
      name: '区域管理',
      path: '/zoning',
      component: './ZoNing',
      icon: 'BookOutlined',
PurelzMgnead authored
87
      access: 'canReadAdmin',
PurelzMgnead authored
88
    },
89
    {
90
91
92
93
      name: '客户管理',
      path: '/client',
      component: './Client',
      icon: 'BookOutlined',
94
      access: 'canReadAdmin',
95
    },
PurelzMgnead authored
96
    {
sanmu authored
97
98
99
100
101
      name: '打印',
      path: '/print',
      component: './OrderPrint',
      layout: false,
    },
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
    /*{
      name: '用户管理',
      path: '/user',
      routes:[
        {
          name: '权限管理',
          path: 'authrity',
          icon: 'BookOutlined',
          component: './Instalment' },
        {
          name: '角色管理',
          path: 'role',
          icon: 'BookOutlined',
          component: './User/ZoNing' },
      ]
    },*/
calmound authored
118
  ],
calmound authored
119
calmound authored
120
  npmClient: 'pnpm',
calmound authored
121
  tailwindcss: {},
calmound authored
122
});