123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463 |
- /**
- * 管理后台本地数据
- */
- // 系统初始化数据
- const initData = {
- error: 0,
- msg: '获取成功',
- data: {
- name: 'bandhuBuy',
- logo: '/static/img/logo.png',
- domainurl: 'https://mall-oss.trust-will.com',
- filesystem: 'aliyun',
- version: '1.0.0',
- sheep_version: 'v1.4.1',
- is_pro: true,
- },
- };
- // 登录配置数据
- const loginConfigData = {
- error: 0,
- msg: '获取成功',
- data: {
- background: '/storage/default/20250227/8fdd538e05f5ad15402f5a66fe595621.jpg',
- mode: 'none',
- },
- };
- // 菜单权限数据 - 二级菜单结构
- const menuRulesData = {
- error: 0,
- msg: '获取成功',
- data: {
- menu: [
- {
- type_text: '菜单',
- status_text: '显示',
- id: 1,
- parent_id: 0,
- name: 'shop.admin',
- title: '商城管理',
- type: 'menu',
- icon: '/static/img/shop/logo.png',
- params: '',
- weigh: 0,
- status: 'show',
- children: [
- // 首页
- {
- type_text: '菜单',
- status_text: '显示',
- id: 90,
- parent_id: 1,
- name: 'shop.admin.dashboard',
- title: '首页',
- type: 'menu',
- icon: 'sa-home_line',
- params: '',
- weigh: 0,
- status: 'show',
- children: [
- {
- type_text: '页面',
- status_text: '显示',
- id: 901,
- parent_id: 90,
- name: 'shop.admin.dashboard',
- title: '数据概览',
- type: 'page',
- icon: 'sa-home_line',
- params: '',
- weigh: 0,
- status: 'show',
- },
- ],
- },
- // 商品
- {
- type_text: '菜单',
- status_text: '显示',
- id: 300,
- parent_id: 1,
- name: 'shop.admin.goods',
- title: '商品',
- type: 'menu',
- icon: 'sa-bag_line',
- params: '',
- weigh: 0,
- status: 'show',
- children: [
- {
- type_text: '页面',
- status_text: '显示',
- id: 113,
- parent_id: 300,
- name: 'shop.admin.goods.goods',
- title: '商品库',
- type: 'page',
- icon: '',
- params: '',
- weigh: 0,
- status: 'show',
- },
- {
- type_text: '页面',
- status_text: '显示',
- id: 125,
- parent_id: 300,
- name: 'shop.admin.goods.category',
- title: '商品分类',
- type: 'page',
- icon: '',
- params: '',
- weigh: 0,
- status: 'show',
- },
- ],
- },
- // 订单
- {
- type_text: '菜单',
- status_text: '显示',
- id: 400,
- parent_id: 1,
- name: 'shop.admin.order',
- title: '订单',
- type: 'menu',
- icon: 'sa-order_line',
- params: '',
- weigh: 0,
- status: 'show',
- children: [
- {
- type_text: '页面',
- status_text: '显示',
- id: 154,
- parent_id: 400,
- name: 'shop.admin.order.list',
- title: '订单管理',
- type: 'page',
- icon: '',
- params: '',
- weigh: 0,
- status: 'show',
- },
- {
- type_text: '页面',
- status_text: '显示',
- id: 171,
- parent_id: 400,
- name: 'shop.admin.order.aftersale',
- title: '售后管理',
- type: 'page',
- icon: '',
- params: '',
- weigh: 0,
- status: 'show',
- },
- {
- type_text: '页面',
- status_text: '显示',
- id: 172,
- parent_id: 400,
- name: 'shop.admin.order.setting',
- title: '订单设置',
- type: 'page',
- icon: '',
- params: '',
- weigh: 0,
- status: 'show',
- },
- ],
- },
- // 用户
- {
- type_text: '菜单',
- status_text: '显示',
- id: 500,
- parent_id: 1,
- name: 'shop.admin.user',
- title: '用户',
- type: 'menu',
- icon: 'sa-user',
- params: '',
- weigh: 0,
- status: 'show',
- children: [
- {
- type_text: '页面',
- status_text: '显示',
- id: 501,
- parent_id: 500,
- name: 'shop.admin.user.list',
- title: '用户列表',
- type: 'page',
- icon: '',
- params: '',
- weigh: 0,
- status: 'show',
- },
- {
- type_text: '页面',
- status_text: '显示',
- id: 502,
- parent_id: 500,
- name: 'shop.admin.user.tag',
- title: '标签管理',
- type: 'page',
- icon: '',
- params: '',
- weigh: 0,
- status: 'show',
- },
- {
- type_text: '页面',
- status_text: '显示',
- id: 503,
- parent_id: 500,
- name: 'shop.admin.user.level',
- title: '会员等级',
- type: 'page',
- icon: '',
- params: '',
- weigh: 0,
- status: 'show',
- },
- ],
- },
- // 营销
- {
- type_text: '菜单',
- status_text: '显示',
- id: 600,
- parent_id: 1,
- name: 'shop.admin.marketing',
- title: '营销',
- type: 'menu',
- icon: 'sa-marketing_line',
- params: '',
- weigh: 0,
- status: 'show',
- children: [
- {
- type_text: '页面',
- status_text: '显示',
- id: 601,
- parent_id: 600,
- name: 'shop.admin.marketing.group',
- title: '拼团',
- type: 'page',
- icon: '',
- params: '',
- weigh: 0,
- status: 'show',
- },
- ],
- },
- // 内容
- {
- type_text: '菜单',
- status_text: '显示',
- id: 700,
- parent_id: 1,
- name: 'shop.admin.content',
- title: '内容',
- type: 'menu',
- icon: 'sa-message_line',
- params: '',
- weigh: 0,
- status: 'show',
- children: [
- {
- type_text: '页面',
- status_text: '显示',
- id: 701,
- parent_id: 700,
- name: 'shop.admin.content.notification',
- title: '消息推送',
- type: 'page',
- icon: '',
- params: '',
- weigh: 0,
- status: 'show',
- },
- {
- type_text: '页面',
- status_text: '显示',
- id: 702,
- parent_id: 700,
- name: 'shop.admin.content.sms',
- title: '短信',
- type: 'page',
- icon: '',
- params: '',
- weigh: 0,
- status: 'show',
- },
- {
- type_text: '页面',
- status_text: '显示',
- id: 703,
- parent_id: 700,
- name: 'shop.admin.content.banner',
- title: '广告位',
- type: 'page',
- icon: '',
- params: '',
- weigh: 0,
- status: 'show',
- },
- ],
- },
- // 数据
- {
- type_text: '菜单',
- status_text: '显示',
- id: 800,
- parent_id: 1,
- name: 'shop.admin.data',
- title: '数据',
- type: 'menu',
- icon: 'sa-graph_line',
- params: '',
- weigh: 0,
- status: 'show',
- children: [
- {
- type_text: '页面',
- status_text: '显示',
- id: 801,
- parent_id: 800,
- name: 'shop.admin.data.report',
- title: '数据报表',
- type: 'page',
- icon: '',
- params: '',
- weigh: 0,
- status: 'show',
- },
- ],
- },
- // 财务
- {
- type_text: '菜单',
- status_text: '显示',
- id: 900,
- parent_id: 1,
- name: 'shop.admin.finance',
- title: '财务',
- type: 'menu',
- icon: 'sa-cny_line',
- params: '',
- weigh: 0,
- status: 'show',
- children: [
- {
- type_text: '页面',
- status_text: '显示',
- id: 901,
- parent_id: 900,
- name: 'shop.admin.finance.recharge',
- title: '充值',
- type: 'page',
- icon: '',
- params: '',
- weigh: 0,
- status: 'show',
- },
- {
- type_text: '页面',
- status_text: '显示',
- id: 902,
- parent_id: 900,
- name: 'shop.admin.finance.withdraw',
- title: '提款',
- type: 'page',
- icon: '',
- params: '',
- weigh: 0,
- status: 'show',
- },
- {
- type_text: '页面',
- status_text: '显示',
- id: 903,
- parent_id: 900,
- name: 'shop.admin.finance.commission',
- title: '佣金',
- type: 'page',
- icon: '',
- params: '',
- weigh: 0,
- status: 'show',
- },
- ],
- },
- // 设置
- {
- type_text: '菜单',
- status_text: '显示',
- id: 1000,
- parent_id: 1,
- name: 'admin.config',
- title: '设置',
- type: 'menu',
- icon: 'sa-config',
- params: '',
- weigh: 0,
- status: 'show',
- children: [
- {
- type_text: '页面',
- status_text: '显示',
- id: 1001,
- parent_id: 1000,
- name: 'admin.auth.role',
- title: '角色管理',
- type: 'page',
- icon: 'sa-auth-role',
- params: '',
- weigh: 0,
- status: 'show',
- },
- {
- type_text: '页面',
- status_text: '显示',
- id: 1002,
- parent_id: 1000,
- name: 'admin.auth.admin',
- title: '人员管理',
- type: 'page',
- params: '',
- weigh: 0,
- status: 'show',
- },
- ],
- },
- ],
- },
- ],
- permission: ['*'],
- },
- };
- export default {
- /**
- * 系统初始化接口
- */
- init: () => initData,
- /**
- * 登录配置接口
- */
- loginConfig: () => loginConfigData,
- /**
- * 菜单权限接口
- */
- account: {
- rules: () => menuRulesData,
- },
- };
|