|
@@ -17,7 +17,7 @@
|
|
|
preIcon="ep:download"
|
|
|
:title="t('action.export')"
|
|
|
v-hasPermi="['${permissionPrefix}:export']"
|
|
|
- @click="handleExport()"
|
|
|
+ @click="exportList('${table.classComment}.xls')"
|
|
|
/>
|
|
|
</template>
|
|
|
<template #actionbtns_default="{ row }">
|
|
@@ -40,7 +40,7 @@
|
|
|
preIcon="ep:delete"
|
|
|
:title="t('action.del')"
|
|
|
v-hasPermi="['${permissionPrefix}:delete']"
|
|
|
- @click="handleDelete(row.id)"
|
|
|
+ @click="deleteData(row.id)"
|
|
|
/>
|
|
|
</template>
|
|
|
</XTable>
|
|
@@ -119,11 +119,6 @@ const handleCreate = () => {
|
|
|
modelLoading.value = false
|
|
|
}
|
|
|
|
|
|
-// 导出操作
|
|
|
-const handleExport = async () => {
|
|
|
- await exportList('${table.classComment}.xls')
|
|
|
-}
|
|
|
-
|
|
|
// 修改操作
|
|
|
const handleUpdate = async (rowId: number) => {
|
|
|
setDialogTile('update')
|
|
@@ -141,11 +136,6 @@ const handleDetail = async (rowId: number) => {
|
|
|
modelLoading.value = false
|
|
|
}
|
|
|
|
|
|
-// 删除操作
|
|
|
-const handleDelete = async (rowId: number) => {
|
|
|
- await deleteData(rowId)
|
|
|
-}
|
|
|
-
|
|
|
// 提交按钮
|
|
|
const submitForm = async () => {
|
|
|
const elForm = unref(formRef)?.getElFormRef()
|