Commit 1cd64cd8 by zhouzy

改变群名的判断条件

1 parent e3d3c256
......@@ -225,11 +225,36 @@ export default {
console.log(res, '444')
this.groupList = res || []
this.showRemark = res && res.length ? false : true
// if (res) {
// for (var a = 0; a < this.groupList.length; a++) {
// if (!this.businessCard.vehicleInfoList) {
// this.groupList[a].groupNames = this.groupList[a].groupName
// } else {
// if (this.groupList[a].groupNameRule == 0) {
// this.groupList[a].groupNames = this.groupList[a].groupName
// }
// if (this.groupList[a].groupNameRule == 1) {
// if (this.businessCard.vehicleInfoList[0].vehicleTrain) {
// this.groupList[a].groupNames = this.businessCard.vehicleInfoList[0].vehicleTrain + this.businessCard.customerName + this.groupList[a].groupName
// } else {
// this.groupList[a].groupNames = this.businessCard.customerName + this.groupList[a].groupName
// }
// }
// if (this.groupList[a].groupNameRule == 2) {
// if (!this.businessCard.vehicleInfoList[0].vehicleTrain) {
// this.businessCard.vehicleInfoList[0].vehicleTrain = ''
// }
// if (!this.businessCard.vehicleInfoList[0].vehicleNo) {
// this.businessCard.vehicleInfoList[0].vehicleTrain = ''
// }
// this.groupList[a].groupNames = this.businessCard.vehicleInfoList[0].vehicleTrain + this.businessCard.vehicleInfoList[0].vehicleNo + this.groupList[a].groupName
// }
// }
// }
// }
if (res) {
for (var a = 0; a < this.groupList.length; a++) {
if (!this.businessCard.vehicleInfoList) {
this.groupList[a].groupNames = this.groupList[a].groupName
} else {
if (this.businessCard.vehicleInfoList) {
if (this.groupList[a].groupNameRule == 0) {
this.groupList[a].groupNames = this.groupList[a].groupName
}
......@@ -249,6 +274,9 @@ export default {
}
this.groupList[a].groupNames = this.businessCard.vehicleInfoList[0].vehicleTrain + this.businessCard.vehicleInfoList[0].vehicleNo + this.groupList[a].groupName
}
} else {
//vehicleInfoList为null
this.groupList[a].groupNames = this.groupList[a].groupName
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!