mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-17 22:37:18 +00:00
Merge pull request #4079 from jumpserver/pr@v4@fix_role_sys
fixed: Fixed an issue where the delete prompt was incorrect when the user had only one organization role
This commit is contained in:
commit
b8b488274f
@ -90,7 +90,10 @@ export default {
|
|||||||
this.$message.success(this.$tc('DeleteSuccessMsg'))
|
this.$message.success(this.$tc('DeleteSuccessMsg'))
|
||||||
reload()
|
reload()
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.$message.error(this.$tc('DeleteErrorMsg') + ' ' + error)
|
this.$message.error({
|
||||||
|
message: error.response.data.error,
|
||||||
|
duration: 3000
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}.bind(this)
|
}.bind(this)
|
||||||
},
|
},
|
||||||
@ -140,6 +143,3 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
</style>
|
|
||||||
|
@ -68,7 +68,3 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang='scss' scoped>
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
@ -126,7 +126,9 @@ export default {
|
|||||||
return !row['builtin'] && this.$hasPerm(perm)
|
return !row['builtin'] && this.$hasPerm(perm)
|
||||||
},
|
},
|
||||||
reloadTable() {
|
reloadTable() {
|
||||||
this.$refs.ListTable.reloadTable()
|
setTimeout(() => {
|
||||||
|
this.$refs.ListTable.reloadTable()
|
||||||
|
}, 300)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -13,9 +13,7 @@ export default {
|
|||||||
BaseRoleList
|
BaseRoleList
|
||||||
},
|
},
|
||||||
activated() {
|
activated() {
|
||||||
setTimeout(() => {
|
this.$refs.roleList.reloadTable()
|
||||||
this.$refs.roleList.reloadTable()
|
|
||||||
}, 300)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user