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() {