@@ -363,7 +363,7 @@ func (this *HomeController) ListHomeArtAndChart() {
var chartList []*models.HomeChartListResp
var err error
if listType == 1 {
- if currentIndex <= 1 {
+ if currentIndex <= 2 {
listCtagId := [10]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
var chartIds string
for _, v := range listCtagId {
@@ -1146,8 +1146,10 @@ func (this *ReportController) IsShow() {
if total > 0 {
resp.IsShow = true
}
- resp.IsShowChart = true
- resp.IsShowResearch = true
+ if user.CompanyId > 1 {
+ resp.IsShowChart = true
+ resp.IsShowResearch = true
+ }
br.Ret = 200
br.Success = true
br.Data = resp