diff --git a/src/api/iot/project_new.js b/src/api/iot/project_new.js index ecc28eeb..a568014f 100644 --- a/src/api/iot/project_new.js +++ b/src/api/iot/project_new.js @@ -232,3 +232,12 @@ export function projectSceneLoggingList(query) { params: query }); } + +// 查询 查询 项目中设备列表 +export function projectSelectDeviceList(query) { + return request({ + url: "/iot/device/projectDev", + method: "get", + params: query + }); +} diff --git a/src/views/iot/project/profileV2/ESceneManage/ESceneAction/src/EDeviceParam.vue b/src/views/iot/project/profileV2/ESceneManage/ESceneAction/src/EDeviceParam.vue index 245aaa1f..0d26c7e0 100644 --- a/src/views/iot/project/profileV2/ESceneManage/ESceneAction/src/EDeviceParam.vue +++ b/src/views/iot/project/profileV2/ESceneManage/ESceneAction/src/EDeviceParam.vue @@ -154,7 +154,8 @@ // import { listDevice } from "@/api/iot/device"; import SelectTableWrap from "@/components/SelectTable/index"; import { getDeviceFunList, getDeviceCmdList } from "@/api/iot/device"; -import { getDeviceList } from "@/api/app"; +import { projectSelectDeviceList } from "@/api/iot/project_new"; + export default { name: "EDeviceParam", @@ -403,7 +404,7 @@ export default { this.deviceChildList(data); }, deviceChildList(data) { - getDeviceList(Object.assign(data.page, data.param)).then((res) => { + projectSelectDeviceList(Object.assign(data.page, data.param)).then((res) => { this.tableSelectOption.tableList = res.rows; this.tableList = res.rows; this.tableSelectOption.queryOpt.page.total = Number(res.total); diff --git a/src/views/iot/project/profileV2/ESceneManage/ESceneTriggers/src/ESelectDevice.vue b/src/views/iot/project/profileV2/ESceneManage/ESceneTriggers/src/ESelectDevice.vue index 079a8e69..68faaaae 100644 --- a/src/views/iot/project/profileV2/ESceneManage/ESceneTriggers/src/ESelectDevice.vue +++ b/src/views/iot/project/profileV2/ESceneManage/ESceneTriggers/src/ESelectDevice.vue @@ -49,7 +49,7 @@