diff --git a/dbm-ui/frontend/src/services/source/dbbase.ts b/dbm-ui/frontend/src/services/source/dbbase.ts
index 8170495351..6c16badaf8 100644
--- a/dbm-ui/frontend/src/services/source/dbbase.ts
+++ b/dbm-ui/frontend/src/services/source/dbbase.ts
@@ -27,7 +27,7 @@ export function verifyDuplicatedClusterName(params: { cluster_type: string; name
}
/**
- * 根据过滤条件查询集群详细信息
+ * 根据过滤条件查询集群详细信息,返回的字段和集群列表接口相同
*/
export function filterClusters<
T extends {
diff --git a/dbm-ui/frontend/src/views/permission-retrieve/components/options/Index.vue b/dbm-ui/frontend/src/views/permission-retrieve/components/options/Index.vue
index 19add5dc9d..6b8d2026d9 100644
--- a/dbm-ui/frontend/src/views/permission-retrieve/components/options/Index.vue
+++ b/dbm-ui/frontend/src/views/permission-retrieve/components/options/Index.vue
@@ -17,20 +17,25 @@
ref="formRef"
form-type="vertical"
:model="formData">
-
+
+ :account-type="accountType"
+ @change="getUserList" />
+ :form-data="formData"
+ :validate-func="userSelectValidateFunc" />
>();
const domainItemRef = ref>();
+ const userSelectRef = ref>();
const formData = reactive(getDefaultFormData());
@@ -134,6 +140,16 @@
formRef.value!.clearValidate();
});
};
+
+ const userSelectValidateFunc = () =>
+ formRef
+ .value!.validate(['ips', 'immute_domains'])
+ .then(() => true)
+ .catch(() => false);
+
+ const getUserList = () => {
+ userSelectRef.value!.getUserList();
+ };