| | |
| | | const userRoleTabbar = { |
| | | first: [{ |
| | | pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/home.png', |
| | | selectedIconPath: '../../static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | // #ifdef H5 |
| | | iconPath: '/static/tabBar-icon/home.png', |
| | | selectedIconPath: '/static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | text: '首页' |
| | | }, |
| | | { |
| | | pagePath: 'pages/customer-page/customer-my/faYunstatistics/faYunstatistics', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/statistics.png', |
| | | selectedIconPath: '../../static/tabBar-icon/statisticsactive.png', |
| | | // #endif |
| | | // #ifdef H5 |
| | | iconPath: '/static/tabBar-icon/statistics.png', |
| | | selectedIconPath: '/static/tabBar-icon/statisticsactive.png', |
| | | // #endif |
| | | text: '统计' |
| | | }, |
| | | { |
| | | pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '../../static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | // #ifdef H5 |
| | | iconPath: '/static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '/static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | text: '我的' |
| | | } |
| | | ], |
| | | second: [{ |
| | | pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/home.png', |
| | | selectedIconPath: '../../static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | // #ifdef H5 |
| | | iconPath: '/static/tabBar-icon/home.png', |
| | | selectedIconPath: '/static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | text: '首页' |
| | | }, |
| | | { |
| | | pagePath: 'pages/customer-page/customer-my/faYunstatistics/faYunstatistics', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/statistics.png', |
| | | selectedIconPath: '../../static/tabBar-icon/statisticsactive.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/statistics.png', |
| | | selectedIconPath: '/static/tabBar-icon/statisticsactive.png', |
| | | // #endif |
| | | text: '统计' |
| | | }, |
| | | { |
| | | pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '../../static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '/static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | text: '我的' |
| | | } |
| | | ], |
| | | three: [{ |
| | | pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/home.png', |
| | | selectedIconPath: '../../static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/home.png', |
| | | selectedIconPath: '/static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | text: '首页' |
| | | }, |
| | | { |
| | | pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '../../static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '/static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | text: '我的' |
| | | } |
| | | ], |
| | | fourth: [{ |
| | | pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/home.png', |
| | | selectedIconPath: '../../static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/home.png', |
| | | selectedIconPath: '/static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | text: '进场' |
| | | },{ |
| | | pagePath: 'pages/doorkeeper-page/doorkeeper-index/exit-index', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/home.png', |
| | | selectedIconPath: '../../static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/home.png', |
| | | selectedIconPath: '/static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | text: '出场' |
| | | }, |
| | | { |
| | | pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '../../static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '/static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | text: '我的' |
| | | }, |
| | | |
| | | ], |
| | | five:[{ |
| | | pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/home.png', |
| | | selectedIconPath: '../../static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/home.png', |
| | | selectedIconPath: '/static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | text: '首页' |
| | | }, |
| | | { |
| | | pagePath: 'pages/loadUnload-page/orderPlanList/index', |
| | | iconPath: '../../static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '../../static/tabBar-icon/Bmine57.png', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/statistics.png', |
| | | selectedIconPath: '../../static/tabBar-icon/statisticsactive.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/statistics.png', |
| | | selectedIconPath: '/static/tabBar-icon/statisticsactive.png', |
| | | // #endif |
| | | text: '日计划' |
| | | }, |
| | | { |
| | | pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '../../static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '/static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | text: '我的' |
| | | } |
| | | ], |
| | | six:[{ |
| | | pagePath: 'pages/tabbar-page/index-tabbar/index-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/home.png', |
| | | selectedIconPath: '../../static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/home.png', |
| | | selectedIconPath: '/static/tabBar-icon/homeblue.png', |
| | | // #endif |
| | | text: '首页' |
| | | }, |
| | | { |
| | | pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar', |
| | | //#ifdef MP-WEIXIN |
| | | iconPath: '../../static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '../../static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | //#ifdef H5 |
| | | iconPath: '/static/tabBar-icon/Gmine10.png', |
| | | selectedIconPath: '/static/tabBar-icon/Bmine57.png', |
| | | // #endif |
| | | text: '我的' |
| | | }] |
| | | } |
| | |
| | | confirmWeighContent: '', |
| | | // 称重稳定态 0/稳定 1/非稳定 非稳定态不能点称重 |
| | | globalWarning: false, |
| | | filedId:'', //煤场id |
| | | bunkerList:'', //煤仓list |
| | | filedId:'', //场地id |
| | | bunkerList:'', //仓库list |
| | | }, |
| | | mutations: { |
| | | setUserInfo(state, identity) { |
| | |
| | | console.log(state.globalisLogin, '全局登录状态改变了') |
| | | }, |
| | | setWebsocketData(state, data) { |
| | | console.log(data,'data-----') |
| | | state.websocketData = data |
| | | }, |
| | | // 改变重连状态 |
| | |
| | | changeWarning(state, payload) { |
| | | state.globalWarning = payload |
| | | }, |
| | | // 煤场filedId的获取 |
| | | // 场地filedId的获取 |
| | | getFiledId(state, payload) { |
| | | console.log(payload,'filedId=====') |
| | | state.filedId = payload |
| | |
| | | }) |
| | | |
| | | }, |
| | | getFiledIdCoalBunker({ state, commit }) { //煤仓列表(采样地点) |
| | | getFiledIdCoalBunker({ state, commit }) { //仓库列表(采样地点) |
| | | let filedId = uni.getStorageSync('filedId') |
| | | console.log(filedId,'最终的filedId=============') |
| | | reqGet('getFiledIdCoalBunker', {filedId: filedId}).then(res => { |
| | | console.log(res,'res----煤仓') |
| | | console.log(res,'res----仓库') |
| | | commit('getBunkerList',res.data) |
| | | }) |
| | | }, |
| | | }, |
| | | getters:{ |
| | | websocketData:(state) => state.websocketData |
| | | |
| | | } |
| | | }) |
| | | |