|
|
@@ -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 () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('F_NewsId'); |
|
|
|
var status = $('#gridtable').jfGridValue('F_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("只能删除草稿!"); |
|
|
|
return; |
|
|
|
} else { |
|
|
@@ -132,7 +142,7 @@ var bootstrap = function ($, learun) { |
|
|
|
learun.alert.warning('只能提交一个!'); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (learun.checkrow(keyValue) ) { |
|
|
|
if (learun.checkrow(keyValue)) { |
|
|
|
var SendFlag = $('#gridtable').jfGridValue('F_Status'); |
|
|
|
if (SendFlag == "1" || SendFlag == "2") { |
|
|
|
learun.alert.warning("当前项目已提交,请耐心等待审批!"); |
|
|
|