|
|
@ -98,7 +98,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
/* 选择监控单元树 */
|
|
|
|
/* 选择监控单元树 */
|
|
|
|
function selectMonitorTree() {
|
|
|
|
function selectMonitorTree() {
|
|
|
|
var deptId = $.common.isEmpty($("#monitorUnitId").val()) ? "100" : $("#monitorUnitId").val();
|
|
|
|
var deptId = $.common.isEmpty($("#treeId").val()) ? "100" : $("#treeId").val();
|
|
|
|
var url = ctx + "base/monitorUnitInfo/selectMonitorUnitInfoTree/" + deptId;
|
|
|
|
var url = ctx + "base/monitorUnitInfo/selectMonitorUnitInfoTree/" + deptId;
|
|
|
|
var options = {
|
|
|
|
var options = {
|
|
|
|
title: '选择部门',
|
|
|
|
title: '选择部门',
|
|
|
@ -122,6 +122,7 @@
|
|
|
|
var str = localStorage.getItem(cp_keynum);
|
|
|
|
var str = localStorage.getItem(cp_keynum);
|
|
|
|
var num = JSON.parse(str);
|
|
|
|
var num = JSON.parse(str);
|
|
|
|
if(num != null) {
|
|
|
|
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('/')));
|
|
|
|
$("#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 ));
|
|
|
|
$("#treeName").val(num.cp_num_value.substring(num.cp_num_value.indexOf('/')+1,num.cp_num_value.length ));
|
|
|
|