iframe
This commit is contained in:
@@ -290,9 +290,11 @@ export default {
|
||||
phone: this.phone,
|
||||
rolesIds: rolesIds
|
||||
}
|
||||
await usersEdit(obj)
|
||||
this.toast('操作成功')
|
||||
this._usersQuery()
|
||||
let res = await usersEdit(obj)
|
||||
if (res.code === '1') {
|
||||
this._usersQuery()
|
||||
}
|
||||
this.toast(res.desc)
|
||||
this.$refs.child.active = false
|
||||
this.$refs.child.disabled = false
|
||||
} catch (e) {
|
||||
@@ -307,9 +309,11 @@ export default {
|
||||
userId: this.pkObj.userId,
|
||||
password: '123456'
|
||||
}
|
||||
await usersEdit(obj)
|
||||
this.toast('操作成功')
|
||||
this._usersQuery()
|
||||
let res = await usersEdit(obj)
|
||||
if (res.code === '1') {
|
||||
this._usersQuery()
|
||||
}
|
||||
this.toast(res.desc)
|
||||
this.$refs.child.active = false
|
||||
this.$refs.child.disabled = false
|
||||
} catch (e) {
|
||||
@@ -320,9 +324,11 @@ export default {
|
||||
async _usersDelete () {
|
||||
this.$refs.child.disabled = true
|
||||
try {
|
||||
await usersDelete([this.pkObj.userId])
|
||||
this.toast('操作成功')
|
||||
this._usersQuery()
|
||||
let res = await usersDelete([this.pkObj.userId])
|
||||
if (res.code === '1') {
|
||||
this._usersQuery()
|
||||
}
|
||||
this.toast(res.desc)
|
||||
this.$refs.child.active = false
|
||||
this.$refs.child.disabled = false
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user