|
@@ -69,7 +69,7 @@ func (this *BIDaShboardController) AddDashboard() {
|
|
|
br.Msg = "名称不能为空"
|
|
|
return
|
|
|
}
|
|
|
- nameItem, err := bi_dashboard.GetDashboardByName(req.BiDashboardName)
|
|
|
+ nameItem, err := bi_dashboard.GetDashboardByName(req.BiDashboardName, this.SysUser.AdminId)
|
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
|
br.Msg = "查询失败"
|
|
|
br.ErrMsg = "查询失败,Err:" + err.Error()
|
|
@@ -151,13 +151,7 @@ func (this *BIDaShboardController) EditDashboard() {
|
|
|
br.ErrMsg = "获取数据异常,Err:" + err.Error()
|
|
|
return
|
|
|
}
|
|
|
-
|
|
|
- // 判断权限
|
|
|
- if item.SysAdminId != this.SysUser.AdminId {
|
|
|
- br.Msg = `无权编辑`
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
+
|
|
|
// 修改
|
|
|
item.BiDashboardName = req.BiDashboardName
|
|
|
item.ModifyTime = time.Now()
|