From 05f3a3ea7c14e38212a9848e907ad9ef40a913cb Mon Sep 17 00:00:00 2001
From: zhangzhen <525765282@qq.com>
Date: Tue, 21 Oct 2025 13:34:23 +0800
Subject: [PATCH] 修改班组图片地址;
---
src/mes/common/siderInfoComponent/index.js | 6 ++----
src/mes/login/index.js | 13 +++++++------
src/mes/teamInfo/index.js | 11 ++---------
3 files changed, 11 insertions(+), 19 deletions(-)
diff --git a/src/mes/common/siderInfoComponent/index.js b/src/mes/common/siderInfoComponent/index.js
index b908d36..153d760 100644
--- a/src/mes/common/siderInfoComponent/index.js
+++ b/src/mes/common/siderInfoComponent/index.js
@@ -774,11 +774,9 @@ const TeamInfoComponent = () => {
- {sEmployeeNo ? (
+ {props.app.userinfo.sJzPicturePath ? (
{
event.target.src = iocnObj.userImg;
}}
diff --git a/src/mes/login/index.js b/src/mes/login/index.js
index b50f28a..bd6f0c7 100644
--- a/src/mes/login/index.js
+++ b/src/mes/login/index.js
@@ -202,10 +202,10 @@ const useLoginEvent = props => {
message.error(pleaseInputPassword);
return;
}
- if (sShift === undefined) {
- message.error(pleaseselectShift);
- return;
- }
+ // if (sShift === undefined) {
+ // message.error(pleaseselectShift);
+ // return;
+ // }
if (!sTeamId) {
message.error(pleaseSelectTeam);
return;
@@ -251,11 +251,12 @@ const useLoginEvent = props => {
statusData,
managementData,
fileData,
- bDelayedOvertime
+ bDelayedOvertime,
+ sJzPicturePath
} = dataReturn.dataset.rows[0];
gdslogininfo.bDelayedOvertime = bDelayedOvertime;
- const userinfo = { ...teamInfo, ...gdslogininfo };
+ const userinfo = { ...teamInfo, ...gdslogininfo, sJzPicturePath };
const {
sTeamShift: sShift1,
sShift: sShift2,
diff --git a/src/mes/teamInfo/index.js b/src/mes/teamInfo/index.js
index fae9ca6..c36374a 100644
--- a/src/mes/teamInfo/index.js
+++ b/src/mes/teamInfo/index.js
@@ -500,19 +500,12 @@ const TeamInfo = baseProps => {
- {sTeamEmployeeNo ? (
+ {props.app.userinfo.sJzPicturePath ? (

{
event.target.src = userImgs;
}}
- onDoubleClick={event => {
- event.target.src = `${
- commonConfig.interface_host
- }api/ZEBC_042/11123`;
- }}
/>
) : (

--
libgit2 0.22.2