乐东黎族自治县黄流镇中心学校

教师绩效工资分配表

未锁定
管理面板 未登录 本地模式
资金来源与基数配置 计算面板 · 不参与打印
特殊教师基数配置 — 手动填写基数的教师,按「增加」按钮添加,其姓名在表格中呈灰色
教师绩效明细表 打印区域
点击列标题可编辑列名
// ==================== COLUMN RESIZE ==================== let resizeState = null; function initColumnResize() { document.querySelectorAll('#mainTable th').forEach(function(th) { // Only add resizer to dynamic columns (补助列) and fixed data columns // Remove existing resizer first var old = th.querySelector('.col-resizer'); if (old) old.remove(); var resizer = document.createElement('div'); resizer.className = 'col-resizer'; th.appendChild(resizer); resizer.addEventListener('mousedown', function(e) { e.preventDefault(); e.stopPropagation(); resizeState = { th: th, startX: e.clientX, startWidth: th.offsetWidth, }; resizer.classList.add('resizing'); document.body.style.cursor = 'col-resize'; document.body.style.userSelect = 'none'; }); }); } document.addEventListener('mousemove', function(e) { if (!resizeState) return; var diff = e.clientX - resizeState.startX; var newWidth = Math.max(40, resizeState.startWidth + diff); resizeState.th.style.width = newWidth + 'px'; resizeState.th.style.minWidth = newWidth + 'px'; // Also set width on corresponding td in tbody var thIndex = Array.prototype.indexOf.call(resizeState.th.parentNode.children, resizeState.th); document.querySelectorAll('#mainTable tbody tr').forEach(function(tr) { var td = tr.children[thIndex]; if (td) { td.style.width = newWidth + 'px'; td.style.minWidth = newWidth + 'px'; } }); }); document.addEventListener('mouseup', function() { if (resizeState) { resizeState.th.querySelector('.col-resizer').classList.remove('resizing'); document.body.style.cursor = ''; document.body.style.userSelect = ''; resizeState = null; } }); // Override renderTable to also call initColumnResize var _origRenderTable = renderTable; renderTable = function() { _origRenderTable(); initColumnResize(); };