diff --git a/jero-web/src/api/api.js b/jero-web/src/api/api.js index ae432cff..e6b7f86c 100644 --- a/jero-web/src/api/api.js +++ b/jero-web/src/api/api.js @@ -42,7 +42,7 @@ const queryDepartTreeSync = (params) => getAction('/sys/sysDepart/queryDepartTre const queryIdTree = (params) => getAction('/sys/sysDepart/queryIdTree', params) const queryParentName = (params) => getAction('/sys/sysDepart/queryParentName', params) const searchByKeywords = (params) => getAction('/sys/sysDepart/searchBy', params) -const deleteByDepartId = (params) => getAction('/sys/sysDepart/delete', params) +const deleteByDepartId = (params) => postAction('/sys/sysDepart/delete', params) // 二级部门管理 const queryDepartPermission = (params) => getAction('/sys/permission/queryDepartPermission', params) @@ -52,8 +52,8 @@ const queryDeptRolePermission = (params) => getAction('/sys/sysDepartPermission/ const queryMyDepartTreeList = (params) => getAction('/sys/sysDepart/queryMyDeptTreeList', params) // 日志管理 -const deleteLog = (params) => getAction('/sys/log/delete', params) -const deleteLogList = (params) => getAction('/sys/log/deleteBatch', params) +const deleteLog = (params) => postAction('/sys/log/delete', params) +const deleteLogList = (params) => postAction('/sys/log/deleteBatch', params) // 数据字典 const addDict = (params) => postAction('/sys/dict/add', params) diff --git a/jero-web/src/mixins/JeroListMixin.js b/jero-web/src/mixins/JeroListMixin.js index e629e5a5..f0107b00 100644 --- a/jero-web/src/mixins/JeroListMixin.js +++ b/jero-web/src/mixins/JeroListMixin.js @@ -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) diff --git a/jero-web/src/views/demo/tablist/JeroOrderDMainList.vue b/jero-web/src/views/demo/tablist/JeroOrderDMainList.vue index 66f82c13..11cd6133 100644 --- a/jero-web/src/views/demo/tablist/JeroOrderDMainList.vue +++ b/jero-web/src/views/demo/tablist/JeroOrderDMainList.vue @@ -101,7 +101,7 @@ import JeroOrderDMainModal from './form/JeroOrderDMainModal' import JeroOrderCustomerList from './JeroOrderCustomerList' import JeroOrderTicketList from './JeroOrderTicketList' -import { getAction } from '@/api/manage' +import { postAction } from '@/api/manage' import { JeroListMixin } from '@/mixins/JeroListMixin' export default { @@ -218,7 +218,7 @@ export default { handleDelete: function (id) { const that = this - getAction(that.url.delete, { id: id }).then((res) => { + postAction(that.url.delete, { id: id }).then((res) => { if (res.success) { that.$message.success(res.message) that.loadData() diff --git a/jero-web/src/views/system/DepartList.vue b/jero-web/src/views/system/DepartList.vue index 4fde4603..f852a66b 100644 --- a/jero-web/src/views/system/DepartList.vue +++ b/jero-web/src/views/system/DepartList.vue @@ -146,7 +146,7 @@