From 0e2f032a44069bbacd359849c715750692d5216b Mon Sep 17 00:00:00 2001 From: wenjy Date: Fri, 25 Mar 2022 14:28:18 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20sensorInfo=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=BC=96=E8=BE=91=E9=80=89=E6=8B=A9=E7=9B=91?= =?UTF-8?q?=E6=8E=A7=E5=8D=95=E5=85=83500=E9=97=AE=E9=A2=98=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/templates/base/sensorInfo/add.html | 3 +-- .../src/main/resources/templates/base/sensorInfo/edit.html | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/base/sensorInfo/add.html b/ruoyi-admin/src/main/resources/templates/base/sensorInfo/add.html index 84bbcaf..1f81f49 100644 --- a/ruoyi-admin/src/main/resources/templates/base/sensorInfo/add.html +++ b/ruoyi-admin/src/main/resources/templates/base/sensorInfo/add.html @@ -98,7 +98,7 @@ /* 选择监控单元树 */ function selectMonitorTree() { - var deptId = $.common.isEmpty($("#treeId").val()) ? "100" : $("#treeId").val(); + var deptId = $.common.isEmpty($("#treeId").val()) ? "" : $("#treeId").val(); var url = ctx + "base/monitorUnitInfo/selectMonitorUnitInfoTree/" + deptId; var options = { title: '选择部门', @@ -122,7 +122,6 @@ var str = localStorage.getItem(cp_keynum); var num = JSON.parse(str); if(num != null) { - alert(num.cp_num_value.substring(0, num.cp_num_value.indexOf('/'))); $("#treeId").val(num.cp_num_value.substring(0, num.cp_num_value.indexOf('/'))); $("#treeName").val(num.cp_num_value.substring(num.cp_num_value.indexOf('/')+1,num.cp_num_value.length )); diff --git a/ruoyi-admin/src/main/resources/templates/base/sensorInfo/edit.html b/ruoyi-admin/src/main/resources/templates/base/sensorInfo/edit.html index 8f361d0..d285f8a 100644 --- a/ruoyi-admin/src/main/resources/templates/base/sensorInfo/edit.html +++ b/ruoyi-admin/src/main/resources/templates/base/sensorInfo/edit.html @@ -95,7 +95,7 @@ /* 选择监控单元树 */ function selectMonitorTree() { - var deptId = $.common.isEmpty($("#treeId").val()) ? "100" : $("#treeId").val(); + var deptId = $.common.isEmpty($("#treeId").val()) ? "" : $("#treeId").val(); var url = ctx + "base/monitorUnitInfo/selectMonitorUnitInfoTree/" + deptId; var options = { title: '选择部门',