From f8fd927351d765992908c3af95422ab6907ea376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Thu, 16 Feb 2023 11:11:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/poser/index.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/system/poser/index.vue b/src/views/system/poser/index.vue index 603f6c7..77a2f9e 100644 --- a/src/views/system/poser/index.vue +++ b/src/views/system/poser/index.vue @@ -743,6 +743,7 @@ export default { methods: { //删除海报图片列表 delPictureUrl(item) { + console.log(item); if (item.idd && !item.id) { if (this.form.posterPictureUrlLists.length == 1) { this.$message.error("最后一条不可删除"); @@ -767,7 +768,11 @@ export default { jumpType: "", idd: this.idd, }; - this.form.posterPictureUrlLists.push(obj); + if (this.form.posterPictureUrlLists.length >= 5) { + this.$message.error("最多新增5条"); + } else { + this.form.posterPictureUrlLists.push(obj); + } }, //打开遮罩层 clicknurseItemshow() {