This commit is contained in:
qsh
2024-07-02 15:03:33 +08:00
parent c2eac572c0
commit a4c5143ee5
2 changed files with 15 additions and 2 deletions

View File

@@ -269,11 +269,17 @@ async function handleChangeStatus(row) {
// 删除的二次确认
await message.confirm('是否确认修改状态')
// 发起删除
await ClassApi.updateClassTypeStatus(row.typeId, row.status)
await ClassApi.updateClassTypeStatus({
typeId: row.typeId,
status: row.status
})
message.success('修改成功')
// 刷新列表
await getList()
} catch {}
} catch {
// 取消后,进行恢复按钮
row.status = row.status === 1 ? 0 : 1
}
}
const batchStatusDialogShow = ref(false)