【fix bug】delete请求改为post请求
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
* data中url定义 list为查询列表 delete为删除单条记录 deleteBatch为批量删除
|
||||
*/
|
||||
import { filterObj } from '@/utils/util'
|
||||
import { downFile, getAction, getFileAccessHttpUrl } from '@/api/manage'
|
||||
import { downFile, getAction, getFileAccessHttpUrl, postAction } from '@/api/manage'
|
||||
import Vue from 'vue'
|
||||
import { ACCESS_TOKEN, TENANT_ID } from '@/store/mutation-types'
|
||||
import store from '@/store'
|
||||
@@ -174,7 +174,7 @@ export const JeroListMixin = {
|
||||
content: '是否删除选中数据?',
|
||||
onOk: function () {
|
||||
that.loading = true
|
||||
getAction(that.url.deleteBatch, { ids: ids }).then((res) => {
|
||||
postAction(that.url.deleteBatch, { ids: ids }).then((res) => {
|
||||
if (res.success) {
|
||||
// 重新计算分页问题
|
||||
that.reCalculatePage(that.selectedRowKeys.length)
|
||||
@@ -197,7 +197,7 @@ export const JeroListMixin = {
|
||||
return
|
||||
}
|
||||
const that = this
|
||||
getAction(that.url.delete, { id: id }).then((res) => {
|
||||
postAction(that.url.delete, { id: id }).then((res) => {
|
||||
if (res.success) {
|
||||
// 重新计算分页问题
|
||||
that.reCalculatePage(1)
|
||||
|
||||
Reference in New Issue
Block a user