| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <x-filament::page>
- <div class="space-y-6">
- <x-filament::section
- heading="说明"
- description="排序:各年级下学期教材(textbooks.semester={{ \App\Services\KnowledgePointQuestionStatsService::textbookSemesterForOrdering() }})章节关联知识点顺序优先,其次 questions 题量升序。tem 列为 questions_tem 中不与正式库同题干重复的数量。"
- :compact="true"
- />
- <x-filament::section heading="数据表" :compact="true">
- <div class="overflow-x-auto rounded-lg border border-gray-200 dark:border-white/10">
- <table class="w-full text-left text-sm">
- <thead class="bg-gray-50 dark:bg-white/5">
- <tr>
- <th class="px-3 py-2 font-medium">知识点 ID</th>
- <th class="px-3 py-2 font-medium">知识点名称</th>
- <th class="px-3 py-2 font-medium text-right">questions</th>
- <th class="px-3 py-2 font-medium text-right">questions_tem(不重复)</th>
- </tr>
- </thead>
- <tbody>
- @forelse ($this->statRows as $r)
- <tr class="border-t border-gray-100 dark:border-white/10" wire:key="kp-stat-{{ $r['kp_code'] }}">
- <td class="px-3 py-2 font-mono text-xs">{{ $r['kp_code'] }}</td>
- <td class="px-3 py-2">{{ $r['kp_name'] !== '' ? $r['kp_name'] : '—' }}</td>
- <td class="px-3 py-2 text-right tabular-nums">{{ $r['questions_count'] }}</td>
- <td class="px-3 py-2 text-right tabular-nums">{{ $r['tem_non_duplicate_count'] }}</td>
- </tr>
- @empty
- <tr>
- <td colspan="4" class="px-3 py-6 text-center text-gray-500">暂无数据(需 questions 或 questions_tem 中有题目)</td>
- </tr>
- @endforelse
- </tbody>
- </table>
- </div>
- </x-filament::section>
- <x-filament::section
- heading="Markdown 全文(直接输出)"
- description="与命令 php artisan stats:kp-questions-md 一致;点击区域可全选复制"
- :compact="true"
- >
- <pre
- class="fi-input max-h-[min(70vh,48rem)] cursor-text overflow-auto whitespace-pre-wrap break-words rounded-lg border border-gray-200 bg-gray-50 p-4 font-mono text-xs leading-relaxed text-gray-900 dark:border-white/10 dark:bg-white/5 dark:text-gray-100"
- tabindex="0"
- onclick="const s=window.getSelection(),r=document.createRange();r.selectNodeContents(this);s.removeAllRanges();s.addRange(r);"
- >{{ $this->markdownExport }}</pre>
- </x-filament::section>
- </div>
- </x-filament::page>
|