diff --git a/yudao-ui-admin-vue3/src/views/infra/apiErrorLog/index.vue b/yudao-ui-admin-vue3/src/views/infra/apiErrorLog/index.vue
index 5acccc610..2fffc6efc 100644
--- a/yudao-ui-admin-vue3/src/views/infra/apiErrorLog/index.vue
+++ b/yudao-ui-admin-vue3/src/views/infra/apiErrorLog/index.vue
@@ -8,7 +8,7 @@
type="warning"
preIcon="ep:download"
:title="t('action.export')"
- @click="handleExport()"
+ @click="exportList('错误数据.xls')"
/>
@@ -81,10 +81,7 @@ const handleDetail = (row: ApiErrorLogApi.ApiErrorLogVO) => {
dialogTitle.value = t('action.detail')
dialogVisible.value = true
}
-// 导出
-const handleExport = async () => {
- await exportList('错误数据.xls')
-}
+
// 异常处理操作
const handleProcessClick = (
row: ApiErrorLogApi.ApiErrorLogVO,
diff --git a/yudao-ui-admin-vue3/src/views/infra/codegen/index.vue b/yudao-ui-admin-vue3/src/views/infra/codegen/index.vue
index a4fba2ef3..4e8ef8fa5 100644
--- a/yudao-ui-admin-vue3/src/views/infra/codegen/index.vue
+++ b/yudao-ui-admin-vue3/src/views/infra/codegen/index.vue
@@ -32,7 +32,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['infra:codegen:delete']"
- @click="handleDelete(row.id)"
+ @click="deleteData(row.id)"
/>
-
+
@@ -103,17 +103,10 @@ const handleSynchDb = (row: CodegenTableVO) => {
message.success('同步成功')
})
}
+
// 生成代码操作
const handleGenTable = async (row: CodegenTableVO) => {
const res = await CodegenApi.downloadCodegenApi(row.id)
download.zip(res, 'codegen-' + row.className + '.zip')
}
-// 删除操作
-const handleDelete = async (rowId: number) => {
- await deleteData(rowId)
-}
-// 查询操作
-const handleQuery = async () => {
- await reload()
-}
diff --git a/yudao-ui-admin-vue3/src/views/infra/config/index.vue b/yudao-ui-admin-vue3/src/views/infra/config/index.vue
index 8749568b2..e726ab8d9 100644
--- a/yudao-ui-admin-vue3/src/views/infra/config/index.vue
+++ b/yudao-ui-admin-vue3/src/views/infra/config/index.vue
@@ -17,7 +17,7 @@
preIcon="ep:download"
:title="t('action.export')"
v-hasPermi="['infra:config:export']"
- @click="handleExport()"
+ @click="exportList('配置.xls')"
/>
@@ -43,7 +43,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['infra:config:delete']"
- @click="handleDelete(row.id)"
+ @click="deleteData(row.id)"
/>
@@ -123,11 +123,6 @@ const handleCreate = () => {
setDialogTile('create')
}
-// 导出操作
-const handleExport = async () => {
- await exportList('配置.xls')
-}
-
// 修改操作
const handleUpdate = async (rowId: number) => {
setDialogTile('update')
@@ -143,11 +138,6 @@ const handleDetail = async (rowId: number) => {
detailData.value = res
}
-// 删除操作
-const handleDelete = async (rowId: number) => {
- await deleteData(rowId)
-}
-
// 提交按钮
const submitForm = async () => {
const elForm = unref(formRef)?.getElFormRef()
diff --git a/yudao-ui-admin-vue3/src/views/infra/dataSourceConfig/index.vue b/yudao-ui-admin-vue3/src/views/infra/dataSourceConfig/index.vue
index e23538d4b..0326a386d 100644
--- a/yudao-ui-admin-vue3/src/views/infra/dataSourceConfig/index.vue
+++ b/yudao-ui-admin-vue3/src/views/infra/dataSourceConfig/index.vue
@@ -31,7 +31,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['infra:data-source-config:delete']"
- @click="handleDelete(row.id)"
+ @click="deleteData(row.id)"
/>
@@ -121,11 +121,6 @@ const handleDetail = async (rowId: number) => {
setDialogTile('detail')
}
-// 删除操作
-const handleDelete = async (rowId: number) => {
- await deleteData(rowId)
-}
-
// 提交按钮
const submitForm = async () => {
const elForm = unref(formRef)?.getElFormRef()
diff --git a/yudao-ui-admin-vue3/src/views/infra/fileConfig/index.vue b/yudao-ui-admin-vue3/src/views/infra/fileConfig/index.vue
index 2e982f696..227efab29 100644
--- a/yudao-ui-admin-vue3/src/views/infra/fileConfig/index.vue
+++ b/yudao-ui-admin-vue3/src/views/infra/fileConfig/index.vue
@@ -41,7 +41,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['infra:file-config:delete']"
- @click="handleDelete(row.id)"
+ @click="deleteData(row.id)"
/>
@@ -283,11 +283,6 @@ const handleTest = async (rowId: number) => {
message.alert('测试通过,上传文件成功!访问地址:' + res)
}
-// 删除操作
-const handleDelete = async (rowId: number) => {
- await deleteData(rowId)
-}
-
// 提交按钮
const submitForm = async (formEl: FormInstance | undefined) => {
if (!formEl) return
diff --git a/yudao-ui-admin-vue3/src/views/infra/fileList/index.vue b/yudao-ui-admin-vue3/src/views/infra/fileList/index.vue
index d4ca9e8dd..946c165b7 100644
--- a/yudao-ui-admin-vue3/src/views/infra/fileList/index.vue
+++ b/yudao-ui-admin-vue3/src/views/infra/fileList/index.vue
@@ -21,7 +21,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['infra:file:delete']"
- @click="handleDelete(row.id)"
+ @click="deleteData(row.id)"
/>
@@ -162,11 +162,6 @@ const handleDetail = (row: FileApi.FileVO) => {
dialogVisible.value = true
}
-// 删除操作
-const handleDelete = async (rowId: number) => {
- await deleteData(rowId)
-}
-
// ========== 复制相关 ==========
const handleCopy = async (text: string) => {
const { copy, copied, isSupported } = useClipboard({ source: text })
diff --git a/yudao-ui-admin-vue3/src/views/infra/job/JobLog.vue b/yudao-ui-admin-vue3/src/views/infra/job/JobLog.vue
index 60dacd41b..801b067de 100644
--- a/yudao-ui-admin-vue3/src/views/infra/job/JobLog.vue
+++ b/yudao-ui-admin-vue3/src/views/infra/job/JobLog.vue
@@ -8,7 +8,7 @@
preIcon="ep:download"
:title="t('action.export')"
v-hasPermi="['infra:job:export']"
- @click="handleExport()"
+ @click="exportList('定时任务详情.xls')"
/>
@@ -77,8 +77,4 @@ const handleDetail = async (row: JobLogApi.JobLogVO) => {
dialogTitle.value = t('action.detail')
dialogVisible.value = true
}
-// 导出操作
-const handleExport = async () => {
- await exportList('定时任务详情.xls')
-}
diff --git a/yudao-ui-admin-vue3/src/views/infra/job/index.vue b/yudao-ui-admin-vue3/src/views/infra/job/index.vue
index 3f9c02013..3d788cd2c 100644
--- a/yudao-ui-admin-vue3/src/views/infra/job/index.vue
+++ b/yudao-ui-admin-vue3/src/views/infra/job/index.vue
@@ -17,14 +17,14 @@
preIcon="ep:download"
:title="t('action.export')"
v-hasPermi="['infra:job:export']"
- @click="handleExport()"
+ @click="exportList('定时任务.xls')"
/>
@@ -46,7 +46,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['infra:job:delete']"
- @click="handleDelete(row.id)"
+ @click="deleteData(row.id)"
/>
@@ -179,11 +179,6 @@ const handleCreate = () => {
setDialogTile('create')
}
-// 导出操作
-const handleExport = async () => {
- await exportList('定时任务.xls')
-}
-
// 修改操作
const handleUpdate = async (rowId: number) => {
setDialogTile('update')
@@ -248,10 +243,6 @@ const parseTime = (time) => {
return time_str
}
-// 删除操作
-const handleDelete = async (rowId: number) => {
- await deleteData(rowId)
-}
const handleChangeStatus = async (row: JobApi.JobVO) => {
const text = row.status === InfraJobStatusEnum.STOP ? '开启' : '关闭'
const status =
@@ -275,7 +266,7 @@ const handleChangeStatus = async (row: JobApi.JobVO) => {
})
}
// 执行日志
-const handleJobLog = (rowId: number) => {
+const handleJobLog = (rowId?: number) => {
if (rowId) {
push('/job/job-log?id=' + rowId)
} else {
diff --git a/yudao-ui-admin-vue3/src/views/pay/app/index.vue b/yudao-ui-admin-vue3/src/views/pay/app/index.vue
index 320e453cf..227e3c05d 100644
--- a/yudao-ui-admin-vue3/src/views/pay/app/index.vue
+++ b/yudao-ui-admin-vue3/src/views/pay/app/index.vue
@@ -17,7 +17,7 @@
preIcon="ep:download"
:title="t('action.export')"
v-hasPermi="['pay:app:export']"
- @click="handleExport()"
+ @click="exportList('应用信息.xls')"
/>
@@ -40,7 +40,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['pay:app:delete']"
- @click="handleDelete(row.id)"
+ @click="deleteData(row.id)"
/>
@@ -115,11 +115,6 @@ const handleCreate = () => {
setDialogTile('create')
}
-// 导出操作
-const handleExport = async () => {
- await exportList('应用信息.xls')
-}
-
// 修改操作
const handleUpdate = async (rowId: number) => {
setDialogTile('update')
@@ -135,11 +130,6 @@ const handleDetail = async (rowId: number) => {
detailData.value = res
}
-// 删除操作
-const handleDelete = async (rowId: number) => {
- await deleteData(rowId)
-}
-
// 提交按钮
const submitForm = async () => {
const elForm = unref(formRef)?.getElFormRef()
diff --git a/yudao-ui-admin-vue3/src/views/pay/merchant/index.vue b/yudao-ui-admin-vue3/src/views/pay/merchant/index.vue
index 0b3eef297..18ea70771 100644
--- a/yudao-ui-admin-vue3/src/views/pay/merchant/index.vue
+++ b/yudao-ui-admin-vue3/src/views/pay/merchant/index.vue
@@ -17,7 +17,7 @@
preIcon="ep:download"
:title="t('action.export')"
v-hasPermi="['pay:merchant:export']"
- @click="handleExport()"
+ @click="exportList('商户列表.xls')"
/>
@@ -40,7 +40,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['pay:merchant:delete']"
- @click="handleDelete(row.id)"
+ @click="deleteData(row.id)"
/>
@@ -113,11 +113,6 @@ const handleCreate = () => {
setDialogTile('create')
}
-// 导出操作
-const handleExport = async () => {
- await exportList('商户列表.xls')
-}
-
// 修改操作
const handleUpdate = async (rowId: number) => {
setDialogTile('update')
@@ -133,11 +128,6 @@ const handleDetail = async (rowId: number) => {
detailData.value = res
}
-// 删除操作
-const handleDelete = async (rowId: number) => {
- await deleteData(rowId)
-}
-
// 提交按钮
const submitForm = async () => {
const elForm = unref(formRef)?.getElFormRef()
diff --git a/yudao-ui-admin-vue3/src/views/pay/order/index.vue b/yudao-ui-admin-vue3/src/views/pay/order/index.vue
index 7d3438e86..a0d82a41d 100644
--- a/yudao-ui-admin-vue3/src/views/pay/order/index.vue
+++ b/yudao-ui-admin-vue3/src/views/pay/order/index.vue
@@ -17,7 +17,7 @@
preIcon="ep:download"
:title="t('action.export')"
v-hasPermi="['pay:order:export']"
- @click="handleExport()"
+ @click="exportList('订单数据.xls')"
/>
@@ -72,10 +72,6 @@ const setDialogTile = (type: string) => {
const handleCreate = () => {
setDialogTile('create')
}
-// 导出操作
-const handleExport = async () => {
- await exportList('订单数据.xls')
-}
// 详情操作
const handleDetail = async (rowId: number) => {
diff --git a/yudao-ui-admin-vue3/src/views/pay/refund/index.vue b/yudao-ui-admin-vue3/src/views/pay/refund/index.vue
index fb6ab49fe..94da462b4 100644
--- a/yudao-ui-admin-vue3/src/views/pay/refund/index.vue
+++ b/yudao-ui-admin-vue3/src/views/pay/refund/index.vue
@@ -9,7 +9,7 @@
preIcon="ep:download"
:title="t('action.export')"
v-hasPermi="['pay:refund:export']"
- @click="handleExport()"
+ @click="exportList('退款订单.xls')"
/>
@@ -49,11 +49,6 @@ const [registerTable, { exportList }] = useXTable({
exportListApi: RefundApi.exportRefundApi
})
-// 导出操作
-const handleExport = async () => {
- await exportList('退款订单.xls')
-}
-
// ========== CRUD 相关 ==========
const dialogVisible = ref(false) // 是否显示弹出层
const detailData = ref() // 详情 Ref
diff --git a/yudao-ui-admin-vue3/src/views/system/dept/index.vue b/yudao-ui-admin-vue3/src/views/system/dept/index.vue
index 09eb7d788..f6bd26d2b 100644
--- a/yudao-ui-admin-vue3/src/views/system/dept/index.vue
+++ b/yudao-ui-admin-vue3/src/views/system/dept/index.vue
@@ -30,7 +30,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['system:dept:delete']"
- @click="handleDelete(row.id)"
+ @click="deleteData(row.id)"
/>
@@ -173,11 +173,6 @@ const submitForm = async () => {
})
}
-// 删除操作
-const handleDelete = async (rowId: number) => {
- await deleteData(rowId)
-}
-
const userNicknameFormat = (row) => {
if (!row || !row.leaderUserId) {
return '未设置'
diff --git a/yudao-ui-admin-vue3/src/views/system/dict/index.vue b/yudao-ui-admin-vue3/src/views/system/dict/index.vue
index 82bdb3f01..20dfa8f40 100644
--- a/yudao-ui-admin-vue3/src/views/system/dict/index.vue
+++ b/yudao-ui-admin-vue3/src/views/system/dict/index.vue
@@ -31,7 +31,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['system:dict:delete']"
- @click="handleTypeDelete(row.id)"
+ @click="typeDeleteData(row.id)"
/>
@@ -74,7 +74,7 @@
v-hasPermi="['system:dict:delete']"
preIcon="ep:delete"
:title="t('action.del')"
- @click="handleDataDelete(row.id)"
+ @click="dataDeleteData(row.id)"
/>
@@ -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()
diff --git a/yudao-ui-admin-vue3/src/views/system/errorCode/index.vue b/yudao-ui-admin-vue3/src/views/system/errorCode/index.vue
index 3f4b14e7b..316d26d17 100644
--- a/yudao-ui-admin-vue3/src/views/system/errorCode/index.vue
+++ b/yudao-ui-admin-vue3/src/views/system/errorCode/index.vue
@@ -32,7 +32,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['system:error-code:delete']"
- @click="handleDelete(row.id)"
+ @click="deleteData(row.id)"
/>
@@ -121,11 +121,6 @@ const handleDetail = async (rowId: number) => {
detailData.value = res
}
-// 删除操作
-const handleDelete = async (rowId: number) => {
- await deleteData(rowId)
-}
-
// 提交新增/修改的表单
const submitForm = async () => {
const elForm = unref(formRef)?.getElFormRef()
diff --git a/yudao-ui-admin-vue3/src/views/system/loginlog/index.vue b/yudao-ui-admin-vue3/src/views/system/loginlog/index.vue
index 280a23b17..3872107bb 100644
--- a/yudao-ui-admin-vue3/src/views/system/loginlog/index.vue
+++ b/yudao-ui-admin-vue3/src/views/system/loginlog/index.vue
@@ -8,7 +8,7 @@
type="warning"
preIcon="ep:download"
:title="t('action.export')"
- @click="handleExport()"
+ @click="exportList('登录列表.xls')"
/>
@@ -54,9 +54,4 @@ const handleDetail = async (row: LoginLogVO) => {
detailData.value = row
dialogVisible.value = true
}
-
-// 导出操作
-const handleExport = async () => {
- await exportList('登录列表.xls')
-}
diff --git a/yudao-ui-admin-vue3/src/views/system/menu/index.vue b/yudao-ui-admin-vue3/src/views/system/menu/index.vue
index 6c083f21e..6bdda3176 100644
--- a/yudao-ui-admin-vue3/src/views/system/menu/index.vue
+++ b/yudao-ui-admin-vue3/src/views/system/menu/index.vue
@@ -31,7 +31,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['system:menu:delete']"
- @click="handleDelete(row.id)"
+ @click="deleteData(row.id)"
/>
@@ -334,10 +334,4 @@ const submitForm = async () => {
const isExternal = (path: string) => {
return /^(https?:|mailto:|tel:)/.test(path)
}
-
-// ========== 删除 ==========
-// 删除操作
-const handleDelete = async (rowId: number) => {
- await deleteData(rowId)
-}
diff --git a/yudao-ui-admin-vue3/src/views/system/notice/index.vue b/yudao-ui-admin-vue3/src/views/system/notice/index.vue
index d710d223d..4654b741b 100644
--- a/yudao-ui-admin-vue3/src/views/system/notice/index.vue
+++ b/yudao-ui-admin-vue3/src/views/system/notice/index.vue
@@ -32,7 +32,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['system:notice:delete']"
- @click="handleDelete(row.id)"
+ @click="deleteData(row.id)"
/>
@@ -126,11 +126,6 @@ const handleDetail = async (rowId: number) => {
detailData.value = res
}
-// 删除操作
-const handleDelete = async (rowId: number) => {
- await deleteData(rowId)
-}
-
// 提交新增/修改的表单
const submitForm = async () => {
const elForm = unref(formRef)?.getElFormRef()
diff --git a/yudao-ui-admin-vue3/src/views/system/oauth2/client/index.vue b/yudao-ui-admin-vue3/src/views/system/oauth2/client/index.vue
index 46da66dd1..f9fcabd68 100644
--- a/yudao-ui-admin-vue3/src/views/system/oauth2/client/index.vue
+++ b/yudao-ui-admin-vue3/src/views/system/oauth2/client/index.vue
@@ -48,7 +48,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['system:oauth2-client:delete']"
- @click="handleDelete(row.id)"
+ @click="deleteData(row.id)"
/>
@@ -184,11 +184,6 @@ const handleDetail = async (rowId: number) => {
detailData.value = res
}
-// 删除操作
-const handleDelete = async (rowId: number) => {
- await deleteData(rowId)
-}
-
// 提交新增/修改的表单
const submitForm = async () => {
const elForm = unref(formRef)?.getElFormRef()
diff --git a/yudao-ui-admin-vue3/src/views/system/oauth2/token/index.vue b/yudao-ui-admin-vue3/src/views/system/oauth2/token/index.vue
index c41d14807..9011ac80a 100644
--- a/yudao-ui-admin-vue3/src/views/system/oauth2/token/index.vue
+++ b/yudao-ui-admin-vue3/src/views/system/oauth2/token/index.vue
@@ -5,7 +5,7 @@
-
+
@@ -68,9 +68,4 @@ const handleDetail = (row: OperateLogApi.OperateLogVO) => {
detailData.value = row
dialogVisible.value = true
}
-
-// 导出操作
-const handleExport = async () => {
- await exportList('操作日志.xls')
-}
diff --git a/yudao-ui-admin-vue3/src/views/system/post/index.vue b/yudao-ui-admin-vue3/src/views/system/post/index.vue
index 379ca621d..81594343f 100644
--- a/yudao-ui-admin-vue3/src/views/system/post/index.vue
+++ b/yudao-ui-admin-vue3/src/views/system/post/index.vue
@@ -17,7 +17,7 @@
preIcon="ep:download"
:title="t('action.export')"
v-hasPermi="['system:post:export']"
- @click="handleExport()"
+ @click="exportList('岗位列表.xls')"
/>
@@ -40,7 +40,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['system:post:delete']"
- @click="handleDelete(row.id)"
+ @click="deleteData(row.id)"
/>
@@ -117,11 +117,6 @@ const handleCreate = () => {
modelLoading.value = false
}
-// 导出操作
-const handleExport = async () => {
- await exportList('岗位列表.xls')
-}
-
// 修改操作
const handleUpdate = async (rowId: number) => {
setDialogTile('update')
@@ -139,11 +134,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()
diff --git a/yudao-ui-admin-vue3/src/views/system/role/index.vue b/yudao-ui-admin-vue3/src/views/system/role/index.vue
index 2902cf35a..c9dc24874 100644
--- a/yudao-ui-admin-vue3/src/views/system/role/index.vue
+++ b/yudao-ui-admin-vue3/src/views/system/role/index.vue
@@ -46,7 +46,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['system:role:delete']"
- @click="handleDelete(row.id)"
+ @click="deleteData(row.id)"
/>
@@ -217,11 +217,6 @@ const handleDetail = async (rowId: number) => {
detailData.value = res
}
-// 删除操作
-const handleDelete = async (rowId: number) => {
- await deleteData(rowId)
-}
-
// 提交按钮
const submitForm = async () => {
const elForm = unref(formRef)?.getElFormRef()
diff --git a/yudao-ui-admin-vue3/src/views/system/sensitiveWord/index.vue b/yudao-ui-admin-vue3/src/views/system/sensitiveWord/index.vue
index 290bd857e..77afad482 100644
--- a/yudao-ui-admin-vue3/src/views/system/sensitiveWord/index.vue
+++ b/yudao-ui-admin-vue3/src/views/system/sensitiveWord/index.vue
@@ -17,7 +17,7 @@
preIcon="ep:download"
:title="t('action.export')"
v-hasPermi="['system:sensitive-word:export']"
- @click="handleExport()"
+ @click="exportList('敏感词数据.xls')"
/>
@@ -50,7 +50,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['system:sensitive-word:delete']"
- @click="handleDelete(row.id)"
+ @click="deleteData(row.id)"
/>
@@ -147,11 +147,6 @@ const handleCreate = () => {
setDialogTile('create')
}
-// 导出操作
-const handleExport = async () => {
- await exportList('敏感词数据.xls')
-}
-
// 修改操作
const handleUpdate = async (rowId: number) => {
setDialogTile('update')
@@ -167,11 +162,6 @@ const handleDetail = async (rowId: number) => {
detailData.value = res
}
-// 删除操作
-const handleDelete = async (rowId: number) => {
- await deleteData(rowId)
-}
-
// 提交按钮
const submitForm = async () => {
const elForm = unref(formRef)?.getElFormRef()
diff --git a/yudao-ui-admin-vue3/src/views/system/sms/smsChannel/index.vue b/yudao-ui-admin-vue3/src/views/system/sms/smsChannel/index.vue
index b4871f0f2..0a4bb8bb9 100644
--- a/yudao-ui-admin-vue3/src/views/system/sms/smsChannel/index.vue
+++ b/yudao-ui-admin-vue3/src/views/system/sms/smsChannel/index.vue
@@ -32,7 +32,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['system:sms-channel:delete']"
- @click="handleDelete(row.id)"
+ @click="deleteData(row.id)"
/>
@@ -123,11 +123,6 @@ const handleDetail = async (rowId: number) => {
detailData.value = res
}
-// 删除操作
-const handleDelete = async (rowId: number) => {
- await deleteData(rowId)
-}
-
// 提交按钮
const submitForm = async () => {
const elForm = unref(formRef)?.getElFormRef()
diff --git a/yudao-ui-admin-vue3/src/views/system/sms/smsLog/index.vue b/yudao-ui-admin-vue3/src/views/system/sms/smsLog/index.vue
index 3f81e48af..293dadfe4 100644
--- a/yudao-ui-admin-vue3/src/views/system/sms/smsLog/index.vue
+++ b/yudao-ui-admin-vue3/src/views/system/sms/smsLog/index.vue
@@ -8,7 +8,7 @@
type="warning"
preIcon="ep:download"
:title="t('action.export')"
- @click="handleExport()"
+ @click="exportList('短信日志.xls')"
/>
@@ -57,9 +57,4 @@ const handleDetail = (row: SmsLoglApi.SmsLogVO) => {
detailData.value = row
dialogVisible.value = true
}
-
-// 导出操作
-const handleExport = async () => {
- await exportList('短信日志.xls')
-}
diff --git a/yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/index.vue b/yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/index.vue
index 9b6fe7002..314f392ef 100644
--- a/yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/index.vue
+++ b/yudao-ui-admin-vue3/src/views/system/sms/smsTemplate/index.vue
@@ -38,7 +38,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['system:sms-template:delete']"
- @click="handleDelete(row.id)"
+ @click="deleteData(row.id)"
/>
@@ -166,11 +166,6 @@ const handleDetail = async (rowId: number) => {
detailData.value = res
}
-// 删除操作
-const handleDelete = async (rowId: number) => {
- await deleteData(rowId)
-}
-
// 提交按钮
const submitForm = async () => {
const elForm = unref(formRef)?.getElFormRef()
diff --git a/yudao-ui-admin-vue3/src/views/system/tenant/index.vue b/yudao-ui-admin-vue3/src/views/system/tenant/index.vue
index ebd641bfb..24f3c3781 100644
--- a/yudao-ui-admin-vue3/src/views/system/tenant/index.vue
+++ b/yudao-ui-admin-vue3/src/views/system/tenant/index.vue
@@ -16,7 +16,7 @@
preIcon="ep:download"
:title="t('action.export')"
v-hasPermi="['system:tenant:export']"
- @click="handleExport()"
+ @click="exportList('租户列表.xls')"
/>
@@ -46,7 +46,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['system:tenant:delete']"
- @click="handleDelete(row.id)"
+ @click="deleteData(row.id)"
/>
@@ -149,16 +149,6 @@ const handleDetail = async (rowId: number) => {
setDialogTile('detail')
}
-// 删除操作
-const handleDelete = async (rowId: number) => {
- await deleteData(rowId)
-}
-
-// 导出操作
-const handleExport = async () => {
- await exportList('租户列表.xls')
-}
-
// 提交按钮
const submitForm = async () => {
const elForm = unref(formRef)?.getElFormRef()
diff --git a/yudao-ui-admin-vue3/src/views/system/tenantPackage/index.vue b/yudao-ui-admin-vue3/src/views/system/tenantPackage/index.vue
index de1bdca08..77d3aaa59 100644
--- a/yudao-ui-admin-vue3/src/views/system/tenantPackage/index.vue
+++ b/yudao-ui-admin-vue3/src/views/system/tenantPackage/index.vue
@@ -12,7 +12,7 @@
-
+
@@ -132,11 +132,6 @@ const handleUpdate = async (rowId: number) => {
unref(treeRef)?.setCheckedKeys(res.menuIds)
}
-// 删除操作
-const handleDelete = async (rowId: number) => {
- await deleteData(rowId)
-}
-
// 提交按钮
const submitForm = async () => {
const elForm = unref(formRef)?.getElFormRef()
diff --git a/yudao-ui-admin-vue3/src/views/system/user/index.vue b/yudao-ui-admin-vue3/src/views/system/user/index.vue
index d1b8cc2cb..936a09602 100644
--- a/yudao-ui-admin-vue3/src/views/system/user/index.vue
+++ b/yudao-ui-admin-vue3/src/views/system/user/index.vue
@@ -112,7 +112,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['system:user:delete']"
- @click="handleDelete(row.id)"
+ @click="deleteData(row.id)"
/>
@@ -405,10 +405,7 @@ const handleDetail = async (rowId: number) => {
detailData.value = res
await setDialogTile('detail')
}
-// 删除操作
-const handleDelete = async (rowId: number) => {
- await deleteData(rowId)
-}
+
// 提交按钮
const submitForm = async () => {
loading.value = true