|
@@ -469,117 +469,125 @@ export const constantRoutes = [{
|
|
|
component: Layout,
|
|
|
name: '工具集合',
|
|
|
meta: { title: '工具集合', icon: '工具集合' },
|
|
|
- children: [{
|
|
|
- path: '/views/mock',
|
|
|
- name: 'Mock服务',
|
|
|
- component: () =>
|
|
|
- import('@/views/Platform/presentation/testa'),
|
|
|
- meta: { title: 'Mock服务' },
|
|
|
- children: [{
|
|
|
- path: 'interface',
|
|
|
- name: 'Interface',
|
|
|
- component: () =>
|
|
|
- import('@/views/mock/interface'),
|
|
|
- meta: { title: 'dubbo mock' }
|
|
|
- },
|
|
|
+ children: [
|
|
|
{
|
|
|
- path: 'interface/:rule',
|
|
|
- name: 'Rule',
|
|
|
- hidden: true,
|
|
|
+ path: '/views/mock',
|
|
|
+ name: 'Mock服务',
|
|
|
component: () =>
|
|
|
+ import('@/views/Platform/presentation/testa'),
|
|
|
+ meta: { title: 'Mock服务' },
|
|
|
+ children: [{
|
|
|
+ path: 'interface',
|
|
|
+ name: 'Interface',
|
|
|
+ component: () =>
|
|
|
+ import('@/views/mock/interface'),
|
|
|
+ meta: { title: 'dubbo mock' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'interface/:rule',
|
|
|
+ name: 'Rule',
|
|
|
+ hidden: true,
|
|
|
+ component: () =>
|
|
|
import('@/views/mock/rule'),
|
|
|
- meta: { title: 'dubbo规则' }
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'httpmock',
|
|
|
- name: 'httpmock',
|
|
|
- component: () =>
|
|
|
+ meta: { title: 'dubbo规则' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'httpmock',
|
|
|
+ name: 'httpmock',
|
|
|
+ component: () =>
|
|
|
import('@/views/mock/httpmock'),
|
|
|
- meta: { title: 'http mock' }
|
|
|
+ meta: { title: 'http mock' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'httpmock/:httprule',
|
|
|
+ name: 'Httprule',
|
|
|
+ hidden: true,
|
|
|
+ component: () =>
|
|
|
+ import('@/views/mock/httprule'),
|
|
|
+ meta: { title: 'httpmock规则' }
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
{
|
|
|
- path: 'httpmock/:httprule',
|
|
|
- name: 'Httprule',
|
|
|
- hidden: true,
|
|
|
+ path: '/online-quality',
|
|
|
component: () =>
|
|
|
- import('@/views/mock/httprule'),
|
|
|
- meta: { title: 'httpmock规则' }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/online-quality',
|
|
|
- component: () =>
|
|
|
import('@/views/Platform/presentation/testa'),
|
|
|
- redirect: '/online-quality/check-list',
|
|
|
- name: '上线质检',
|
|
|
- meta: { title: '上线质检' },
|
|
|
- children: [{
|
|
|
- path: 'check-list',
|
|
|
- name: '模板管理',
|
|
|
- component: () =>
|
|
|
+ redirect: '/online-quality/check-list',
|
|
|
+ name: '上线质检',
|
|
|
+ meta: { title: '上线质检' },
|
|
|
+ children: [{
|
|
|
+ path: 'check-list',
|
|
|
+ name: '模板管理',
|
|
|
+ component: () =>
|
|
|
import('@/views/online-quality/CheckConfig/index.vue'),
|
|
|
- meta: { title: '模板管理' }
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'history-task',
|
|
|
- name: '历史任务',
|
|
|
- component: () =>
|
|
|
+ meta: { title: '模板管理' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'history-task',
|
|
|
+ name: '历史任务',
|
|
|
+ component: () =>
|
|
|
import('@/views/online-quality/HistoryTask/index.vue'),
|
|
|
- meta: { title: '历史任务' }
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'history-task-details/:taskId',
|
|
|
- props: true,
|
|
|
- name: '历史任务详情',
|
|
|
- hidden: true,
|
|
|
- component: () =>
|
|
|
+ meta: { title: '历史任务' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'history-task-details/:taskId',
|
|
|
+ props: true,
|
|
|
+ name: '历史任务详情',
|
|
|
+ hidden: true,
|
|
|
+ component: () =>
|
|
|
import('@/views/online-quality/HistoryTask/taskDetails.vue'),
|
|
|
- meta: { title: '历史任务详情' }
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'block-server',
|
|
|
- name: '阻断服务',
|
|
|
- component: () =>
|
|
|
+ meta: { title: '历史任务详情' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'block-server',
|
|
|
+ name: '阻断服务',
|
|
|
+ component: () =>
|
|
|
import('@/views/online-quality/BlockServer/index.vue'),
|
|
|
- meta: { title: '阻断服务' }
|
|
|
- }
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/virtualDevices',
|
|
|
- component: () => import('@/views/Platform/presentation/testa'),
|
|
|
- redirect: '/virtualDevices/HTvehicle',
|
|
|
- name: '虚拟硬件',
|
|
|
- meta: { title: '虚拟硬件' },
|
|
|
- children: [{
|
|
|
- path: 'HTvehicle',
|
|
|
- name: '单车',
|
|
|
- component: () => import('@/views/virtualDevices/HTvehicle'),
|
|
|
- meta: { title: '单车' }
|
|
|
+ meta: { title: '阻断服务' }
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
{
|
|
|
- path: 'ebike',
|
|
|
- name: '电单车',
|
|
|
- component: () => import('@/views/virtualDevices/HMvehicle.vue'),
|
|
|
- meta: { title: '电单车' }
|
|
|
+ path: '/virtualDevices',
|
|
|
+ component: () => import('@/views/Platform/presentation/testa'),
|
|
|
+ redirect: '/virtualDevices/HTvehicle',
|
|
|
+ name: '虚拟硬件',
|
|
|
+ meta: { title: '虚拟硬件' },
|
|
|
+ children: [{
|
|
|
+ path: 'HTvehicle',
|
|
|
+ name: '单车',
|
|
|
+ component: () => import('@/views/virtualDevices/HTvehicle'),
|
|
|
+ meta: { title: '单车' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'ebike',
|
|
|
+ name: '电单车',
|
|
|
+ component: () => import('@/views/virtualDevices/HMvehicle.vue'),
|
|
|
+ meta: { title: '电单车' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'ebike/ebikeCreate',
|
|
|
+ name: '新增电单车',
|
|
|
+ hidden: true,
|
|
|
+ component: () => import('@/views/virtualDevices/HMvehicleCreate.vue'),
|
|
|
+ meta: { title: '新增电单车' }
|
|
|
+ }
|
|
|
+ ]
|
|
|
},
|
|
|
{
|
|
|
- path: 'ebike/ebikeCreate',
|
|
|
- name: '新增电单车',
|
|
|
+ path: '/apiManagement',
|
|
|
hidden: true,
|
|
|
- component: () => import('@/views/virtualDevices/HMvehicleCreate.vue'),
|
|
|
- meta: { title: '新增电单车' }
|
|
|
+ component: () => import('@/views/apiManagement/index'),
|
|
|
+ name: '接口管理',
|
|
|
+ meta: { title: '接口管理' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/newWeb',
|
|
|
+ component: () => import('@/views/newWeb/index'),
|
|
|
+ // redirect: '/newWeb/index',
|
|
|
+ name: '发布管理',
|
|
|
+ meta: { title: '发布管理' }
|
|
|
}
|
|
|
- ]
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/newWeb',
|
|
|
- component: () => import('@/views/newWeb/index'),
|
|
|
- // redirect: '/newWeb/index',
|
|
|
- name: '发布管理',
|
|
|
- meta: { title: '发布管理' }
|
|
|
- }
|
|
|
]
|
|
|
},
|
|
|
|