diff --git a/src/api/project.js b/src/api/project.js index ff15b0c58..3b9fc32cb 100644 --- a/src/api/project.js +++ b/src/api/project.js @@ -61,10 +61,10 @@ export function setLwConfig(id, data) { data: data }); } -/** 查询所有的某类型设备 */ -export function getDevicesByType(type) { +/** 查询某个项目下的所有的某类型设备 */ +export function getDevicesByType(project, type) { return request({ - url: `/api/device/${type}/all`, + url: `/api/device/${project}/${type}/all`, method: 'get' }); } diff --git a/src/jmapNew/theme/beijing_01/menus/dispatchWorkMenu.vue b/src/jmapNew/theme/beijing_01/menus/dispatchWorkMenu.vue index 3f130eb5d..9e3fff807 100644 --- a/src/jmapNew/theme/beijing_01/menus/dispatchWorkMenu.vue +++ b/src/jmapNew/theme/beijing_01/menus/dispatchWorkMenu.vue @@ -1,6 +1,6 @@