Commit af6f545d authored by 徐一鸣's avatar 徐一鸣

sdk管理多选修复

parent c136fa3a
......@@ -381,22 +381,20 @@ export default {
return helper.dateStringTransform(time);
},
selectAction(values) {
// 页码操作需要保存所选项
if (this.saveSection) {
return;
}
let cleanPage = values.length === 0; // 是否清空当前页所有选中
let selection = [...this.selection];
if (cleanPage) {
selection = selection.filter((item) => {
return !this.listData.find((v) => {
return v.id === item.id;
});
selection = selection.filter((item) => {
return !this.listData.find((v) => {
return v.id === item.id;
});
} else {
selection.push(...values);
}
});
selection.push(...values);
this.selection = selection;
},
......
......@@ -417,22 +417,20 @@ export default {
return helper.dateStringTransform(time);
},
selectAction(values) {
// 页码操作需要保存所选项
if (this.saveSection) {
return;
}
let cleanPage = values.length === 0; // 是否清空当前页所有选中
let selection = [...this.selection];
if (cleanPage) {
selection = selection.filter((item) => {
return !this.listData.find((v) => {
return v.id === item.id;
});
selection = selection.filter((item) => {
return !this.listData.find((v) => {
return v.id === item.id;
});
} else {
selection.push(...values);
}
});
selection.push(...values);
this.selection = selection;
},
......
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