|
|
@ -33,7 +33,10 @@
|
|
|
|
<div class="form-group">
|
|
|
|
<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">
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<input name="netDepart" required th:field="*{netDepart}" class="form-control" type="text">
|
|
|
|
<div class="input-group">
|
|
|
|
|
|
|
|
<input class="form-control" required type="text" name="netDepart" onclick="selectDeptTree()" id="treeName" th:field="*{netDepart}">
|
|
|
|
|
|
|
|
<span class="input-group-addon"><i class="fa fa-search"></i></span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!--<div class="form-group">
|
|
|
|
<!--<div class="form-group">
|
|
|
@ -129,7 +132,25 @@
|
|
|
|
$.operate.save(prefix + "/edit", $('#form-network-edit').serialize());
|
|
|
|
$.operate.save(prefix + "/edit", $('#form-network-edit').serialize());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 选择部门树 */
|
|
|
|
|
|
|
|
function selectDeptTree() {
|
|
|
|
|
|
|
|
var deptId = $.common.isEmpty($("#treeId").val()) ? "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='netDate']").datetimepicker({
|
|
|
|
$("input[name='netDate']").datetimepicker({
|
|
|
|
format: "yyyy-mm-dd",
|
|
|
|
format: "yyyy-mm-dd",
|
|
|
|
minView: "month",
|
|
|
|
minView: "month",
|
|
|
|