|
@@ -1336,7 +1336,7 @@ func (this *CompanyController) List() {
|
|
//按钮显示控制
|
|
//按钮显示控制
|
|
btnItem := new(company.ButtonPermission)
|
|
btnItem := new(company.ButtonPermission)
|
|
if item.CompanyId != 1 {
|
|
if item.CompanyId != 1 {
|
|
- *btnItem = services.GetCompanyPermissionButton(roleTypeCode, itemStatus, item.GroupIds, item.GroupIds, item.GroupId, sysUser.GroupId, item.SellerId, sysUser.AdminId, sysUser.Authority, item.ProductId, -1, item.ShareSellerIds)
|
|
|
|
|
|
+ *btnItem = services.GetCompanyPermissionButton(roleTypeCode, itemStatus, item.SellerIds, item.GroupIds, item.GroupId, sysUser.GroupId, item.SellerId, sysUser.AdminId, sysUser.Authority, item.ProductId, -1, item.ShareSellerIds)
|
|
//根据销售"领取客户"的权限对部分按钮做限制
|
|
//根据销售"领取客户"的权限对部分按钮做限制
|
|
btnItem = services.GetCompanyPermissionButtonByReceiveEnabled(btnItem, receiveEnabled)
|
|
btnItem = services.GetCompanyPermissionButtonByReceiveEnabled(btnItem, receiveEnabled)
|
|
}
|
|
}
|