diff --git a/src/components/Apps/AccountListTable/AccountCreateUpdate.vue b/src/components/Apps/AccountListTable/AccountCreateUpdate.vue index 4b134ca06..fc18c03f1 100644 --- a/src/components/Apps/AccountListTable/AccountCreateUpdate.vue +++ b/src/components/Apps/AccountListTable/AccountCreateUpdate.vue @@ -192,7 +192,6 @@ export default { this.iVisible = false this.$emit('add', true) this.handleResult(res, null) - this.$message.success(this.$tc('UpdateSuccessMsg')) }).catch(error => this.handleResult(null, error)) } } diff --git a/src/components/Apps/AccountListTable/AccountList.vue b/src/components/Apps/AccountListTable/AccountList.vue index 73434fa15..4809b8acd 100644 --- a/src/components/Apps/AccountListTable/AccountList.vue +++ b/src/components/Apps/AccountListTable/AccountList.vue @@ -479,28 +479,22 @@ export default { title: '复制到其他资产', type: 'primary', divided: true, - callback: async({ row }) => { - await this.getAssetDetail() - this.$nextTick(() => { - vm.$route.query.flag = 'copy' - vm.iAsset = this.asset - vm.account = row - vm.showAddDialog = true - }) + callback: ({ row }) => { + vm.$route.query.flag = 'copy' + vm.iAsset = this.asset + vm.account = row + vm.showAddDialog = true } }, { name: 'MoveToOther', title: '移动到其他资产', type: 'primary', - callback: async({ row }) => { - await this.getAssetDetail() - this.$nextTick(() => { - vm.$route.query.flag = 'move' - vm.iAsset = this.asset - vm.account = row - vm.showAddDialog = true - }) + callback: ({ row }) => { + vm.$route.query.flag = 'move' + vm.iAsset = this.asset + vm.account = row + vm.showAddDialog = true } }, { @@ -539,8 +533,7 @@ export default { can: () => { return vm.$hasPerm('accounts.add_account') && !this.$store.getters.currentOrgIsRoot }, - callback: async() => { - await this.getAssetDetail() + callback: () => { setTimeout(() => { vm.iAsset = this.asset vm.account = {} @@ -555,8 +548,7 @@ export default { can: () => { return vm.$hasPerm('accounts.add_account') && !this.$store.getters.currentOrgIsRoot }, - callback: async() => { - await this.getAssetDetail() + callback: () => { setTimeout(() => { vm.iAsset = this.asset vm.account = {}