|
@@ -256,6 +256,7 @@ func (this *MobileHomeController) List() {
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -277,7 +278,7 @@ func (this *MobileHomeController) NewList() {
|
|
|
pageSize, _ := this.GetInt("PageSize")
|
|
|
currentIndex, _ := this.GetInt("CurrentIndex")
|
|
|
tagIds := this.GetString("TagIds")
|
|
|
-
|
|
|
+ chartPermissionId, _ := this.GetInt("ChartPermissionId")
|
|
|
var startSize int
|
|
|
if pageSize <= 0 {
|
|
|
pageSize = utils.PageSize20
|
|
@@ -509,6 +510,9 @@ func (this *MobileHomeController) NewList() {
|
|
|
|
|
|
conditionInit = " AND publish_date > '" + time.Now().AddDate(0, 0, -30).Format(utils.FormatDateTime) + "'"
|
|
|
}
|
|
|
+ if chartPermissionId > 0 {
|
|
|
+ conditionInit = " AND chart_permission_id = " + strconv.Itoa(chartPermissionId)
|
|
|
+ }
|
|
|
|
|
|
|
|
|
if user.CompanyId <= 1 {
|