|
|
@@ -4,19 +4,163 @@ |
|
|
|
@using Learun.Application.TwoDevelopment.Permission |
|
|
|
@using Learun.Application.WorkFlow |
|
|
|
@using Learun.Util |
|
|
|
@using Learun.Application.TwoDevelopment.LR_Desktop |
|
|
|
|
|
|
|
|
|
|
|
@{ |
|
|
|
ViewBag.Title = "网上办事大厅拖拽版"; |
|
|
|
Layout = "~/Views/SSOSystem/_LayoutSSODrag.cshtml"; |
|
|
|
} |
|
|
|
|
|
|
|
<script src="/Content/js/DragSSO/indexData.js"></script> |
|
|
|
<script> |
|
|
|
//测试数据 |
|
|
|
//测试登录后获取的数据 |
|
|
|
var aa = "@ViewBag.DesktopListStr"; |
|
|
|
var aaa = aa.replace(/"/g, "\""); |
|
|
|
var aaaa = JSON.parse(aaa); |
|
|
|
console.log(aaaa); |
|
|
|
//console.log(aaaa); |
|
|
|
|
|
|
|
|
|
|
|
//定义卡片块 |
|
|
|
//办公事项 |
|
|
|
var card2Fun = function () { |
|
|
|
//todo: |
|
|
|
|
|
|
|
var html = ''; |
|
|
|
return html; |
|
|
|
}; |
|
|
|
//学校公文 |
|
|
|
var card3Fun = function () { |
|
|
|
var listStr = "@ViewBag.ReceiveFileListStr"; |
|
|
|
var list = JSON.parse(listStr.replace(/"/g, "\"")); |
|
|
|
var html = '<div class="inSec3Col3" id="' + $('.inSec3Row.active').attr('ind') + '_card3">' |
|
|
|
+ '<div class="inSec3Box">' |
|
|
|
+ '<div class="inSecT">' |
|
|
|
+ '<span>学校公文</span>' |
|
|
|
+ '<i class="inSecTMore">' + list.length + '</i>' |
|
|
|
+ '<a href="/Home/Index?autoopen=19637c39-624d-4be6-b680-04250f8df71f" class="more" target="_blank"><span></span><span></span><span></span></a>' |
|
|
|
+ '</div>' |
|
|
|
+ '<div class="inSec3Con">'; |
|
|
|
if (list.length > 0) { |
|
|
|
html += '<ul class="inSec2List">'; |
|
|
|
for (var i = 0; i < list.length; i++) { |
|
|
|
html += '<li>' |
|
|
|
+ '<a href="/Home/Index?autoopen=19637c39-624d-4be6-b680-04250f8df71f&keyValue=' + list[i].RFileId +'" target="_blank">' |
|
|
|
+ '<span class="inSec2Time">'+list[i].SendTime.replace("T"," ").slice(0,10)+'</span>' |
|
|
|
+ '<span class="inSec2T"><img src="../../Content/images/DragSSO/inSec2-18.png" alt="">' + list[i].Title+'</span>' |
|
|
|
+ '</a>' |
|
|
|
+ '</li>'; |
|
|
|
} |
|
|
|
html+= '</ul>'; |
|
|
|
} else { |
|
|
|
html += noHtml; |
|
|
|
} |
|
|
|
html+= '</div>' |
|
|
|
+ '</div>' |
|
|
|
+ '</div>' |
|
|
|
; |
|
|
|
return html; |
|
|
|
}; |
|
|
|
//办公邮件 |
|
|
|
var card9Fun = function () { |
|
|
|
var listStr = "@ViewBag.LanMailStr"; |
|
|
|
var list = JSON.parse(listStr.replace(/"/g, "\"")); |
|
|
|
var listStr2 = "@ViewBag.LanMailSendStr"; |
|
|
|
var list2 = JSON.parse(listStr2.replace(/"/g, "\"")); |
|
|
|
var html = '<div class="inSec3Col3" id="' + $('.inSec3Row.active').attr('ind') + '_card9">' |
|
|
|
+ '<div class="inSec3Box" >' |
|
|
|
+ '<div class="inSecT">' |
|
|
|
+ '<span>办公邮件</span>' |
|
|
|
+ '<a href="/Home/Index?autoopen=252878d7-d807-497f-b01e-839bb1b869c6" class="more" target="_blank"><span></span><span></span><span></span></a>' |
|
|
|
+ '</div>' |
|
|
|
+ '<div class="inSec3Con">' |
|
|
|
+ '<div class="inSec3L">' |
|
|
|
+ '<ul class="workList workListTips">' |
|
|
|
+ '<li class="active">' |
|
|
|
+ '<div class="workListImg"><img src = "../../Content/images/DragSSO/indexSec3-12.png" alt = "" >' |
|
|
|
+ '</div> ' |
|
|
|
+ '<span>收件箱</span>' |
|
|
|
+ '<i class="inSecTMore">@ViewBag.LanMailUnReadCount</i>' |
|
|
|
+ '</li>' |
|
|
|
+ '<li>' |
|
|
|
+ '<div class="workListImg"><img src = "../../Content/images/DragSSO/indexSec3-10.png" alt = "" >' |
|
|
|
+ '</div> ' |
|
|
|
+ '<span>已发送</span>' |
|
|
|
+ '</li>' |
|
|
|
+ '</ul>' |
|
|
|
+ '</div>' |
|
|
|
+ '<div class="inSec3R">' |
|
|
|
+ '<div class="inSec3WorkBox">'; |
|
|
|
if (list.length > 0) { |
|
|
|
html += '<ul class="inSec2List">'; |
|
|
|
for (var i = 0; i < list.length; i++) { |
|
|
|
html += '<li>' |
|
|
|
+ '<a href="/Home/Index?autoopen=252878d7-d807-497f-b01e-839bb1b869c6&keyValue=' + list[i].MESSAGEID+'" target="_blank">' |
|
|
|
+ '<span class="inSec2Time">' + list[i].SENDTIME.replace("T", " ").slice(0, 10) +'</span>' |
|
|
|
+ '<span class="inSec2T">' + list[i].TITLE+'</span>' |
|
|
|
+ '</a>' |
|
|
|
+ '</li>'; |
|
|
|
} |
|
|
|
html+= '</ul>'; |
|
|
|
} else { |
|
|
|
html += noHtml; |
|
|
|
} |
|
|
|
html += '</div>' |
|
|
|
+ '<div class="inSec3WorkBox">'; |
|
|
|
if (list2.length > 0) { |
|
|
|
html += '<ul class="inSec2List">'; |
|
|
|
for (var i = 0; i < list2.length; i++) { |
|
|
|
html += '<li>' |
|
|
|
+ '<a href="/Home/Index?autoopen=252878d7-d807-497f-b01e-839bb1b869c6&keyValue=' + list2[i].MESSAGEID + '" target="_blank">' |
|
|
|
+ '<span class="inSec2Time">' + list2[i].SENDTIME.replace("T", " ").slice(0, 10) + '</span>' |
|
|
|
+ '<span class="inSec2T">' + list2[i].TITLE + '</span>' |
|
|
|
+ '</a>' |
|
|
|
+ '</li>'; |
|
|
|
} |
|
|
|
html += '</ul>'; |
|
|
|
} else { |
|
|
|
html += noHtml; |
|
|
|
} |
|
|
|
html+='</div>' |
|
|
|
+'</div>' |
|
|
|
+'</div>' |
|
|
|
+'</div>' |
|
|
|
+'</div>' |
|
|
|
; |
|
|
|
return html; |
|
|
|
}; |
|
|
|
//通知公告 |
|
|
|
var card10Fun = function () { |
|
|
|
var listStr = "@ViewBag.NewsListStr"; |
|
|
|
var list = JSON.parse(listStr.replace(/"/g, "\"")); |
|
|
|
var html = '<div class="inSec3Col3" id="' + $('.inSec3Row.active').attr('ind') + '_card10">' |
|
|
|
+ '<div class="inSec3Box">' |
|
|
|
+ '<div class="inSecT">' |
|
|
|
+ '<span>通知公告</span>' |
|
|
|
+ '<a href="/Home/Index?autoopen=433d5658-40b0-4e2d-b736-c4e8561d017e" class="more" target="_blank"><span></span><span></span><span></span></a>' |
|
|
|
+ '</div>' |
|
|
|
+ '<div class="inSec3Con">'; |
|
|
|
if (list.length > 0) { |
|
|
|
html += '<ul class="inSec2List">'; |
|
|
|
for (var i = 0; i < list.length; i++) { |
|
|
|
html += '<li>' |
|
|
|
+ '<a href="/Home/Index?autoopen=433d5658-40b0-4e2d-b736-c4e8561d017e&keyValue=' + list[i].F_NewsId +'" target="_blank">' |
|
|
|
+ '<span class="inSec2Time">' + list[i].F_CreateDate.replace("T"," ").slice(0,10)+'</span>' |
|
|
|
+ '<span class="inSec2T"><img src="../../Content/images/DragSSO/inSec2-16.png" alt="">' + list[i].F_FullHead+'</span>' |
|
|
|
+ '</a>' |
|
|
|
+ '</li>'; |
|
|
|
} |
|
|
|
html+= '</ul>'; |
|
|
|
} else { |
|
|
|
html += noHtml; |
|
|
|
} |
|
|
|
html+= '</div>' |
|
|
|
+ '</div>' |
|
|
|
+ '</div>' |
|
|
|
; |
|
|
|
return html; |
|
|
|
}; |
|
|
|
//智慧教育 |
|
|
|
var card11Fun = function () { |
|
|
|
var html = '<div class="inSec3Col3" id="' + $('.inSec3Row.active').attr('ind') + '_card11">' |
|
|
|
+ '<div class="inSec3Box">' |
|
|
@@ -34,10 +178,9 @@ |
|
|
|
return html; |
|
|
|
|
|
|
|
}; |
|
|
|
console.log(card11Fun()); |
|
|
|
//console.log(card11Fun()); |
|
|
|
|
|
|
|
</script> |
|
|
|
<script src="/Content/js/DragSSO/indexData.js"></script> |
|
|
|
|
|
|
|
<!-- / warpper --> |
|
|
|
<div class="warpper"> |
|
|
@@ -729,14 +872,26 @@ |
|
|
|
<div class="indexSec3Box"> |
|
|
|
<div class="inSec3Head"> |
|
|
|
<div class="inSec3HeadTabBox"> |
|
|
|
<div class="inSec3HeadTab active" ind="teacherDesktop"> |
|
|
|
<div class="inSec3HeadTabTxt">教师桌面</div> |
|
|
|
</div> |
|
|
|
<div class="inSec3HeadLine"></div> |
|
|
|
<div class="inSec3HeadTab" ind="workDesktop"> |
|
|
|
<div class="inSec3HeadTabTxt">OA办公桌面</div> |
|
|
|
</div> |
|
|
|
<div class="inSec3HeadLine"></div> |
|
|
|
@*<div class="inSec3HeadTab active" ind="teacherDesktop"> |
|
|
|
<div class="inSec3HeadTabTxt">教师桌面</div> |
|
|
|
</div> |
|
|
|
<div class="inSec3HeadLine"></div> |
|
|
|
<div class="inSec3HeadTab" ind="workDesktop"> |
|
|
|
<div class="inSec3HeadTabTxt">OA办公桌面</div> |
|
|
|
</div> |
|
|
|
<div class="inSec3HeadLine"></div>*@ |
|
|
|
@foreach (SSO_Drag_DesktopManageEntity desktopItem in ViewBag.DesktopList) |
|
|
|
{ |
|
|
|
var classTemp = ""; |
|
|
|
if (desktopItem.DesktopCode == "teacherDesktop") |
|
|
|
{ |
|
|
|
classTemp = "active"; |
|
|
|
} |
|
|
|
<div class="inSec3HeadTab @classTemp" ind="@desktopItem.DesktopCode" attr-Id="@desktopItem.Id"> |
|
|
|
<div class="inSec3HeadTabTxt">@desktopItem.DesktopName</div> |
|
|
|
</div> |
|
|
|
<div class="inSec3HeadLine"></div> |
|
|
|
} |
|
|
|
</div> |
|
|
|
<div class="inSec3HeadAdd"> |
|
|
|
<img src="~/Content/images/DragSSO/indSec3-5.png" alt=""> |
|
|
@@ -747,6 +902,72 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="inSec3RowBox"> |
|
|
|
@foreach (SSO_Drag_DesktopManageEntity desktopItem in ViewBag.DesktopList) |
|
|
|
{ |
|
|
|
var classTemp = ""; |
|
|
|
if (desktopItem.DesktopCode == "teacherDesktop") |
|
|
|
{ |
|
|
|
classTemp = "active"; |
|
|
|
} |
|
|
|
<div class="inSec3Row clearfix @classTemp" ind="@desktopItem.DesktopCode"> |
|
|
|
@if (string.IsNullOrEmpty(desktopItem.CardSort)) |
|
|
|
{ |
|
|
|
<script> |
|
|
|
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(noCard); |
|
|
|
</script> |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
if (desktopItem.CardSort.IndexOf(',') == -1) |
|
|
|
{ |
|
|
|
|
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
foreach (var item in desktopItem.CardSort.Split(',')) |
|
|
|
{ |
|
|
|
switch (item) |
|
|
|
{ |
|
|
|
case "card1": |
|
|
|
<script> |
|
|
|
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card11Fun()); |
|
|
|
</script> |
|
|
|
break; |
|
|
|
case "card3": |
|
|
|
<script> |
|
|
|
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card3Fun()); |
|
|
|
</script> |
|
|
|
break; |
|
|
|
case "card9": |
|
|
|
<script> |
|
|
|
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card9Fun()); |
|
|
|
</script> |
|
|
|
break; |
|
|
|
case "card10": |
|
|
|
<script> |
|
|
|
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card10Fun()); |
|
|
|
</script> |
|
|
|
break; |
|
|
|
case "card11": |
|
|
|
<script> |
|
|
|
$('.inSec3RowBox').find('.inSec3Row[ind="@desktopItem.DesktopCode"]').append(card11Fun()); |
|
|
|
</script> |
|
|
|
break; |
|
|
|
default: |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
</div> |
|
|
|
@*<script> |
|
|
|
// 拖拽 排序 |
|
|
|
sortableInit() |
|
|
|
</script>*@ |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
<div class="inSec3Row clearfix active" ind="teacherDesktop"> |
|
|
|
<div class="inSec3Col6" id="teacherDesktop_card1"> |
|
|
|
<div class="inSec3Box"> |
|
|
@@ -925,15 +1146,6 @@ |
|
|
|
</span> |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<a href="#"> |
|
|
|
<span class="inSec2Time">2019-10-22</span> |
|
|
|
<span class="inSec2T"> |
|
|
|
<img src="~/Content/images/DragSSO/inSec2-18.png" alt="">关于大力推进学院网络服务的通 |
|
|
|
jkhfakjshdfkjh |
|
|
|
</span> |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@@ -1279,14 +1491,6 @@ |
|
|
|
</span> |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<a href="#"> |
|
|
|
<span class="inSec2Time">2019-10-22</span> |
|
|
|
<span class="inSec2T"> |
|
|
|
关于大力推进学院网络服务的通 jkhfakjshdfkjh |
|
|
|
</span> |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
<div class="inSec3WorkBox"> |
|
|
@@ -1299,14 +1503,6 @@ |
|
|
|
</span> |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<a href="#"> |
|
|
|
<span class="inSec2Time">2019-10-22</span> |
|
|
|
<span class="inSec2T"> |
|
|
|
关于大力推进学院网络服务的通 jkhfakjshdfkjh |
|
|
|
</span> |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@@ -1330,15 +1526,6 @@ |
|
|
|
</span> |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
<li> |
|
|
|
<a href="#"> |
|
|
|
<span class="inSec2Time">2019-10-22</span> |
|
|
|
<span class="inSec2T"> |
|
|
|
<img src="~/Content/images/DragSSO/inSec2-16.png" alt="">关于大力推进学院网络服务的通 |
|
|
|
jkhfakjshdfkjh |
|
|
|
</span> |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@@ -1355,20 +1542,6 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
@{ |
|
|
|
if (1 == 1) |
|
|
|
{ |
|
|
|
<script> |
|
|
|
$('.inSec3Row[ind="teacherDesktop"]').append(card11Fun()); |
|
|
|
console.log(noCard); |
|
|
|
</script> |
|
|
|
} |
|
|
|
} |
|
|
|
<script> |
|
|
|
console.log(card11Fun()); |
|
|
|
</script> |
|
|
|
|
|
|
|
<div class="inSec3Col3" id="teacherDesktop_card12"> |
|
|
|
<div class="inSec3Box"> |
|
|
|
<div class="inSecT"> |
|
|
@@ -1437,6 +1610,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</form> |
|
|
@@ -1596,13 +1770,13 @@ |
|
|
|
$('.inSec3Row.active').find(id).remove(); |
|
|
|
layer.msg('删除成功!'); |
|
|
|
if ($('.inSec3Row.active > div').length == 0) { |
|
|
|
$('.inSec3Row.active').html(noCard) |
|
|
|
$('.inSec3Row.active').html(noCard); |
|
|
|
} |
|
|
|
serializes() |
|
|
|
}).on('click', '.fa-plus', function () { |
|
|
|
var noHtmls = $('.inSec3Row.active #noHtml'); |
|
|
|
if (noHtmls.length) { |
|
|
|
noHtmls.remove() |
|
|
|
noHtmls.remove(); |
|
|
|
} |
|
|
|
//添加 |
|
|
|
$(this).removeClass('fa-plus').addClass('fa-minus'); |
|
|
|