Explorar el Código

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

新疆警官学校中职
libo hace 1 año
padre
commit
32cba9f8e8
Se han modificado 1 ficheros con 28 adiciones y 3 borrados
  1. +28
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/SignForm.js

+ 28
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/SignForm.js Ver fichero

@@ -59,10 +59,35 @@ var bootstrap = function ($, learun) {
});
});

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 () {
var datapair = $sigdiv.jSignature("getData");
top.flowAuditfn(datapair,stampUrl);
learun.layerClose(window.name);
learun.loading(true, '正在提交');
var datapair = $sigdiv.jSignature("getData");
top.flowAuditfn(datapair,stampUrl);
learun.layerClose(window.name);
setTimeout(function () {
learun.loading(false);
});
});

}


Cargando…
Cancelar
Guardar