[员工修改手机不可修改且员工列表头像换cover]
This commit is contained in:
@@ -18,13 +18,13 @@
|
||||
<input type="text" v-model="name" placeholder="姓名"/>
|
||||
</view>
|
||||
<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 class="info-inputs">
|
||||
<input type="text" v-model="job" placeholder="职业"/>
|
||||
</view>
|
||||
<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">
|
||||
{{section[sectionIndex].name}}
|
||||
<uni-icons class="icon" type="arrowdown" color="#555"></uni-icons>
|
||||
@@ -50,7 +50,7 @@
|
||||
<label>
|
||||
<view class="item-title">{{item.title}}</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>
|
||||
</view>
|
||||
</checkbox-group>
|
||||
@@ -73,7 +73,7 @@
|
||||
section : [],
|
||||
permissions : [],
|
||||
permissionIds: [],
|
||||
sectionIndex : 0,
|
||||
sectionIndex : '0',
|
||||
cover : {
|
||||
showpath : '',
|
||||
path : ''
|
||||
|
||||
@@ -12,9 +12,9 @@
|
||||
<uni-swipe-action-item :rightOptions="options" @click="onEmployees($event, listIndex, index)">
|
||||
<view class="employees-item">
|
||||
<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>
|
||||
<image class="cover-img" :src="item.user.avatar" mode="aspectFill"></image>
|
||||
<image class="cover-img" :src="item.cover" mode="aspectFill"/>
|
||||
</block>
|
||||
</view>
|
||||
<view class="content">
|
||||
|
||||
@@ -235,6 +235,7 @@
|
||||
border: 4rpx solid #ed8483;
|
||||
box-sizing: border-box;
|
||||
box-shadow: 0 4rpx 15rpx rgba(109,1,0,.8);
|
||||
background-color: #fff;
|
||||
}
|
||||
.company{
|
||||
width: calc(100% - 94rpx);
|
||||
|
||||
Reference in New Issue
Block a user