Commit 0985a82e authored by 姬鋆屾's avatar 姬鋆屾

推修改批量加入判断条件

parent 88867e14
...@@ -212,7 +212,15 @@ export default { ...@@ -212,7 +212,15 @@ export default {
if (val.id) { if (val.id) {
arr.push(val.id); arr.push(val.id);
} else { } else {
if (this.multipleSelection && this.multipleSelection.length > 0) {
arr = this.multipleSelection.map((v) => v.id); arr = this.multipleSelection.map((v) => v.id);
} else {
this.$message({
message: "请选择需要加入的事项",
type: "warning",
});
return;
}
} }
let data = { let data = {
applyType: 2, applyType: 2,
......
...@@ -212,7 +212,15 @@ export default { ...@@ -212,7 +212,15 @@ export default {
if (val.id) { if (val.id) {
arr.push(val.id); arr.push(val.id);
} else { } else {
if (this.multipleSelection && this.multipleSelection.length > 0) {
arr = this.multipleSelection.map((v) => v.id); arr = this.multipleSelection.map((v) => v.id);
} else {
this.$message({
message: "请选择需要加入的事项",
type: "warning",
});
return;
}
} }
let data = { let data = {
applyType: 3, applyType: 3,
......
...@@ -212,7 +212,15 @@ export default { ...@@ -212,7 +212,15 @@ export default {
if (val.id) { if (val.id) {
arr.push(val.id); arr.push(val.id);
} else { } else {
if (this.multipleSelection && this.multipleSelection.length > 0) {
arr = this.multipleSelection.map((v) => v.id); arr = this.multipleSelection.map((v) => v.id);
} else {
this.$message({
message: "请选择需要加入的事项",
type: "warning",
});
return;
}
} }
let data = { let data = {
applyType: 1, applyType: 1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment