fix: Asset detail account copy to asset and move to asset failed

This commit is contained in:
w940853815
2025-03-05 17:12:01 +08:00
committed by w940853815
parent bfab828813
commit 1121af7441

View File

@@ -148,6 +148,9 @@ export const accountOtherActions = (vm) => [
title: vm.$t('CopyToAsset'), title: vm.$t('CopyToAsset'),
type: 'primary', type: 'primary',
divided: true, divided: true,
has: () => {
return !vm.asset
},
callback: ({ row }) => { callback: ({ row }) => {
vm.accountCreateUpdateTitle = vm.$t('CopyToOther') vm.accountCreateUpdateTitle = vm.$t('CopyToOther')
vm.$route.query.flag = 'copy' vm.$route.query.flag = 'copy'
@@ -160,6 +163,9 @@ export const accountOtherActions = (vm) => [
name: 'MoveToOther', name: 'MoveToOther',
title: vm.$t('MoveToAsset'), title: vm.$t('MoveToAsset'),
type: 'primary', type: 'primary',
has: () => {
return !vm.asset
},
callback: ({ row }) => { callback: ({ row }) => {
vm.accountCreateUpdateTitle = vm.$t('MoveToOther') vm.accountCreateUpdateTitle = vm.$t('MoveToOther')
vm.$route.query.flag = 'move' vm.$route.query.flag = 'move'