diff --git a/dbm-ui/frontend/src/services/source/permission.ts b/dbm-ui/frontend/src/services/source/permission.ts index 51c285a659..33cab05fb6 100644 --- a/dbm-ui/frontend/src/services/source/permission.ts +++ b/dbm-ui/frontend/src/services/source/permission.ts @@ -88,14 +88,7 @@ export const modifyAdminPassword = (params: { }[]; // 是否异步 is_async?: boolean; -}) => - http.post< - | { - success: AdminPasswordResultItem[]; - fail: AdminPasswordResultItem[]; - } - | string // 异步修改时返回root_id - >(`${path}/modify_admin_password/`, params); +}) => http.post(`${path}/modify_admin_password/`, params); /** * 查询生效实例密码(admin) @@ -120,10 +113,8 @@ export const queryAsyncModifyResult = (params: { root_id: string }) => http.post<{ status: string; error?: string; - data: { - success: AdminPasswordResultItem[]; - fail: AdminPasswordResultItem[]; - }; + success?: AdminPasswordResultItem[]; + fail?: AdminPasswordResultItem[]; result?: boolean; }>(`${path}/query_async_modify_result/`, params); diff --git a/dbm-ui/frontend/src/views/temporary-paassword-modify/Index.vue b/dbm-ui/frontend/src/views/temporary-paassword-modify/Index.vue index 7c2aa3f3e1..a370ee34e6 100644 --- a/dbm-ui/frontend/src/views/temporary-paassword-modify/Index.vue +++ b/dbm-ui/frontend/src/views/temporary-paassword-modify/Index.vue @@ -1,3 +1,226 @@ + + + + + + diff --git a/dbm-ui/frontend/src/views/temporary-paassword-modify/index/components/UpdateResult.vue b/dbm-ui/frontend/src/views/temporary-paassword-modify/components/UpdateResult.vue similarity index 54% rename from dbm-ui/frontend/src/views/temporary-paassword-modify/index/components/UpdateResult.vue rename to dbm-ui/frontend/src/views/temporary-paassword-modify/components/UpdateResult.vue index be587e5291..bedb013240 100644 --- a/dbm-ui/frontend/src/views/temporary-paassword-modify/index/components/UpdateResult.vue +++ b/dbm-ui/frontend/src/views/temporary-paassword-modify/components/UpdateResult.vue @@ -12,18 +12,51 @@ -->