|
@@ -497,7 +497,7 @@
|
|
|
}
|
|
|
|
|
|
function signPdfRound(requestJson, num, round, roundNum, name) {
|
|
|
- if (num !== round) {
|
|
|
+ if (num <= round) {
|
|
|
requestJson.SignPosition.startPage = (num-1)*roundNum + 1;
|
|
|
requestJson.SignPosition.endPage = num+1 > round ? -1 : num*roundNum;
|
|
|
}
|
|
@@ -505,14 +505,14 @@
|
|
|
NetcaPKI.SignatureCreatorSignSealEx(requestJson)
|
|
|
.Then(function (res)
|
|
|
{
|
|
|
- if (num !== round) {
|
|
|
+ ++num;
|
|
|
+ if (num <= round) {
|
|
|
requestJson.srcBytes = res.destFileEncode;
|
|
|
let uhtml = ' <span class="text-success"><i class="fa fa-check"></i> '+ name +'('+ USER_NAME +')</span>';
|
|
|
- const nowRound = (num-1)*roundNum;
|
|
|
+ const nowRound = (num-2)*roundNum;
|
|
|
for (let i = 0; i < roundNum; i++) {
|
|
|
$('#page-list tr').eq(nowRound + i).children('td').eq(2).append(uhtml);
|
|
|
}
|
|
|
- ++num;
|
|
|
signPdfRound(requestJson, num, round, roundNum, name);
|
|
|
} else {
|
|
|
const doc = convertBase64UrlToBlob(res.destFileEncode);
|