This commit is contained in:
曹辉 2023-02-16 11:11:24 +08:00
parent 5bce1c6023
commit f8fd927351

View File

@ -743,6 +743,7 @@ export default {
methods: { methods: {
// //
delPictureUrl(item) { delPictureUrl(item) {
console.log(item);
if (item.idd && !item.id) { if (item.idd && !item.id) {
if (this.form.posterPictureUrlLists.length == 1) { if (this.form.posterPictureUrlLists.length == 1) {
this.$message.error("最后一条不可删除"); this.$message.error("最后一条不可删除");
@ -767,7 +768,11 @@ export default {
jumpType: "", jumpType: "",
idd: this.idd, 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() { clicknurseItemshow() {