From 2724bbcef10cb506f9273fc80625f5bb84201a0a Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Wed, 13 Aug 2025 09:20:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E8=AE=BA=E9=97=AE=E9=A2=983333111?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../case-clinical-video-form.vue | 20 +++++++++++++------ .../case-exchange/case-exchange-list.vue | 2 +- .../user-comment-clinical-article-list.vue | 17 ++++++---------- .../user-comment-clinical-video-list.vue | 17 ++++++---------- .../user-comment-exchange-list.vue | 17 ++++++---------- 5 files changed, 33 insertions(+), 40 deletions(-) diff --git a/src/views/business/case-clinical-video/case-clinical-video-form.vue b/src/views/business/case-clinical-video/case-clinical-video-form.vue index a7a301c..2e4b741 100644 --- a/src/views/business/case-clinical-video/case-clinical-video-form.vue +++ b/src/views/business/case-clinical-video/case-clinical-video-form.vue @@ -44,11 +44,11 @@ - - + + - - + +
@@ -352,9 +352,17 @@ if (value) { // 选择外部链接时,清空视频编号 form.videoNo = undefined; + // 清除视频编号的验证状态 + nextTick(() => { + formRef.value?.clearValidate(['videoNo']); + }); } else { // 不选择外部链接时,清空外部链接地址 form.isLinkUrl = undefined; + // 清除外部链接地址的验证状态 + nextTick(() => { + formRef.value?.clearValidate(['isLinkUrl']); + }); } } }); @@ -369,7 +377,7 @@ return Promise.resolve(); } if (!value || value.trim() === '') { - return Promise.reject('视频编号 必填'); + return Promise.reject('请填写视频编号'); } return Promise.resolve(); } @@ -402,7 +410,7 @@ return Promise.resolve(); } if (!value || value.trim() === '') { - return Promise.reject('外部链接地址 必填'); + return Promise.reject('请填写外部链接地址'); } return Promise.resolve(); } diff --git a/src/views/business/case-exchange/case-exchange-list.vue b/src/views/business/case-exchange/case-exchange-list.vue index ceb36dd..bcbe21d 100644 --- a/src/views/business/case-exchange/case-exchange-list.vue +++ b/src/views/business/case-exchange/case-exchange-list.vue @@ -106,7 +106,7 @@