zwxi 6 月之前
父节点
当前提交
faed126462
共有 2 个文件被更改,包括 6 次插入1 次删除
  1. 6 0
      controllers/bi_dashboard.go
  2. 0 1
      models/bi_dashboard/bi_dashboard.go

+ 6 - 0
controllers/bi_dashboard.go

@@ -909,6 +909,12 @@ func (this *BIDaShboardController) Public() {
 	// 校验是否开启了审批流
 	opening, e := biapproveSerice.CheckBiOpenApprove(req.ClassifyId)
 	if e != nil {
+		if !utils.IsErrNoRow(e) {
+			br.Ret = 200
+			br.Msg = "该分类未配置审批流,请先配置审批流"
+			br.ErrMsg = "校验报告是否开启审批流失败, Err: " + e.Error()
+			return
+		}
 		br.Msg = "操作失败"
 		br.ErrMsg = "校验报告是否开启审批流失败, Err: " + e.Error()
 		return

+ 0 - 1
models/bi_dashboard/bi_dashboard.go

@@ -87,7 +87,6 @@ type BiDashboardEditingCache struct {
 type DashboardDetailResp struct {
 	*BiDashboard
 	IsGrant   int                     `description:"是否共享,0:不是,1:是"`
-	IsEditing bool                    `description:"是否有人编辑"`
 	Editor    BiDashboardEditingCache `description:"编辑人信息"`
 	List      []*BiDashboardDetail
 }