From 172d04fc9d2d7afb28dd3de207f05bbf90a1b58e Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期二, 07 五月 2024 19:40:51 +0800
Subject: [PATCH] #

---
 pages/phyz/stationManage/stationManage.vue |   51 +++++++++++++++++++++++++++++++--------------------
 1 files changed, 31 insertions(+), 20 deletions(-)

diff --git a/pages/phyz/stationManage/stationManage.vue b/pages/phyz/stationManage/stationManage.vue
index 3923ef4..d5e07e1 100644
--- a/pages/phyz/stationManage/stationManage.vue
+++ b/pages/phyz/stationManage/stationManage.vue
@@ -173,7 +173,11 @@
 								}
 								_this.getOrderDetl(res.data.records[0])
 							}
-							
+						} else if (res.code == 403) {
+							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+							setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
+						} else {
+							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
 						}
 					}
 				})
@@ -197,6 +201,11 @@
 								_this.waitPakins = res.data.records
 								// _this.getWrkDetl(item.wrkNo)
 							}
+						} else if (res.code == 403) {
+							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+							setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
+						} else {
+							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
 						}
 					}
 				})
@@ -220,6 +229,11 @@
 								_this.wrkMast = item
 								_this.getWrkDetl(item.wrkNo)
 							}
+						} else if (res.code == 403) {
+							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+							setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
+						} else {
+							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
 						}
 					}
 				})
@@ -240,6 +254,11 @@
 						res = res.data
 						if (res.code === 200) {
 							_this.wrkDetls = res.data.records
+						} else if (res.code == 403) {
+							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+							setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
+						} else {
+							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
 						}
 					}
 				})
@@ -262,12 +281,11 @@
 								_this.wrkDetls = []
 								_this.waitPakins = []
 							},100)  
+						} else if (res.code == 403) {
+							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+							setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
 						} else {
-							uni.showToast({ title: res.msg, icon: "error", position: 'top' }) 
-							setTimeout(()=> {
-								_this.searchValue = ''
-								_this.getBasDevp()
-							},2000)
+							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
 						}
 					}
 				})
@@ -292,12 +310,11 @@
 								_this.wrkDetls = []
 								_this.waitPakins = []
 							},100)
+						} else if (res.code == 403) {
+							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+							setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
 						} else {
-							uni.showToast({ title: res.msg, icon: "error", position: 'top' }) 
-							setTimeout(()=> {
-								_this.searchValue = ''
-								_this.getBasDevp()
-							},2000)
+							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
 						}
 					}
 				})
@@ -340,16 +357,10 @@
 								position: 'top'
 							})
 						} else if (res.code == 403) {
-							that.messageText = res.msg
-							that.messageToggle('error')
-							setTimeout(() => {
-								uni.reLaunch({
-									url: '../login/login'
-								});
-							}, 1000);
+							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
+							setTimeout(() => { uni.reLaunch({ url: '../../login/login' }); }, 1000);
 						} else {
-							that.messageText = res.msg
-							that.messageToggle('error')
+							uni.showToast({ title: res.msg, icon: "error", position: 'top' })
 						}
 					}
 				});

--
Gitblit v1.9.1