|
@@ -3215,8 +3215,14 @@ func (this *ActivityCoAntroller) LabelTypeListV5() {
|
|
}
|
|
}
|
|
if position == 1 {
|
|
if position == 1 {
|
|
leftPx += basicsHeight + rowHeight*lenList
|
|
leftPx += basicsHeight + rowHeight*lenList
|
|
|
|
+ if lenList > 8 {
|
|
|
|
+ lenList = leftPx - 41
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
rightPx += basicsHeight + rowHeight*lenList
|
|
rightPx += basicsHeight + rowHeight*lenList
|
|
|
|
+ if lenList > 8 {
|
|
|
|
+ lenList = leftPx - 41
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -4803,23 +4809,23 @@ func (this *ActivityCoAntroller) OverActivityList() {
|
|
if len(chartPermissionIds) > 0 {
|
|
if len(chartPermissionIds) > 0 {
|
|
condition += ` AND art.chart_permission_id IN (` + chartPermissionIds + `)`
|
|
condition += ` AND art.chart_permission_id IN (` + chartPermissionIds + `)`
|
|
}
|
|
}
|
|
- if typeName != "" {
|
|
|
|
- typeSlice := strings.Split(typeName, ",")
|
|
|
|
- tempCondition := ""
|
|
|
|
- for _, s := range typeSlice {
|
|
|
|
- if s == "1" {
|
|
|
|
- tempCondition += "'专家电话会',"
|
|
|
|
- } else if s == "2" {
|
|
|
|
- tempCondition += "'分析师电话会',"
|
|
|
|
- } else if s == "1,2" {
|
|
|
|
- tempCondition += "'专家电话会','分析师电话会',"
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- tempCondition = strings.TrimRight(tempCondition, ",")
|
|
|
|
- condition += ` AND art.activity_type_name IN (` + tempCondition + `)`
|
|
|
|
- }
|
|
|
|
|
|
+ //if typeName != "" {
|
|
|
|
+ //typeSlice := strings.Split(typeName, ",")
|
|
|
|
+ //tempCondition := ""
|
|
|
|
+ //for _, s := range typeSlice {
|
|
|
|
+ // if s == "1" {
|
|
|
|
+ // tempCondition += "'专家电话会',"
|
|
|
|
+ // } else if s == "2" {
|
|
|
|
+ // tempCondition += "'分析师电话会',"
|
|
|
|
+ // } else if s == "1,2" {
|
|
|
|
+ // tempCondition += "'专家电话会','分析师电话会',"
|
|
|
|
+ // }
|
|
|
|
+ //}
|
|
|
|
+ //tempCondition = strings.TrimRight(tempCondition, ",")
|
|
|
|
+ //condition += ` AND art.activity_type_id IN (` + typeName + `)`
|
|
|
|
+ //}
|
|
|
|
|
|
- conditionActivity, err := services.GetActivityonditionList(user, "", chartPermissionIds, whichDay, "3", "", 0, 0, "", 0)
|
|
|
|
|
|
+ conditionActivity, err := services.GetActivityonditionList(user, typeName, chartPermissionIds, whichDay, "3", "", 0, 0, "", 0)
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
br.Msg = "获取失败"
|
|
br.Msg = "获取失败"
|
|
br.ErrMsg = "获取活动权限数据失败,Err:" + err.Error()
|
|
br.ErrMsg = "获取活动权限数据失败,Err:" + err.Error()
|