fix
This commit is contained in:
@@ -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),
|
||||
}),
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user