This commit is contained in:
qsh
2024-07-01 14:49:13 +08:00
parent 6a414d07df
commit ac0c15a1a2
4 changed files with 18 additions and 6 deletions

View File

@@ -140,7 +140,8 @@ async function changeStatus(row) {
const text = row.status === CommonStatusEnum.ENABLE ? '启用' : '停用'
await message.confirm('确认要"' + text + '""' + row.schoolName + '"驾校吗?')
// 发起修改状态
await api.updateSchoolStatus(row.id, row.status)
await api.updateSchoolStatus(row.schoolId, row.status)
message.success('修改成功')
// 刷新列表
await getList()
} catch {