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: '选择部门',