mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-19 01:11:07 +00:00
Perf: Optimize some details
This commit is contained in:
@@ -281,7 +281,8 @@ export default {
|
|||||||
can: () => {
|
can: () => {
|
||||||
return vm.$hasPerm('accounts.add_account') && !this.$store.getters.currentOrgIsRoot
|
return vm.$hasPerm('accounts.add_account') && !this.$store.getters.currentOrgIsRoot
|
||||||
},
|
},
|
||||||
callback: () => {
|
callback: async() => {
|
||||||
|
await this.getAssetDetail()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
vm.iAsset = this.asset
|
vm.iAsset = this.asset
|
||||||
vm.account = {}
|
vm.account = {}
|
||||||
@@ -296,7 +297,8 @@ export default {
|
|||||||
can: () => {
|
can: () => {
|
||||||
return vm.$hasPerm('accounts.add_account') && !this.$store.getters.currentOrgIsRoot
|
return vm.$hasPerm('accounts.add_account') && !this.$store.getters.currentOrgIsRoot
|
||||||
},
|
},
|
||||||
callback: () => {
|
callback: async() => {
|
||||||
|
await this.getAssetDetail()
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
vm.iAsset = this.asset
|
vm.iAsset = this.asset
|
||||||
vm.account = {}
|
vm.account = {}
|
||||||
|
@@ -68,7 +68,10 @@ export const accountOtherActions = (vm) => [
|
|||||||
...vm.asset,
|
...vm.asset,
|
||||||
...row.asset
|
...row.asset
|
||||||
}
|
}
|
||||||
vm.account = row
|
vm.account = {
|
||||||
|
...row,
|
||||||
|
name: `${row.name} - ${vm.$t('Duplicate').toLowerCase()}`
|
||||||
|
}
|
||||||
vm.iAsset = data
|
vm.iAsset = data
|
||||||
vm.showAddDialog = false
|
vm.showAddDialog = false
|
||||||
vm.accountCreateUpdateTitle = vm.$t('DuplicateAccount')
|
vm.accountCreateUpdateTitle = vm.$t('DuplicateAccount')
|
||||||
|
Reference in New Issue
Block a user