diff --git a/front/src/store/account.ts b/front/src/store/account.ts index a6f9261b89..03d10b2622 100644 --- a/front/src/store/account.ts +++ b/front/src/store/account.ts @@ -134,7 +134,7 @@ export const useAccountStore = defineStore({ * @param {number} id * @return {*} */ - async accountDelete(id: number) { + async accountDelete(id: string) { return http.delete(`${BK_HCM_AJAX_URL_PREFIX}/api/v1/cloud/accounts/${id}`); }, /** @@ -142,7 +142,7 @@ export const useAccountStore = defineStore({ * @param {number} id * @return {*} */ - async accountDeleteValidate(id: number) { + async accountDeleteValidate(id: string) { return http.post(`${BK_HCM_AJAX_URL_PREFIX}/api/v1/cloud/accounts/${id}/delete/validate`); }, /** @@ -187,12 +187,10 @@ export const useAccountStore = defineStore({ }, async updateAccountList(data: any) { - console.log('data', data); this.accountList = data?.map(({ id, name }: { id: string; name: string }) => ({ id, name, })); - console.log('this.accountList', this.accountList); }, /** diff --git a/front/src/views/resource/accountmanage/index.vue b/front/src/views/resource/accountmanage/index.vue index 33070ff55d..c16ae415f9 100644 --- a/front/src/views/resource/accountmanage/index.vue +++ b/front/src/views/resource/accountmanage/index.vue @@ -1,154 +1,243 @@ + + - - - - - - - - {{ t('精确') }} - - - + + + + {{ t('精确') }} + - + + - - - - - {{ props?.row.name }} - - - - - - - {{ AccountType[props?.row.type] }} - - - - - - {{ CloudType[props?.row?.vendor] }} - - - - - - {{ SITE_TYPE_MAP[props?.row.site] }} - - - - - {{ - props?.row?.bk_biz_ids - ?.join(',') - ?.split(',') - ?.map((v: string) => getNameFromBusinessMap(+v)) - ?.join(',') - }} - - - - - {{ props?.row.managers?.join(',') }} - - - - - - - - {{ timeFormatter(props?.row.created_at) }} - - - - - {{ timeFormatter(props?.row.updated_at) }} + + - - - - - - - {{ t('编辑') }} - - - - {{ t('删除') }} - - - {{ t('同步') }} - - + + + + {{ t('编辑') }} + + {{ t('删除') }} - - - {{ t('删除之后无法恢复账户信息') }} - - - {{ t('同步中...') }} - {{ t('同步该账号下的资源,点击确定后,立即触发同步任务') }} - - - - - 确认 - - 取消 - - - + + + + {{ t('删除之后无法恢复账户信息') }} + - -