feat(签名验签): 优化WebUI签名验签
build.yaml / build (push) Successful in 34s

This commit is contained in:
2026-07-08 13:47:19 +08:00
parent 725f1315fd
commit c1e28bb1a3
2 changed files with 35 additions and 9 deletions
+9
View File
@@ -1557,6 +1557,8 @@ function renderSignatures() {
appendSignatureCheck(row, "匹配", signature.sealMatchOK);
}
appendSignatureCheck(row, "证书", signature.certOK);
appendSignaturePolicy(row, "时效", signature.certTimeChecked, signature.certTimeOK);
appendSignaturePolicy(row, "信任", signature.certTrustChecked, signature.certTrustOK);
appendSignatureLine(row, "保护", signatureReferenceText(signature), signatureReferenceStatus(signature));
appendSignatureLine(row, "序号", signature.signSerial);
appendSignatureLine(row, "算法", signature.signatureMethod);
@@ -1676,6 +1678,13 @@ function appendSignatureCheck(row, label, ok) {
appendSignatureLine(row, label, ok ? "通过" : "失败", ok ? "ok" : "fail");
}
function appendSignaturePolicy(row, label, checked, ok) {
if (!checked) {
return;
}
appendSignatureCheck(row, label, ok);
}
async function focusSignatureStamp(stamp) {
const pageIndex = (stamp.page || 0) - 1;
if (!state.doc || pageIndex < 0) {