修改员工权限
This commit is contained in:
@@ -71,7 +71,7 @@
|
||||
<view class="">
|
||||
<up-checkbox shape='circle' :customStyle="{marginBottom: '8px'}" v-model:checked="ele.hasPermission"
|
||||
usedAlone v-for="(ele, index) in item.children" :key="index" :label="ele.label"
|
||||
style="margin-right: 40rpx;font-size: 28rpx;">
|
||||
:labelColor="ele.isImportant==1?'#e66c6d':''" style="margin-right: 40rpx;font-size: 28rpx;">
|
||||
</up-checkbox>
|
||||
</view>
|
||||
</view>
|
||||
@@ -132,13 +132,18 @@
|
||||
} else {
|
||||
// 调用id查询接口和编辑接口
|
||||
gettbPlussShopStaffDetail(props.id)
|
||||
uni.setNavigationBarTitle({
|
||||
title: '编辑员工'
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
function gettbPlussShopStaffDetail(id) {
|
||||
tbPlussShopStaffDetail(id).then(res => {
|
||||
datas.formData = res
|
||||
datas.rolesdata = datas.rolesList.filter(ele => ele.id == res.roleId)[0].name
|
||||
if (datas.rolesList) {
|
||||
datas.rolesdata = datas.rolesList.filter(ele => ele.id == res.roleId)[0].name
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user