|
@@ -802,14 +802,14 @@ func (this *UserAuthController) PermissionList() {
|
|
|
for _, vi := range vi.Child {
|
|
|
vi.ChartPermissionType = utils.PermissionTypeEta
|
|
|
}
|
|
|
+ vi.Child = append(vi.Child, &models.ChartPermissionTreeView{
|
|
|
+ ChartPermissionId: 1,
|
|
|
+ PermissionName: utils.MINI_CUSTOM_PERMISSION_NAME,
|
|
|
+ IsPublic: 0,
|
|
|
+ Sort: 0,
|
|
|
+ ChartPermissionType: utils.ReportTypePdf,
|
|
|
+ })
|
|
|
}
|
|
|
- publicView = append(publicView, &models.ChartPermissionTreeView{
|
|
|
- ChartPermissionId: 1,
|
|
|
- PermissionName: utils.MINI_CUSTOM_PERMISSION_NAME,
|
|
|
- IsPublic: 0,
|
|
|
- Sort: 0,
|
|
|
- ChartPermissionType: utils.ReportTypePdf,
|
|
|
- })
|
|
|
|
|
|
br.Data = publicView
|
|
|
br.Msg = "查询成功"
|
|
@@ -874,13 +874,15 @@ func (this *UserAuthController) PurchasedPermission() {
|
|
|
privateView = append(privateView, curPermissionView)
|
|
|
}
|
|
|
}
|
|
|
- privateView = append(privateView, &models.ChartPermissionTreeView{
|
|
|
- ChartPermissionId: 1,
|
|
|
- PermissionName: utils.MINI_CUSTOM_PERMISSION_NAME,
|
|
|
- IsPublic: 0,
|
|
|
- Sort: 0,
|
|
|
- ChartPermissionType: utils.ReportTypePdf,
|
|
|
- })
|
|
|
+ for _, vi := range privateView {
|
|
|
+ vi.Child = append(vi.Child, &models.ChartPermissionTreeView{
|
|
|
+ ChartPermissionId: 1,
|
|
|
+ PermissionName: utils.MINI_CUSTOM_PERMISSION_NAME,
|
|
|
+ IsPublic: 0,
|
|
|
+ Sort: 0,
|
|
|
+ ChartPermissionType: utils.ReportTypePdf,
|
|
|
+ })
|
|
|
+ }
|
|
|
|
|
|
br.Data = privateView
|
|
|
br.Msg = "查询成功"
|