update
This commit is contained in:
parent
4d514a9008
commit
ad1b7773d5
@ -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">
|
||||
|
||||
@ -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">
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -9,10 +9,10 @@
|
||||
</view>
|
||||
<view class="topRight" @click="handleGoMap">
|
||||
<image class="searchIcon" src="/static/images/home/searchIcon.svg" />
|
||||
<span class="searchText">请输入服务区</span>
|
||||
</view>
|
||||
<span class="searchText">请输入服务区</span>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 月份的轮播框 -->
|
||||
<!-- :style="{ paddingTop: menu.bottom + 8 + 'px' }" -->
|
||||
@ -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>
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user