mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 17:21:53 +08:00
perf: 优化代码
This commit is contained in:
parent
e63e5ffe4c
commit
ed7e3338f8
@ -8,7 +8,7 @@
|
|||||||
type="warning"
|
type="warning"
|
||||||
preIcon="ep:download"
|
preIcon="ep:download"
|
||||||
:title="t('action.export')"
|
:title="t('action.export')"
|
||||||
@click="handleExport()"
|
@click="exportList('错误数据.xls')"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template #duration_default="{ row }">
|
<template #duration_default="{ row }">
|
||||||
@ -81,10 +81,7 @@ const handleDetail = (row: ApiErrorLogApi.ApiErrorLogVO) => {
|
|||||||
dialogTitle.value = t('action.detail')
|
dialogTitle.value = t('action.detail')
|
||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
}
|
}
|
||||||
// 导出
|
|
||||||
const handleExport = async () => {
|
|
||||||
await exportList('错误数据.xls')
|
|
||||||
}
|
|
||||||
// 异常处理操作
|
// 异常处理操作
|
||||||
const handleProcessClick = (
|
const handleProcessClick = (
|
||||||
row: ApiErrorLogApi.ApiErrorLogVO,
|
row: ApiErrorLogApi.ApiErrorLogVO,
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
preIcon="ep:delete"
|
preIcon="ep:delete"
|
||||||
:title="t('action.del')"
|
:title="t('action.del')"
|
||||||
v-hasPermi="['infra:codegen:delete']"
|
v-hasPermi="['infra:codegen:delete']"
|
||||||
@click="handleDelete(row.id)"
|
@click="deleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
<!-- 操作:同步 -->
|
<!-- 操作:同步 -->
|
||||||
<XTextButton
|
<XTextButton
|
||||||
@ -52,7 +52,7 @@
|
|||||||
</XTable>
|
</XTable>
|
||||||
</ContentWrap>
|
</ContentWrap>
|
||||||
<!-- 弹窗:导入表 -->
|
<!-- 弹窗:导入表 -->
|
||||||
<ImportTable ref="importRef" @ok="handleQuery()" />
|
<ImportTable ref="importRef" @ok="reload()" />
|
||||||
<!-- 弹窗:预览代码 -->
|
<!-- 弹窗:预览代码 -->
|
||||||
<Preview ref="previewRef" />
|
<Preview ref="previewRef" />
|
||||||
</template>
|
</template>
|
||||||
@ -103,17 +103,10 @@ const handleSynchDb = (row: CodegenTableVO) => {
|
|||||||
message.success('同步成功')
|
message.success('同步成功')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 生成代码操作
|
// 生成代码操作
|
||||||
const handleGenTable = async (row: CodegenTableVO) => {
|
const handleGenTable = async (row: CodegenTableVO) => {
|
||||||
const res = await CodegenApi.downloadCodegenApi(row.id)
|
const res = await CodegenApi.downloadCodegenApi(row.id)
|
||||||
download.zip(res, 'codegen-' + row.className + '.zip')
|
download.zip(res, 'codegen-' + row.className + '.zip')
|
||||||
}
|
}
|
||||||
// 删除操作
|
|
||||||
const handleDelete = async (rowId: number) => {
|
|
||||||
await deleteData(rowId)
|
|
||||||
}
|
|
||||||
// 查询操作
|
|
||||||
const handleQuery = async () => {
|
|
||||||
await reload()
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
preIcon="ep:download"
|
preIcon="ep:download"
|
||||||
:title="t('action.export')"
|
:title="t('action.export')"
|
||||||
v-hasPermi="['infra:config:export']"
|
v-hasPermi="['infra:config:export']"
|
||||||
@click="handleExport()"
|
@click="exportList('配置.xls')"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template #visible_default="{ row }">
|
<template #visible_default="{ row }">
|
||||||
@ -43,7 +43,7 @@
|
|||||||
preIcon="ep:delete"
|
preIcon="ep:delete"
|
||||||
:title="t('action.del')"
|
:title="t('action.del')"
|
||||||
v-hasPermi="['infra:config:delete']"
|
v-hasPermi="['infra:config:delete']"
|
||||||
@click="handleDelete(row.id)"
|
@click="deleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XTable>
|
</XTable>
|
||||||
@ -123,11 +123,6 @@ const handleCreate = () => {
|
|||||||
setDialogTile('create')
|
setDialogTile('create')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 导出操作
|
|
||||||
const handleExport = async () => {
|
|
||||||
await exportList('配置.xls')
|
|
||||||
}
|
|
||||||
|
|
||||||
// 修改操作
|
// 修改操作
|
||||||
const handleUpdate = async (rowId: number) => {
|
const handleUpdate = async (rowId: number) => {
|
||||||
setDialogTile('update')
|
setDialogTile('update')
|
||||||
@ -143,11 +138,6 @@ const handleDetail = async (rowId: number) => {
|
|||||||
detailData.value = res
|
detailData.value = res
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除操作
|
|
||||||
const handleDelete = async (rowId: number) => {
|
|
||||||
await deleteData(rowId)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
const submitForm = async () => {
|
const submitForm = async () => {
|
||||||
const elForm = unref(formRef)?.getElFormRef()
|
const elForm = unref(formRef)?.getElFormRef()
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
preIcon="ep:delete"
|
preIcon="ep:delete"
|
||||||
:title="t('action.del')"
|
:title="t('action.del')"
|
||||||
v-hasPermi="['infra:data-source-config:delete']"
|
v-hasPermi="['infra:data-source-config:delete']"
|
||||||
@click="handleDelete(row.id)"
|
@click="deleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XTable>
|
</XTable>
|
||||||
@ -121,11 +121,6 @@ const handleDetail = async (rowId: number) => {
|
|||||||
setDialogTile('detail')
|
setDialogTile('detail')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除操作
|
|
||||||
const handleDelete = async (rowId: number) => {
|
|
||||||
await deleteData(rowId)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
const submitForm = async () => {
|
const submitForm = async () => {
|
||||||
const elForm = unref(formRef)?.getElFormRef()
|
const elForm = unref(formRef)?.getElFormRef()
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
preIcon="ep:delete"
|
preIcon="ep:delete"
|
||||||
:title="t('action.del')"
|
:title="t('action.del')"
|
||||||
v-hasPermi="['infra:file-config:delete']"
|
v-hasPermi="['infra:file-config:delete']"
|
||||||
@click="handleDelete(row.id)"
|
@click="deleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XTable>
|
</XTable>
|
||||||
@ -283,11 +283,6 @@ const handleTest = async (rowId: number) => {
|
|||||||
message.alert('测试通过,上传文件成功!访问地址:' + res)
|
message.alert('测试通过,上传文件成功!访问地址:' + res)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除操作
|
|
||||||
const handleDelete = async (rowId: number) => {
|
|
||||||
await deleteData(rowId)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
const submitForm = async (formEl: FormInstance | undefined) => {
|
const submitForm = async (formEl: FormInstance | undefined) => {
|
||||||
if (!formEl) return
|
if (!formEl) return
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
preIcon="ep:delete"
|
preIcon="ep:delete"
|
||||||
:title="t('action.del')"
|
:title="t('action.del')"
|
||||||
v-hasPermi="['infra:file:delete']"
|
v-hasPermi="['infra:file:delete']"
|
||||||
@click="handleDelete(row.id)"
|
@click="deleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XTable>
|
</XTable>
|
||||||
@ -162,11 +162,6 @@ const handleDetail = (row: FileApi.FileVO) => {
|
|||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除操作
|
|
||||||
const handleDelete = async (rowId: number) => {
|
|
||||||
await deleteData(rowId)
|
|
||||||
}
|
|
||||||
|
|
||||||
// ========== 复制相关 ==========
|
// ========== 复制相关 ==========
|
||||||
const handleCopy = async (text: string) => {
|
const handleCopy = async (text: string) => {
|
||||||
const { copy, copied, isSupported } = useClipboard({ source: text })
|
const { copy, copied, isSupported } = useClipboard({ source: text })
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
preIcon="ep:download"
|
preIcon="ep:download"
|
||||||
:title="t('action.export')"
|
:title="t('action.export')"
|
||||||
v-hasPermi="['infra:job:export']"
|
v-hasPermi="['infra:job:export']"
|
||||||
@click="handleExport()"
|
@click="exportList('定时任务详情.xls')"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template #beginTime_default="{ row }">
|
<template #beginTime_default="{ row }">
|
||||||
@ -77,8 +77,4 @@ const handleDetail = async (row: JobLogApi.JobLogVO) => {
|
|||||||
dialogTitle.value = t('action.detail')
|
dialogTitle.value = t('action.detail')
|
||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
}
|
}
|
||||||
// 导出操作
|
|
||||||
const handleExport = async () => {
|
|
||||||
await exportList('定时任务详情.xls')
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -17,14 +17,14 @@
|
|||||||
preIcon="ep:download"
|
preIcon="ep:download"
|
||||||
:title="t('action.export')"
|
:title="t('action.export')"
|
||||||
v-hasPermi="['infra:job:export']"
|
v-hasPermi="['infra:job:export']"
|
||||||
@click="handleExport()"
|
@click="exportList('定时任务.xls')"
|
||||||
/>
|
/>
|
||||||
<XButton
|
<XButton
|
||||||
type="info"
|
type="info"
|
||||||
preIcon="ep:zoom-in"
|
preIcon="ep:zoom-in"
|
||||||
title="执行日志"
|
title="执行日志"
|
||||||
v-hasPermi="['infra:job:query']"
|
v-hasPermi="['infra:job:query']"
|
||||||
@click="handleJobLog"
|
@click="handleJobLog()"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template #actionbtns_default="{ row }">
|
<template #actionbtns_default="{ row }">
|
||||||
@ -46,7 +46,7 @@
|
|||||||
preIcon="ep:delete"
|
preIcon="ep:delete"
|
||||||
:title="t('action.del')"
|
:title="t('action.del')"
|
||||||
v-hasPermi="['infra:job:delete']"
|
v-hasPermi="['infra:job:delete']"
|
||||||
@click="handleDelete(row.id)"
|
@click="deleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
<el-dropdown class="p-0.5" v-hasPermi="['infra:job:trigger', 'infra:job:query']">
|
<el-dropdown class="p-0.5" v-hasPermi="['infra:job:trigger', 'infra:job:query']">
|
||||||
<XTextButton :title="t('action.more')" postIcon="ep:arrow-down" />
|
<XTextButton :title="t('action.more')" postIcon="ep:arrow-down" />
|
||||||
@ -179,11 +179,6 @@ const handleCreate = () => {
|
|||||||
setDialogTile('create')
|
setDialogTile('create')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 导出操作
|
|
||||||
const handleExport = async () => {
|
|
||||||
await exportList('定时任务.xls')
|
|
||||||
}
|
|
||||||
|
|
||||||
// 修改操作
|
// 修改操作
|
||||||
const handleUpdate = async (rowId: number) => {
|
const handleUpdate = async (rowId: number) => {
|
||||||
setDialogTile('update')
|
setDialogTile('update')
|
||||||
@ -248,10 +243,6 @@ const parseTime = (time) => {
|
|||||||
return time_str
|
return time_str
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除操作
|
|
||||||
const handleDelete = async (rowId: number) => {
|
|
||||||
await deleteData(rowId)
|
|
||||||
}
|
|
||||||
const handleChangeStatus = async (row: JobApi.JobVO) => {
|
const handleChangeStatus = async (row: JobApi.JobVO) => {
|
||||||
const text = row.status === InfraJobStatusEnum.STOP ? '开启' : '关闭'
|
const text = row.status === InfraJobStatusEnum.STOP ? '开启' : '关闭'
|
||||||
const status =
|
const status =
|
||||||
@ -275,7 +266,7 @@ const handleChangeStatus = async (row: JobApi.JobVO) => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
// 执行日志
|
// 执行日志
|
||||||
const handleJobLog = (rowId: number) => {
|
const handleJobLog = (rowId?: number) => {
|
||||||
if (rowId) {
|
if (rowId) {
|
||||||
push('/job/job-log?id=' + rowId)
|
push('/job/job-log?id=' + rowId)
|
||||||
} else {
|
} else {
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
preIcon="ep:download"
|
preIcon="ep:download"
|
||||||
:title="t('action.export')"
|
:title="t('action.export')"
|
||||||
v-hasPermi="['pay:app:export']"
|
v-hasPermi="['pay:app:export']"
|
||||||
@click="handleExport()"
|
@click="exportList('应用信息.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="['pay:app:delete']"
|
v-hasPermi="['pay:app:delete']"
|
||||||
@click="handleDelete(row.id)"
|
@click="deleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XTable>
|
</XTable>
|
||||||
@ -115,11 +115,6 @@ const handleCreate = () => {
|
|||||||
setDialogTile('create')
|
setDialogTile('create')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 导出操作
|
|
||||||
const handleExport = async () => {
|
|
||||||
await exportList('应用信息.xls')
|
|
||||||
}
|
|
||||||
|
|
||||||
// 修改操作
|
// 修改操作
|
||||||
const handleUpdate = async (rowId: number) => {
|
const handleUpdate = async (rowId: number) => {
|
||||||
setDialogTile('update')
|
setDialogTile('update')
|
||||||
@ -135,11 +130,6 @@ const handleDetail = async (rowId: number) => {
|
|||||||
detailData.value = res
|
detailData.value = res
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除操作
|
|
||||||
const handleDelete = async (rowId: number) => {
|
|
||||||
await deleteData(rowId)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
const submitForm = async () => {
|
const submitForm = async () => {
|
||||||
const elForm = unref(formRef)?.getElFormRef()
|
const elForm = unref(formRef)?.getElFormRef()
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
preIcon="ep:download"
|
preIcon="ep:download"
|
||||||
:title="t('action.export')"
|
:title="t('action.export')"
|
||||||
v-hasPermi="['pay:merchant:export']"
|
v-hasPermi="['pay:merchant:export']"
|
||||||
@click="handleExport()"
|
@click="exportList('商户列表.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="['pay:merchant:delete']"
|
v-hasPermi="['pay:merchant:delete']"
|
||||||
@click="handleDelete(row.id)"
|
@click="deleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XTable>
|
</XTable>
|
||||||
@ -113,11 +113,6 @@ const handleCreate = () => {
|
|||||||
setDialogTile('create')
|
setDialogTile('create')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 导出操作
|
|
||||||
const handleExport = async () => {
|
|
||||||
await exportList('商户列表.xls')
|
|
||||||
}
|
|
||||||
|
|
||||||
// 修改操作
|
// 修改操作
|
||||||
const handleUpdate = async (rowId: number) => {
|
const handleUpdate = async (rowId: number) => {
|
||||||
setDialogTile('update')
|
setDialogTile('update')
|
||||||
@ -133,11 +128,6 @@ const handleDetail = async (rowId: number) => {
|
|||||||
detailData.value = res
|
detailData.value = res
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除操作
|
|
||||||
const handleDelete = async (rowId: number) => {
|
|
||||||
await deleteData(rowId)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
const submitForm = async () => {
|
const submitForm = async () => {
|
||||||
const elForm = unref(formRef)?.getElFormRef()
|
const elForm = unref(formRef)?.getElFormRef()
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
preIcon="ep:download"
|
preIcon="ep:download"
|
||||||
:title="t('action.export')"
|
:title="t('action.export')"
|
||||||
v-hasPermi="['pay:order:export']"
|
v-hasPermi="['pay:order:export']"
|
||||||
@click="handleExport()"
|
@click="exportList('订单数据.xls')"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template #actionbtns_default="{ row }">
|
<template #actionbtns_default="{ row }">
|
||||||
@ -72,10 +72,6 @@ const setDialogTile = (type: string) => {
|
|||||||
const handleCreate = () => {
|
const handleCreate = () => {
|
||||||
setDialogTile('create')
|
setDialogTile('create')
|
||||||
}
|
}
|
||||||
// 导出操作
|
|
||||||
const handleExport = async () => {
|
|
||||||
await exportList('订单数据.xls')
|
|
||||||
}
|
|
||||||
|
|
||||||
// 详情操作
|
// 详情操作
|
||||||
const handleDetail = async (rowId: number) => {
|
const handleDetail = async (rowId: number) => {
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
preIcon="ep:download"
|
preIcon="ep:download"
|
||||||
:title="t('action.export')"
|
:title="t('action.export')"
|
||||||
v-hasPermi="['pay:refund:export']"
|
v-hasPermi="['pay:refund:export']"
|
||||||
@click="handleExport()"
|
@click="exportList('退款订单.xls')"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template #actionbtns_default="{ row }">
|
<template #actionbtns_default="{ row }">
|
||||||
@ -49,11 +49,6 @@ const [registerTable, { exportList }] = useXTable({
|
|||||||
exportListApi: RefundApi.exportRefundApi
|
exportListApi: RefundApi.exportRefundApi
|
||||||
})
|
})
|
||||||
|
|
||||||
// 导出操作
|
|
||||||
const handleExport = async () => {
|
|
||||||
await exportList('退款订单.xls')
|
|
||||||
}
|
|
||||||
|
|
||||||
// ========== CRUD 相关 ==========
|
// ========== CRUD 相关 ==========
|
||||||
const dialogVisible = ref(false) // 是否显示弹出层
|
const dialogVisible = ref(false) // 是否显示弹出层
|
||||||
const detailData = ref() // 详情 Ref
|
const detailData = ref() // 详情 Ref
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
preIcon="ep:delete"
|
preIcon="ep:delete"
|
||||||
:title="t('action.del')"
|
:title="t('action.del')"
|
||||||
v-hasPermi="['system:dept:delete']"
|
v-hasPermi="['system:dept:delete']"
|
||||||
@click="handleDelete(row.id)"
|
@click="deleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XTable>
|
</XTable>
|
||||||
@ -173,11 +173,6 @@ const submitForm = async () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除操作
|
|
||||||
const handleDelete = async (rowId: number) => {
|
|
||||||
await deleteData(rowId)
|
|
||||||
}
|
|
||||||
|
|
||||||
const userNicknameFormat = (row) => {
|
const userNicknameFormat = (row) => {
|
||||||
if (!row || !row.leaderUserId) {
|
if (!row || !row.leaderUserId) {
|
||||||
return '未设置'
|
return '未设置'
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
preIcon="ep:delete"
|
preIcon="ep:delete"
|
||||||
:title="t('action.del')"
|
:title="t('action.del')"
|
||||||
v-hasPermi="['system:dict:delete']"
|
v-hasPermi="['system:dict:delete']"
|
||||||
@click="handleTypeDelete(row.id)"
|
@click="typeDeleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XTable>
|
</XTable>
|
||||||
@ -74,7 +74,7 @@
|
|||||||
v-hasPermi="['system:dict:delete']"
|
v-hasPermi="['system:dict:delete']"
|
||||||
preIcon="ep:delete"
|
preIcon="ep:delete"
|
||||||
:title="t('action.del')"
|
:title="t('action.del')"
|
||||||
@click="handleDataDelete(row.id)"
|
@click="dataDeleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XTable>
|
</XTable>
|
||||||
@ -202,15 +202,6 @@ const setDialogTile = (type: string) => {
|
|||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除操作
|
|
||||||
const handleTypeDelete = async (rowId: number) => {
|
|
||||||
await typeDeleteData(rowId)
|
|
||||||
}
|
|
||||||
|
|
||||||
const handleDataDelete = async (rowId: number) => {
|
|
||||||
await dataDeleteData(rowId)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
const submitTypeForm = async () => {
|
const submitTypeForm = async () => {
|
||||||
const elForm = unref(typeFormRef)?.getElFormRef()
|
const elForm = unref(typeFormRef)?.getElFormRef()
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
preIcon="ep:delete"
|
preIcon="ep:delete"
|
||||||
:title="t('action.del')"
|
:title="t('action.del')"
|
||||||
v-hasPermi="['system:error-code:delete']"
|
v-hasPermi="['system:error-code:delete']"
|
||||||
@click="handleDelete(row.id)"
|
@click="deleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XTable>
|
</XTable>
|
||||||
@ -121,11 +121,6 @@ const handleDetail = async (rowId: number) => {
|
|||||||
detailData.value = res
|
detailData.value = res
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除操作
|
|
||||||
const handleDelete = async (rowId: number) => {
|
|
||||||
await deleteData(rowId)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 提交新增/修改的表单
|
// 提交新增/修改的表单
|
||||||
const submitForm = async () => {
|
const submitForm = async () => {
|
||||||
const elForm = unref(formRef)?.getElFormRef()
|
const elForm = unref(formRef)?.getElFormRef()
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
type="warning"
|
type="warning"
|
||||||
preIcon="ep:download"
|
preIcon="ep:download"
|
||||||
:title="t('action.export')"
|
:title="t('action.export')"
|
||||||
@click="handleExport()"
|
@click="exportList('登录列表.xls')"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template #actionbtns_default="{ row }">
|
<template #actionbtns_default="{ row }">
|
||||||
@ -54,9 +54,4 @@ const handleDetail = async (row: LoginLogVO) => {
|
|||||||
detailData.value = row
|
detailData.value = row
|
||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// 导出操作
|
|
||||||
const handleExport = async () => {
|
|
||||||
await exportList('登录列表.xls')
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
preIcon="ep:delete"
|
preIcon="ep:delete"
|
||||||
:title="t('action.del')"
|
:title="t('action.del')"
|
||||||
v-hasPermi="['system:menu:delete']"
|
v-hasPermi="['system:menu:delete']"
|
||||||
@click="handleDelete(row.id)"
|
@click="deleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XTable>
|
</XTable>
|
||||||
@ -334,10 +334,4 @@ const submitForm = async () => {
|
|||||||
const isExternal = (path: string) => {
|
const isExternal = (path: string) => {
|
||||||
return /^(https?:|mailto:|tel:)/.test(path)
|
return /^(https?:|mailto:|tel:)/.test(path)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ========== 删除 ==========
|
|
||||||
// 删除操作
|
|
||||||
const handleDelete = async (rowId: number) => {
|
|
||||||
await deleteData(rowId)
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
preIcon="ep:delete"
|
preIcon="ep:delete"
|
||||||
:title="t('action.del')"
|
:title="t('action.del')"
|
||||||
v-hasPermi="['system:notice:delete']"
|
v-hasPermi="['system:notice:delete']"
|
||||||
@click="handleDelete(row.id)"
|
@click="deleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XTable>
|
</XTable>
|
||||||
@ -126,11 +126,6 @@ const handleDetail = async (rowId: number) => {
|
|||||||
detailData.value = res
|
detailData.value = res
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除操作
|
|
||||||
const handleDelete = async (rowId: number) => {
|
|
||||||
await deleteData(rowId)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 提交新增/修改的表单
|
// 提交新增/修改的表单
|
||||||
const submitForm = async () => {
|
const submitForm = async () => {
|
||||||
const elForm = unref(formRef)?.getElFormRef()
|
const elForm = unref(formRef)?.getElFormRef()
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
preIcon="ep:delete"
|
preIcon="ep:delete"
|
||||||
:title="t('action.del')"
|
:title="t('action.del')"
|
||||||
v-hasPermi="['system:oauth2-client:delete']"
|
v-hasPermi="['system:oauth2-client:delete']"
|
||||||
@click="handleDelete(row.id)"
|
@click="deleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XTable>
|
</XTable>
|
||||||
@ -184,11 +184,6 @@ const handleDetail = async (rowId: number) => {
|
|||||||
detailData.value = res
|
detailData.value = res
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除操作
|
|
||||||
const handleDelete = async (rowId: number) => {
|
|
||||||
await deleteData(rowId)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 提交新增/修改的表单
|
// 提交新增/修改的表单
|
||||||
const submitForm = async () => {
|
const submitForm = async () => {
|
||||||
const elForm = unref(formRef)?.getElFormRef()
|
const elForm = unref(formRef)?.getElFormRef()
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<template #actionbtns_default="{ row }">
|
<template #actionbtns_default="{ row }">
|
||||||
<!-- 操作:详情 -->
|
<!-- 操作:详情 -->
|
||||||
<XTextButton preIcon="ep:view" :title="t('action.detail')" @click="handleDetail(row)" />
|
<XTextButton preIcon="ep:view" :title="t('action.detail')" @click="handleDetail(row)" />
|
||||||
<!-- 操作:删除 -->
|
<!-- 操作:登出 -->
|
||||||
<XTextButton
|
<XTextButton
|
||||||
preIcon="ep:delete"
|
preIcon="ep:delete"
|
||||||
:title="t('action.logout')"
|
:title="t('action.logout')"
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
preIcon="ep:download"
|
preIcon="ep:download"
|
||||||
:title="t('action.export')"
|
:title="t('action.export')"
|
||||||
v-hasPermi="['system:operate-log:export']"
|
v-hasPermi="['system:operate-log:export']"
|
||||||
@click="handleExport()"
|
@click="exportList('操作日志.xls')"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template #duration="{ row }">
|
<template #duration="{ row }">
|
||||||
@ -68,9 +68,4 @@ const handleDetail = (row: OperateLogApi.OperateLogVO) => {
|
|||||||
detailData.value = row
|
detailData.value = row
|
||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// 导出操作
|
|
||||||
const handleExport = async () => {
|
|
||||||
await exportList('操作日志.xls')
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
preIcon="ep:download"
|
preIcon="ep:download"
|
||||||
:title="t('action.export')"
|
:title="t('action.export')"
|
||||||
v-hasPermi="['system:post:export']"
|
v-hasPermi="['system:post:export']"
|
||||||
@click="handleExport()"
|
@click="exportList('岗位列表.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="['system:post:delete']"
|
v-hasPermi="['system:post:delete']"
|
||||||
@click="handleDelete(row.id)"
|
@click="deleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XTable>
|
</XTable>
|
||||||
@ -117,11 +117,6 @@ const handleCreate = () => {
|
|||||||
modelLoading.value = false
|
modelLoading.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
// 导出操作
|
|
||||||
const handleExport = async () => {
|
|
||||||
await exportList('岗位列表.xls')
|
|
||||||
}
|
|
||||||
|
|
||||||
// 修改操作
|
// 修改操作
|
||||||
const handleUpdate = async (rowId: number) => {
|
const handleUpdate = async (rowId: number) => {
|
||||||
setDialogTile('update')
|
setDialogTile('update')
|
||||||
@ -139,11 +134,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()
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
preIcon="ep:delete"
|
preIcon="ep:delete"
|
||||||
:title="t('action.del')"
|
:title="t('action.del')"
|
||||||
v-hasPermi="['system:role:delete']"
|
v-hasPermi="['system:role:delete']"
|
||||||
@click="handleDelete(row.id)"
|
@click="deleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XTable>
|
</XTable>
|
||||||
@ -217,11 +217,6 @@ const handleDetail = async (rowId: number) => {
|
|||||||
detailData.value = res
|
detailData.value = res
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除操作
|
|
||||||
const handleDelete = async (rowId: number) => {
|
|
||||||
await deleteData(rowId)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
const submitForm = async () => {
|
const submitForm = async () => {
|
||||||
const elForm = unref(formRef)?.getElFormRef()
|
const elForm = unref(formRef)?.getElFormRef()
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
preIcon="ep:download"
|
preIcon="ep:download"
|
||||||
:title="t('action.export')"
|
:title="t('action.export')"
|
||||||
v-hasPermi="['system:sensitive-word:export']"
|
v-hasPermi="['system:sensitive-word:export']"
|
||||||
@click="handleExport()"
|
@click="exportList('敏感词数据.xls')"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template #tags_default="{ row }">
|
<template #tags_default="{ row }">
|
||||||
@ -50,7 +50,7 @@
|
|||||||
preIcon="ep:delete"
|
preIcon="ep:delete"
|
||||||
:title="t('action.del')"
|
:title="t('action.del')"
|
||||||
v-hasPermi="['system:sensitive-word:delete']"
|
v-hasPermi="['system:sensitive-word:delete']"
|
||||||
@click="handleDelete(row.id)"
|
@click="deleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XTable>
|
</XTable>
|
||||||
@ -147,11 +147,6 @@ const handleCreate = () => {
|
|||||||
setDialogTile('create')
|
setDialogTile('create')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 导出操作
|
|
||||||
const handleExport = async () => {
|
|
||||||
await exportList('敏感词数据.xls')
|
|
||||||
}
|
|
||||||
|
|
||||||
// 修改操作
|
// 修改操作
|
||||||
const handleUpdate = async (rowId: number) => {
|
const handleUpdate = async (rowId: number) => {
|
||||||
setDialogTile('update')
|
setDialogTile('update')
|
||||||
@ -167,11 +162,6 @@ const handleDetail = async (rowId: number) => {
|
|||||||
detailData.value = res
|
detailData.value = res
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除操作
|
|
||||||
const handleDelete = async (rowId: number) => {
|
|
||||||
await deleteData(rowId)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
const submitForm = async () => {
|
const submitForm = async () => {
|
||||||
const elForm = unref(formRef)?.getElFormRef()
|
const elForm = unref(formRef)?.getElFormRef()
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
preIcon="ep:delete"
|
preIcon="ep:delete"
|
||||||
:title="t('action.del')"
|
:title="t('action.del')"
|
||||||
v-hasPermi="['system:sms-channel:delete']"
|
v-hasPermi="['system:sms-channel:delete']"
|
||||||
@click="handleDelete(row.id)"
|
@click="deleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XTable>
|
</XTable>
|
||||||
@ -123,11 +123,6 @@ const handleDetail = async (rowId: number) => {
|
|||||||
detailData.value = res
|
detailData.value = res
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除操作
|
|
||||||
const handleDelete = async (rowId: number) => {
|
|
||||||
await deleteData(rowId)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
const submitForm = async () => {
|
const submitForm = async () => {
|
||||||
const elForm = unref(formRef)?.getElFormRef()
|
const elForm = unref(formRef)?.getElFormRef()
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
type="warning"
|
type="warning"
|
||||||
preIcon="ep:download"
|
preIcon="ep:download"
|
||||||
:title="t('action.export')"
|
:title="t('action.export')"
|
||||||
@click="handleExport()"
|
@click="exportList('短信日志.xls')"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template #actionbtns_default="{ row }">
|
<template #actionbtns_default="{ row }">
|
||||||
@ -57,9 +57,4 @@ const handleDetail = (row: SmsLoglApi.SmsLogVO) => {
|
|||||||
detailData.value = row
|
detailData.value = row
|
||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
// 导出操作
|
|
||||||
const handleExport = async () => {
|
|
||||||
await exportList('短信日志.xls')
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
preIcon="ep:delete"
|
preIcon="ep:delete"
|
||||||
:title="t('action.del')"
|
:title="t('action.del')"
|
||||||
v-hasPermi="['system:sms-template:delete']"
|
v-hasPermi="['system:sms-template:delete']"
|
||||||
@click="handleDelete(row.id)"
|
@click="deleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XTable>
|
</XTable>
|
||||||
@ -166,11 +166,6 @@ const handleDetail = async (rowId: number) => {
|
|||||||
detailData.value = res
|
detailData.value = res
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除操作
|
|
||||||
const handleDelete = async (rowId: number) => {
|
|
||||||
await deleteData(rowId)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
const submitForm = async () => {
|
const submitForm = async () => {
|
||||||
const elForm = unref(formRef)?.getElFormRef()
|
const elForm = unref(formRef)?.getElFormRef()
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
preIcon="ep:download"
|
preIcon="ep:download"
|
||||||
:title="t('action.export')"
|
:title="t('action.export')"
|
||||||
v-hasPermi="['system:tenant:export']"
|
v-hasPermi="['system:tenant:export']"
|
||||||
@click="handleExport()"
|
@click="exportList('租户列表.xls')"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template #accountCount_default="{ row }">
|
<template #accountCount_default="{ row }">
|
||||||
@ -46,7 +46,7 @@
|
|||||||
preIcon="ep:delete"
|
preIcon="ep:delete"
|
||||||
:title="t('action.del')"
|
:title="t('action.del')"
|
||||||
v-hasPermi="['system:tenant:delete']"
|
v-hasPermi="['system:tenant:delete']"
|
||||||
@click="handleDelete(row.id)"
|
@click="deleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</XTable>
|
</XTable>
|
||||||
@ -149,16 +149,6 @@ const handleDetail = async (rowId: number) => {
|
|||||||
setDialogTile('detail')
|
setDialogTile('detail')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除操作
|
|
||||||
const handleDelete = async (rowId: number) => {
|
|
||||||
await deleteData(rowId)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 导出操作
|
|
||||||
const handleExport = async () => {
|
|
||||||
await exportList('租户列表.xls')
|
|
||||||
}
|
|
||||||
|
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
const submitForm = async () => {
|
const submitForm = async () => {
|
||||||
const elForm = unref(formRef)?.getElFormRef()
|
const elForm = unref(formRef)?.getElFormRef()
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #actionbtns_default="{ row }">
|
<template #actionbtns_default="{ row }">
|
||||||
<XTextButton preIcon="ep:edit" :title="t('action.edit')" @click="handleUpdate(row.id)" />
|
<XTextButton preIcon="ep:edit" :title="t('action.edit')" @click="handleUpdate(row.id)" />
|
||||||
<XTextButton preIcon="ep:delete" :title="t('action.del')" @click="handleDelete(row.id)" />
|
<XTextButton preIcon="ep:delete" :title="t('action.del')" @click="deleteData(row.id)" />
|
||||||
</template>
|
</template>
|
||||||
</XTable>
|
</XTable>
|
||||||
</ContentWrap>
|
</ContentWrap>
|
||||||
@ -132,11 +132,6 @@ const handleUpdate = async (rowId: number) => {
|
|||||||
unref(treeRef)?.setCheckedKeys(res.menuIds)
|
unref(treeRef)?.setCheckedKeys(res.menuIds)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除操作
|
|
||||||
const handleDelete = async (rowId: number) => {
|
|
||||||
await deleteData(rowId)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
const submitForm = async () => {
|
const submitForm = async () => {
|
||||||
const elForm = unref(formRef)?.getElFormRef()
|
const elForm = unref(formRef)?.getElFormRef()
|
||||||
|
@ -112,7 +112,7 @@
|
|||||||
preIcon="ep:delete"
|
preIcon="ep:delete"
|
||||||
:title="t('action.del')"
|
:title="t('action.del')"
|
||||||
v-hasPermi="['system:user:delete']"
|
v-hasPermi="['system:user:delete']"
|
||||||
@click="handleDelete(row.id)"
|
@click="deleteData(row.id)"
|
||||||
/>
|
/>
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
@ -405,10 +405,7 @@ const handleDetail = async (rowId: number) => {
|
|||||||
detailData.value = res
|
detailData.value = res
|
||||||
await setDialogTile('detail')
|
await setDialogTile('detail')
|
||||||
}
|
}
|
||||||
// 删除操作
|
|
||||||
const handleDelete = async (rowId: number) => {
|
|
||||||
await deleteData(rowId)
|
|
||||||
}
|
|
||||||
// 提交按钮
|
// 提交按钮
|
||||||
const submitForm = async () => {
|
const submitForm = async () => {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
|
Loading…
Reference in New Issue
Block a user