|
|
|
@ -75,14 +75,6 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
userData () {
|
|
|
|
|
return store.getters.userData || {};
|
|
|
|
|
},
|
|
|
|
|
store () {
|
|
|
|
|
return store.getters.store || [];
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
handleCheckAll () {
|
|
|
|
|
let _this = this;
|
|
|
|
@ -187,46 +179,6 @@ export default {
|
|
|
|
|
that.loading = false;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
isSelectAllCompany () {
|
|
|
|
|
if (this.allSelect === true) {
|
|
|
|
|
this.isSelect.forEach((element, index) => {
|
|
|
|
|
this.isSelect.splice(index, 1, true);
|
|
|
|
|
});
|
|
|
|
|
this.shopList.forEach((element, index) => {
|
|
|
|
|
this.selectValue.splice(index, 1, element.id);
|
|
|
|
|
});
|
|
|
|
|
} else {
|
|
|
|
|
this.isSelect.forEach((element, index) => {
|
|
|
|
|
this.isSelect.splice(index, 1, "");
|
|
|
|
|
});
|
|
|
|
|
this.shopList.forEach((element, index) => {
|
|
|
|
|
this.selectValue.splice(index, 1, "");
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
selectTag (value, index) {
|
|
|
|
|
this.isSelect.splice(index, 1, !this.isSelect[index]);
|
|
|
|
|
if (this.isSelect[index] === true) {
|
|
|
|
|
this.selectValue.splice(index, 1, value.value);
|
|
|
|
|
} else if (this.isSelect[index] === false) {
|
|
|
|
|
this.selectValue.splice(index, 1, "");
|
|
|
|
|
}
|
|
|
|
|
let selectShopValue = [];
|
|
|
|
|
this.isSelect.forEach((element, index) => {
|
|
|
|
|
if (element === true) {
|
|
|
|
|
selectShopValue.push(this.selectValue[index]);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
let selectShopValueObject = [];
|
|
|
|
|
for (let j = 0; j < selectShopValue.length; j++) {
|
|
|
|
|
for (let i = 0; i < this.shopList.length; i++) {
|
|
|
|
|
if (this.shopList[i].value === selectShopValue[j]) {
|
|
|
|
|
selectShopValueObject.push(this.shopListData[i]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
store.getters.useData.selectShopValue = selectShopValueObject;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
@ -251,18 +203,4 @@ export default {
|
|
|
|
|
.ivu-checkbox + span {
|
|
|
|
|
margin-left: 4px;
|
|
|
|
|
}
|
|
|
|
|
.tagClass {
|
|
|
|
|
width: 31%;
|
|
|
|
|
margin-bottom: 30px;
|
|
|
|
|
height: 120px;
|
|
|
|
|
line-height: 120px;
|
|
|
|
|
border: 1px solid #e3e8ee !important;
|
|
|
|
|
color: #657180 !important;
|
|
|
|
|
background: #fff;
|
|
|
|
|
padding: 0 12px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
.tagColorClass {
|
|
|
|
|
background: #6ac1d1;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|