mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 01:01:52 +08:00
perf: vue3 代码生成
This commit is contained in:
parent
ed7e3338f8
commit
050498a55a
@ -17,7 +17,7 @@
|
|||||||
preIcon="ep:download"
|
preIcon="ep:download"
|
||||||
:title="t('action.export')"
|
:title="t('action.export')"
|
||||||
v-hasPermi="['${permissionPrefix}:export']"
|
v-hasPermi="['${permissionPrefix}:export']"
|
||||||
@click="handleExport()"
|
@click="exportList('${table.classComment}.xls')"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template #actionbtns_default="{ row }">
|
<template #actionbtns_default="{ row }">
|
||||||
@ -40,7 +40,7 @@
|
|||||||
preIcon="ep:delete"
|
preIcon="ep:delete"
|
||||||
:title="t('action.del')"
|
:title="t('action.del')"
|
||||||
v-hasPermi="['${permissionPrefix}:delete']"
|
v-hasPermi="['${permissionPrefix}:delete']"
|
||||||
@click="handleDelete(row.id)"
|
@click="deleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XTable>
|
</XTable>
|
||||||
@ -119,11 +119,6 @@ const handleCreate = () => {
|
|||||||
modelLoading.value = false
|
modelLoading.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
// 导出操作
|
|
||||||
const handleExport = async () => {
|
|
||||||
await exportList('${table.classComment}.xls')
|
|
||||||
}
|
|
||||||
|
|
||||||
// 修改操作
|
// 修改操作
|
||||||
const handleUpdate = async (rowId: number) => {
|
const handleUpdate = async (rowId: number) => {
|
||||||
setDialogTile('update')
|
setDialogTile('update')
|
||||||
@ -141,11 +136,6 @@ const handleDetail = async (rowId: number) => {
|
|||||||
modelLoading.value = false
|
modelLoading.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除操作
|
|
||||||
const handleDelete = async (rowId: number) => {
|
|
||||||
await deleteData(rowId)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
const submitForm = async () => {
|
const submitForm = async () => {
|
||||||
const elForm = unref(formRef)?.getElFormRef()
|
const elForm = unref(formRef)?.getElFormRef()
|
||||||
|
Loading…
Reference in New Issue
Block a user