diff --git a/frontend/src/api/plan/plan.ts b/frontend/src/api/plan/plan.ts index 2963502..744b89b 100644 --- a/frontend/src/api/plan/plan.ts +++ b/frontend/src/api/plan/plan.ts @@ -55,9 +55,9 @@ export const getBoundPqDevList = (params: any) => { } //检测计划绑定设备 -export const BindPqDevList = (params: any) => { - return http.post(`/pqDev/bindDev`,params) -} +// export const BindPqDevList = (params: any) => { +// return http.post(`/pqDev/bindDev`,params) +// } // 按照模式查询检测计划(用于首页展示) export const getPlanListByPattern = (params:Plan.ReqPlan) => { diff --git a/frontend/src/views/plan/planList/components/devTransfer.vue b/frontend/src/views/plan/planList/components/devTransfer.vue index 29b9659..7770a8f 100644 --- a/frontend/src/views/plan/planList/components/devTransfer.vue +++ b/frontend/src/views/plan/planList/components/devTransfer.vue @@ -32,7 +32,7 @@ import type { Device } from '@/api/device/interface' import deviceDataList from '@/api/device/deviceData' import { dialogBig } from '@/utils/elementBind' - import { getUnboundPqDevList,getBoundPqDevList,BindPqDevList } from '@/api/plan/plan.ts' + import { getUnboundPqDevList,getBoundPqDevList } from '@/api/plan/plan.ts' import { type Plan } from '@/api/plan/interface' import { ElMessage } from 'element-plus' const unboundPqDevList=ref([])//指定模式下所有未绑定的设备 @@ -83,7 +83,7 @@ const filterMethod = (query: string, item: { label?: string }) => { const save = async () => { if (planData.value) { - await BindPqDevList({ 'planId': planData.value.id,'pqDevIds': value.value }) + //await BindPqDevList({ 'planId': planData.value.id,'pqDevIds': value.value }) ElMessage.success({ message: `设备绑定保存成功成功!` }) } dialogVisible.value = false