配置ui调整

This commit is contained in:
ali
2026-07-29 14:06:23 +08:00
parent 740c42f55c
commit 0d4b855718
+8 -8
View File
@@ -91,7 +91,7 @@
const btn = document.createElement('button');
btn.id = 'mysteel-action-btn';
// 根据页面类型设定按钮文字
btn.innerText = isListPage ? '🚀 批量提取并透视导出' : '📊 导出当日数据(透视版)';
btn.innerText = isListPage ? '🚀 批量提取数据' : '📊 提取当日数据';
Object.assign(btn.style, {
padding: '12px 24px',
@@ -146,7 +146,7 @@
return options.map(opt => {
const isChecked = savedFilters[groupName].includes(opt) ? 'checked' : '';
return `
<label style="display:inline-flex; align-items:center; margin-right:12px; margin-bottom:8px; font-size:13px; cursor:pointer;">
<label style="display:flex; align-items:center; font-size:13px; cursor:pointer;">
<input type="checkbox" name="ms-filter-${groupName}" value="${opt}" style="margin-right:4px;" ${isChecked}> ${opt}
</label>
`;
@@ -156,16 +156,16 @@
panel.innerHTML = `
<div style="font-size:16px; font-weight:bold; margin-bottom:15px; border-bottom:1px solid #eee; padding-bottom:8px;">高级筛选配置</div>
<div style="margin-bottom:12px;">
<div style="font-size:13px; color:#333; font-weight:bold; margin-bottom:6px;">类别:</div>
<div style="display:flex; flex-wrap:wrap;">${buildCheckboxes('names', FILTER_OPTIONS.names)}</div>
<div style="font-size:13px; color:#333; font-weight:bold; margin-bottom:8px;">类别:</div>
<div style="display:grid; grid-template-columns:repeat(5, 1fr); gap:8px 4px;">${buildCheckboxes('names', FILTER_OPTIONS.names)}</div>
</div>
<div style="margin-bottom:12px;">
<div style="font-size:13px; color:#333; font-weight:bold; margin-bottom:6px;">线径:</div>
<div style="display:flex; flex-wrap:wrap;">${buildCheckboxes('specs', FILTER_OPTIONS.specs)}</div>
<div style="font-size:13px; color:#333; font-weight:bold; margin-bottom:8px;">线径:</div>
<div style="display:grid; grid-template-columns:repeat(5, 1fr); gap:8px 4px;">${buildCheckboxes('specs', FILTER_OPTIONS.specs)}</div>
</div>
<div style="margin-bottom:15px;">
<div style="font-size:13px; color:#333; font-weight:bold; margin-bottom:6px;">材质:</div>
<div style="display:flex; flex-wrap:wrap;">${buildCheckboxes('materials', FILTER_OPTIONS.materials)}</div>
<div style="font-size:13px; color:#333; font-weight:bold; margin-bottom:8px;">材质:</div>
<div style="display:grid; grid-template-columns:repeat(4, 1fr); gap:8px 4px;">${buildCheckboxes('materials', FILTER_OPTIONS.materials)}</div>
</div>
<div style="font-size:16px; font-weight:bold; margin-bottom:15px; border-bottom:1px solid #eee; padding-bottom:8px;">导出配置</div>
<div style="margin-bottom:12px; display:flex; gap:10px; align-items:flex-end;">