xyxie 11 months ago
parent
commit
b7c068e361
3 changed files with 9 additions and 1 deletions
  1. 6 1
      controllers/chart_classify.go
  2. 1 0
      models/chart_classify.go
  3. 2 0
      models/chart_info.go

+ 6 - 1
controllers/chart_classify.go

@@ -226,6 +226,7 @@ func (this *ChartClassifyController) SimpleList() {
 		if len(allChartInfo) > 0 {
 			for _, v := range allChartInfo {
 				v.Children = make([]*models.ChartClassifyItems, 0)
+				v.Company = "弘则研究"
 				nodeAll = append(nodeAll, v)
 			}
 		}
@@ -874,7 +875,11 @@ func (this *ChartClassifyController) ChartClassifyChartListV2() {
 			return
 		}
 	}
-
+	if len(allChartInfo) > 0 {
+		for k, _ := range allChartInfo {
+			allChartInfo[k].Company = "弘则研究"
+		}
+	}
 	page := paging.GetPaging(currentIndex, pageSize, int(total))
 	resp.AllNodes = allChartInfo
 	resp.Paging = page

+ 1 - 0
models/chart_classify.go

@@ -168,6 +168,7 @@ type ChartClassifyItems struct {
 	Button              ChartClassifyItemsButton `description:"按钮权限"`
 	IsJoinPermission    int                      `description:"是否加入权限管控,0:不加入;1:加入;默认:0"`
 	HaveOperaAuth       bool                     `description:"是否有数据权限,默认:false"`
+	Company             string
 }
 
 // ChartClassifyItemsButton 操作按钮

+ 2 - 0
models/chart_info.go

@@ -54,6 +54,7 @@ type ChartInfo struct {
 	Unit              string `description:"中文单位名称"`
 	UnitEn            string `description:"英文单位名称"`
 	IsJoinPermission  int    `description:"是否加入权限管控,0:不加入;1:加入;默认:0"`
+	Description       string
 }
 
 type ChartInfoMore struct {
@@ -1343,6 +1344,7 @@ type ChartInfoView struct {
 	MarkersAreas      string          `description:"标识区"`
 	IsJoinPermission  int             `description:"是否加入权限管控,0:不加入;1:加入;默认:0"`
 	HaveOperaAuth     bool            `description:"是否有数据权限,默认:false"`
+	Description       string
 }
 
 type ChartViewButton struct {