Browse Source

流程任务中审批点击确认添加loading

新疆影视学院高职^2
libo 2 years ago
committed by ndbs
parent
commit
2586ff36c8
1 changed files with 21 additions and 0 deletions
  1. +21
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/SignForm.js

+ 21
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/SignForm.js View File

@@ -61,6 +61,27 @@ var bootstrap = function ($, learun) {
//},500))

function debounce(fn, delay) {
let time = null;
return function () {
if (time !== null) {
clearTimeout(time);
}
time = setTimeout(() => {
fn.call(this);
}, delay)
}
}

//$('#btn_finish').on('click', debounce(function () {
// console.log('123456')
// var datapair = $sigdiv.jsignature("getdata");
// top.flowauditfn(datapair,stampurl);
// learun.layerclose(window.name);
//},500))

$('#btn_finish').on('click', function () {
learun.loading(true, '正在提交');
var datapair = $sigdiv.jSignature("getData");


Loading…
Cancel
Save