From 3a0823db9324207eb54b1747dfe3d2c6d52a9962 Mon Sep 17 00:00:00 2001
From: yangan <yangan0921@163.com>
Date: 星期一, 28 十月 2024 08:57:40 +0800
Subject: [PATCH] feat:库管修改显示条件

---
 store/index.js |  134 +++++++++++++++++++++++++++-----------------
 1 files changed, 83 insertions(+), 51 deletions(-)

diff --git a/store/index.js b/store/index.js
index a1086c4..e2b3d14 100644
--- a/store/index.js
+++ b/store/index.js
@@ -3,7 +3,7 @@
 import { webSocketUrl,BaseUrl } from '@/api/request.js'
 // 璇锋眰鐩稿叧
 import {
-	reqGet,
+	reqGet
 } from '@/api/index.js'
 Vue.use(Vuex)
 
@@ -158,6 +158,18 @@
 		text: '棣栭〉'
 	},
 	{
+		pagePath: 'pages/loadUnload-page/historyOrder/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/loadUnload-page/orderPlanList/index',
 		//#ifdef MP-WEIXIN
 		iconPath:  '../../static/tabBar-icon/statistics.png',
@@ -167,7 +179,7 @@
 		iconPath:  '/static/tabBar-icon/statistics.png',
 		selectedIconPath: '/static/tabBar-icon/statisticsactive.png',
 		// #endif
-		text: '鏃ヨ鍒�'	
+		text: '鏃ヨ鍒�'
 	},
 	{
 		pagePath: 'pages/tabbar-page/myPage-tabbar/myPage-tabbar',
@@ -247,51 +259,51 @@
 		// 鎵撳嵃鍑哄叆闂ㄨ瘉  涓�娆″氨鍙互鏈夋墦鍗板叆闂ㄨ瘉锛�  涓ゆ鍙互鏈夊叆闂ㄨ瘉 鍑洪棬璇�  0娆′竴寮犻兘娌℃湁
 		ablePrintInduction: false, //鍏ラ棬璇�
 		ablePrintOut: false, //鍑洪棬璇�
-		driverTourImgList: ['https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj1.png',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj2.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj3.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj4.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj5.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj6.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj7.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj8.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj9.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj10.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj11.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj12.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj13.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj14.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj15.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj16.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj17.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj18.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj19.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj20.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj21.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj22.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj23.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj24.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj25.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj26.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj27.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj28.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj29.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj30.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj31.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj32.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj33.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj33-1.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj34.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj35.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj36.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj37.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj38.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj39.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj40.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj41.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj42.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj43.jpg',
-			'https://mx.jzeg.cn:9096/appimg/image/tour/driver/sj44.jpg',
+		driverTourImgList: ['https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj1.png',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj2.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj3.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj4.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj5.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj6.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj7.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj8.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj9.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj10.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj11.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj12.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj13.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj14.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj15.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj16.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj17.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj18.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj19.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj20.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj21.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj22.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj23.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj24.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj25.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj26.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj27.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj28.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj29.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj30.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj31.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj32.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj33.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj33-1.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj34.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj35.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj36.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj37.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj38.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj39.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj40.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj41.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj42.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj43.jpg',
+			'https://wrzs.czjlchem.com:9090/appimg/image/tour/driver/sj44.jpg',
 		],
 		wsgVisiable: false, //纾呮埧蹇欑寮圭獥鎺у埗
 		wsgContent: '',
@@ -302,6 +314,7 @@
 		globalWarning: false,
 		filedId:'', //鍦哄湴id
 		bunkerList:'', //浠撳簱list
+		samplingPersonList:'', //閲囨牱鍛榣ist
 	},
 	mutations: {
 		setUserInfo(state, identity) {
@@ -414,15 +427,19 @@
 			uni.setStorageSync('filedId', state.filedId)
 		},
 		getBunkerList(state, payload) {
-			console.log('鎴戞墽琛屼簡getBunkerList====',payload)
 			state.bunkerList = payload
 			uni.setStorageSync('bunkerList', state.bunkerList)
-		}
+		},
+		getSamplingPersonList(state, payload) {
+			console.log('鎴戞墽琛屼簡samplingPersonList====',payload)
+			state.samplingPersonList = payload
+			uni.setStorageSync('samplingPersonList', state.samplingPersonList)
+		},
 	},
 	actions: {
 		websocketInit({ state, dispatch, commit }) {
 			// #ifdef H5
-			let wsUrl = `access_token=${uni.getStorageSync('token')}`
+			let wsUrl = `${webSocketUrl}?UUID=${uni.getStorageSync('token')}`
 			// #endif
 			// #ifndef H5
 			let wsUrl = `${webSocketUrl}?access_token=${uni.getStorageSync('token')}`
@@ -558,6 +575,20 @@
 			})
 
 		},
+		getSamplingPerson({ state, commit }) {  //閲囨牱浜�
+			let params = {
+				current: 1,
+				size: 999,
+				type: 7
+			}
+			reqGet('pageCarAndHuoDai',params).then(res => {
+			  console.log(res,'pageCarAndHuoDai======')
+				if(res.code == 0) {
+					let temp = res.data.records
+					commit('getSamplingPersonList',temp)
+				}
+			})
+		},
 		getFiledIdCoalBunker({ state, commit }) {  //浠撳簱鍒楄〃锛堥噰鏍峰湴鐐癸級
 			let filedId = uni.getStorageSync('filedId')
 			console.log(filedId,'鏈�缁堢殑filedId=============')
@@ -568,7 +599,8 @@
 		},
 	},
 	getters:{
-		websocketData:(state) => state.websocketData
+		websocketData:(state) => state.websocketData,
+		samplingPersonList: (state) => state.samplingPersonList
 
 	}
 })

--
Gitblit v1.9.1