|
@@ -559,15 +559,20 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}else{
|
|
|
- if(tmpArr[0].tagType != 4){
|
|
|
+ let plus = 0;
|
|
|
+ for(let l = 0;l < tmpArr.length;l++){
|
|
|
+ if(tmpArr[l].tagType != 4){
|
|
|
+ ++plus
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(plus > 0){
|
|
|
this.$message({
|
|
|
showClose: true,
|
|
|
message: '添加的数据有误',
|
|
|
type: 'warning'
|
|
|
});
|
|
|
- return
|
|
|
}else{
|
|
|
- this.poolDetailList[idx] = (this.poolDetailList[idx]).concat(tmpArr);
|
|
|
+ this.poolDetailList[idx] = (this.poolDetailList[idx]).concat(tmpArr);
|
|
|
}
|
|
|
}
|
|
|
this.poolDetailListAll = Array.prototype.concat.apply([],this.poolDetailList); //二维转一维
|
|
@@ -576,13 +581,18 @@ export default {
|
|
|
}else{
|
|
|
++num;
|
|
|
if(num == 6){
|
|
|
- if(tmpArr[0].tagType != 4){
|
|
|
+ let plus = 0;
|
|
|
+ for(let l = 0;l < tmpArr.length;l++){
|
|
|
+ if(tmpArr[l].tagType != 4){
|
|
|
+ ++plus
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(plus > 0){
|
|
|
this.$message({
|
|
|
showClose: true,
|
|
|
message: '添加的数据有误',
|
|
|
type: 'warning'
|
|
|
});
|
|
|
- return
|
|
|
}else{
|
|
|
for(let i = 2;i < this.poolDetailList.length;i++){
|
|
|
let ids = [];
|