You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
879 lines
22 KiB
879 lines
22 KiB
import Vue from 'vue';
|
|
import Vuex from 'vuex';
|
|
// import createPersistedState from 'vuex-persistedstate';
|
|
Vue.use(Vuex)
|
|
|
|
export default new Vuex.Store({
|
|
state: {
|
|
showSecondSide: false,
|
|
showSidebar: false,
|
|
showFooter: false,
|
|
showHeader: false,
|
|
showHeaderRight: false,
|
|
menuList: [], //目录菜单
|
|
secondMenu: {},
|
|
|
|
// secondMenu:{},//第三种侧边栏 -- 可折叠、 切换显示
|
|
showBreadcrumb: false, //是否展示面包屑
|
|
breadRightText: '', //是否展示面包屑
|
|
breadRightTextLink: '', //是否展示面包屑
|
|
pageTitle: '一般新文献', //页面标题
|
|
addServiceList: [], //选中的服务
|
|
isLoading: false, //页面loading
|
|
customize: false, //页面loading
|
|
carryParam: true, //携带参数
|
|
componentsName: '',
|
|
currentMenuItem: null,
|
|
slidermenu: [],
|
|
// 第二种侧边栏--单项可跳转
|
|
rankMenuData: [{
|
|
name: '总利润',
|
|
path: '',
|
|
img: 'site/sitebase.svg',
|
|
imgActive: require('@/assets/site/sitebase_active.svg'),
|
|
list: [{
|
|
name: '年排行',
|
|
path: '/super/ranking/yearProfit'
|
|
},
|
|
{
|
|
name: '月排行',
|
|
path: '/super/ranking/monthProfit'
|
|
},
|
|
]
|
|
},
|
|
{
|
|
name: '产品',
|
|
path: '',
|
|
img: 'site/sitebase.svg',
|
|
imgActive: require('@/assets/site/sitebase_active.svg'),
|
|
list: [{
|
|
name: '毛利润排行',
|
|
path: '/super/ranking/checkProfit'
|
|
},
|
|
{
|
|
name: '订单数排行',
|
|
path: '/super/ranking/checkOrdernum'
|
|
},
|
|
{
|
|
name: '退单数排行',
|
|
path: '/super/ranking/checkRefund'
|
|
},
|
|
{
|
|
name: '负毛利排行',
|
|
path: '/super/ranking/loss'
|
|
},
|
|
]
|
|
},
|
|
{
|
|
name: '代理商',
|
|
path: '',
|
|
img: 'site/sitebase.svg',
|
|
imgActive: require('@/assets/site/sitebase_active.svg'),
|
|
list: [{
|
|
name: '毛利润排行',
|
|
path: '/super/ranking/agentProfit'
|
|
},
|
|
{
|
|
name: '充值排行',
|
|
path: '/super/ranking/agentRecharge'
|
|
},
|
|
{
|
|
name: '新加盟',
|
|
path: '/super/ranking/agentNew'
|
|
},
|
|
]
|
|
},
|
|
{
|
|
name: '设置',
|
|
path: '',
|
|
img: 'site/sitebase.svg',
|
|
imgActive: require('@/assets/site/sitebase_active.svg'),
|
|
list: [{
|
|
name: '采购价',
|
|
path: '/super/ranking/purchase'
|
|
},
|
|
{
|
|
name: '阶段采购',
|
|
path: '/super/ranking/stagePurchase'
|
|
},
|
|
]
|
|
},
|
|
],
|
|
// 第一种侧边栏--可折叠、可跳转
|
|
menuData: [{
|
|
index: '1',
|
|
title: '首页',
|
|
path: '/',
|
|
icon: 'home',
|
|
},
|
|
{
|
|
index: '2',
|
|
title: '自有品牌',
|
|
icon: 'privateBrand',
|
|
children: [{
|
|
index: '2-1',
|
|
title: '站点配置',
|
|
path: '/service/oem_site',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '2-2',
|
|
title: '用户充值',
|
|
path: '/service/user_recharge',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '2-3',
|
|
title: '自有品牌',
|
|
path: '/service/oem_free',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
]
|
|
},
|
|
{
|
|
index: '3',
|
|
title: '订单列表',
|
|
icon: 'orderList',
|
|
children: [{
|
|
index: '3-1',
|
|
title: '查重订单',
|
|
path: '/agent/checkOrderList'
|
|
},
|
|
{
|
|
index: '3-2',
|
|
title: 'AI写作订单',
|
|
path: '/agent/aiOrderList'
|
|
},
|
|
{
|
|
index: '3-3',
|
|
title: 'OCPC订单',
|
|
path: '/agent/ocpcList'
|
|
},
|
|
{
|
|
index: '3-4',
|
|
title: '电商废弃平台',
|
|
path: '/service/void_order',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
]
|
|
},
|
|
{
|
|
index: '4',
|
|
title: '销售平台',
|
|
icon: 'channel',
|
|
children: [
|
|
{
|
|
index: '4-1',
|
|
title: '站点管理',
|
|
path: '/agent/siteList'
|
|
},
|
|
{
|
|
index: '4-2',
|
|
title: '微信h5',
|
|
path: '/service/ser_value_added',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '4-3',
|
|
title: '小程序',
|
|
path: '/service/xcx/tab/1',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
]
|
|
},
|
|
{
|
|
index: '5',
|
|
title: '手工提交',
|
|
icon: 'manualSubmission',
|
|
children: [
|
|
{
|
|
index: '5-1',
|
|
title: '单篇查重',
|
|
path: '/service/check_new',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '5-2',
|
|
title: '批量查重',
|
|
path: '/service/multiple_check',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '5-3',
|
|
title: 'AI范文',
|
|
path: '/service/modelessay',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '5-4',
|
|
title: 'AI降重',
|
|
path: '/service/reduce',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '5-5',
|
|
title: '原文标红',
|
|
path: '/service/sign',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '5-6',
|
|
title: '论文排版',
|
|
path: '/service/format',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
]
|
|
},
|
|
{
|
|
index: '6',
|
|
title: '运营工具',
|
|
icon: 'operatingTools',
|
|
children: [
|
|
{
|
|
index: '6-1',
|
|
title: '检测卡',
|
|
path: '/card/check_card_list',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '6-2',
|
|
title: '微信代金券',
|
|
path: '/service/coupon_stocks',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '6-3',
|
|
title: '公众号发券',
|
|
path: '/service/free_coupon_list',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '6-4',
|
|
title: '卡密自提',
|
|
path: '/cardsecret/card_secret_type',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '6-5',
|
|
title: '悬浮广告',
|
|
path: '/service/active_list',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '6-6',
|
|
title: '报告插页',
|
|
path: '/ad/ad_list_page',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '6-7',
|
|
title: '报告秘籍',
|
|
path: '/service/miji',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '6-8',
|
|
title: '三级分销',
|
|
path: '/service/fx_tertiary',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '6-9',
|
|
title: '裂变分销',
|
|
path: '/service/fx_fission',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '6-10',
|
|
title: '合伙人',
|
|
path: '/partner/platform_info',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
]
|
|
},
|
|
{
|
|
index: '7',
|
|
title: '通知中心',
|
|
icon: 'dashboards',
|
|
children: [{
|
|
index: '7-1',
|
|
title: '检测通知',
|
|
path: '/service/check_notice',
|
|
external: true,//是否跳转外部链接
|
|
},{
|
|
index: '7-2',
|
|
title: '消息通知',
|
|
path:'/service/news_notice',
|
|
external: true,//是否跳转外部链接
|
|
}
|
|
]
|
|
},
|
|
{
|
|
index: '8',
|
|
title: '财务',
|
|
icon: 'finance',
|
|
children: [
|
|
{
|
|
index: '8-1',
|
|
title: '收款方式',
|
|
path: '/agent/payList'
|
|
},
|
|
{
|
|
index: '8-2',
|
|
title: '充值管理',
|
|
path: '/service/repay',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '8-3',
|
|
title: '代收款结算',
|
|
path:'/pay/payoff_list?tab=info',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '8-4',
|
|
title: '收支统计',
|
|
path:'/stats',
|
|
external: true,//是否跳转外部链接
|
|
}
|
|
]
|
|
},
|
|
{
|
|
index: '9',
|
|
title: '安全防护',
|
|
icon: 'safetyProtection',
|
|
children: [
|
|
{
|
|
index: '9-1',
|
|
title: 'IP黑名单',
|
|
path: '/safe/ipblacklist',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '9-2',
|
|
title: '访问限制',
|
|
path: '/safe/limited_access',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
]
|
|
},
|
|
{
|
|
index: '10',
|
|
title: '设置中心',
|
|
icon: 'setCenter',
|
|
children: [
|
|
{
|
|
index: '10-1',
|
|
title: '基本设置',
|
|
path: '/service/base_set',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '10-2',
|
|
title: '子账号',
|
|
path: '/service/login_user_list',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '10-3',
|
|
title: '服务公告',
|
|
path: '/service/agent_notice',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
{
|
|
index: '10-4',
|
|
title: '上传文档格式',
|
|
path: '/service/check_submit_setting',
|
|
external: true,//是否跳转外部链接
|
|
},
|
|
]
|
|
},
|
|
{
|
|
index: '11',
|
|
title: '支持',
|
|
icon: 'support',
|
|
children: [
|
|
{
|
|
index: '11-1',
|
|
title: '开放平台',
|
|
path: '/service/open_api',
|
|
external: true,//是否跳转外部链接
|
|
}
|
|
]
|
|
}
|
|
],
|
|
siteSettingData1: [{
|
|
name: '基本设置',
|
|
path: '/agent/siteBaseSetting',
|
|
img: 'site/sitebase.svg',
|
|
imgActive: require('@/assets/site/sitebase_active.svg'),
|
|
list: [{
|
|
name: '站点信息',
|
|
desc: 'siteMessage1'
|
|
},
|
|
{
|
|
name: '域名设置',
|
|
desc: 'siteMessage2'
|
|
},
|
|
{
|
|
name: '渠道设置',
|
|
desc: 'siteMessage14'
|
|
},
|
|
{
|
|
name: '收款方式',
|
|
desc: 'siteMessage3'
|
|
},
|
|
]
|
|
},
|
|
{
|
|
name: '个性化设置',
|
|
path: '/agent/sitePersonalization',
|
|
img: 'site/gexinghua.svg',
|
|
imgActive: require('@/assets/site/sitebase_active.svg'),
|
|
list: [{
|
|
name: '网页模板',
|
|
desc: 'siteMessage4'
|
|
},
|
|
{
|
|
name: '客服设置',
|
|
desc: 'siteMessage5'
|
|
},
|
|
{
|
|
name: '功能显隐',
|
|
desc: 'siteMessage6'
|
|
},
|
|
{
|
|
name: '安全提交',
|
|
desc: 'siteMessage7'
|
|
},
|
|
{
|
|
name: '初始订单数',
|
|
desc: 'siteMessage8'
|
|
},
|
|
]
|
|
},
|
|
{
|
|
name: '移动端设置',
|
|
path: '/agent/siteMobileSetting',
|
|
img: 'site/siteh5.svg',
|
|
imgActive: require('@/assets/site/sitebase_active.svg'),
|
|
list: [{
|
|
name: '微信H5',
|
|
desc: 'siteMessage9'
|
|
},
|
|
{
|
|
name: '小程序',
|
|
desc: 'siteMessage10'
|
|
},
|
|
]
|
|
},
|
|
{
|
|
name: '营销推广',
|
|
path: '/siteSetting/siteSem',
|
|
img: 'site/sitesem.svg',
|
|
imgActive: require('@/assets/site/sitebase_active.svg'),
|
|
list: [{
|
|
name: 'SEO设置',
|
|
desc: 'siteMessage11'
|
|
},
|
|
{
|
|
name: 'SEM设置',
|
|
desc: 'siteMessage12'
|
|
},
|
|
{
|
|
name: '访问统计',
|
|
desc: 'siteMessage13'
|
|
},
|
|
]
|
|
}
|
|
],
|
|
siteSettingData: [ //第二种侧边栏 -- 点击单项进行页面滚动
|
|
{
|
|
name: '基本设置',
|
|
path: '/agent/siteBaseSetting',
|
|
img: 'site/sitebase.svg',
|
|
imgActive: require('@/assets/site/sitebase_active.svg'),
|
|
list: [{
|
|
name: '站点信息',
|
|
desc: 'siteMessage1'
|
|
},
|
|
{
|
|
name: '域名设置',
|
|
desc: 'siteMessage2'
|
|
},
|
|
{
|
|
name: '渠道设置',
|
|
desc: 'siteMessage14'
|
|
},
|
|
{
|
|
name: '收款方式',
|
|
desc: 'siteMessage3'
|
|
},
|
|
]
|
|
},
|
|
{
|
|
name: '个性化设置',
|
|
path: '/agent/sitePersonalization',
|
|
img: 'site/gexinghua.svg',
|
|
imgActive: require('@/assets/site/sitebase_active.svg'),
|
|
list: [{
|
|
name: '网页模板',
|
|
desc: 'siteMessage4'
|
|
},
|
|
{
|
|
name: '客服设置',
|
|
desc: 'siteMessage5'
|
|
},
|
|
{
|
|
name: '功能显隐',
|
|
desc: 'siteMessage6'
|
|
},
|
|
{
|
|
name: '安全提交',
|
|
desc: 'siteMessage7'
|
|
},
|
|
{
|
|
name: '初始订单数',
|
|
desc: 'siteMessage8'
|
|
},
|
|
]
|
|
},
|
|
{
|
|
name: '移动端设置',
|
|
path: '/agent/siteMobileSetting',
|
|
img: 'site/siteh5.svg',
|
|
imgActive: require('@/assets/site/sitebase_active.svg'),
|
|
list: [{
|
|
name: '微信H5',
|
|
desc: 'siteMessage9'
|
|
},
|
|
{
|
|
name: '小程序',
|
|
desc: 'siteMessage10'
|
|
},
|
|
{
|
|
name: '手机浏览器',
|
|
desc: 'siteMessage15'
|
|
},
|
|
]
|
|
},
|
|
{
|
|
name: '营销推广',
|
|
path: '/agent/siteSemSetting',
|
|
img: 'site/sitesem.svg',
|
|
imgActive: require('@/assets/site/sitebase_active.svg'),
|
|
list: [{
|
|
name: 'SEO设置',
|
|
desc: 'siteMessage11'
|
|
},
|
|
{
|
|
name: 'SEM设置',
|
|
desc: 'siteMessage12'
|
|
},
|
|
{
|
|
name: '访问统计',
|
|
desc: 'siteMessage13'
|
|
},
|
|
]
|
|
}
|
|
],
|
|
siteServiceSettingData: [ //第二种侧边栏 -- 单项切换对应组件
|
|
{
|
|
name: '服务设置',
|
|
path: '', //设置为空
|
|
img: 'site/settingIcon.svg',
|
|
noToPath: true,
|
|
imgActive: require('@/assets/site/sitebase_active.svg'),
|
|
list: [{
|
|
name: '价格设置',
|
|
desc: 'priceSet', //和组件名称、componentsName 一致
|
|
componentsName: 'priceSet' //和页面内引入的组件名称 、及上面desc 一致
|
|
},
|
|
{
|
|
name: '收款设置',
|
|
desc: 'paymentSet',
|
|
componentsName: 'paymentSet'
|
|
},
|
|
{
|
|
name: '展示设置',
|
|
desc: 'showSet',
|
|
componentsName: 'showSet'
|
|
},
|
|
{
|
|
name: '页面品牌与色彩',
|
|
desc: 'menuColorSet',
|
|
componentsName: 'menuColorSet'
|
|
}
|
|
]
|
|
},
|
|
{
|
|
name: 'SEO优化',
|
|
path: '',
|
|
img: 'site/sitesem.svg',
|
|
noToPath: true,
|
|
imgActive: require('@/assets/site/sitebase_active.svg'),
|
|
list: [{
|
|
name: '提交页SEO',
|
|
desc: 'submitSeoSet',
|
|
componentsName: 'submitSeoSet'
|
|
},
|
|
{
|
|
name: '报告页SEO',
|
|
desc: 'reportSeoSet',
|
|
componentsName: 'reportSeoSet'
|
|
},
|
|
]
|
|
},
|
|
{
|
|
name: '域名与链接',
|
|
path: '',
|
|
img: 'site/form_link.svg',
|
|
noToPath: true,
|
|
imgActive: require('@/assets/site/sitebase_active.svg'),
|
|
list: [{
|
|
name: '独立域名',
|
|
desc: 'domainSet',
|
|
componentsName: 'domainSet'
|
|
},
|
|
{
|
|
name: '自定义导航',
|
|
desc: 'linkSet',
|
|
componentsName: 'linkSet'
|
|
},
|
|
]
|
|
}
|
|
],
|
|
demoPageData: [{
|
|
name: '支付授权',
|
|
path: '', //设置为空
|
|
img: 'site/pay.svg',
|
|
noToPath: true,
|
|
imgActive: require('@/assets/site/sitebase_active.svg'),
|
|
list: [{
|
|
name: '默认展示组件',
|
|
desc: 'Franchise1', //和组件名称、componentsName 一致
|
|
componentsName: 'Franchise1' //和页面内引入的组件名称 、及上面desc 一致
|
|
}]
|
|
},
|
|
{
|
|
name: '支付设置',
|
|
path: '',
|
|
img: 'site/setting.svg',
|
|
noToPath: true,
|
|
imgActive: require('@/assets/site/sitebase_active.svg'),
|
|
list: [{
|
|
name: '平台退款',
|
|
desc: 'Register',
|
|
componentsName: 'Register'
|
|
},
|
|
{
|
|
name: '管理证书',
|
|
desc: 'Franchise',
|
|
componentsName: 'Franchise'
|
|
},
|
|
]
|
|
},
|
|
],
|
|
paySettingData: [{
|
|
name: '支付授权',
|
|
path: '/agent/payInfoSetting',
|
|
img: 'site/pay.svg',
|
|
imgActive: require('@/assets/site/sitebase_active.svg'),
|
|
list: [],
|
|
permission: [0, 4, 11, 2, 3]
|
|
},
|
|
{
|
|
name: '钱款交易',
|
|
path: '/agent/payCertSetting',
|
|
img: 'site/pay_trade.svg',
|
|
imgActive: require('@/assets/site/sitebase_active.svg'),
|
|
list: [{
|
|
name: '管理证书',
|
|
desc: 'siteMessage1',
|
|
permission: [2]
|
|
},
|
|
{
|
|
name: '平台退款',
|
|
desc: 'siteMessage2',
|
|
permission: [3, 2]
|
|
},
|
|
{
|
|
name: '分账管理',
|
|
desc: 'siteMessage3',
|
|
permission: [2]
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: '支付设置',
|
|
path: '/agent/paySetting',
|
|
img: 'site/setting.svg',
|
|
imgActive: require('@/assets/site/sitebase_active.svg'),
|
|
list: [{
|
|
name: '支付客服',
|
|
desc: 'siteMessage4',
|
|
permission: [2]
|
|
},
|
|
{
|
|
name: '启停收款方式',
|
|
desc: 'siteMessage5',
|
|
permission: [0, 4, 11, 3, 2],
|
|
},
|
|
{
|
|
name: '移除收款方式',
|
|
desc: 'siteMessage6',
|
|
permission: [0, 4, 11, 3, 2],
|
|
},
|
|
]
|
|
},
|
|
]
|
|
},
|
|
actions: {
|
|
SET_HEADER({
|
|
commit
|
|
}) {
|
|
commit('SET_HEADER');
|
|
},
|
|
SET_SIDEBAR({
|
|
commit
|
|
}) {
|
|
commit('SET_SIDEBAR');
|
|
},
|
|
SET_SHOWSECONDSIDE({
|
|
commit
|
|
}) {
|
|
commit('SET_SHOWSECONDSIDE');
|
|
},
|
|
SET_FOOTER({
|
|
commit
|
|
}) {
|
|
commit('SET_FOOTER');
|
|
},
|
|
SHOW_BREAD({
|
|
commit
|
|
}) {
|
|
commit('SHOW_BREAD');
|
|
},
|
|
SET_BREADRIGHTTEXT({
|
|
commit
|
|
}) {
|
|
commit('SET_BREADRIGHTTEXT');
|
|
},
|
|
SET_PAGETITLE({
|
|
commit
|
|
}) {
|
|
commit('SET_PAGETITLE');
|
|
},
|
|
SET_ADDSERVICELIST({
|
|
commit
|
|
}) {
|
|
commit('SET_ADDSERVICELIST');
|
|
},
|
|
showLoading({
|
|
commit
|
|
}) {
|
|
commit('SHOW_LOADING')
|
|
},
|
|
hideLoading({
|
|
commit
|
|
}) {
|
|
commit('HIDE_LOADING')
|
|
},
|
|
SET_CUSTOMIZE({
|
|
commit
|
|
}) {
|
|
commit('SET_CUSTOMIZE');
|
|
},
|
|
SET_CARRY_PARAM({
|
|
commit
|
|
}) {
|
|
commit('SET_CARRY_PARAM');
|
|
},
|
|
SET_SLIDER_MENU({
|
|
commit
|
|
}) {
|
|
commit('SET_SLIDER_MENU')
|
|
},
|
|
SET_SECOND_MENU({
|
|
commit
|
|
}) {
|
|
commit('SET_SECOND_MENU')
|
|
},
|
|
SET_COMPONENTS_NAME({
|
|
commit
|
|
}) {
|
|
commit('SET_COMPONENTS_NAME')
|
|
},
|
|
SET_CURRENTMENUITEM({
|
|
commit
|
|
}) {
|
|
commit('SET_CURRENTMENUITEM')
|
|
},
|
|
},
|
|
mutations: {
|
|
SET_CURRENTMENUITEM(state, data) {
|
|
// console.log(data,'=====data====currentMenuItem');
|
|
state.currentMenuItem = data && JSON.parse(JSON.stringify(data));
|
|
},
|
|
SET_COMPONENTS_NAME(state, name) {
|
|
state.componentsName = name;
|
|
},
|
|
SET_SLIDER_MENU(state, type) {
|
|
if (typeof (type) == 'string') {
|
|
state.slidermenu = state[type]
|
|
} else {
|
|
state.slidermenu = type
|
|
}
|
|
},
|
|
SET_SECOND_MENU(state, data) {
|
|
state.secondMenu = data && JSON.parse(JSON.stringify(data))
|
|
localStorage.setItem('selectedServices',JSON.stringify(data))
|
|
},
|
|
SET_CUSTOMIZE(state, show) {
|
|
state.customize = show
|
|
},
|
|
SET_CARRY_PARAM(state, show) {
|
|
state.carryParam = show
|
|
},
|
|
SHOW_LOADING(state) {
|
|
state.isLoading = true
|
|
// state.loadingText = text || '加载中...'
|
|
},
|
|
HIDE_LOADING(state) {
|
|
state.isLoading = false
|
|
},
|
|
SET_SIDEBAR(state, show) {
|
|
state.showSidebar = show;
|
|
},
|
|
SET_SHOWSECONDSIDE(state, show) {
|
|
state.showSecondSide = show;
|
|
},
|
|
SET_FOOTER(state, show) {
|
|
state.showFooter = show;
|
|
},
|
|
SET_HEADER(state, show) {
|
|
state.showHeader = show;
|
|
},
|
|
SET_HEADER_RIGHT(state, show) {
|
|
state.showHeaderRight = show;
|
|
},
|
|
SHOW_BREAD(state, show) {
|
|
state.showBreadcrumb = show;
|
|
},
|
|
SET_BREADRIGHTTEXT(state, data) {
|
|
state.breadRightText = data.text;
|
|
state.breadRightTextLink = data.link;
|
|
},
|
|
SET_PAGETITLE(state, title) {
|
|
state.pageTitle = title;
|
|
},
|
|
SET_ADDSERVICELIST(state, list) {
|
|
state.addServiceList = list;
|
|
}
|
|
},
|
|
getters: {
|
|
menuData: state => state.menuData
|
|
},
|
|
// plugins: [createPersistedState()],
|
|
modules: {}
|
|
})
|