Commit 050498a55a6dfc0a999c7246dfbd872bbf401554
1 parent
ed7e3338
perf: vue3 代码生成
Showing
1 changed file
with
2 additions
and
12 deletions
yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm
| ... | ... | @@ -17,7 +17,7 @@ |
| 17 | 17 | preIcon="ep:download" |
| 18 | 18 | :title="t('action.export')" |
| 19 | 19 | v-hasPermi="['${permissionPrefix}:export']" |
| 20 | - @click="handleExport()" | |
| 20 | + @click="exportList('${table.classComment}.xls')" | |
| 21 | 21 | /> |
| 22 | 22 | </template> |
| 23 | 23 | <template #actionbtns_default="{ row }"> |
| ... | ... | @@ -40,7 +40,7 @@ |
| 40 | 40 | preIcon="ep:delete" |
| 41 | 41 | :title="t('action.del')" |
| 42 | 42 | v-hasPermi="['${permissionPrefix}:delete']" |
| 43 | - @click="handleDelete(row.id)" | |
| 43 | + @click="deleteData(row.id)" | |
| 44 | 44 | /> |
| 45 | 45 | </template> |
| 46 | 46 | </XTable> |
| ... | ... | @@ -119,11 +119,6 @@ const handleCreate = () => { |
| 119 | 119 | modelLoading.value = false |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | -// 导出操作 | |
| 123 | -const handleExport = async () => { | |
| 124 | - await exportList('${table.classComment}.xls') | |
| 125 | -} | |
| 126 | - | |
| 127 | 122 | // 修改操作 |
| 128 | 123 | const handleUpdate = async (rowId: number) => { |
| 129 | 124 | setDialogTile('update') |
| ... | ... | @@ -141,11 +136,6 @@ const handleDetail = async (rowId: number) => { |
| 141 | 136 | modelLoading.value = false |
| 142 | 137 | } |
| 143 | 138 | |
| 144 | -// 删除操作 | |
| 145 | -const handleDelete = async (rowId: number) => { | |
| 146 | - await deleteData(rowId) | |
| 147 | -} | |
| 148 | - | |
| 149 | 139 | // 提交按钮 |
| 150 | 140 | const submitForm = async () => { |
| 151 | 141 | const elForm = unref(formRef)?.getElFormRef() | ... | ... |