|
@@ -6,287 +6,351 @@ import axios from 'axios'
|
|
|
Vue.use(Router);
|
|
Vue.use(Router);
|
|
|
|
|
|
|
|
const router = new Router({
|
|
const router = new Router({
|
|
|
- routes: [
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ routes: [{
|
|
|
path: '/',
|
|
path: '/',
|
|
|
- component: () => import('../pages/Admin'),
|
|
|
|
|
- children: [
|
|
|
|
|
- {
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/Admin'),
|
|
|
|
|
+ children: [{
|
|
|
path: '/',
|
|
path: '/',
|
|
|
redirect: 'dashboard'
|
|
redirect: 'dashboard'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/404',
|
|
path: '/404',
|
|
|
name: '404',
|
|
name: '404',
|
|
|
- component: () => import('../pages/404')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/404')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/dashboard',
|
|
path: '/dashboard',
|
|
|
name: 'dashboard',
|
|
name: 'dashboard',
|
|
|
- component: () => import('../pages/Dashboard')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/Dashboard')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/users',
|
|
path: '/users',
|
|
|
name: 'users',
|
|
name: 'users',
|
|
|
- component: () => import('../pages/Users')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/Users')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/user',
|
|
path: '/user',
|
|
|
name: 'user',
|
|
name: 'user',
|
|
|
- component: () => import('../pages/User')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/User')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/menus',
|
|
path: '/menus',
|
|
|
name: 'menus',
|
|
name: 'menus',
|
|
|
- component: () => import('../pages/Menus')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/Menus')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/roles',
|
|
path: '/roles',
|
|
|
name: 'roles',
|
|
name: 'roles',
|
|
|
- component: () => import('../pages/Roles')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/Roles')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/role',
|
|
path: '/role',
|
|
|
name: 'role',
|
|
name: 'role',
|
|
|
- component: () => import('../pages/Role')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/Role')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/api',
|
|
path: '/api',
|
|
|
name: 'api',
|
|
name: 'api',
|
|
|
- component: () => import('../pages/Api')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/Api')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/genCodes',
|
|
path: '/genCodes',
|
|
|
name: 'genCodes',
|
|
name: 'genCodes',
|
|
|
- component: () => import('../pages/GenCodes')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/GenCodes')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/genCode',
|
|
path: '/genCode',
|
|
|
name: 'genCode',
|
|
name: 'genCode',
|
|
|
- component: () => import('../pages/GenCode')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/GenCode')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/permissions',
|
|
path: '/permissions',
|
|
|
name: 'permissions',
|
|
name: 'permissions',
|
|
|
- component: () => import('../pages/Permissions')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/Permissions')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/permission',
|
|
path: '/permission',
|
|
|
name: 'permission',
|
|
name: 'permission',
|
|
|
- component: () => import('../pages/Permission')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/Permission')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/departs',
|
|
path: '/departs',
|
|
|
name: 'departs',
|
|
name: 'departs',
|
|
|
- component: () => import('../pages/Departs')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/Departs')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/lineChart',
|
|
path: '/lineChart',
|
|
|
name: 'lineChart',
|
|
name: 'lineChart',
|
|
|
- component: () => import('../pages/LineChart')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/LineChart')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/barChart',
|
|
path: '/barChart',
|
|
|
name: 'barChart',
|
|
name: 'barChart',
|
|
|
- component: () => import('../pages/BarChart')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/BarChart')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/polarAreaChart',
|
|
path: '/polarAreaChart',
|
|
|
name: 'polarAreaChart',
|
|
name: 'polarAreaChart',
|
|
|
- component: () => import('../pages/PolarAreaChart')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/PolarAreaChart')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/pieChart',
|
|
path: '/pieChart',
|
|
|
name: 'pieChart',
|
|
name: 'pieChart',
|
|
|
- component: () => import('../pages/PieChart')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/PieChart')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/radarChart',
|
|
path: '/radarChart',
|
|
|
name: 'radarChart',
|
|
name: 'radarChart',
|
|
|
- component: () => import('../pages/RadarChart')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/RadarChart')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/bubbleChart',
|
|
path: '/bubbleChart',
|
|
|
name: 'bubbleChart',
|
|
name: 'bubbleChart',
|
|
|
- component: () => import('../pages/BubbleChart')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/BubbleChart')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/processModels',
|
|
path: '/processModels',
|
|
|
name: 'processModels',
|
|
name: 'processModels',
|
|
|
- component: () => import('../pages/ProcessModels')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/ProcessModels')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/processDefinitions',
|
|
path: '/processDefinitions',
|
|
|
name: 'processDefinitions',
|
|
name: 'processDefinitions',
|
|
|
- component: () => import('../pages/ProcessDefinitions')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/ProcessDefinitions')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/myProcesses',
|
|
path: '/myProcesses',
|
|
|
name: 'myProcesses',
|
|
name: 'myProcesses',
|
|
|
- component: () => import('../pages/MyProcesses')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/MyProcesses')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/myTasks',
|
|
path: '/myTasks',
|
|
|
name: 'myTasks',
|
|
name: 'myTasks',
|
|
|
- component: () => import('../pages/MyTasks')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/MyTasks')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/completeTaskDynamic',
|
|
path: '/completeTaskDynamic',
|
|
|
name: 'CompleteTaskDynamic',
|
|
name: 'CompleteTaskDynamic',
|
|
|
- component: () => import('../pages/CompleteTaskDynamic')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/CompleteTaskDynamic')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/tableShouyiYaopinxinxis',
|
|
path: '/tableShouyiYaopinxinxis',
|
|
|
name: 'tableShouyiYaopinxinxis',
|
|
name: 'tableShouyiYaopinxinxis',
|
|
|
- component: () => import('../pages/TableShouyiYaopinxinxis')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/TableShouyiYaopinxinxis')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/tableShouyiYaopinxinxi',
|
|
path: '/tableShouyiYaopinxinxi',
|
|
|
name: 'tableShouyiYaopinxinxi',
|
|
name: 'tableShouyiYaopinxinxi',
|
|
|
- component: () => import('../pages/TableShouyiYaopinxinxi')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/TableShouyiYaopinxinxi')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/testAaas',
|
|
path: '/testAaas',
|
|
|
name: 'testAaas',
|
|
name: 'testAaas',
|
|
|
- component: () => import('../pages/TestAaas')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/TestAaas')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/testAaa',
|
|
path: '/testAaa',
|
|
|
name: 'testAaa',
|
|
name: 'testAaa',
|
|
|
- component: () => import('../pages/TestAaa')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/TestAaa')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/testAaaLineChart',
|
|
path: '/testAaaLineChart',
|
|
|
name: 'testAaaLineChart',
|
|
name: 'testAaaLineChart',
|
|
|
- component: () => import('../pages/TestAaaLineChart')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/TestAaaLineChart')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/commonQuerys',
|
|
path: '/commonQuerys',
|
|
|
name: 'commonQuerys',
|
|
name: 'commonQuerys',
|
|
|
- component: () => import('../pages/CommonQuerys')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/CommonQuerys')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/commonQuery',
|
|
path: '/commonQuery',
|
|
|
name: 'commonQuery',
|
|
name: 'commonQuery',
|
|
|
- component: () => import('../pages/CommonQuery')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/CommonQuery')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/commonIframe',
|
|
path: '/commonIframe',
|
|
|
name: 'commonIframe',
|
|
name: 'commonIframe',
|
|
|
- component: () => import('../pages/CommonIframe')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/CommonIframe')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/queryConfigs',
|
|
path: '/queryConfigs',
|
|
|
name: 'queryConfigs',
|
|
name: 'queryConfigs',
|
|
|
- component: () => import('../pages/QueryConfigs')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/QueryConfigs')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/queryConfig',
|
|
path: '/queryConfig',
|
|
|
name: 'queryConfig',
|
|
name: 'queryConfig',
|
|
|
- component: () => import('../pages/QueryConfig')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/QueryConfig')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/testBbbs',
|
|
path: '/testBbbs',
|
|
|
name: 'testBbbs',
|
|
name: 'testBbbs',
|
|
|
- component: () => import('../pages/TestBbbs')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/TestBbbs')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/testBbb',
|
|
path: '/testBbb',
|
|
|
name: 'testBbb',
|
|
name: 'testBbb',
|
|
|
- component: () => import('../pages/TestBbb')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/TestBbb')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/testBbbCopys',
|
|
path: '/testBbbCopys',
|
|
|
name: 'testBbbCopys',
|
|
name: 'testBbbCopys',
|
|
|
- component: () => import('../pages/TestBbbCopys')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/TestBbbCopys')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/testBbbCopy',
|
|
path: '/testBbbCopy',
|
|
|
name: 'testBbbCopy',
|
|
name: 'testBbbCopy',
|
|
|
- component: () => import('../pages/TestBbbCopy')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/TestBbbCopy')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/dataSourceInfos',
|
|
path: '/dataSourceInfos',
|
|
|
name: 'dataSourceInfos',
|
|
name: 'dataSourceInfos',
|
|
|
- component: () => import('../pages/DataSourceInfos')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/DataSourceInfos')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/dataSourceInfo',
|
|
path: '/dataSourceInfo',
|
|
|
name: 'dataSourceInfo',
|
|
name: 'dataSourceInfo',
|
|
|
- component: () => import('../pages/DataSourceInfo')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/DataSourceInfo')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/testSqlserverAaas',
|
|
path: '/testSqlserverAaas',
|
|
|
name: 'testSqlserverAaas',
|
|
name: 'testSqlserverAaas',
|
|
|
- component: () => import('../pages/TestSqlserverAaas')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/TestSqlserverAaas')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/TestSqlserverAaa',
|
|
path: '/TestSqlserverAaa',
|
|
|
name: 'TestSqlserverAaa',
|
|
name: 'TestSqlserverAaa',
|
|
|
- component: () => import('../pages/TestSqlserverAaa')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/TestSqlserverAaa')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/deploySystem',
|
|
path: '/deploySystem',
|
|
|
name: 'DeploySystem',
|
|
name: 'DeploySystem',
|
|
|
- component: () => import('../pages/DeploySystem')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/DeploySystem')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/testDeploy',
|
|
path: '/testDeploy',
|
|
|
name: 'TestDeploy',
|
|
name: 'TestDeploy',
|
|
|
- component: () => import('../pages/TestDeploy')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/TestDeploy')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/testDeploys',
|
|
path: '/testDeploys',
|
|
|
name: 'TestDeploys',
|
|
name: 'TestDeploys',
|
|
|
- component: () => import('../pages/TestDeploys')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/TestDeploys')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/testaaaone',
|
|
path: '/testaaaone',
|
|
|
name: 'Testaaaone',
|
|
name: 'Testaaaone',
|
|
|
- component: () => import('../pages/Testaaaone')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/Testaaaone')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/testaaaones',
|
|
path: '/testaaaones',
|
|
|
name: 'Testaaaones',
|
|
name: 'Testaaaones',
|
|
|
- component: () => import('../pages/Testaaaones')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/Testaaaones')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/testgit',
|
|
path: '/testgit',
|
|
|
name: 'Testgit',
|
|
name: 'Testgit',
|
|
|
- component: () => import('../pages/Testgit')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/Testgit')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/testgits',
|
|
path: '/testgits',
|
|
|
name: 'Testgits',
|
|
name: 'Testgits',
|
|
|
- component: () => import('../pages/Testgits')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/Testgits')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/testCaidan',
|
|
path: '/testCaidan',
|
|
|
name: 'TestCaidan',
|
|
name: 'TestCaidan',
|
|
|
- component: () => import('../pages/TestCaidan')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/TestCaidan')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/testCaidans',
|
|
path: '/testCaidans',
|
|
|
name: 'TestCaidans',
|
|
name: 'TestCaidans',
|
|
|
- component: () => import('../pages/TestCaidans')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/TestCaidans')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/tableNiuseRongliang',
|
|
path: '/tableNiuseRongliang',
|
|
|
name: 'TableNiuseRongliang',
|
|
name: 'TableNiuseRongliang',
|
|
|
- component: () => import('../pages/TableNiuseRongliang')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/TableNiuseRongliang')
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/tableNiuseRongliangs',
|
|
path: '/tableNiuseRongliangs',
|
|
|
name: 'TableNiuseRongliangs',
|
|
name: 'TableNiuseRongliangs',
|
|
|
- component: () => import('../pages/TableNiuseRongliangs')
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/TableNiuseRongliangs')
|
|
|
|
|
+ },
|
|
|
/**INSERT_LOCATION**/
|
|
/**INSERT_LOCATION**/
|
|
|
|
|
+
|
|
|
|
|
+ {
|
|
|
|
|
+ path: '/handleLeaveAdd',
|
|
|
|
|
+ name: 'handleLeaveAdd',
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/HandleLeaveAdd'),
|
|
|
|
|
+ meta: {
|
|
|
|
|
+ type: '手持机录入',
|
|
|
|
|
+ title: '离场登记'
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: '/login',
|
|
path: '/login',
|
|
|
name: 'login',
|
|
name: 'login',
|
|
|
- component: () => import('../pages/Login')
|
|
|
|
|
|
|
+ component: () =>
|
|
|
|
|
+ import ('../pages/Login')
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
|
});
|
|
});
|
|
@@ -332,4 +396,4 @@ router.afterEach((to, from) => {
|
|
|
window.onresize();
|
|
window.onresize();
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
-export default router;
|
|
|
|
|
|
|
+export default router;
|