调整服务部长的显示

This commit is contained in:
weipengfei 2023-09-22 10:26:05 +08:00
parent 5941c016c8
commit 23e616a1a4

View File

@ -18,30 +18,39 @@
: '../../static/icons/woman.png' : '../../static/icons/woman.png'
"> ">
</image> </image>
<!-- <view class="role" v-if="userInfo.roles">{{userInfo.roles[0]}}</view> -->
</view> </view>
<view class="id_card"> <view class="id_card">
<view>身份证号{{ userInfo.id_card }}</view> <view>身份证号{{ userInfo.id_card }}</view>
<!-- <view class="update" @click="updateShow(userInfo.id_card, 'id_card')">
<uni-icons type="compose" color="#F9AA32"></uni-icons>
</view> -->
</view> </view>
<view class="phone"> 联系电话{{ userInfo.phone }} </view> <view class="phone"> 联系电话{{ userInfo.phone }} </view>
</view> </view>
</view> </view>
<view class="bottom" style="margin-bottom: 10rpx; display: flex; align-items: center"> <view v-if="$store.state.app.userInfo.company.company_type==18" class="bottom" style="margin-bottom: 10rpx; display: flex; align-items: center">
是否为小队长 是否为小队长
<u-radio-group v-model="userInfo.is_captain" style="margin-left: 16rpx" disabled> <u-radio-group v-model="userInfo.is_captain" style="margin-left: 16rpx" disabled>
<u-radio :customStyle="{ marginRight: '16px' }" v-for="(item, index) in [ <u-radio :customStyle="{ marginRight: '16px' }" v-for="(item, index) in [
{ value: 1, label: '是' }, { value: 1, label: '是' },
{ value: 0, label: '否' }, { value: 0, label: '否' },
]" :key="index" :label="item.label" :name="item.value"> ]" :key="index" :label="item.label" :name="item.value">
</u-radio> </u-radio>
</u-radio-group> </u-radio-group>
<view class="update" @click="updateShow(userInfo.is_captain, 'is_captain')"> <view class="update" @click="updateShow(userInfo.is_captain, 'is_captain')">
<uni-icons type="compose" color="#F9AA32"></uni-icons> <uni-icons type="compose" color="#F9AA32"></uni-icons>
</view> </view>
</view> </view>
<view v-else-if="$store.state.app.userInfo.company.company_type==41" class="bottom" style="margin-bottom: 10rpx; display: flex; align-items: center">
是否为服务部长
<u-radio-group v-model="userInfo.is_service_manager" style="margin-left: 16rpx" disabled>
<u-radio :customStyle="{ marginRight: '16px' }" v-for="(item, index) in [
{ value: 1, label: '是' },
{ value: 0, label: '否' },
]" :key="index" :label="item.label" :name="item.value">
</u-radio>
</u-radio-group>
<!-- <view class="update" @click="updateShow(userInfo.is_captain, 'is_captain')">
<uni-icons type="compose" color="#F9AA32"></uni-icons>
</view> -->
</view>
<view class="bottom"> <view class="bottom">
负责区域<text>{{ 负责区域<text>{{
(userInfo.street_name || "") + (userInfo.street_name || "") +