mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-12 04:58:42 +08:00
chore: 优化部分命名
This commit is contained in:
@@ -131,9 +131,9 @@ const reset = () => {
|
||||
}
|
||||
|
||||
// 删除
|
||||
const onDelete = (item: DeptResp) => {
|
||||
return handleDelete(() => deleteDept(item.id), {
|
||||
content: `是否确定删除 [${item.name}]?`,
|
||||
const onDelete = (record: DeptResp) => {
|
||||
return handleDelete(() => deleteDept(record.id), {
|
||||
content: `是否确定删除 [${record.name}]?`,
|
||||
showModal: true
|
||||
})
|
||||
}
|
||||
@@ -150,8 +150,8 @@ const onAdd = (parentId?: string) => {
|
||||
}
|
||||
|
||||
// 修改
|
||||
const onUpdate = (item: DeptResp) => {
|
||||
DeptAddModalRef.value?.onUpdate(item.id)
|
||||
const onUpdate = (record: DeptResp) => {
|
||||
DeptAddModalRef.value?.onUpdate(record.id)
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user