微调
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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<Device.ReqPqDevParams[]>([])//指定模式下所有未绑定的设备
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user