|
@@ -712,10 +712,10 @@ func (this *EdbClassifyController) ItemsV2() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
canOpClassify := true
|
|
|
-
|
|
|
- if !utils.InArrayByStr([]string{utils.ROLE_TYPE_CODE_ADMIN, utils.ROLE_TYPE_CODE_FICC_ADMIN, utils.ROLE_TYPE_CODE_RESEARCHR, utils.ROLE_TYPE_CODE_FICC_RESEARCHR}, this.SysUser.RoleTypeCode) {
|
|
|
+ button := data.GetEdbClassifyOpButton(this.SysUser, 0)
|
|
|
+ if !button.AddButton {
|
|
|
canOpClassify = false
|
|
|
}
|
|
|
|
|
@@ -848,7 +848,7 @@ func (this *EdbClassifyController) ItemsV3() {
|
|
|
|
|
|
if existItems, ok := rootTwoChildMap[item.ClassifyId]; ok {
|
|
|
for _, existItem := range existItems {
|
|
|
- button := data.GetPredictEdbOpButton(this.SysUser, v.SysUserId)
|
|
|
+ button := data.GetEdbClassifyOpButton(this.SysUser, v.SysUserId)
|
|
|
button.AddButton = false
|
|
|
existItem.Button = button
|
|
|
}
|
|
@@ -877,9 +877,19 @@ func (this *EdbClassifyController) ItemsV3() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ canOpClassify := true
|
|
|
+ button := data.GetEdbClassifyOpButton(this.SysUser, 0)
|
|
|
+ if !button.AddButton {
|
|
|
+ canOpClassify = false
|
|
|
+ }
|
|
|
+
|
|
|
resp := new(data_manage.EdbClassifyListResp)
|
|
|
resp.AllNodes = nodeAll
|
|
|
resp.Language = language
|
|
|
+ resp.CanOpClassify = canOpClassify
|
|
|
br.Ret = 200
|
|
|
br.Success = true
|
|
|
br.Msg = "获取成功"
|