新增待办信息

This commit is contained in:
2025-12-22 22:04:01 +08:00
parent e4f0dab2a8
commit dac75e453c
38 changed files with 52 additions and 147 deletions

View File

@@ -389,7 +389,7 @@
</a-button>
</span>
<div class="action-buttons">
<a-button type="link" size="small" @click="downloadFiles(file)" >
<a-button type="link" size="small" :loading="loading" @click="downloadFiles(file)" >
<Icon icon="ant-design:cloud-download-outlined"/>
</a-button>
<a-button type="link" size="small" @click="deleteFiles(file)" danger>
@@ -416,22 +416,22 @@ import { Icon } from '@jeesite/core/components/Icon';
import { useModal } from '@jeesite/core/components/Modal';
import { useGlobSetting } from '@jeesite/core/hooks/setting';
import { downloadByUrl } from '@jeesite/core/utils/file/download';
import { bizFoldersSave, bizFoldersAllData, bizFolderItemAll, bizFoldersDelete } from '@jeesite/biz/api/biz/folders';
import { BizMyfiles, bizMyfilesEdit, bizMyfilesListAll, bizMyfilesDelete } from '@jeesite/biz/api/biz/myfiles';
import { BasicTree } from '@jeesite/core/components/Tree';
import { useUserStore } from '@jeesite/core/store/modules/user';
import UploadModal from './upload.vue';
import FolderModal from './folder.vue';
import InputModal from './form.vue';
import { bizFoldersSave, bizFoldersAllData, bizFolderItemAll, bizFoldersDelete } from '@jeesite/biz/api/biz/folders';
import { BizMyfiles, bizMyfilesEdit, bizMyfilesListAll, bizMyfilesDelete } from '@jeesite/biz/api/biz/myfiles';
import { useUserStore } from '@jeesite/core/store/modules/user';
const userStore = useUserStore();
const userinfo = computed(() => userStore.getUserInfo);
import { BasicTree } from '@jeesite/core/components/Tree';
const [registerModal, { openModal: openInputModal }] = useModal();
const [registerUpload, { openModal: openUploadModal }] = useModal();
const [registerFolder, { openModal: openfolderModal }] = useModal();
const loading = ref(false);
interface FolderNode {
id: string;
@@ -1045,6 +1045,7 @@ const handleFolderModalClose = () => {
async function downloadFiles(myFiles: BizMyfiles) {
message.success("文件正在下载中,请稍后...");
loading.value = true;
const { ctxAdminPath } = useGlobSetting();
await downloadByUrl({
url: ctxAdminPath + '/biz/myfiles/downloadFile',
@@ -1052,6 +1053,7 @@ async function downloadFiles(myFiles: BizMyfiles) {
id : myFiles.id
},
});
loading.value = false;
}
async function deleteFiles(myFiles: BizMyfiles) {