mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-25 22:36:23 +00:00
perf: Applets drop account template
This commit is contained in:
@@ -37,6 +37,7 @@
|
|||||||
{{ $t('Add') }}
|
{{ $t('Add') }}
|
||||||
</el-button>
|
</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
|
v-if="$hasLicense() || $route.name !== 'Applets'"
|
||||||
:disabled="!$hasPerm('accounts.view_accounttemplate')"
|
:disabled="!$hasPerm('accounts.view_accounttemplate')"
|
||||||
size="mini"
|
size="mini"
|
||||||
type="success"
|
type="success"
|
||||||
@@ -98,6 +99,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
const accounts = this.value || []
|
const accounts = this.value || []
|
||||||
|
|
||||||
return {
|
return {
|
||||||
accounts: accounts,
|
accounts: accounts,
|
||||||
drawerRefName: null,
|
drawerRefName: null,
|
||||||
|
@@ -64,6 +64,7 @@ export default {
|
|||||||
{
|
{
|
||||||
name: this.$t('AccountTemplate'),
|
name: this.$t('AccountTemplate'),
|
||||||
title: this.$t('AccountTemplate'),
|
title: this.$t('AccountTemplate'),
|
||||||
|
has: this.$hasLicense() || this.$route.name !== 'Applets',
|
||||||
can: () => this.$hasPerm('accounts.view_accounttemplate') && !this.$store.getters.currentOrgIsRoot,
|
can: () => this.$hasPerm('accounts.view_accounttemplate') && !this.$store.getters.currentOrgIsRoot,
|
||||||
callback: () => {
|
callback: () => {
|
||||||
this.templateDialogVisible = true
|
this.templateDialogVisible = true
|
||||||
|
Reference in New Issue
Block a user