|
@@ -27,7 +27,6 @@ import (
|
|
|
"time"
|
|
|
|
|
|
"github.com/rdlucklib/rdluck_tools/paging"
|
|
|
- "github.com/shopspring/decimal"
|
|
|
"github.com/tealeg/xlsx"
|
|
|
)
|
|
|
|
|
@@ -3578,8 +3577,13 @@ func (this *TargetController) ExcelDataAdd() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
+ userId := sysUser.AdminId
|
|
|
+ //超管账号可以查看分类下的所有频度数据
|
|
|
+ if sysUser.RoleTypeCode == utils.ROLE_TYPE_CODE_ADMIN {
|
|
|
+ userId = 0
|
|
|
+ }
|
|
|
//获取账户所拥有权限的分类id集合
|
|
|
- classifyIdStrList, err := data.GetEdbClassifyListByAdminId(int64(sysUser.AdminId))
|
|
|
+ classifyIdStrList, err := data.GetEdbClassifyListByAdminId(int64(userId))
|
|
|
if err != nil {
|
|
|
br.Msg = "获取分类数据失败"
|
|
|
return
|