|
@@ -138,6 +138,25 @@ var bootstrap = function ($, learun) {
|
|
|
});
|
|
|
|
|
|
});
|
|
|
+ // 超时
|
|
|
+ $('#lr_overtime').on('click', function () {
|
|
|
+ let postData = $('#gridtable').jfGridGet("rowdata");
|
|
|
+
|
|
|
+ if (postData.length == 0) {
|
|
|
+ learun.alert.error('未选择行!');
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ learun.layerConfirm('是否确认执行超时操作!', function (res) {
|
|
|
+ if (res) {
|
|
|
+ learun.deleteForm(top.$.rootUrl + '/FJManager/WCSCacheline/UpdateOvertime', {
|
|
|
+ ids: JSON.stringify(postData.map((item) => item.Id))
|
|
|
+ }, function () {
|
|
|
+ refreshGirdData();
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ });
|
|
|
},
|
|
|
// 初始化列表
|
|
|
initGird: function () {
|