refactor:vue3 export function

This commit is contained in:
xingyu
2022-07-28 18:23:09 +08:00
parent 4825e3a2e3
commit e16f8abc3a
14 changed files with 18 additions and 78 deletions

View File

@@ -18,10 +18,6 @@ const detailRef = ref() // 详情 Ref
const dialogVisible = ref(false) // 是否显示弹出层
const dialogTitle = ref(t('action.detail')) // 弹出层标题
const { getList, setSearchParams, exportList } = methods
// 导出操作
const handleExport = async () => {
await exportList('操作日志.xls')
}
// 详情
const handleDetail = (row: OperateLogVO) => {
// 设置数据
@@ -41,7 +37,7 @@ getList()
type="warning"
v-hasPermi="['system:operate-log:export']"
:loading="tableObject.exportLoading"
@click="handleExport"
@click="exportList('操作日志.xls')"
>
<Icon icon="ep:download" class="mr-5px" /> {{ t('action.export') }}
</el-button>