Commit 5ade8973 authored by 刘帅阳's avatar 刘帅阳

修改bug

parent 7b213928
...@@ -74,9 +74,9 @@ export function delUser(userId) { ...@@ -74,9 +74,9 @@ export function delUser(userId) {
}) })
} }
// 3.删除代言人 // 3.删除代言人
export function delSysuser(userId) { export function delSysuser(userId, unitId) {
return request({ return request({
url: '/sysuser/deleteLogical/' + userId, url: '/sysuser/deleteLogical/' + userId + '/' + unitId,
method: 'delete' method: 'delete'
}) })
} }
......
...@@ -960,12 +960,17 @@ export default { ...@@ -960,12 +960,17 @@ export default {
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const userId = row.businessId || this.ids const userId = row.businessId || this.ids
let unitId = this.queryParams.deptId
const clearable = this.clearable
this.$confirm('是否确认操作?', '提示', { this.$confirm('是否确认操作?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(function() { }).then(function() {
return delSysuser(userId) if (clearable) {
unitId = null
}
return delSysuser(userId, unitId)
}).then(() => { }).then(() => {
this.getList() this.getList()
this.$message({ this.$message({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment