perf: 优化代码

This commit is contained in:
xingyu
2023-01-04 16:33:51 +08:00
parent e63e5ffe4c
commit ed7e3338f8
30 changed files with 44 additions and 224 deletions

View File

@@ -31,7 +31,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['system:dict:delete']"
@click="handleTypeDelete(row.id)"
@click="typeDeleteData(row.id)"
/>
</template>
</XTable>
@@ -74,7 +74,7 @@
v-hasPermi="['system:dict:delete']"
preIcon="ep:delete"
:title="t('action.del')"
@click="handleDataDelete(row.id)"
@click="dataDeleteData(row.id)"
/>
</template>
</XTable>
@@ -202,15 +202,6 @@ const setDialogTile = (type: string) => {
dialogVisible.value = true
}
// 删除操作
const handleTypeDelete = async (rowId: number) => {
await typeDeleteData(rowId)
}
const handleDataDelete = async (rowId: number) => {
await dataDeleteData(rowId)
}
// 提交按钮
const submitTypeForm = async () => {
const elForm = unref(typeFormRef)?.getElFormRef()