From 799d6fde19620f74dfa8d89c780f418d10d2cc30 Mon Sep 17 00:00:00 2001 From: liwenxuan <1298531568@qq.com> Date: Mon, 22 Jan 2024 09:43:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E7=BB=84=E4=BB=B6=E5=8F=AF?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B7=B2=E4=B8=8A=E4=BC=A0=E7=9A=84=E8=A7=86?= =?UTF-8?q?=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DesignForm/formControlAttr.vue | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/components/DesignForm/formControlAttr.vue b/src/components/DesignForm/formControlAttr.vue index 62821410c..558484f01 100644 --- a/src/components/DesignForm/formControlAttr.vue +++ b/src/components/DesignForm/formControlAttr.vue @@ -1275,6 +1275,17 @@ const isNotWrite = (val:any) =>{ //liwenxuan 20240108 vidioupload start import { VideoMsg } from '@/api/DesignForm/types' +import { genFileId } from 'element-plus' +import type { UploadInstance, UploadProps, UploadRawFile } from 'element-plus' + +const upload = ref() +const handleExceed: UploadProps['onExceed'] = (files) => { + upload.value!.clearFiles() + const file = files[0] as UploadRawFile + file.uid = genFileId() + upload.value!.handleStart(file) +} + const videoIndex = ref(0); const videoMsgArr:VideoMsg[] = reactive([{ CreatedAt: '', @@ -1457,15 +1468,18 @@ const handleClose = (done: () => void) => { - 点此上传 + 点此上传 + 已上传,点击修改 - 已上传 +