fix: bugs

This commit is contained in:
xingyu
2022-11-28 16:50:53 +08:00
parent dec05a6c40
commit 005a3e6ab0
20 changed files with 113 additions and 95 deletions

View File

@ -18,7 +18,7 @@
preIcon="ep:view"
:title="t('action.preview')"
v-hasPermi="['infra:codegen:query']"
@click="handlePreview(row.id)"
@click="handlePreview(row)"
/>
<!-- 操作编辑 -->
<XTextButton
@ -39,14 +39,14 @@
preIcon="ep:refresh"
:title="t('action.sync')"
v-hasPermi="['infra:codegen:update']"
@click="handleSynchDb(row.id)"
@click="handleSynchDb(row)"
/>
<!-- 操作生成 -->
<XTextButton
preIcon="ep:download"
:title="t('action.generate')"
v-hasPermi="['infra:codegen:download']"
@click="handleGenTable(row.id)"
@click="handleGenTable(row)"
/>
</template>
</vxe-grid>
@ -86,7 +86,6 @@ const openImportTable = () => {
importRef.value.show()
}
// 预览操作
// TODO 星语:点击后报错
const previewRef = ref()
const handlePreview = (row: CodegenTableVO) => {
previewRef.value.show(row)

View File

@ -85,7 +85,6 @@ import { useVxeGrid } from '@/hooks/web/useVxeGrid'
import { VxeGridInstance } from 'vxe-table'
import { ElUpload, ElImage, UploadInstance, UploadRawFile } from 'element-plus'
// 业务相关的 import
// TODO 星语:貌似这个界面打开 404
import { allSchemas } from './fileList.data'
import * as FileApi from '@/api/infra/fileList'
import { getAccessToken, getTenantId } from '@/utils/auth'