Browse Source

Merge branch 'BI_Dashboard' into dm

zwxi 6 months ago
parent
commit
b639488b18
2 changed files with 6 additions and 1 deletions
  1. 2 1
      controllers/bi_dashboard.go
  2. 4 0
      models/bi_dashboard/bi_dashboard.go

+ 2 - 1
controllers/bi_dashboard.go

@@ -1117,10 +1117,11 @@ func (this *BIDaShboardController) PublicCancel() {
 	//	item.State = 6
 	//}
 
+	
 	item.BiDashboardClassifyId = 0
 	item.State = 1
 
-	err = bi_dashboard.EditDashboard(item)
+	err = bi_dashboard.SaveDashboard(item)
 	if err != nil {
 		br.Msg = "编辑失败"
 		br.ErrMsg = "编辑失败,Err:" + err.Error()

+ 4 - 0
models/bi_dashboard/bi_dashboard.go

@@ -125,3 +125,7 @@ func GetAllGrantList(sysUserId int) (list []*BiDashboard, err error) {
 	err = global.DEFAULT_DmSQL.Raw(sql, sysUserId, sysUserId).Find(&list).Error
 	return
 }
+
+func SaveDashboard(item *BiDashboard) (err error) {
+	return global.DEFAULT_DmSQL.Save(item).Error
+}