Browse Source

fix state

zwxi 5 months ago
parent
commit
a313e26d45
1 changed files with 3 additions and 1 deletions
  1. 3 1
      controllers/bi_dashboard.go

+ 3 - 1
controllers/bi_dashboard.go

@@ -885,10 +885,12 @@ func (this *BIDaShboardController) Public() {
 			br.ErrMsg = "提交审批失败, Err: " + err.Error()
 			return
 		}
+		item.State = 4
+	} else {
+		item.State = 6
 	}
 	
 	item.BiDashboardClassifyId = req.ClassifyId
-	item.State = 4
 
 	err = bi_dashboard.EditDashboard(item)
 	if err != nil {