fix: 修复 Raw tab 发送文件夹名称而非 ID 的 bug
This commit is contained in:
1 parent
fa621af263
commit
be57f96c1d
1 file changed
+5
-4
@@ -1015,7 +1015,7 @@ const cancelZipTask = async (zipTask) => {
|
||||
|
||||
// 运行单个原始文件夹处理
|
||||
const runRawJob = async (row) => {
|
||||
selectedPatientIds.value = [row.folder_name || row.id]
|
||||
selectedPatientIds.value = [row.id]
|
||||
pipelineForm.value.model_path = ''
|
||||
pipelineForm.value.signal_len = 3000
|
||||
pipelineForm.value.stride = 1500
|
||||
@@ -1073,7 +1073,7 @@ const batchDeleteRaw = async () => {
|
||||
try {
|
||||
// 获取选中文件夹的数据库 ID
|
||||
const ids = rawFolders.value
|
||||
.filter(f => selectedRawIds.value.includes(f.folder_name || f.id))
|
||||
.filter(f => selectedRawIds.value.includes(f.id))
|
||||
.map(f => f.id)
|
||||
await api.post('/admin/integration/folders/batch-delete', { folder_ids: ids })
|
||||
ElMessage.success(`成功删除 ${selectedRawIds.value.length} 个文件夹`)
|
||||
@@ -1086,7 +1086,7 @@ const batchDeleteRaw = async () => {
|
||||
|
||||
// 打开分配研究员对话框(单个)
|
||||
const openRawAssign = (row) => {
|
||||
selectedRawIds.value = [row.folder_name || row.id]
|
||||
selectedRawIds.value = [row.id]
|
||||
batchAssignResearcherId.value = row.researcher_id || null
|
||||
batchAssignVisible.value = true
|
||||
}
|
||||
@@ -1103,7 +1103,8 @@ const openRawBatchAssign = () => {
|
||||
|
||||
// 原始数据选择回调
|
||||
const onRawSelectionChange = (selection) => {
|
||||
selectedRawIds.value = selection.map(row => row.folder_name || row.id)
|
||||
// 存储文件夹 ID(数字),而不是名称
|
||||
selectedRawIds.value = selection.map(row => row.id)
|
||||
}
|
||||
|
||||
// 原始数据状态文本
|
||||
|
||||
Reference in new issue
Block a user