fix
Some checks failed
Deploy / deploy (build, debian, 22) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822) (push) Has been cancelled

This commit is contained in:
2026-03-31 02:21:40 -06:00
parent 3c721224c8
commit 85e1681017
9 changed files with 46 additions and 141 deletions

View File

@@ -95,7 +95,8 @@
<ChainModal
v-model:show="chainModal"
:conversation-id="chainConversationId"
:user-id="chainUserId"
:task-id="chainTaskId"
/>
</template>
@@ -147,7 +148,8 @@ const js = computed(() => submission.value.js)
// Modal 状态
const codeModal = ref(false)
const chainModal = ref(false)
const chainConversationId = ref<string | undefined>()
const chainUserId = ref<number>(0)
const chainTaskId = ref<number>(0)
// 展开行
const expandedKeys = ref<string[]>([])
@@ -189,8 +191,9 @@ async function clearAllFlags() {
query.flag = null
}
function showChain(conversationId: string) {
chainConversationId.value = conversationId
function showChain(userId: number, taskId: number) {
chainUserId.value = userId
chainTaskId.value = taskId
chainModal.value = true
}
@@ -206,7 +209,7 @@ const columns: DataTableColumn<SubmissionOut>[] = [
loading: expandedLoading.has(row.id),
onSelect: (id) => getSubmissionByID(id),
onDelete: (r, parentId) => handleDelete(r, parentId),
"onShow-chain": (id) => showChain(id),
"onShow-chain": (userId, taskId) => showChain(userId, taskId),
}),
},
{