123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- import { defineConfig } from '@umijs/max';
- export default defineConfig({
- hash: true,
- antd: {},
- dva: {},
- access: {},
- model: {},
- initialState: {},
- request: {},
- layout: {
- title: '金科环境数字化管理平台',
- locale: false,
- },
- title: '金科环境数字化管理平台',
- publicPath: process.env.NODE_ENV == 'development' ? '/' : '/gt-dig/',
- proxy: {
- '/api/v1/oa': {
- // target: 'http://47.96.12.136:8788/',
- target: 'http://47.96.12.136:8895/',
- // target: 'http://120.55.44.4:8902/',
- changeOrigin: true,
- },
- '/api': {
- // target: 'http://47.96.12.136:8788/',
- target: 'http://47.96.12.136:8895/',
- // target: 'http://120.55.44.4:8902/',
- changeOrigin: true,
- },
- },
- // chainWebpack(config) {
- // config.module
- // .rule()
- // .test(/\.(pdf|svg|docx|doc)$/)
- // .use('file-loader?name=[path][name].[ext]')
- // .loader('file-loader')
- // .end()
- // },
- routes: [
- {
- path: '/',
- redirect: '/home',
- },
- {
- name: '首页',
- path: '/home',
- component: './Home/index',
- layout: false,
- },
- {
- name: '审批流管理',
- path: '/flow',
- hideChildrenInMenu: true,
- routes: [
- {
- path: '/flow',
- redirect: '/flow/list',
- },
- {
- name: '审批流管理',
- path: '/flow/list',
- component: './Flow/index',
- },
- {
- name: '审批流详情',
- path: '/flow/audit',
- component: './Flow/Audit',
- hideInMenu: true,
- },
- ],
- },
- {
- name: 'OA审批',
- path: '/oa',
- hideChildrenInMenu: true,
- routes: [
- {
- path: '/oa',
- redirect: '/oa/list',
- },
- {
- name: 'OA审批',
- path: '/oa/list',
- component: './Flow/Oa',
- },
- {
- name: 'OA详情',
- path: '/oa/detail/:oaId',
- component: './Flow/OaDetail',
- },
- ],
- },
- // {
- // name: '权限演示',
- // path: '/access',
- // component: './Access',
- // },
- // {
- // name: 'CRUD 示例',
- // path: '/table',
- // component: './Table',
- // },
- {
- name: '登录',
- path: '/login',
- component: './Login/index',
- layout: false,
- },
- {
- name: '文档管理',
- path: '/fileManagement',
- component: './FileManagement/index',
- },
- {
- name: '合同管理',
- path: '/contract-manager',
- component: './ContractManager/index',
- },
- // {
- // name: '授权管理',
- // path: '/permission',
- // routes: [
- // {
- // name: '菜单授权',
- // path: '/permission/menu',
- // component: './Permission/menu',
- // },
- // {
- // name: '文档管理',
- // path: '/permission/file',
- // component: './Permission/file',
- // },
- // ],
- // },
- {
- name: '个人中心',
- path: '/profile',
- routes: [
- {
- name: '我的申请',
- path: '/profile/apply',
- component: './Profile/apply',
- },
- {
- name: '我的审批',
- path: '/profile/approve',
- component: './Profile/approve',
- },
- {
- name: '已审核',
- path: '/profile/approved',
- component: './Profile/approved',
- },
- ],
- // component: './Profile/index',
- // hideInMenu: true,
- },
- // {
- // name: '个人中心',
- // path: '/profile',
- // component: './Profile/index',
- // hideInMenu: true,
- // },
- {
- name: '审批详情',
- path: '/profile/:id',
- component: './Flow/OaAuditDetail',
- hideInMenu: true,
- },
- {
- name: '供应商管理',
- path: '/manufacturer',
- component: './ManufacturerMng/Firm',
- },
- ],
- npmClient: 'yarn',
- });
|