mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-18 13:05:07 +08:00
refactor: vue3 delete function
This commit is contained in:
@ -69,10 +69,6 @@ const excelUploadError = (): void => {
|
||||
const detailRef = ref() // 详情 Ref
|
||||
const dialogVisible = ref(false) // 是否显示弹出层
|
||||
const dialogTitle = ref('') // 弹出层标题
|
||||
// 删除操作
|
||||
const handleDelete = (row: FileVO) => {
|
||||
delList(row.id, false)
|
||||
}
|
||||
// 详情操作
|
||||
const handleDetail = (row: FileVO) => {
|
||||
// 设置数据
|
||||
@ -128,7 +124,7 @@ getList()
|
||||
link
|
||||
type="primary"
|
||||
v-hasPermi="['infra:file:delete']"
|
||||
@click="handleDelete(row)"
|
||||
@click="delList(row.id, false)"
|
||||
>
|
||||
<Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }}
|
||||
</el-button>
|
||||
|
Reference in New Issue
Block a user