胡轶钦 před 6 roky
rodič
revize
6ef723bdad
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. 5
    0
      controllers/booktype/booktype.go

+ 5
- 0
controllers/booktype/booktype.go Zobrazit soubor

@@ -22,6 +22,11 @@ func (c *BooktypeController) Constructor() {
22 22
 // GetList 获取列表
23 23
 func (c *BooktypeController) GetList() {
24 24
 	caseid := c.GetString("caseid")
25
+	if caseid == "" {
26
+		cases := c.Context.Get("cases").([]model.SysUserCase)
27
+		caseid = c.GetCaseIDs(cases)
28
+	}
29
+
25 30
 	page, _ := c.GetInt("page")
26 31
 	pagesize, _ := c.GetInt("pagesize")
27 32
 	if page < 1 {