Browse Source

公告回收站功能

金隅分支
liangkun 3 years ago
parent
commit
d81756ba22
3 changed files with 22 additions and 2 deletions
  1. +9
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Controllers/NoticeController.cs
  2. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/IndexFlow.cshtml
  3. +12
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/IndexFlow.js

+ 9
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Controllers/NoticeController.cs View File

@@ -94,6 +94,15 @@ namespace Learun.Application.Web.Areas.LR_OAModule.Controllers
return View(); return View();
} }
/// <summary> /// <summary>
/// 回收站
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult IndexRecycle()
{
return View();
}
/// <summary>
/// 表单页面【查看通知公告】 /// 表单页面【查看通知公告】
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/IndexFlow.cshtml View File

@@ -25,6 +25,7 @@
<a id="lr_submit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;<span class="lrlt">提交</span></a> <a id="lr_submit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;<span class="lrlt">提交</span></a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;<span class="lrlt">删除</span></a> <a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;<span class="lrlt">删除</span></a>
<a id="lr_recycle" class="btn btn-default"><i class="fa fa-circle-o-notch"></i>&nbsp;<span class="lrlt">放入回收站</span></a> <a id="lr_recycle" class="btn btn-default"><i class="fa fa-circle-o-notch"></i>&nbsp;<span class="lrlt">放入回收站</span></a>
<a id="lr_openrecycle" class="btn btn-default"><i class="fa fa-circle-o-notch"></i>&nbsp;<span class="lrlt">打开回收站</span></a>
</div> </div>
</div> </div>
</div> </div>


+ 12
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_OAModule/Views/Notice/IndexFlow.js View File

@@ -91,12 +91,22 @@ var bootstrap = function ($, learun) {
}); });
} }
}); });
$('#lr_openrecycle').on('click', function () {
learun.layerForm({
id: 'formrecycle',
title: '查看回收站',
url: top.$.rootUrl + '/LR_OAModule/Notice/IndexRecycle',
width: 1100,
height: 700,
btn: null
});
});
// 删除 // 删除
$('#lr_delete').on('click', function () { $('#lr_delete').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('F_NewsId'); var keyValue = $('#gridtable').jfGridValue('F_NewsId');
var status = $('#gridtable').jfGridValue('F_Status'); var status = $('#gridtable').jfGridValue('F_Status');
console.log(status); console.log(status);
if (status.indexOf("1")>0 || status.indexOf("2")>0) {
if (status.indexOf("1") > 0 || status.indexOf("2") > 0) {
learun.alert.warning("只能删除草稿!"); learun.alert.warning("只能删除草稿!");
return; return;
} else { } else {
@@ -132,7 +142,7 @@ var bootstrap = function ($, learun) {
learun.alert.warning('只能提交一个!'); learun.alert.warning('只能提交一个!');
return; return;
} }
if (learun.checkrow(keyValue) ) {
if (learun.checkrow(keyValue)) {
var SendFlag = $('#gridtable').jfGridValue('F_Status'); var SendFlag = $('#gridtable').jfGridValue('F_Status');
if (SendFlag == "1" || SendFlag == "2") { if (SendFlag == "1" || SendFlag == "2") {
learun.alert.warning("当前项目已提交,请耐心等待审批!"); learun.alert.warning("当前项目已提交,请耐心等待审批!");


Loading…
Cancel
Save