Perf: Optimize some details

This commit is contained in:
zhaojisen
2025-01-07 14:58:46 +08:00
committed by ZhaoJiSen
parent d82e557fd1
commit 3bb3361e2f
2 changed files with 8 additions and 3 deletions

View File

@@ -281,7 +281,8 @@ export default {
can: () => {
return vm.$hasPerm('accounts.add_account') && !this.$store.getters.currentOrgIsRoot
},
callback: () => {
callback: async() => {
await this.getAssetDetail()
setTimeout(() => {
vm.iAsset = this.asset
vm.account = {}
@@ -296,7 +297,8 @@ export default {
can: () => {
return vm.$hasPerm('accounts.add_account') && !this.$store.getters.currentOrgIsRoot
},
callback: () => {
callback: async() => {
await this.getAssetDetail()
setTimeout(() => {
vm.iAsset = this.asset
vm.account = {}

View File

@@ -68,7 +68,10 @@ export const accountOtherActions = (vm) => [
...vm.asset,
...row.asset
}
vm.account = row
vm.account = {
...row,
name: `${row.name} - ${vm.$t('Duplicate').toLowerCase()}`
}
vm.iAsset = data
vm.showAddDialog = false
vm.accountCreateUpdateTitle = vm.$t('DuplicateAccount')