mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-25 22:36:23 +00:00
fix: Asset detail account copy to asset and move to asset failed
This commit is contained in:
@@ -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'
|
||||||
|
Reference in New Issue
Block a user