Browse Source

app2.0手机端学生不允许查看通知公告等;

通知公告校内通知排序;
娄底高职分支
ndbs 1 year ago
parent
commit
4a8b09e524
2 changed files with 14 additions and 3 deletions
  1. +12
    -3
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/DesktopApi.cs
  2. +2
    -0
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/home.vue

+ 12
- 3
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/DesktopApi.cs View File

@@ -36,6 +36,7 @@ namespace Learun.Application.WebApi.Modules
string ver = this.GetReqData();// 获取模板请求数据
var targetData = functionIBLL.GetDesktopList("1").OrderBy(m => m.F_Sort);
var listData = functionIBLL.GetDesktopList("2").OrderBy(m => m.F_Sort);

var chartData = functionIBLL.GetDesktopList("3").OrderBy(m => m.F_Sort);
var data = new { target = targetData, list = listData, chart = chartData };
string md5 = Md5Helper.Encrypt(data.ToJson(), 32);
@@ -43,10 +44,18 @@ namespace Learun.Application.WebApi.Modules
{
return Success("");
}
var data1 = new { data = new { target = targetData, list = listData, chart = chartData }, ver = md5 };
return Success(data1);
if (userInfo.Description == "学生")
{
var result = new string[0];
var data1 = new { data = new { target = targetData, list = result, chart = chartData }, ver = md5 };
return Success(data1);
}
else
{
var data1 = new { data = new { target = targetData, list = listData, chart = chartData }, ver = md5 };
return Success(data1);
}
}

public Response GetData(dynamic _)
{
object jsonData = null;


+ 2
- 0
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/home.vue View File

@@ -344,8 +344,10 @@
}
this.noticeData.push({
title: item.F_Name,
F_Sort:item.F_Sort,
content: value,
});
this.noticeData = this.noticeData.sort((a,b)=>a.F_Sort - b.F_Sort)
}
})
),


Loading…
Cancel
Save