<th>
<span style="color: red;"></span> 责任处室:
</th>
<td>
<div class="input-group">
<input type="hidden" name="agent_code" value="${agent_code!}"
<strong>id="tree_aorgan_code"</strong>>
<input<strong> id="agent_name_item_name"</strong>
class="form-control" name="agent_name_item" type="text"
value="${agent_name_item!}" datatype="*" nullmsg=" " sucmsg=" "
readonly>
<span class="input-group-addon"
style="cursor: pointer;" <strong>οnclick="openOrgan()"</strong>> <i
class="icon-folder-open-alt"></i>
</span>
<div class="Validform_checktip"></div>
</div>
</td>
function openOrgan(){
var addButtons = [{
id:'choose-organ-tree',
name: '确定',
callback: function () {
return chooseagentitem();
},
focus: true
}, {
name: '取消'
}];
Power.dialog({id: 'select-executor-tree',width:300,height:250,title:"选择所属机关",url :"mng/system/tree/executortree?type=tree&sign=itemWindow®ionCode=",button:addButtons,init:function(){initTree();}});
}
tree.html
/**
*选择操作bdy6-4
*/
function chooseagentitem(){
if(select_organ_name==""||select_organ_code=="" ){
Power.dialog.alert("请选择组织机关!");
return false;
} else {
$("#agent_name_item_name").val(select_organ_name).change();
$("#tree_aorgan_code").val(select_organ_code).change();
return true;
}
}