This commit is contained in:
ylj20011123 2025-08-27 09:06:31 +08:00
parent 4d514a9008
commit ad1b7773d5
5 changed files with 33 additions and 13 deletions

View File

@ -97,7 +97,10 @@
<view class="employeeHeader">
<!-- 左侧头像 + 带图标信息 -->
<view class="leftSection">
<view class="avatar">{{ getFirstChar(item.userName) }}</view>
<view class="avatar" v-if="!item.phone">{{ getFirstChar(item.userName) }}
</view>
<image class="avatar" v-else
:src="`https://fwqznxj.yciccloud.com:9081/fileDownloadApi/bsys/file/thumbnail/download/${item.phone}`" />
<view class="iconInfoSection">
<view class="nameRow">
<image class="personIcon" src="https://eshangtech.com/cyy_DIB/personIcon.png">

View File

@ -154,7 +154,9 @@
<view class="onDutyPersonList" v-if="selectTab === 1">
<view class="onDutyPersonItem" v-for="(item, index) in onDutyPersonList" :key="index"
@click="viewStaffDetails(item)">
<view class="avatar">{{ item.userName ? item.userName.slice(0, 1) : "" }}</view>
<view class="avatar" v-if="!item.phone">{{ item.userName ? item.userName.slice(0, 1) : "" }}</view>
<image class="avatar" v-else
:src="`https://fwqznxj.yciccloud.com:9081/fileDownloadApi/bsys/file/thumbnail/download/${item.phone}`" />
<view class="staffInfo">
<view class="staffInfoLeft">
<view class="staffInfoTop">
@ -178,7 +180,9 @@
<view class="EmployeesOnLeaveList" v-if="selectTab === 2">
<view class="EmployeesOnLeaveItem" v-for="(item, index) in EmployeesOnLeaveList" :key="index"
@click="viewStaffDetails(item)">
<view class="avatar">{{ item.userName ? item.userName.slice(0, 1) : "" }}</view>
<view class="avatar" v-if="!item.phone">{{ item.userName ? item.userName.slice(0, 1) : "" }}</view>
<image class="avatar" v-else
:src="`https://fwqznxj.yciccloud.com:9081/fileDownloadApi/bsys/file/thumbnail/download/${item.phone}`" />
<view class="staffInfo">
<view class="staffInfoLeft">
<view class="staffInfoTop">
@ -201,7 +205,10 @@
<view class="dutyManagerList" v-if="selectTab === 3">
<view class="dutyManagerItem" v-for="(item, index) in dutyManagerList" :key="index"
@click="viewStaffDetails(item)">
<view class="avatar manager-avatar">{{ item.name ? item.name.slice(0, 1) : "" }}</view>
<view class="avatar manager-avatar" v-if="!item.phone">{{ item.userName ? item.userName.slice(0, 1)
: "" }}</view>
<image class="avatar manager-avatar" v-else
:src="`https://fwqznxj.yciccloud.com:9081/fileDownloadApi/bsys/file/thumbnail/download/${item.phone}`" />
<view class="staffInfoBox">
<view class="staffInfo">
<view class="staffInfoLeft">
@ -240,8 +247,10 @@
<view class="userBoxTitle">人员详情</view>
<view class="userDetailBox">
<view class="userAvatar">
<image class="userAvatarIcon" v-if="userDetail.url" :src="userDetail.url" />
<view class="userAvatarBox">{{ userDetail.userName ? userDetail.userName.slice(0, 1) : "" }}
<image class="userAvatarIcon" v-if="userDetail.phone"
:src="`https://fwqznxj.yciccloud.com:9081/fileDownloadApi/bsys/file/thumbnail/download/${userDetail.phone}`" />
<view class="userAvatarBox" v-else>{{ userDetail.userName ? userDetail.userName.slice(0, 1) : ""
}}
</view>
</view>
<view class="userDetailRight">

View File

@ -64,7 +64,10 @@
<view v-if="selectedEmployee" class="employeeDetail">
<view class="employeeCard">
<view class="employeeInfo">
<view class="avatar">{{ getFirstChar(selectedEmployee.userName) }}</view>
<view class="avatar" v-if="!selectedEmployee.phone">{{ getFirstChar(selectedEmployee.userName) }}
</view>
<image class="avatar" v-else
:src="`https://fwqznxj.yciccloud.com:9081/fileDownloadApi/bsys/file/thumbnail/download/${selectedEmployee.phone}`" />
<view class="basicInfo">
<view class="nameRow">
<image class="personIcon" src="https://eshangtech.com/cyy_DIB/personIcon.png"></image>

View File

@ -101,7 +101,7 @@
<view class="yearAccountItem" style="margin-bottom: 24rpx">
<view class="itemTop">
<view class="itemName">{{ (Math.floor(index / 12) + 2024).toString().slice(2, 4)
}}年累计对客销售<span class="unit">/亿元</span></view>
}}年累计对客销售<span class="unit">/亿元</span></view>
</view>
<view class="itemBottom">
<span class="revenueNum" v-if="selectIndex === index && hasCurrentMonthData">{{
@ -210,7 +210,7 @@
<image class="funIcon"
src="https://eshangtech.com/ShopICO/ahyd-BID/warning/operateWarning.svg" />
</view>
<text class="funText">人员管理</text>
<text class="funText">现场管理</text>
</view>
</view>
</view>

View File

@ -202,6 +202,8 @@ export default {
isTrue: false, //
special: false,
isReturn: true,
userAvatar: "",
useYN: false,
};
},
components: {
@ -236,7 +238,9 @@ export default {
this.statusBarHeight = Number(systemInfo.statusBarHeight);
//
this.menu = uni.getMenuButtonBoundingClientRect();
this.handleGetWarningList();
//
this.handleGetUserAvatar()
this.dataList[2].list.forEach((item) => {
for (let key in this.user.AuthorityInfo) {
if (key === item.id) {
@ -298,6 +302,7 @@ export default {
url: `/pages/commercialBI/noData?type=index`,
});
}
},
onShow() {
uni.hideTabBar();