场景
在前端需要实现多选,然后将所选的序号的数组传递到后台Springboot接口
需要传递的参数是一个int数组。
handleCompleted() {
if (this.ids == null || this.ids.length == 0) {
this.$alert("请先选择一条数据", "提示", {
confirmButtonText: "确定",
});
} else {
handCompletedRequest(this.ids).then((response) => {
if (response.code === 200) {
this.msgSuccess("处理完成成功");
this.open = false;
this.getList();
}
});
}
}
注:
博客: