refactor: vue3 delete function

This commit is contained in:
xingyu
2022-07-28 15:56:38 +08:00
parent ee6317e906
commit b167f54813
26 changed files with 45 additions and 147 deletions

View File

@ -26,11 +26,6 @@ const handleExport = async () => {
const dialogVisible = ref(false) // 是否显示弹出层
const dialogTitle = ref('edit') // 弹出层标题
// 删除操作
const handleDelete = (row: RefundVO) => {
delList(row.id, false)
}
// ========== 详情相关 ==========
const detailRef = ref() // 详情 Ref
@ -95,7 +90,7 @@ getList()
link
type="primary"
v-hasPermi="['system:post:delete']"
@click="handleDelete(row)"
@click="delList(row.id, false)"
>
<Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }}
</el-button>