This commit is contained in:
owenchen committed 2026-09-04 11:43:11 +08:00
1 parent 7fd6284cc0
commit b485837fc8
15 files changed
+6377 -11

No files matched your search

+11 -9
View File
@@ -129,7 +129,7 @@
<ShareAltOutlined
style="color: rgb(19, 185, 190); font-size: larger"
title="内部分享"
@click.prevent="onShareFamily()"
@click.prevent="onShareFamily(record)"
/>
<NotificationOutlined
style="color: rgb(19, 185, 190); font-size: larger"
@@ -193,7 +193,7 @@
<ShareAltOutlined
style="color: rgb(19, 185, 190); font-size: larger"
title="内部分享"
@click.prevent="onShareFamily()"
@click.prevent="onShareFamily(record)"
/>
<NotificationOutlined
style="color: rgb(19, 185, 190); font-size: larger"
@@ -257,7 +257,7 @@
<ShareAltOutlined
style="color: rgb(19, 185, 190); font-size: larger"
title="内部分享"
@click.prevent="onShareFamily()"
@click.prevent="onShareFamily(record)"
/>
<NotificationOutlined
style="color: rgb(19, 185, 190); font-size: larger"
@@ -455,7 +455,6 @@ import { notification } from "ant-design-vue";
import { GridColumnInfo } from "@/data/auto/gridColumnInfo";
import { useGridColumnInfo } from "@/hooks/gridColumnInfo";
import dmsFolder from "./DmsFolderModal.vue";
import videoPlay from "./VideoPlay.vue";
import { useLoginProfileStore } from "@/store/modules/loginProfile";
import type { UploadProps } from "ant-design-vue";
@@ -464,7 +463,7 @@ import { orderBy } from "lodash-es";
import { bsInfo } from "@/utils/browser";
import axios from "axios";
import { getuid } from "process";
import VideoPlay from "./VideoPlay.vue";
import VideoPlay from "./PlayVideo.vue";
import {
enquiryMethodKey,
searchCriteriaManagerKey,
@@ -503,6 +502,8 @@ if (bsInfo.size.sm) {
widthColumn.value = "3%";
}
const showModalShare = ref<boolean>(false);
// 点击「内部分享」时所在行的 record,供 handleSelectShare 使用
const sharedFileRecord = ref<DmsFileUploadViewDisplayData | null>(null);
const showModalPublishPhoto = ref<boolean>(false);
const showModalPublishAudio = ref<boolean>(false);
const showModalPublishVideo = ref<boolean>(false);
@@ -1016,7 +1017,8 @@ const onPublishVideo = async (fid: number) => {
showModalPublishVideo.value = true;
};
const onShareFamily = async () => {
const onShareFamily = async (record: Record<string, any>) => {
sharedFileRecord.value = toUploadView(record);
showModalShare.value = true;
};
@@ -1378,7 +1380,7 @@ const onReSearch = async () => {
};
const onReload = async () => {
let cfp:string=currFilePath.value;
let cfp: string = currFilePath.value;
await initBindOption();
setBindOptionValue(
DmsFileUploadViewDisplayData.DB_FILE_PATH,
@@ -1400,8 +1402,8 @@ const handleSelectShare = async () => {
fgp = new FamilyGroupFolderEntity();
fgp.FamilyName = element.FamilyName;
fgp.TopFolderName = element.TopFolderName;
fgp.FolderName = keys.value[0].FileName;
fgp.FolderLocalName = keys.value[0].OrgFileName;
fgp.FolderName = sharedFileRecord.value?.FileName ?? "";
fgp.FolderLocalName = sharedFileRecord.value?.OrgFileName ?? "";
fgp.FilePath = element.FolderName;
fgps.push(fgp);