星油云站更新
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
{{staff.cUserName.slice(0,1)}}
|
||||
</view> -->
|
||||
<view class="content">
|
||||
<view class="text-black">{{staff.cUserName}}
|
||||
<view class="text-black">{{staff.userName}}
|
||||
<text v-show="loginUser.id===staff.cUserId" class="padding-left-sm text-orange text-sm">
|
||||
(当前登录账号)
|
||||
</text>
|
||||
@@ -19,10 +19,10 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="action solid-left" v-show="!staff.cType">
|
||||
<button class="cu-btn padding-left-xs padding-right-xs bg-white" @tap="toEdit(staff.cUserId)">编辑</button>
|
||||
<view class="action solid-left" v-show="!staff.isAdmin">
|
||||
<button class="cu-btn padding-left-xs padding-right-xs bg-white" @tap="toEdit(staff)">编辑</button>
|
||||
</view>
|
||||
<view class="action" v-show="staff.cType==1">
|
||||
<view class="action" v-show="staff.isAdmin==1">
|
||||
<view class="cu-tag text-white round my-tag" style="background-color:#FE0505;">超级管理员</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -48,13 +48,15 @@
|
||||
phoneNumber: phone
|
||||
})
|
||||
},
|
||||
toEdit(Uid) {
|
||||
toEdit(item) {
|
||||
uni.setStorageSync('tempUser',item)
|
||||
uni.setStorageSync('tempUid', {
|
||||
id: Uid,
|
||||
id: '',
|
||||
type: 'edit'
|
||||
})
|
||||
})
|
||||
let itmes = JSON.stringify(item)
|
||||
uni.navigateTo({
|
||||
url: '/packageStaff/pages/staff/editStaff/editStaff'
|
||||
url: '/packageStaff/pages/staff/editStaff/editStaff?staff='+itmes
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user