|
|
@@ -487,10 +487,19 @@ export default {
|
|
|
console.log(_infoIndex);
|
|
|
showList[index].chooseIds.splice(_infoIndex, 1);
|
|
|
} else {
|
|
|
+ let chooseIds = [];
|
|
|
+ showList.forEach(item => {
|
|
|
+ chooseIds.push(item.chooseIds);
|
|
|
+ });
|
|
|
+ chooseIds = chooseIds.flat();
|
|
|
if (showList[index].chooseIds.length === showList[index].num) {
|
|
|
this.$toast(`只能选择${showList[index].num}个藏品`);
|
|
|
return;
|
|
|
}
|
|
|
+ if (chooseIds.includes(id)) {
|
|
|
+ this.$toast(`其他标签下已经选择该藏品`);
|
|
|
+ return;
|
|
|
+ }
|
|
|
showList[index].chooseIds.push(id);
|
|
|
}
|
|
|
|