代码如下:
const val = this.multipleSelection[0].lineId
const flag = this.multipleSelection.every(ele => ele.lineId === val)
if (!flag) {
this.$message.warning('请选择同一线路下的人员')
return
}
代码如下:
const val = this.multipleSelection[0].lineId
const flag = this.multipleSelection.every(ele => ele.lineId === val)
if (!flag) {
this.$message.warning('请选择同一线路下的人员')
return
}