|
|
@ -513,16 +513,23 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleDelTem() {
|
|
|
|
handleDelTem() {
|
|
|
|
if (this.multipleSelection.length !== 1) {
|
|
|
|
if (this.multipleSelection.length === 0) {
|
|
|
|
this.$message.warning('请选择1个需要删除的用户')
|
|
|
|
this.$message.warning('请选择需要删除的用户')
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.$confirm(`确定要删除用户 ${this.multipleSelection[0].real_name} 吗?`, '提示', {
|
|
|
|
const real_name_list = []
|
|
|
|
|
|
|
|
const user_id_list = []
|
|
|
|
|
|
|
|
for (let i = 0; i < this.multipleSelection.length; i++) {
|
|
|
|
|
|
|
|
real_name_list.push(this.multipleSelection[i].real_name)
|
|
|
|
|
|
|
|
user_id_list.push(this.multipleSelection[i].user_id)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log(real_name_list.join(','), user_id_list.join(','))
|
|
|
|
|
|
|
|
this.$confirm(`确定要删除用户 ${real_name_list.join(',')} 吗?`, '提示', {
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
type: 'warning'
|
|
|
|
type: 'warning'
|
|
|
|
}).then(() =>
|
|
|
|
}).then(() =>
|
|
|
|
del(stringify({ 'user_id': this.multipleSelection[0].user_id })).then(
|
|
|
|
del(stringify({ 'user_id': user_id_list.join(',') })).then(
|
|
|
|
res => {
|
|
|
|
res => {
|
|
|
|
this.$message.success({
|
|
|
|
this.$message.success({
|
|
|
|
type: 'success',
|
|
|
|
type: 'success',
|
|
|
|