feat(license): 支持授权文件导入并固定生产公钥指纹校验

This commit is contained in:
lianjianwei2024
2026-10-12 17:23:40 +08:00
parent fb1875e8b2
commit 7fb7969a2f
9 changed files with 498 additions and 12 deletions

View File

@@ -464,7 +464,7 @@ body.grptree-dragging{cursor:col-resize !important;user-select:none}
</div>
</div>
<script src="common.js?v=20261011f"></script>
<script src="common.js?v=20261012a"></script>
<script src="period.js"></script>
<script>
let SID=0, CUR=null, CURTYPE='lme', HROWS=[];
@@ -1424,6 +1424,26 @@ function setStop(){
if(kwActive()) return;
clearTimeout(_stopT); _stopT=setTimeout(search, 250);
}
/* 筛选栏输入框右缘小叉(2026-10-12 主人定):有值才显示,点一下清空并触发该框自己的联动;
视觉复用 comboFree 的 .combo/.combo-x(common.css 统一样式)。仅历史对比筛选栏用。 */
function filterInputX(inp, onClear){
if (inp._fx) return;
const wrap = document.createElement('span');
wrap.className = 'combo'; wrap.dataset.for = inp.id || '';
inp.parentNode.insertBefore(wrap, inp);
wrap.append(inp);
wrap.style.width = getComputedStyle(inp).width; // 包裹层占位原宽(工具条上的固定宽框)
inp.style.width = '100%';
const clr = document.createElement('span');
clr.className = 'combo-x'; clr.textContent = '×'; clr.title = '清空';
clr.style.display = 'none';
wrap.append(clr);
const sync = () => { clr.style.display = inp.value ? 'block' : 'none'; };
inp.addEventListener('input', sync);
clr.onclick = () => { inp.value = ''; sync(); onClear(); inp.focus(); };
inp._fx = true;
sync();
}
/* 分页(2026-10-08 主人定):检索每次 500 条,下一页=再取后 500;上一页/下一页在工具条最右,
仅检索模式显示。HPAGE 跨页保持,重新「查询」/清空关键词/重置都回第 1 页。 */
let HPAGE=1;
@@ -1474,6 +1494,11 @@ comboFree($('funit'), ()=> (curTab()==='p0' ? window.__ORG_OPTS : window.__BU_OP
$('funit').style.padding='3px 22px 3px 8px'; // 工具条控件更矮(盖掉 comboFree 默认内边距)
$('fpmin').addEventListener('input', setPrc); // 价格范围:输入即查(防抖在 setPrc)
$('fpmax').addEventListener('input', setPrc);
// 筛选栏输入框右缘小叉(2026-10-12 主人定):搜索/屏蔽词/价格范围四框;单位框 comboFree 自带
filterInputX($('hkw'), () => setKw($('hkw').value));
filterInputX($('fstop'), () => setStop());
filterInputX($('fpmin'), () => setPrc());
filterInputX($('fpmax'), () => setPrc());
$('hatt').addEventListener('change', setAtt); // 附件 全部/有/无
mkPeriod($('hperBtn'), ()=>{ updPerBtn(); if(!kwActive()) search(); }); // 期次:选完更新按钮文案;无关键字即查
mkPeriod($('oper')); // 打开工程:基准期次(起~止,同月填一样)