feat: minio功能开发
This commit is contained in:
parent
4d281cd1cf
commit
3c3c21733c
|
@ -129,6 +129,7 @@ export const dynamicTableEmits = {
|
|||
change: (...rest: OnChangeCallbackParams) => rest.length === 4,
|
||||
'toggle-advanced': (isAdvanced: boolean) => isBoolean(isAdvanced),
|
||||
'fetch-error': (error) => error,
|
||||
'on-fetch': (loading: boolean) => isBoolean(loading),
|
||||
'update:expandedRowKeys': (keys: Key[]) => keys,
|
||||
'expanded-rows-change': (keyValues: string[]) => Array.isArray(keyValues),
|
||||
};
|
||||
|
|
|
@ -62,10 +62,11 @@ export const useTableMethods = ({ state, props, emit }: UseTableMethodsContext)
|
|||
*/
|
||||
const fetchData = debounce(async (params = {}) => {
|
||||
const { dataRequest, dataSource, fetchConfig, searchParams } = props;
|
||||
|
||||
emit('on-fetch', true);
|
||||
if (!dataRequest || !isFunction(dataRequest) || Array.isArray(dataSource)) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
let pageParams: Recordable = {};
|
||||
const pagination = unref(paginationRef)!;
|
||||
|
@ -132,7 +133,8 @@ export const useTableMethods = ({ state, props, emit }: UseTableMethodsContext)
|
|||
return tableData;
|
||||
} catch (error) {
|
||||
warn(`表格查询出错:${error}`);
|
||||
emit('fetch-error', error);
|
||||
|
||||
emit('on-fetch', true);
|
||||
tableData.value = [];
|
||||
updatePagination({ total: 0 });
|
||||
} finally {
|
||||
|
|
|
@ -203,6 +203,8 @@
|
|||
emit('update:searchKey', '');
|
||||
return;
|
||||
}
|
||||
message.info('全盘搜索功能暂未实现,敬请期待');
|
||||
return;
|
||||
await showModal({
|
||||
modalProps: {
|
||||
title: '全盘搜索',
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
</Descriptions.Item>
|
||||
</template>
|
||||
<!-- mark -->
|
||||
<Descriptions.Item label="文件备注" :label-style="{ whiteSpace: 'nowrap' }">
|
||||
<!-- <Descriptions.Item label="文件备注" :label-style="{ whiteSpace: 'nowrap' }">
|
||||
<Space direction="vertical" align="end">
|
||||
<Input.TextArea
|
||||
v-model:value="mark"
|
||||
|
@ -45,7 +45,7 @@
|
|||
>更新
|
||||
</a-button>
|
||||
</Space>
|
||||
</Descriptions.Item>
|
||||
</Descriptions.Item> -->
|
||||
</Descriptions>
|
||||
</Space>
|
||||
</Spin>
|
||||
|
@ -69,11 +69,11 @@
|
|||
const detailInfoMap = new Map([
|
||||
['name', '文件名'],
|
||||
['mimeType', '文件类型'],
|
||||
['hash', '文件Hash'],
|
||||
['md5', '文件MD5'],
|
||||
// ['hash', '文件Hash'],
|
||||
// ['md5', '文件MD5'],
|
||||
['fsize', '文件大小'],
|
||||
['putTime', '上传时间'],
|
||||
['uploader', '上传人员'],
|
||||
// ['uploader', '上传人员'],
|
||||
] as const);
|
||||
|
||||
const loading = ref(false);
|
||||
|
|
|
@ -32,9 +32,10 @@
|
|||
:auto-height="true"
|
||||
:pagination="false"
|
||||
:search="false"
|
||||
:show-tool-bar="false"
|
||||
:show-tool-bar="true"
|
||||
:loading="tableLoading"
|
||||
:row-selection="rowSelection"
|
||||
@onFetch="refresh"
|
||||
>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.key === 'name'">
|
||||
|
@ -50,6 +51,9 @@
|
|||
</Typography.Link>
|
||||
</template>
|
||||
</template>
|
||||
<!-- <template #toolbar>
|
||||
<a-button type="primary" @click="dynamicTableInstance.reload()"> 刷新 </a-button>
|
||||
</template> -->
|
||||
</DynamicTable>
|
||||
<FilePreviewDrawer ref="previewDrawerRef" />
|
||||
</Card>
|
||||
|
@ -71,7 +75,7 @@
|
|||
import { createContextMenu } from '@/components/basic/context-menu';
|
||||
import { useTable } from '@/components/core/dynamic-table';
|
||||
import { hasPermission } from '@/permission';
|
||||
|
||||
import { Button } from 'ant-design-vue';
|
||||
defineOptions({
|
||||
name: 'NetDiskManage',
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue