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 @@ + +