|
@@ -418,7 +418,14 @@ export default {
|
|
|
},...aclist]
|
|
|
listData = aclist&&aclist.length ? listData.concat(retList) : listData
|
|
|
}
|
|
|
-
|
|
|
+ // 如果活动没有任何产品
|
|
|
+ if(active.length){
|
|
|
+ const hasAcp = listData.filter(item => item.id.indexOf("promo-")>=0)
|
|
|
+ if(hasAcp && hasAcp.length==1){
|
|
|
+ listData = listData.filter(item => item.id.indexOf("promo-")<0) || []
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
console.log(listData)
|
|
|
this.dataSource = listData
|
|
|
|