|
|
@@ -30,6 +30,24 @@ export default {
|
|
|
...mapGetters(["getSelectInfo"]),
|
|
|
filterProductInfoContrapose() {
|
|
|
let list = copyObject(this.productInfo);
|
|
|
+ if (this.py) {
|
|
|
+ let commonList = list;
|
|
|
+ if (commonList) {
|
|
|
+ let commonChildList = [];
|
|
|
+ if (!this.$util.isEmpty(commonList)) {
|
|
|
+ commonList.forEach(ele => {
|
|
|
+ let hasName = ele.itemName && ele.itemName.indexOf(this.py) >= 0;
|
|
|
+ let elePy = (ele.py && ele.py.toLocaleUpperCase()) || "";
|
|
|
+ let hasPy = elePy.indexOf(this.py.toLocaleUpperCase()) >= 0;
|
|
|
+ if (hasName || hasPy) {
|
|
|
+ commonChildList.push(ele);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ commonList = commonChildList;
|
|
|
+ list = commonList
|
|
|
+ }
|
|
|
+ }
|
|
|
return list;
|
|
|
},
|
|
|
/**
|