【fix bug】axios请求,put改为post,delete改为get

This commit is contained in:
zhaoxiao
2023-03-14 10:08:24 +08:00
parent 921e9d20bd
commit 8a45c78a57
43 changed files with 127 additions and 118 deletions
@@ -94,7 +94,7 @@
<script>
import { JeroListMixin } from '@/mixins/JeroListMixin'
import { getAction, postAction, deleteAction } from '@/api/manage'
import { getAction, postAction } from '@/api/manage'
import SelectUserModal from './SelectUserModal'
import UserModal from './UserModal'
@@ -201,7 +201,7 @@ export default {
title: '确认取消',
content: '是否取消用户与选中部门的关联?',
onOk: function () {
deleteAction(that.url.deleteBatch, { depId: that.currentDeptId, userIds: ids }).then((res) => {
getAction(that.url.deleteBatch, { depId: that.currentDeptId, userIds: ids }).then((res) => {
if (res.success) {
that.$message.success('删除用户与选中部门关系成功!')
that.loadData()
@@ -225,7 +225,7 @@ export default {
}
const that = this
deleteAction(that.url.delete, { depId: this.currentDeptId, userId: id }).then((res) => {
getAction(that.url.delete, { depId: this.currentDeptId, userId: id }).then((res) => {
if (res.success) {
that.$message.success('删除用户与选中部门关系成功!')
if (this.selectedRowKeys.length > 0) {