|
|
|
@ -36,9 +36,12 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>-->
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label is-required">使用部门:</label>
|
|
|
|
|
<label class="col-sm-3 control-label is-required">使用单位:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="useDepart" required class="form-control" type="text">
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<input name="useDepart" required onclick="selectDeptTree()" id="treeName" type="text" placeholder="请选择使用单位" class="form-control">
|
|
|
|
|
<span class="input-group-addon"><i class="fa fa-search"></i></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
@ -139,7 +142,25 @@
|
|
|
|
|
$.operate.save(prefix + "/add", $('#form-property-add').serialize());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 选择部门树 */
|
|
|
|
|
function selectDeptTree() {
|
|
|
|
|
var treeId = $("#treeId").val();
|
|
|
|
|
var deptId = $.common.isEmpty(treeId) ? "100" : $("#treeId").val();
|
|
|
|
|
var url = ctx + "system/user/selectDeptTree/" + deptId;
|
|
|
|
|
var options = {
|
|
|
|
|
title: '选择部门',
|
|
|
|
|
width: "380",
|
|
|
|
|
url: url,
|
|
|
|
|
callBack: doSubmit
|
|
|
|
|
};
|
|
|
|
|
$.modal.openOptions(options);
|
|
|
|
|
}
|
|
|
|
|
function doSubmit(index, layero){
|
|
|
|
|
var body = $.modal.getChildFrame(index);
|
|
|
|
|
$("#treeId").val(body.find('#treeId').val());
|
|
|
|
|
$("#treeName").val(body.find('#treeName').val());
|
|
|
|
|
$.modal.close(index);
|
|
|
|
|
}
|
|
|
|
|
$("input[name='useDate']").datetimepicker({
|
|
|
|
|
format: "yyyy-mm-dd",
|
|
|
|
|
minView: "month",
|
|
|
|
|