main
tamguo 7 years ago
parent 9d286e4400
commit 05e014eb6d

@ -6,7 +6,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import com.tamguo.modules.sys.model.SysOfficeEntity; import com.tamguo.modules.sys.model.SysOfficeEntity;
@ -23,16 +22,9 @@ import com.tamguo.modules.sys.service.ISysOfficeService;
@RequestMapping(path="sys/office") @RequestMapping(path="sys/office")
public class SysOfficeController { public class SysOfficeController {
private final String OFFICE_INDEX_PAGE = "modules/sys/office/index";
@Autowired @Autowired
private ISysOfficeService iSysOfficeService; private ISysOfficeService iSysOfficeService;
@RequestMapping(path="index")
public String index(ModelAndView model) {
return OFFICE_INDEX_PAGE;
}
@RequestMapping(path="listData") @RequestMapping(path="listData")
@ResponseBody @ResponseBody
public List<SysOfficeEntity> listData(SysOfficeCondition condition) { public List<SysOfficeEntity> listData(SysOfficeCondition condition) {

@ -46,7 +46,7 @@ content="width=device-width, initial-scale=1, user-scalable=1" name="viewport"/>
var setting = { var setting = {
view:{selectedMulti:false,dblClickExpand:false}, view:{selectedMulti:false,dblClickExpand:false},
check:{enable:"false"=="true",nocheckInherit:true}, check:{enable:"false"=="true",nocheckInherit:true},
data:{simpleData: {enable: true,idKey: "id",pIdKey: "parentId",rootPId: "",enable:true},key: {url:"nourl"}},callback:{ data:{simpleData: {enable: true,idKey: "id",pIdKey: "pId",rootPId: "",enable:true},key: {url:"nourl"}},callback:{
onClick:function(event, treeId, treeNode){ onClick:function(event, treeId, treeNode){
tree.expandNode(treeNode); tree.expandNode(treeNode);
}, },

@ -79,7 +79,7 @@ content="width=device-width, initial-scale=1, user-scalable=1" name="viewport"/>
<div class="form-group"> <div class="form-group">
<label class="control-label">机构:</label> <label class="control-label">机构:</label>
<div class="control-inline width-90"> <div class="control-inline width-90">
<div class="input-group treeselect" id="officeDiv" data-url="sys/office/treeData"> <div class="input-group treeselect" id="officeDiv" data-url="sys/office/treeData?">
<input id="officeCode" type="hidden" name="officeCode" value="" class="isReset"/> <input id="officeCode" type="hidden" name="officeCode" value="" class="isReset"/>
<input id="officeName" type="text" name="officeName" value="" <input id="officeName" type="text" name="officeName" value=""
class="form-control " readonly="readonly" class="form-control " readonly="readonly"
@ -165,7 +165,7 @@ $("#officeButton,#officeName").click(function(){
<div class="form-group"> <div class="form-group">
<label class="control-label">公司:</label> <label class="control-label">公司:</label>
<div class="control-inline width-90"> <div class="control-inline width-90">
<div class="input-group treeselect" id="companyDiv" data-url="sys/company/treeData"> <div class="input-group treeselect" id="companyDiv" data-url="sys/company/treeData?">
<input id="companyCode" type="hidden" name="companyCode" value="" class="isReset"/> <input id="companyCode" type="hidden" name="companyCode" value="" class="isReset"/>
<input id="companyName" type="text" name="companyName" value="" <input id="companyName" type="text" name="companyName" value=""
class="form-control " readonly="readonly" class="form-control " readonly="readonly"
@ -184,7 +184,7 @@ $("#companyButton,#companyName").click(function(){
shadeClose: true, shadeClose: true,
title: '公司选择', title: '公司选择',
area: ['300px', '400px'], area: ['300px', '400px'],
content: '/js/tags/treeselect', content: 'sys/treeselect',
contentFormData: { contentFormData: {
url: $('#companyDiv').attr('data-url'), url: $('#companyDiv').attr('data-url'),
checkbox: 'false', checkbox: 'false',
@ -251,9 +251,14 @@ $("#companyButton,#companyName").click(function(){
<div class="form-group"> <div class="form-group">
<label class="control-label">岗位:</label> <label class="control-label">岗位:</label>
<div class="control-inline width-90"> <div class="control-inline width-90">
<select id="employee_postCode" name="postCode" class="form-control">
<select id="employee_postCode" name="employee.postCode" class="form-control"> <option value="">&nbsp;</option>
<option value="">&nbsp;</option><option value="cfo">财务经理</option><option value="hrm">人力经理</option><option value="dept">部门经理</option><option value="user">普通员工</option></select> </div> <option value="cfo">财务经理</option>
<option value="hrm">人力经理</option>
<option value="dept">部门经理</option>
<option value="user">普通员工</option>
</select>
</div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label class="control-label">状态:</label> <label class="control-label">状态:</label>

Loading…
Cancel
Save