diff --git a/src/api/device/product.ts b/src/api/device/product.ts index df3741d5..ca143ef3 100644 --- a/src/api/device/product.ts +++ b/src/api/device/product.ts @@ -48,7 +48,7 @@ export const category = (data: any) => server.post('/device/category/_tree', dat /** * 获取网关类型 */ - export const getProviders = () => server.get('/gateway/device/providers') + export const getProviders = (terms?:any) => server.get('/gateway/device/providers',terms) /** * 查询所属部门 diff --git a/src/api/system/relationship.ts b/src/api/system/relationship.ts index f7aa1ab7..a6bd6543 100644 --- a/src/api/system/relationship.ts +++ b/src/api/system/relationship.ts @@ -10,4 +10,7 @@ export const addRelation_api = (data: object) => server.post(`/relation`, data); // 保存关系 export const editRelation_api = (data: object) => server.patch(`/relation`, data); // 删除关系 -export const delRelation_api = (id: string) => server.remove(`/relation/${id}`); \ No newline at end of file +export const delRelation_api = (id: string) => server.remove(`/relation/${id}`); + +// 验证标识唯一性 +export const validateField = (params: any) => server.get(`/relation/_validate`, params); \ No newline at end of file diff --git a/src/components/BatchDropdown/index.vue b/src/components/BatchDropdown/index.vue index 90368bbf..928bed9a 100644 --- a/src/components/BatchDropdown/index.vue +++ b/src/components/BatchDropdown/index.vue @@ -75,11 +75,9 @@ const handleMenuClick = (e: any) => { if(!(val?.popConfirm || val?.onClick)){ emits('update:isCheck', true); emits('change', true); - } - if (val?.popConfirm) { - visible.value = false; - } else { visible.value = true; + } else { + visible.value = false; } _item.value = (val || {}) as any; }; diff --git a/src/components/Layout/BasicLayoutPage.vue b/src/components/Layout/BasicLayoutPage.vue index 71ebdcc8..598fa6e5 100644 --- a/src/components/Layout/BasicLayoutPage.vue +++ b/src/components/Layout/BasicLayoutPage.vue @@ -15,7 +15,7 @@ > {{ slotProps.route.breadcrumbName }} - {{ slotProps.route.breadcrumbName }} + {{ slotProps.route.breadcrumbName }}