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.

198 lines
3.9 KiB

import Vue from 'vue';
import Vuex from 'vuex';
8 months ago
Vue.use(Vuex)
export default new Vuex.Store({
state: {
showSidebar: false,
5 months ago
showFooter: false,
showHeader: false,
menuList: [], //目录菜单
showBreadcrumb: false, //是否展示面包屑
pageTitle: '一般新文献', //页面标题
addServiceList: [], //选中的服务
isLoading: false, //页面loading
customize: false, //页面loading
slidermenu:[],
hosMenuData:[{
name: '医院信息',
path: '',
noToPath:true,
img: 'menu/Totalprofit.svg',
imgActive: require('@/assets/menu/Totalprofit.svg'),
list: [
{
name: '基础信息',
desc: 'siteMessage1'
},
{
name: '出诊时间',
desc: 'siteMessage2'
},
{
name: '放号设置',
desc: 'siteMessage3'
}
]
},
{
name: '收款设置',
path: '',
noToPath:true,
img: 'menu/Totalprofit1.svg',
imgActive: require('@/assets/menu/Totalprofit.svg'),
list: [
{
name: '线上收款',
desc: 'siteMessage6'
},
{
name: '收挂号费',
desc: 'siteMessage7'
},
]
},
{
name: '项目管理',
path: '',
noToPath:true,
img: 'menu/Totalprofit1.svg',
imgActive: require('@/assets/menu/Totalprofit.svg'),
list: [
{
name: '项目列表',
desc: 'siteMessage4'
},
{
name: '疗程套餐',
desc: 'siteMessage5'
},
]
}],
menuData: [
{
index: '1',
title: '首页',
path:'/',
icon: 'home',
},
{
index: '2',
title: '订单列表',
icon: 'orderList',
children: [{
index: '2-1',
title: '站点列表',
path: '/agent/siteList'
},
{
index: '2-2',
title: 'ui页面',
path: '/ui'
}
]
},
],
4 months ago
pageName:'医生管理'
},
actions: {
SET_CUSTOMIZE({
commit
}) {
commit('SET_CUSTOMIZE');
},
4 months ago
SET_PAGENAME({
commit
}) {
commit('SET_PAGENAME');
},
5 months ago
SET_HEADER({
commit
}) {
commit('SET_HEADER');
},
5 months ago
SET_SIDEBAR({
commit
}) {
commit('SET_SIDEBAR');
},
5 months ago
SET_FOOTER({
commit
}) {
commit('SET_FOOTER');
},
5 months ago
SHOW_BREAD({
commit
}) {
commit('SHOW_BREAD');
},
5 months ago
SET_PAGETITLE({
commit
}) {
commit('SET_PAGETITLE');
},
5 months ago
SET_ADDSERVICELIST({
commit
}) {
commit('SET_ADDSERVICELIST');
},
5 months ago
showLoading({
commit
}) {
commit('SHOW_LOADING')
},
5 months ago
hideLoading({
commit
}) {
commit('HIDE_LOADING')
5 months ago
},
SET_SLIDER_MENU({
commit
}) {
commit('SET_SLIDER_MENU')
},
8 months ago
},
mutations: {
SET_SLIDER_MENU(state,type){
state.slidermenu = state[type]
},
SHOW_LOADING(state) {
state.isLoading = true
// state.loadingText = text || '加载中...'
},
SET_CUSTOMIZE(state,show) {
console.log(show,'show--');
state.customize = show
// state.loadingText = text || '加载中...'
},
HIDE_LOADING(state) {
state.isLoading = false
},
SET_SIDEBAR(state, show) {
state.showSidebar = show;
},
SET_FOOTER(state, show) {
state.showFooter = show;
},
SET_HEADER(state, show) {
state.showHeader = show;
},
SHOW_BREAD(state, show) {
state.showBreadcrumb = show;
},
SET_PAGETITLE(state, title) {
state.pageTitle = title;
},
4 months ago
SET_PAGENAME(state, name) {
state.pageName = name;
},
SET_ADDSERVICELIST(state, list) {
state.addServiceList = list;
}
},
5 months ago
getters: {},
modules: {}
})