const Main = ''
const parentView = ''
const routers = [
{
path: '/login',
name: 'login',
meta: {
title: 'Login - 登录',
hideInMenu: true,
theOneId: 'par_login'
},
component: () => import('@/view/login/login.vue')
},
{
path: '/',
name: '_home',
redirect: '/home',
component: Main,
meta: {
hideInMenu: true,
notCache: true,
theOneId:'par_home'
},
children: [
{
path: '/home',
name: 'home',
meta: {
hideInMenu: true,
title: '首页',
notCache: true,
icon: 'md-home',
theOneId:'child_home_index'
},
// component: () => import('@/view/single-page/home')
component: () => import('@/view/cevaluation/cproduct.vue')
}
]
},{
path:'/promote',
name: 'sky_honour_promote',
meta: {
access: ['admin'],
icon: 'md-list-box',
title: '用户列表',
theOneId: 'par_userlist'
},
component: Main,
children: [
{
path: 'sky_promote_buyer',
name: 'sky_promote_buyer',
meta: {
icon: 'ios-document',
title: '买家列表',
theOneId: 'child_userlist_buyer'
},
component: () => import('@/view/promote/buyer.vue')
},
{
path: 'sky_promote_seller',
name: 'sky_promote_seller',
meta: {
icon: 'ios-document',
title: '卖家列表',
theOneId: 'child_userlist-seller'
},
component: () => import('@/view/promote/seller.vue')
},
]
},{
path:'/evaluaion',
name: 'sky_honour_evaluaion',
meta: {
access: [ 'seller'],
icon: 'md-speedometer',
title: '测评推广',
tipsNum: 'testWaitAudit',
theOneId: 'par_evaluation'
},
component: Main,
children: [
{
path: 'sky_evaluaion_product',
name: 'sky_evaluaion_product',
meta: {
icon: 'ios-document',
title: '测评产品',
theOneId: 'child_evaluation_product'
},
component: () => import('@/view/cevaluation/cproduct.vue')
},
{
path: 'sky_evaluaion_crequest',
name: 'sky_evaluaion_crequest',
meta: {
icon: 'ios-document',
title: '测评请求',
tipsNum: 'testWaitAudit',
theOneId: 'child_evaluation_quest'
},
component: () => import('@/view/cevaluation/crequest.vue')
},
]
},{
path:'/adminevaluaion',
name: 'skyadmin_honour_evaluaion',
meta: {
access: ['admin'],
icon: 'md-speedometer',
title: '测评推广',
tipsNum: 'testWaitAudit',
theOneId: 'par_adminevaluaion'
},
component: Main,
children: [
{
path: 'admin_evaluaion_product',
name: 'skyadmin_evaluaion_product',
meta: {
icon: 'ios-document',
title: '测评产品',
theOneId: 'child_adminevaluaion_product'
},
component: () => import('@/view/admin/cevaluation/cproduct.vue')
},
{
path: 'sky_evaluaion_crequest',
name: 'skyadmin_evaluaion_crequest',
meta: {
icon: 'ios-speedometer',
title: '测评请求',
tipsNum: 'testWaitAudit',
theOneId: 'child_adminevaluaion_request'
},
component: () => import('@/view/admin/cevaluation/crequest.vue')
},
]
},{
path:'/freetest',
name: 'sky_honour_freetest',
meta: {
access: ['seller'],
icon: 'md-bug',
title: 'Free Test FB',
tipsNum: 'fbWaitAudit',
theOneId: 'par_freetest'
},
component: Main,
children: [
{
path: 'sky_freetest_productlist',
name: 'sky_freetest_productlist',
meta: {
icon: 'ios-document',
title: '产品列表',
theOneId: 'child_freetest_product'
},
component: () => import('@/view/cfreetest/productlist.vue')
},
{
path: 'sky_freetest_crequestlist',
name: 'sky_freetest_crequestlist',
meta: {
icon: 'ios-document',
title: '请求列表',
tipsNum: 'fbWaitAudit',
theOneId: 'child_freetest_request'
},
component: () => import('@/view/cfreetest/crequestlist.vue')
},
]
},{
path:'/adminfreetest',
name: 'skyadmin_honour_freetest',
meta: {
access: ['admin'],
icon: 'md-bug',
title: 'Free Test FB',
tipsNum: 'fbWaitAudit',
theOneId: 'par_adminfreetest'
},
component: Main,
children: [
{
path: 'admin_freetest_productlist',
name: 'skyadmin_freetest_productlist',
meta: {
icon: 'ios-document',
title: '产品列表',
theOneId: 'child_adminfreetest_product'
},
component: () => import('@/view/admin/cfreetest/productlist.vue')
},
{
path: 'admin_freetest_crequestlist',
name: 'skyadmin_freetest_crequestlist',
meta: {
icon: 'ios-document',
title: '请求列表',
tipsNum: 'fbWaitAudit',
theOneId: 'child_adminfreetest_request'
},
component: () => import('@/view/admin/cfreetest/crequestlist.vue')
},
]
},{
path:'/purchased',
name: 'sky_honour_purchased',
meta: {
access: ['seller'],
icon: 'md-add-circle',
title: '点击加购',
tipsNum: 'cartWaitAudit',
theOneId: 'par_purchased'
},
component: Main,
children: [
{
path: 'sky_purchased_clist',
name: 'sky_purchased_clist',
meta: {
icon: 'ios-document',
title: '加购列表',
theOneId: 'child_purchased_list'
},
component: () => import('@/view/cpurchased/clist.vue')
},
{
path: 'sky_purchased_audit',
name: 'sky_purchased_audit',
meta: {
icon: 'ios-document',
title: '加购审核',
tipsNum: 'cartWaitAudit',
theOneId: 'child_purchased_audit'
},
component: () => import('@/view/cpurchased/caudit.vue')
},
]
},{
path:'/adminpurchased',
name: 'skyadmin_honour_purchased',
meta: {
access: ['admin'],
icon: 'md-add-circle',
title: '点击加购',
tipsNum: 'cartWaitAudit',
theOneId: 'par_admimnpurchased'
},
component: Main,
children: [
{
path: 'admin_purchased_clist',
name: 'skyadmin_purchased_clist',
meta: {
icon: 'ios-document',
title: '加购列表',
theOneId: 'child_adminpurchased_list'
},
component: () => import('@/view/admin/cpurchased/clist.vue')
},
{
path: 'admin_purchased_audit',
name: 'skyadmin_purchased_audit',
meta: {
icon: 'ios-document',
title: '加购审核',
tipsNum: 'cartWaitAudit',
theOneId: 'child_adminpurchased_audit'
},
component: () => import('@/view/admin/cpurchased/caudit.vue')
},
]
},{
path:'/sdvote',
name: 'sky_honour_sdvote',
meta: {
access: ['admin', 'seller'],
icon: 'md-cloud-upload',
title: 'SD vote',
tipsNum: 'voteWaitAudit',
theOneId: 'par_sdvote'
},
component: Main,
children: [
{
path: 'sky_sdvote_creatsdvote',
name: 'sky_sdvote_creatsdvote',
meta: {
icon: 'ios-document',
title: '发布SD Vote',
theOneId: 'child_sdvote_creat'
},
component: () => import('@/view/csdvote/creatsdvote.vue')
},
// {
// path: 'sky_sdvote_votelist',
// name: 'sky_sdvote_votelist',
// meta: {
// icon: 'ios-document',
// title: 'SD Vote 列表'
// },
// component: () => import('@/view/csdvote/sdvotelist.vue')
// },
{
path: 'sky_sdvote_votecheck',
name: 'sky_sdvote_votecheck',
meta: {
icon: 'ios-document',
title: 'Vote审核',
tipsNum: 'voteWaitAudit',
theOneId: 'child_sdvote_check'
},
component: () => import('@/view/csdvote/votecheck.vue')
},
]
},{
path:'/sdpostamsg',
name: 'sky_honour_sdpostamsg',
meta: {
access: ['admin', 'seller'],
icon: 'ios-create',
// title: '站外发帖'
title: '发帖列表',
theOneId: 'par_postmsg'
},
component: Main,
children: [
/* {
path: 'sky_sdpostamsg_creatopic',
name: 'sky_sdpostamsg_creatopic',
meta: {
icon: 'ios-document',
title: '创建发帖'
},
component: () => import('@/view/csdpostamsg/creatopic.vue')
},*/
{
path: 'sky_sdpostamsg_feedback',
name: 'sky_sdpostamsg_feedback',
meta: {
icon: 'ios-document',
title: '发帖列表',
theOneId: 'child_postmsg_list'
},
component: () => import('@/view/csdpostamsg/feedback.vue')
},
]
},{
path:'/sellerfeedback',
name: 'sky_sdpostamsg_seller_feedback',
meta: {
access: ['seller'],
icon: 'ios-create',
title: '站外发帖',
theOneId: 'par_outside'
},
component: Main,
children: [
{
path: 'sky_seller_feedback',
name: 'sky_seller_feedback',
meta: {
icon: 'ios-document',
title: '站外发帖',
theOneId: 'child_outside_creat'
},
component: () => import('@/view/csdpostamsg/seller-feedback.vue')
},
]
},{
path:'/orderlist',
name: 'sky_honour_orderlist',
meta: {
access: ['admin'],
icon: 'md-reorder',
title: '订单列表',
theOneId: 'par_orderlist'
},
component: Main,
children: [
{
path: 'sky_orderlist_crequest',
name: 'sky_orderlist_crequest',
meta: {
icon: 'ios-document',
title: 'request 列表',
theOneId: 'child_orderlist_request'
},
component: () => import('@/view/corderlist/crequest.vue')
},
{
path: 'sky_orderlist_addbuy',
name: 'sky_orderlist_addbuy',
meta: {
icon: 'ios-document',
title: '点击加购列表',
theOneId: 'child_orderlist_addlist'
},
component: () => import('@/view/corderlist/addbuy.vue')
},{
path: 'sky_orderlist_sdvote',
name: 'sky_orderlist_sdvote',
meta: {
icon: 'ios-document',
title: 'SDvote列表',
theOneId: 'child_orderlist_sdvote'
},
component: () => import('@/view/corderlist/sdvote.vue')
}
]
},{
path:'/auditing',
name: 'sky_honour_auditing',
meta: {
access: ['admin'],
icon: 'ios-speedometer',
title: '审核列表',
theOneId: 'par_auditlist'
},
component: Main,
children: [
{
path: 'sky_auditing_appraisal',
name: 'sky_auditing_appraisal',
meta: {
access: ['admin'],
icon: 'ios-document',
title: '测评推广审核',
theOneId: 'child_auditlist_test'
},
component: () => import('@/view/cauditing/appraisal.vue')
},
{
path: 'sky_auditing_sdvotecheck',
name: 'sky_auditing_sdvotecheck',
meta: {
access: ['admin'],
icon: 'ios-document',
title: 'SDvote审核',
theOneId: 'child_auditlist_sdvote'
},
component: () => import('@/view/cauditing/sdvotecheck.vue')
},{
path: 'sky_auditing_freetest',
name: 'sky_auditing_freetest',
meta: {
access: ['admin'],
icon: 'ios-document',
title: 'free test FB审核',
theOneId: 'child_auditlist_fb'
},
component: () => import('@/view/cauditing/freetest.vue')
},{
path: 'sky_auditing_ckaddbuy',
name: 'sky_auditing_ckaddbuy',
meta: {
access: ['admin'],
icon: 'ios-document',
title: '点击加购审核',
theOneId: 'child_auditlist_addbuy'
},
component: () => import('@/view/cauditing/ckaddbuy.vue')
}
]
},
// 暂时隐藏发帖列表
// {
// path:'/sdsendmsg',
// name: 'sky_honour_sdsendmsg',
// meta: {
// access: ['seller'],
// icon: 'ios-shuffle',
// title: 'SD发帖列表'
// },
// component: Main,
// children: [
// {
// path: 'sky_sdsendmsg_list',
// name: 'sky_sdsendmsg_title',
// meta: {
// icon: 'ios-shuffle',
// title: 'SD发帖列表'
// },
// component: () => import('@/view/csdsendmsg/sdsetlist.vue')
// }
// ]
// },
{
path:'/webinmsg',
name: 'sky_honour_webinmsg',
meta: {
access: ['admin'],
icon: 'md-mail-open',
title: '站内信列表',
theOneId: 'par_webmsg'
},
component: Main,
children: [
{
path: 'sky_webinmsg_title',
name: 'sky_webinmsg_title',
meta: {
icon: 'md-mail-open',
title: '站内信列表',
theOneId: 'child_webmsg_list'
},
component: () => import('@/view/cwebinmsg/webinmsg.vue')
}
]
},{
path:'/withdraw',
name: 'sky_honour_withdraw',
meta: {
access: ['admin'],
icon: 'ios-send-outline',
title: '提现管理',
theOneId: 'par_withdraw'
},
component: Main,
children: [
{
path: 'sky_honour_withdraw',
name: 'sky_withdraw_title',
meta: {
icon: 'ios-send-outline',
title: '提现管理',
theOneId: 'child_withdraw_aam'
},
component: () => import('@/view/cwithdraw/withdraw.vue')
}
]
},{
path:'/setprice',
name: 'sky_honour_setprice',
meta: {
access: ['admin'],
icon: 'logo-steam',
title: '价格设置',
theOneId: 'par_setprice'
},
component: Main,
children: [
{
path: 'sky_honour_setprice',
name: 'sky_honour_setprice',
meta: {
icon: 'logo-steam',
title: '价格设置',
theOneId: 'child_setprice_page'
},
component: () => import('@/view/csetprice/setprice.vue')
}
]
},{
path:'/statistical',
name: 'sky_honour_statistical',
meta: {
access: ['admin'],
icon: 'md-school',
title: '统计信息',
theOneId: 'par_statistics'
},
component: Main,
children: [
{
path: 'sky_statistical_cdata',
name: 'sky_statistical_cdata',
meta: {
icon: 'ios-school',
title: '数据统计',
theOneId: 'child_statistics_data'
},
component: () => import('@/view/cstatistical/cdata.vue')
}
]
},{
path:'/rapidedm',
name: 'sky_honour_rapidedm',
meta: {
access: ['admin'],
icon: 'ios-refresh',
title: '一键EDM',
theOneId: 'par_edmall'
},
component: Main,
children: [
{
path: 'sky_rapidedm_buyer',
name: 'sky_rapidedm_buyer',
meta: {
icon: 'ios-document',
title: '买家EDM',
theOneId: 'child_edmall_buyer'
},
component: () => import('@/view/crapidedm/buyer.vue')
},{
path: 'sky_rapidedm_seller',
name: 'sky_rapidedm_seller',
meta: {
icon: 'ios-document',
title: '卖家EDM',
theOneId: 'child_edmall_seller'
},
component: () => import('@/view/crapidedm/seller.vue')
}
]
},{
path:'/document',
name: 'sky_honour_document',
meta: {
access: ['admin'],
icon: 'ios-create',
title: '文档修改',
theOneId: 'par_document'
},
component: Main,
children: [
{
path: 'sky_document_editfad',
name: 'sky_document_editfad',
meta: {
icon: 'ios-document',
title: 'FAQ修改',
theOneId: 'child_document_faq'
},
component: () => import('@/view/cdocument/editfad.vue')
},{
path: 'sky_document_tremser',
name: 'sky_document_tremser',
meta: {
icon: 'ios-document',
title: '服务协议修改',
theOneId: 'child_document_sever'
},
component: () => import('@/view/cdocument/tremser.vue')
},{
path: 'sky_document_privacy',
name: 'sky_document_privacy',
meta: {
icon: 'ios-document',
title: '隐私协议修改',
theOneId: 'child_document_privacy'
},
component: () => import('@/view/cdocument/privacy.vue')
},{
path: 'sky_document_expand',
name: 'sky_document_expand',
meta: {
icon: 'ios-document',
title: '推广说明列表',
theOneId: 'child_document_expand'
},
component: () => import('@/view/cdocument/expand.vue')
}
]
},
{
path: '/tools_funds',
name: 'sky_honour_funds',
meta: {
access: ['seller'],
hideInBread: true,
theOneId: 'par_funds'
},
component: Main,
children: [
{
path: 'sky_honour_funds',
name: 'sky_funds_funds',
meta: {
icon: 'logo-usd',
title: '资金管理',
beforeCloseName: 'before_close_normal',
theOneId: 'child_funds_aam'
},
component: () => import('@/view/cfunds/management.vue')
}
]
},
{
path: '/package',
name: 'package',
meta: {
access: ['seller'],
hideInBread: true,
theOneId: 'par_combo'
},
component: Main,
children: [
{
path: '/sky_package',
name: 'sky_package',
meta: {
icon: 'md-cube',
title: '套餐信息',
beforeCloseName: 'before_close_normal',
theOneId: 'child_combo_info'
},
component: () => import('@/view/package/package.vue')
}
]
},
{
path: '/referral',
name: 'sky_honour_referral',
meta: {
access: [ 'seller'],
hideInBread: true,
theOneId: 'par_referral'
},
component: Main,
children: [
{
path: 'sky_honour_referral',
name: 'sky_referral_home',
meta: {
icon: 'md-share',
title: '推荐奖励',
beforeCloseName: 'before_close_normal',
theOneId: 'child_referral_home'
},
component: () => import('@/view/creferral/referral.vue')
}
]
},
{
path: '/personal',
name: 'sky_honour_personal',
meta: {
access: ['seller'],
hideInBread: true,
theOneId: 'par_personal'
},
component: Main,
children: [
{
path: 'sky_honour_personal',
name: 'sky_personal_info',
meta: {
icon: 'md-person',
title: '个人信息',
beforeCloseName: 'before_close_normal',
theOneId: 'child_personal_info'
},
component: () => import('@/view/cpersonal/userinfo.vue')
}
]
},
{
path: '/cfaq',
name: 'sky_honour_faq',
meta: {
access: [ 'seller'],
hideInBread: true,
theOneId: 'par_faq'
},
component: Main,
children: [
{
path: 'sky_honour_faq',
name: 'sky_faq_home',
meta: {
icon: 'ios-timer',
title: '常见问题',
beforeCloseName: 'before_close_normal',
theOneId: 'child_faq_list'
},
component: () => import('@/view/cfaq/wfaq.vue')
}
]
},
{
path: '/auth',
name: 'sky_honour_auth',
meta: {
access: ['admin'],
hideInBread: true,
theOneId: 'par_auth'
},
component: Main,
children: [
{
path: 'authlist',
name: 'sky_auth_list',
meta: {
icon: 'ios-timer',
title: '角色管理',
beforeCloseName: 'before_close_normal',
theOneId: 'child_auth_aam'
},
component: () => import('@/view/cauth/cauth.vue')
}
]
},
{
path: '/multilevel',
name: 'multilevel',
meta: {
access: ['super_admin2_tests'],
icon: 'md-menu',
title: '多级菜单'
},
component: Main,
children: [
{
path: 'level_2_1',
name: 'level_2_1',
meta: {
icon: 'md-funnel',
title: '二级-1'
},
component: () => import('@/view/multilevel/level-2-1.vue')
},
{
path: 'level_2_2',
name: 'level_2_2',
meta: {
access: ['super_admin2'],
icon: 'md-funnel',
showAlways: true,
title: '二级-2'
},
component: parentView,
children: [
{
path: 'level_2_2_1',
name: 'level_2_2_1',
meta: {
icon: 'md-funnel',
title: '三级'
},
component: () => import('@/view/multilevel/level-2-2/level-2-2-1.vue')
},
{
path: 'level_2_2_2',
name: 'level_2_2_2',
meta: {
icon: 'md-funnel',
title: '三级'
},
component: () => import('@/view/multilevel/level-2-2/level-2-2-2.vue')
}
]
},
{
path: 'level_2_3',
name: 'level_2_3',
meta: {
icon: 'md-funnel',
title: '二级-3'
},
component: () => import('@/view/multilevel/level-2-3.vue')
}
]
},
{
path: '/components',
name: 'components',
meta: {
access: ['super_admin2_tests'],
icon: 'logo-buffer',
title: '组件'
},
component: Main,
children: [
{
path: 'count_to_page',
name: 'count_to_page',
meta: {
icon: 'md-trending-up',
title: '数字渐变'
},
component: () => import('@/view/components/count-to/count-to.vue')
},
{
path: 'drag_list_page',
name: 'drag_list_page',
meta: {
icon: 'ios-infinite',
title: '拖拽列表'
},
component: () => import('@/view/components/drag-list/drag-list.vue')
},
{
path: 'tree_table_page',
name: 'tree_table_page',
meta: {
icon: 'md-git-branch',
title: '树状表格'
},
component: () => import('@/view/components/tree-table/index.vue')
},
{
path: 'cropper_page',
name: 'cropper_page',
meta: {
icon: 'md-crop',
title: '图片裁剪'
},
component: () => import('@/view/components/cropper/cropper.vue')
},
{
path: 'tables_page',
name: 'tables_page',
meta: {
icon: 'md-grid',
title: '多功能表格'
},
component: () => import('@/view/components/tables/tables.vue')
},
{
path: 'split_pane_page',
name: 'split_pane_page',
meta: {
icon: 'md-pause',
title: '分割窗口'
},
component: () => import('@/view/components/split-pane/split-pane.vue')
},
{
path: 'markdown_page',
name: 'markdown_page',
meta: {
icon: 'logo-markdown',
title: 'Markdown编辑器'
},
component: () => import('@/view/components/markdown/markdown.vue')
},
{
path: 'editor_page',
name: 'editor_page',
meta: {
icon: 'ios-create',
title: '富文本编辑器'
},
component: () => import('@/view/components/editor/editor.vue')
},
{
path: 'icons_page',
name: 'icons_page',
meta: {
icon: '_bear',
title: '自定义图标'
},
component: () => import('@/view/components/icons/icons.vue')
}
]
},
{
path: '/tools_methods',
name: 'tools_methods',
meta: {
access: ['super_admin2_tests'],
hideInBread: true
},
component: Main,
children: [
{
path: 'tools_methods_page',
name: 'tools_methods_page',
meta: {
icon: 'ios-hammer',
title: '工具方法',
beforeCloseName: 'before_close_normal'
},
component: () => import('@/view/tools-methods/tools-methods.vue')
}
]
},
{
path: '/error_logger',
name: 'error_logger',
meta: {
access: ['super_admin2_tests'],
hideInBread: true,
hideInMenu: true
},
component: Main,
children: [
{
path: 'error_logger_page',
name: 'error_logger_page',
meta: {
icon: 'ios-bug',
title: '错误收集'
},
component: () => import('@/view/single-page/error-logger.vue')
}
]
},
{
path: '/directive',
name: 'directive',
meta: {
access: ['super_admin2_tests'],
hideInBread: true
},
component: Main,
children: [
{
path: 'directive_page',
name: 'directive_page',
meta: {
icon: 'ios-navigate',
title: '指令'
},
component: () => import('@/view/directive/directive.vue')
}
]
},
{
path: '/401',
name: 'error_401',
meta: {
access: ['super_admin2_tests'],
hideInMenu: true
},
component: () => import('@/view/error-page/401.vue')
},
{
path: '/500',
name: 'error_500',
meta: {
access: ['super_admin2_tests'],
hideInMenu: true
},
component: () => import('@/view/error-page/500.vue')
},
{
path: '*',
name: 'error_404',
meta: {
access: ['super_admin2_tests'],
hideInMenu: true
},
component: () => import('@/view/error-page/404.vue')
}
]
const sl = {
"par_userlist":{"title":"用户列表","isparent":true,"expand":false,"icidx":"par_userlist","menuId":"par_userlist","children":{"child_userlist_buyer":{"title":"买家列表","expand":true,"icidx":"child_userlist_buyer","menuId":"child_userlist_buyer","children":{},"checked":true,"nodeKey":1},"child_userlist-seller":{"title":"卖家列表","expand":true,"icidx":"child_userlist-seller","menuId":"child_userlist-seller","children":{},"checked":true,"nodeKey":2}},"checked":true,"nodeKey":0},"par_adminevaluaion":{"title":"测评推广","isparent":true,"expand":false,"icidx":"par_adminevaluaion","menuId":"par_adminevaluaion","children":{"child_adminevaluaion_product":{"title":"测评产品","expand":true,"icidx":"child_adminevaluaion_product","menuId":"child_adminevaluaion_product","children":{},"checked":true,"nodeKey":4},"child_adminevaluaion_request":{"title":"测评请求","expand":true,"icidx":"child_adminevaluaion_request","menuId":"child_adminevaluaion_request","children":{},"checked":true,"nodeKey":5}},"checked":true,"nodeKey":3},"par_adminfreetest":{"title":"Free Test FB","isparent":true,"expand":true,"icidx":"par_adminfreetest","menuId":"par_adminfreetest","children":{"child_adminfreetest_product":{"title":"产品列表","expand":true,"icidx":"child_adminfreetest_product","menuId":"child_adminfreetest_product","children":{},"nodeKey":7,"checked":true,"indeterminate":false}},"nodeKey":6,"checked":false,"indeterminate":true},"par_admimnpurchased":{"title":"点击加购","isparent":true,"expand":false,"icidx":"par_admimnpurchased","menuId":"par_admimnpurchased","children":{"child_adminpurchased_list":{"title":"加购列表","expand":true,"icidx":"child_adminpurchased_list","menuId":"child_adminpurchased_list","children":{},"checked":true,"nodeKey":10},"child_adminpurchased_audit":{"title":"加购审核","expand":true,"icidx":"child_adminpurchased_audit","menuId":"child_adminpurchased_audit","children":{},"checked":true,"nodeKey":11}},"checked":true,"nodeKey":9},"par_sdvote":{"title":"SD Vote","isparent":true,"expand":false,"icidx":"par_sdvote","menuId":"par_sdvote","children":{"child_sdvote_creat":{"title":"发布SD Vote","expand":true,"icidx":"child_sdvote_creat","menuId":"child_sdvote_creat","children":{},"checked":true,"nodeKey":13},"child_sdvote_check":{"title":"Vote审核","expand":true,"icidx":"child_sdvote_check","menuId":"child_sdvote_check","children":{},"checked":true,"nodeKey":14}},"checked":true,"nodeKey":12},"par_postmsg":{"title":"发帖列表","isparent":true,"expand":false,"icidx":"par_postmsg","menuId":"par_postmsg","children":{},"checked":true,"nodeKey":15},"par_orderlist":{"title":"订单列表","isparent":true,"expand":false,"icidx":"par_orderlist","menuId":"par_orderlist","children":{"child_orderlist_request":{"title":"request 列表","expand":true,"icidx":"child_orderlist_request","menuId":"child_orderlist_request","children":{},"checked":true,"nodeKey":17},"child_orderlist_addlist":{"title":"点击加购列表","expand":true,"icidx":"child_orderlist_addlist","menuId":"child_orderlist_addlist","children":{},"checked":true,"nodeKey":18},"child_orderlist_sdvote":{"title":"SDvote列表","expand":true,"icidx":"child_orderlist_sdvote","menuId":"child_orderlist_sdvote","children":{},"checked":true,"nodeKey":19}},"checked":true,"nodeKey":16},"par_auditlist":{"title":"审核列表","isparent":true,"expand":false,"icidx":"par_auditlist","menuId":"par_auditlist","children":{"child_auditlist_test":{"title":"测评推广审核","expand":true,"icidx":"child_auditlist_test","menuId":"child_auditlist_test","children":{},"checked":true,"nodeKey":21},"child_auditlist_sdvote":{"title":"SDvote审核","expand":true,"icidx":"child_auditlist_sdvote","menuId":"child_auditlist_sdvote","children":{},"checked":true,"nodeKey":22},"child_auditlist_fb":{"title":"free test FB审核","expand":true,"icidx":"child_auditlist_fb","menuId":"child_auditlist_fb","children":{},"checked":true,"nodeKey":23},"child_auditlist_addbuy":{"title":"点击加购审核","expand":true,"icidx":"child_auditlist_addbuy","menuId":"child_auditlist_addbuy","children":{},"checked":true,"nodeKey":24}},"checked":true,"nodeKey":20},"par_webmsg":{"title":"站内信列表","isparent":true,"expand":false,"icidx":"par_webmsg","menuId":"par_webmsg","children":{},"checked":true,"nodeKey":25},"par_withdraw":{"title":"提现管理","isparent":true,"expand":false,"icidx":"par_withdraw","menuId":"par_withdraw","children":{},"checked":true,"nodeKey":26},"par_setprice":{"title":"价格设置","isparent":true,"expand":false,"icidx":"par_setprice","menuId":"par_setprice","children":{},"checked":true,"nodeKey":27},"par_statistics":{"title":"数据统计","isparent":true,"expand":false,"icidx":"par_statistics","menuId":"par_statistics","children":{},"checked":true,"nodeKey":28},"par_edmall":{"title":"一键EDM","isparent":true,"expand":false,"icidx":"par_edmall","menuId":"par_edmall","children":{"child_edmall_buyer":{"title":"买家EDM","expand":true,"icidx":"child_edmall_buyer","menuId":"child_edmall_buyer","children":{},"checked":true,"nodeKey":30},"child_edmall_seller":{"title":"卖家EDM","expand":true,"icidx":"child_edmall_seller","menuId":"child_edmall_seller","children":{},"checked":true,"nodeKey":31}},"checked":true,"nodeKey":29},"par_document":{"title":"文档修改","isparent":true,"expand":false,"icidx":"par_document","menuId":"par_document","children":{"child_document_faq":{"title":"FAQ修改","expand":true,"icidx":"child_document_faq","menuId":"child_document_faq","children":{},"checked":true,"nodeKey":33},"child_document_sever":{"title":"服务协议修改","expand":true,"icidx":"child_document_sever","menuId":"child_document_sever","children":{},"checked":true,"nodeKey":34},"child_document_privacy":{"title":"隐私协议修改","expand":true,"icidx":"child_document_privacy","menuId":"child_document_privacy","children":{},"checked":true,"nodeKey":35},"child_document_expand":{"title":"推广说明列表","expand":true,"icidx":"child_document_expand","menuId":"child_document_expand","children":{},"checked":true,"nodeKey":36}},"checked":true,"nodeKey":32},"par_auth":{"title":"角色管理","isparent":true,"expand":false,"icidx":"par_auth","menuId":"par_auth","children":{},"checked":true,"nodeKey":37}}
const getConfigMenu = (aList, setMenuList)=>{
// 数组转化为对象
const arrayToObj = (fnList, fnMenuList) => {
let res = []
fnList.map((item) => {
if (fnMenuList[item.meta.theOneId]) {
let oTempData = Object.assign({},item)
if (item.children && item.children.length >= 1) {
if (item.children.length >1 && !fnMenuList[item.meta.theOneId].isparent) {
oTempData.children = []
let oTempRul = arrayToObj(item.children, fnMenuList[item.meta.theOneId].children)
oTempData.children = (oTempRul)
}
}
res.push(oTempData)
}
})
return res
}
let oLastData = arrayToObj(aList, setMenuList)
return oLastData
}
let temps = getConfigMenu(routers, sl)
console.log(temps)
console