【fix bug】delete请求改为post请求
This commit is contained in:
@@ -201,7 +201,7 @@ export default {
|
||||
title: '确认取消',
|
||||
content: '是否取消用户与选中部门的关联?',
|
||||
onOk: function () {
|
||||
getAction(that.url.deleteBatch, { depId: that.currentDeptId, userIds: ids }).then((res) => {
|
||||
postAction(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
|
||||
getAction(that.url.delete, { depId: this.currentDeptId, userId: id }).then((res) => {
|
||||
postAction(that.url.delete, { depId: this.currentDeptId, userId: id }).then((res) => {
|
||||
if (res.success) {
|
||||
that.$message.success('删除用户与选中部门关系成功!')
|
||||
if (this.selectedRowKeys.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user