change - sensorInfo页面添加编辑选择监控单元500问题处理

main
wenjy 3 years ago
parent ea6171386a
commit 0e2f032a44

@ -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 ));

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

Loading…
Cancel
Save