用户操作及模板操作修改

duizhaopin_ui
13507605001 2 years ago
parent 79681855c7
commit 8c2ca4d850

@ -487,6 +487,8 @@ export default {
put_in_tmp(stringify(data)).then(res => { put_in_tmp(stringify(data)).then(res => {
this.$message.success(res.msg) this.$message.success(res.msg)
this.dialogImportVisible = false this.dialogImportVisible = false
this.getTmpList()
}) })
} }
}, },
@ -654,6 +656,7 @@ export default {
this.$message.success('操作成功') this.$message.success('操作成功')
this.handleAddClose() this.handleAddClose()
this.reagentAddVisible = false this.reagentAddVisible = false
this.getTmpList()
} else { } else {
this.$message.success('操作失败,请重试!') this.$message.success('操作失败,请重试!')
} }

@ -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',

Loading…
Cancel
Save