修改删除、批量删除方式为get
This commit is contained in:
@@ -181,7 +181,7 @@ export const JeroListMixin = {
|
||||
content: "是否删除选中数据?",
|
||||
onOk: function () {
|
||||
that.loading = true;
|
||||
deleteAction(that.url.deleteBatch, {ids: ids}).then((res) => {
|
||||
getAction(that.url.deleteBatch, {ids: ids}).then((res) => {
|
||||
if (res.success) {
|
||||
that.$message.success(res.message);
|
||||
// 判断当前删除的数据是否是最后一页的全部数据,如果是的话页码减一
|
||||
@@ -212,7 +212,7 @@ export const JeroListMixin = {
|
||||
title: "确认删除",
|
||||
content: "确定要删除此条数据吗?",
|
||||
onOk: function () {
|
||||
deleteAction(that.url.delete, {id: id}).then((res) => {
|
||||
getAction(that.url.delete, {id: id}).then((res) => {
|
||||
if (res.success) {
|
||||
that.$message.success(res.message);
|
||||
// 判断当前删除的数据是否是最后一页的最后一条数据,如果是的话页码减一
|
||||
|
||||
Reference in New Issue
Block a user