From 7c1628187f7439f785ca70890866616ca30f190a Mon Sep 17 00:00:00 2001 From: 23688nl <329261568@qq.com> Date: Fri, 22 Apr 2022 10:57:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/iot/spaceDevice.js | 3 +- src/api/system/dept.js | 2 +- src/views/iot/alarm/record/index.vue | 2 +- src/views/iot/alarm/waringRecord/index.vue | 2 +- src/views/iot/device/index.vue | 5 +- src/views/iot/ota/index.vue | 6 +- src/views/iot/project/index.vue | 2 +- src/views/iot/project/profile/spaceDevice.vue | 3 +- src/views/power/examine/index.vue | 152 +++++++++++++----- src/views/power/maintenance/index.vue | 40 +++-- src/views/power/mywork/details.vue | 3 +- src/views/power/mywork/index.vue | 16 +- src/views/system/tenant/profile/disRole.vue | 5 +- src/views/tenant/circuitBreaker/index.vue | 1 - 14 files changed, 168 insertions(+), 74 deletions(-) diff --git a/src/api/iot/spaceDevice.js b/src/api/iot/spaceDevice.js index d2182715..fe4e8831 100644 --- a/src/api/iot/spaceDevice.js +++ b/src/api/iot/spaceDevice.js @@ -53,9 +53,10 @@ export function exportSpace_device(query) { } // 根据项目ID查询项目下所有设备 -export function listProjectDevice() { +export function listProjectDevice(data) { return request({ url: '/iot/space_device/not-used', method: 'get', + params: data }) } diff --git a/src/api/system/dept.js b/src/api/system/dept.js index 1365f359..0507627e 100644 --- a/src/api/system/dept.js +++ b/src/api/system/dept.js @@ -35,7 +35,7 @@ export function treeselect() { } // 根据角色ID查询部门树结构 -export function roleDeptTreeselect(roleId, tenantId) { +export function roleDeptTree(roleId, tenantId) { let reqUrl = tenantId ? '/' + tenantId + '/' : '/' return request({ url: '/system/dept/roleDeptTreeselect' + reqUrl + roleId, diff --git a/src/views/iot/alarm/record/index.vue b/src/views/iot/alarm/record/index.vue index b71aa1a3..18ca6713 100644 --- a/src/views/iot/alarm/record/index.vue +++ b/src/views/iot/alarm/record/index.vue @@ -241,7 +241,7 @@ export default { }) .then(() => { this.msgSuccess("创建成功!"); - this.$router.push("/power/maintenancet"); + this.$router.push("/power/maintenance"); }); }, sortChange(column) { diff --git a/src/views/iot/alarm/waringRecord/index.vue b/src/views/iot/alarm/waringRecord/index.vue index b7d3c9a5..f536090c 100644 --- a/src/views/iot/alarm/waringRecord/index.vue +++ b/src/views/iot/alarm/waringRecord/index.vue @@ -184,7 +184,7 @@ export default { }) .then(() => { this.msgSuccess("创建成功!"); - this.$router.push("/power/maintenancet"); + this.$router.push("/power/maintenance"); }); }, sortChange(column) { diff --git a/src/views/iot/device/index.vue b/src/views/iot/device/index.vue index 39e6f97a..fa86e6e0 100644 --- a/src/views/iot/device/index.vue +++ b/src/views/iot/device/index.vue @@ -556,9 +556,8 @@ export default { labelWidth: "68px", params: { deviceName: "", - modelId: "", - parentId: 0, - deviceType: "" + deviceType: "GATEWAY_CONTROLLER", + // parentId: '0' }, page: { pageSize: 10, diff --git a/src/views/iot/ota/index.vue b/src/views/iot/ota/index.vue index c44f3b12..e089ea4b 100644 --- a/src/views/iot/ota/index.vue +++ b/src/views/iot/ota/index.vue @@ -82,17 +82,17 @@ :index="indexFormatter" width="80px" > - + diff --git a/src/views/iot/project/index.vue b/src/views/iot/project/index.vue index 6be81224..9beda1c8 100644 --- a/src/views/iot/project/index.vue +++ b/src/views/iot/project/index.vue @@ -240,7 +240,7 @@ - +