[员工修改手机不可修改且员工列表头像换cover]

This commit is contained in:
2021-10-20 11:35:56 +08:00
parent a450e594b4
commit 61c306bcc0
5 changed files with 30 additions and 17 deletions

View File

@@ -18,13 +18,13 @@
<input type="text" v-model="name" placeholder="姓名"/> <input type="text" v-model="name" placeholder="姓名"/>
</view> </view>
<view class="info-inputs"> <view class="info-inputs">
<input type="number" v-model="phone" placeholder="手机号码"/> <input type="number" :disabled="$Route.query.type === 'PUT'?true:false" v-model="phone" placeholder="手机号码为员工唯一登录凭证"/>
</view> </view>
<view class="info-inputs"> <view class="info-inputs">
<input type="text" v-model="job" placeholder="职业"/> <input type="text" v-model="job" placeholder="职业"/>
</view> </view>
<view class="info-inputs"> <view class="info-inputs">
<picker :range="section" range-key="name" :value="sectionIndex" @change="pickerChange"> <picker :range="section" range-key="name" :value="sectionIndex + ''" @change="pickerChange">
<view class="picker-text"> <view class="picker-text">
{{section[sectionIndex].name}} {{section[sectionIndex].name}}
<uni-icons class="icon" type="arrowdown" color="#555"></uni-icons> <uni-icons class="icon" type="arrowdown" color="#555"></uni-icons>
@@ -50,7 +50,7 @@
<label> <label>
<view class="item-title">{{item.title}}</view> <view class="item-title">{{item.title}}</view>
<view class="item-info">{{item.description}}</view> <view class="item-info">{{item.description}}</view>
<checkbox class="item-checkbox" :checked="item.check" color="#e93340" :value="item.permission_id" /> <checkbox class="item-checkbox" :checked="item.check" color="#e93340" :value="item.permission_id+''" />
</label> </label>
</view> </view>
</checkbox-group> </checkbox-group>
@@ -73,7 +73,7 @@
section : [], section : [],
permissions : [], permissions : [],
permissionIds: [], permissionIds: [],
sectionIndex : 0, sectionIndex : '0',
cover : { cover : {
showpath : '', showpath : '',
path : '' path : ''

View File

@@ -12,9 +12,9 @@
<uni-swipe-action-item :rightOptions="options" @click="onEmployees($event, listIndex, index)"> <uni-swipe-action-item :rightOptions="options" @click="onEmployees($event, listIndex, index)">
<view class="employees-item"> <view class="employees-item">
<view class="cover"> <view class="cover">
<block v-if="item.user.avatar === ''">{{item.name.slice(0,1)}}</block> <block v-if="item.cover === ''">{{item.name.slice(0,1)}}</block>
<block v-else> <block v-else>
<image class="cover-img" :src="item.user.avatar" mode="aspectFill"></image> <image class="cover-img" :src="item.cover" mode="aspectFill"/>
</block> </block>
</view> </view>
<view class="content"> <view class="content">

View File

@@ -235,6 +235,7 @@
border: 4rpx solid #ed8483; border: 4rpx solid #ed8483;
box-sizing: border-box; box-sizing: border-box;
box-shadow: 0 4rpx 15rpx rgba(109,1,0,.8); box-shadow: 0 4rpx 15rpx rgba(109,1,0,.8);
background-color: #fff;
} }
.company{ .company{
width: calc(100% - 94rpx); width: calc(100% - 94rpx);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long