修改页面和接口
This commit is contained in:
parent
74b2574886
commit
f64c28f318
|
@ -9,6 +9,9 @@ import com.cyx.common.core.domain.entity.SysDept;
|
|||
import com.cyx.common.enums.BusinessType;
|
||||
import com.cyx.common.utils.StringUtils;
|
||||
import com.cyx.system.service.ISysDeptService;
|
||||
import com.cyx.web.base.domain.TAmentBranch;
|
||||
import com.cyx.web.base.domain.TAmentPersonnel;
|
||||
import com.cyx.web.base.service.ITAmentPersonnelService;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
@ -48,6 +51,9 @@ public class BaseDeptController extends BaseController
|
|||
return deptList;
|
||||
}
|
||||
|
||||
@Autowired
|
||||
private ITAmentPersonnelService personnelService;
|
||||
|
||||
/**
|
||||
* 新增部门
|
||||
*/
|
||||
|
@ -59,6 +65,7 @@ public class BaseDeptController extends BaseController
|
|||
parentId = getSysUser().getDeptId();
|
||||
}
|
||||
mmap.put("dept", deptService.selectDeptById(parentId));
|
||||
mmap.put("perList",personnelService.selectTAmentPersonnelList(new TAmentPersonnel()));
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
|
@ -93,6 +100,7 @@ public class BaseDeptController extends BaseController
|
|||
dept.setParentName("无");
|
||||
}
|
||||
mmap.put("dept", dept);
|
||||
mmap.put("perList",personnelService.selectTAmentPersonnelList(new TAmentPersonnel()));
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
|
|
|
@ -8,6 +8,8 @@ import com.cyx.common.core.domain.AjaxResult;
|
|||
import com.cyx.common.core.page.TableDataInfo;
|
||||
import com.cyx.common.enums.BusinessType;
|
||||
import com.cyx.common.utils.poi.ExcelUtil;
|
||||
import com.cyx.web.base.domain.TAmentPersonnel;
|
||||
import com.cyx.web.base.service.ITAmentPersonnelService;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
@ -34,6 +36,8 @@ public class TAmentBranchController extends BaseController
|
|||
|
||||
@Autowired
|
||||
private ITAmentBranchService tAmentBranchService;
|
||||
@Autowired
|
||||
private ITAmentPersonnelService personnelService;
|
||||
|
||||
@RequiresPermissions("base:branch:view")
|
||||
@GetMapping()
|
||||
|
@ -73,9 +77,12 @@ public class TAmentBranchController extends BaseController
|
|||
* 新增支部
|
||||
*/
|
||||
@GetMapping("/add")
|
||||
public String add()
|
||||
public String add( ModelMap mmap)
|
||||
{
|
||||
mmap.put("branchList",tAmentBranchService.selectTAmentBranchList(new TAmentBranch()));
|
||||
mmap.put("perList",personnelService.selectTAmentPersonnelList(new TAmentPersonnel()));
|
||||
return prefix + "/add";
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -99,6 +106,8 @@ public class TAmentBranchController extends BaseController
|
|||
{
|
||||
TAmentBranch tAmentBranch = tAmentBranchService.selectTAmentBranchByBranchId(branchId);
|
||||
mmap.put("tAmentBranch", tAmentBranch);
|
||||
mmap.put("branchList",tAmentBranchService.selectTAmentBranchList(new TAmentBranch()));
|
||||
mmap.put("perList",personnelService.selectTAmentPersonnelList(new TAmentPersonnel()));
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
|
|
|
@ -9,15 +9,13 @@ import com.alibaba.fastjson.JSONObject;
|
|||
import com.cyx.common.annotation.Log;
|
||||
import com.cyx.common.core.controller.BaseController;
|
||||
import com.cyx.common.core.domain.AjaxResult;
|
||||
import com.cyx.common.core.domain.entity.SysDept;
|
||||
import com.cyx.common.core.page.TableDataInfo;
|
||||
import com.cyx.common.enums.BusinessType;
|
||||
import com.cyx.common.utils.poi.ExcelUtil;
|
||||
import com.cyx.web.base.domain.TAmentCommitHis;
|
||||
import com.cyx.web.base.domain.TAmentPersonnel;
|
||||
import com.cyx.web.base.domain.TAmentReviewedHis;
|
||||
import com.cyx.web.base.service.ITAmentCommitHisService;
|
||||
import com.cyx.web.base.service.ITAmentPersonnelService;
|
||||
import com.cyx.web.base.service.ITAmentReviewedHisService;
|
||||
import com.cyx.system.service.ISysDeptService;
|
||||
import com.cyx.web.base.domain.*;
|
||||
import com.cyx.web.base.service.*;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
@ -27,8 +25,6 @@ import org.springframework.web.bind.annotation.PathVariable;
|
|||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import com.cyx.web.base.domain.TAmentPartyAffairs;
|
||||
import com.cyx.web.base.service.ITAmentPartyAffairsService;
|
||||
|
||||
/**
|
||||
* 党务Controller
|
||||
|
@ -40,6 +36,13 @@ import com.cyx.web.base.service.ITAmentPartyAffairsService;
|
|||
@RequestMapping("/base/affairs")
|
||||
public class TAmentPartyAffairsController extends BaseController
|
||||
{
|
||||
|
||||
@Autowired
|
||||
private ITAmentPersonnelService personnelService;
|
||||
@Autowired
|
||||
private ISysDeptService deptService;
|
||||
@Autowired
|
||||
private ITAmentBranchService branchService;
|
||||
/**
|
||||
* 待办预警
|
||||
*/
|
||||
|
@ -324,6 +327,9 @@ public class TAmentPartyAffairsController extends BaseController
|
|||
{
|
||||
TAmentPartyAffairs tAmentPartyAffairs = tAmentPartyAffairsService.selectTAmentPartyAffairsById(id);
|
||||
mmap.put("tAmentPartyAffairs", tAmentPartyAffairs);
|
||||
mmap.put("perList",personnelService.selectTAmentPersonnelList(new TAmentPersonnel()));
|
||||
mmap.put("deptList",deptService.selectDeptList(new SysDept()));
|
||||
mmap.put("branchList",branchService.selectTAmentBranchList(new TAmentBranch()));
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
|
|
|
@ -149,6 +149,8 @@ public class TAmentPersonnelController extends BaseController
|
|||
{
|
||||
TAmentPersonnel tAmentPersonnel = tAmentPersonnelService.selectTAmentPersonnelById(id);
|
||||
mmap.put("tAmentPersonnel", tAmentPersonnel);
|
||||
mmap.put("deptList",deptService.selectDeptList(new SysDept()));
|
||||
mmap.put("branchList",branchService.selectTAmentBranchList(new TAmentBranch()));
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">指标综合评分:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="score" class="form-control" type="text">
|
||||
<input name="score" class="form-control" type="number">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">指标综合评分:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="score" th:field="*{score}" class="form-control" type="text">
|
||||
<input name="score" th:field="*{score}" class="form-control" type="number">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label" id="score">达标分:</label>
|
||||
<div class="col-sm-8">
|
||||
<input required name="score" class="form-control" />
|
||||
<input required name="score" class="form-control" type="number"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group dy" style="display: none">
|
||||
|
@ -102,7 +102,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">支部ID:</label>
|
||||
<label class="col-sm-3 control-label">支部:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="branchId" id="branchId" class="form-control m-b">
|
||||
<option value="">请选择</option>
|
||||
|
|
|
@ -86,6 +86,12 @@
|
|||
var removeFlag = [[${@permission.hasPermi('base:affairs:remove')}]];
|
||||
var prefix = ctx + "base/affairs";
|
||||
|
||||
if(window.parent.parent){
|
||||
$("#shotName").val(window.parent.parent._shotName)
|
||||
}else {
|
||||
$("#shotName").val('')
|
||||
}
|
||||
|
||||
$(document).ready(function () {
|
||||
$.ajax({
|
||||
type: "post",
|
||||
|
|
|
@ -8,48 +8,71 @@
|
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-affairs-edit" th:object="${tAmentPartyAffairs}">
|
||||
<input name="id" th:field="*{id}" type="hidden">
|
||||
<!-- <div class="form-group"> -->
|
||||
<!-- <label class="col-sm-3 control-label">单位名称:</label>-->
|
||||
<!-- <div class="col-sm-8">-->
|
||||
<!-- <input name="unit" th:field="*{unit}" class="form-control" type="text">-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <select required name="type" id="type-selector" class="form-control m-b">-->
|
||||
<!-- <option value="">请选择</option>-->
|
||||
<!-- <option value="党务及意识形态">党务及意识形态</option>-->
|
||||
<!-- <option value="党风廉政建设">党风廉政建设</option>-->
|
||||
<!-- <option value="日常考核指标">日常考核指标</option>-->
|
||||
<!-- <option value="季度考核指标">季度考核指标</option>-->
|
||||
<!-- </select>-->
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">目标项:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="type" th:field="*{type}" readonly="true" disabled id="type-selector" class="form-control">
|
||||
<option value="">请选择</option>
|
||||
<option value="党务及意识形态">党务及意识形态</option>
|
||||
<option value="党风廉政建设">党风廉政建设</option>
|
||||
<option value="日常考核指标">日常考核指标</option>
|
||||
<option value="季度考核指标">季度考核指标</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">目标项:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="target" th:field="*{target}" class="form-control" type="text">
|
||||
<input name="target" readonly="true" th:field="*{target}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">简称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="shotName" th:field="*{shotName}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">目标要求:</label>
|
||||
<div class="col-sm-8">
|
||||
<textarea name="demand" class="form-control">[[*{demand}]]</textarea>
|
||||
<textarea name="demand" readonly="true" class="form-control">[[*{demand}]]</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">评分细则:</label>
|
||||
<div class="col-sm-8">
|
||||
<textarea name="detailed" class="form-control">[[*{detailed}]]</textarea>
|
||||
<textarea name="detailed" readonly="true" class="form-control">[[*{detailed}]]</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">达标分:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="score" th:field="*{score}" class="form-control" type="text">
|
||||
<input name="score" th:field="*{score}" class="form-control" type="number">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">考核方式:</label>
|
||||
<div class="col-sm-8">
|
||||
<textarea name="method" class="form-control">[[*{method}]]</textarea>
|
||||
<textarea name="method" readonly="true" class="form-control">[[*{method}]]</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">负责人:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="head" th:field="*{head}" id="head" class="form-control m-b">
|
||||
<select name="parentId" th:field="*{head}" id="parentId" class="form-control">
|
||||
<option value="">请选择</option>
|
||||
<option th:each="item : ${perList}" th:text="${item.name}" th:value="${item.id}"></option>
|
||||
</select>
|
||||
<!-- <select name="head" th:field="*{head}" id="head" class="form-control m-b">-->
|
||||
<!-- <option value="">请选择</option>-->
|
||||
<!-- </select>-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
@ -57,6 +80,7 @@
|
|||
<div class="col-sm-8">
|
||||
<select name="reviewed" th:field="*{reviewed}" id="reviewed" class="form-control m-b">
|
||||
<option value="">请选择</option>
|
||||
<option th:each="item : ${perList}" th:text="${item.name}" th:value="${item.id}"></option>
|
||||
</select>
|
||||
<!-- <input name="reviewed" th:field="*{reviewed}" class="form-control" type="text">-->
|
||||
</div>
|
||||
|
@ -71,27 +95,30 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">操作人员ID:</label>
|
||||
<label class="col-sm-3 control-label">操作人员:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="perId" th:field="*{perId}" id="perId" class="form-control m-b">
|
||||
<option value="">请选择</option>
|
||||
<option th:each="item : ${perList}" th:text="${item.name}" th:value="${item.id}"></option>
|
||||
</select>
|
||||
<!-- <input name="perId" th:field="*{perId}" class="form-control" type="text">-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">部门ID:</label>
|
||||
<label class="col-sm-3 control-label">部门:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="deptId" th:field="*{deptId}" id="deptId" class="form-control m-b">
|
||||
<option value="">请选择</option>
|
||||
<option th:each="item : ${deptList}" th:text="${item.deptName}" th:value="${item.deptId}"></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">支部ID:</label>
|
||||
<label class="col-sm-3 control-label">支部:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="branchId" th:field="*{branchId}" id="branchId" class="form-control m-b">
|
||||
<option value="">请选择</option>
|
||||
<option th:each="item : ${branchList}" th:text="${item.branchName}" th:value="${item.branchId}"></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -111,52 +138,47 @@
|
|||
focusCleanup: true
|
||||
});
|
||||
|
||||
refresh()
|
||||
function refresh(){
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: ctx + "base/personnel/personnelList",
|
||||
data: {
|
||||
},
|
||||
success: function(data) {
|
||||
var opt = '';
|
||||
data.data.forEach(d=>{
|
||||
opt += '<option value="'+d.id+'">'+d.name+'</option>';
|
||||
})
|
||||
$("#head")[0].innerHTML=opt;
|
||||
$("#reviewed")[0].innerHTML=opt;
|
||||
$("#perId")[0].innerHTML=opt;
|
||||
}
|
||||
});
|
||||
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: ctx + "base/personnel/deptList",
|
||||
data: {
|
||||
},
|
||||
success: function(data) {
|
||||
var opt = '';
|
||||
data.data.forEach(d=>{
|
||||
opt += '<option value="'+d.deptId+'">'+d.deptName+'</option>';
|
||||
})
|
||||
$("#deptId")[0].innerHTML=opt;
|
||||
}
|
||||
});
|
||||
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: ctx + "base/personnel/branchList",
|
||||
data: {
|
||||
},
|
||||
success: function(data) {
|
||||
var opt = '';
|
||||
data.data.forEach(d=>{
|
||||
opt += '<option value="'+d.branchId+'">'+d.branchName+'</option>';
|
||||
})
|
||||
$("#branchId")[0].innerHTML=opt;
|
||||
}
|
||||
});
|
||||
}
|
||||
$("#type-selector").on("change", function() {
|
||||
var type = $(this).val();
|
||||
var target = $("#target");
|
||||
var demand = $("#demand");
|
||||
var detailed = $("#detailed");
|
||||
var score = $("#score");
|
||||
switch (type) {
|
||||
case "党务及意识形态":
|
||||
$("#dw").show()
|
||||
$(".dy").hide()
|
||||
target[0].innerHTML = '目标项:'
|
||||
demand[0].innerHTML = '目标要求:'
|
||||
detailed[0].innerHTML = '工作任务:'
|
||||
score[0].innerHTML = '达标分:'
|
||||
break;
|
||||
case "党风廉政建设":
|
||||
$("#dw").show()
|
||||
$(".dy").hide()
|
||||
target[0].innerHTML = '责任类别:'
|
||||
demand[0].innerHTML = '目标要求:'
|
||||
detailed[0].innerHTML = '工作任务:'
|
||||
score[0].innerHTML = '达标分:'
|
||||
break;
|
||||
case "日常考核指标":
|
||||
$("#dw").hide()
|
||||
$(".dy").show()
|
||||
target[0].innerHTML = '考核内容:'
|
||||
demand[0].innerHTML = '考核目标:'
|
||||
detailed[0].innerHTML = '工作任务:'
|
||||
score[0].innerHTML = '分值:'
|
||||
break;
|
||||
case "季度考核指标":
|
||||
$("#dw").hide()
|
||||
$(".dy").show()
|
||||
target[0].innerHTML = '考核内容:'
|
||||
demand[0].innerHTML = '考核目标:'
|
||||
detailed[0].innerHTML = '评分办法:'
|
||||
score[0].innerHTML = '分值:'
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
|
|
|
@ -32,20 +32,20 @@
|
|||
</form>
|
||||
</div>
|
||||
|
||||
<div class="btn-group-sm" id="toolbar" role="group">
|
||||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="base:affairs:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="base:affairs:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="base:affairs:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="base:affairs:export">
|
||||
<i class="fa fa-download"></i> 导出
|
||||
</a>
|
||||
</div>
|
||||
<!-- <div class="btn-group-sm" id="toolbar" role="group">-->
|
||||
<!-- <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="base:affairs:add">-->
|
||||
<!-- <i class="fa fa-plus"></i> 添加-->
|
||||
<!-- </a>-->
|
||||
<!-- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="base:affairs:edit">-->
|
||||
<!-- <i class="fa fa-edit"></i> 修改-->
|
||||
<!-- </a>-->
|
||||
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="base:affairs:remove">-->
|
||||
<!-- <i class="fa fa-remove"></i> 删除-->
|
||||
<!-- </a>-->
|
||||
<!-- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="base:affairs:export">-->
|
||||
<!-- <i class="fa fa-download"></i> 导出-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-table"></table>
|
||||
</div>
|
||||
|
|
|
@ -12,7 +12,8 @@
|
|||
<div class="form-group col-sm-6 col-md-6">
|
||||
<label class="col-sm-4 col-md-4 control-label">提交时间</label>
|
||||
<div class="col-sm-8 col-md-8">
|
||||
<input type="text" required class="form-control" id="datetimepicker-demo-1" placeholder="yyyy-MM-dd HH:mm">
|
||||
<input id="updatetime" readonly type="text" class="form-control">
|
||||
<!-- <input type="text" required class="form-control" id="datetimepicker-demo-1" placeholder="yyyy-MM-dd HH:mm">-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-6 col-md-6">
|
||||
|
@ -28,25 +29,48 @@
|
|||
<input id="deptName" readonly type="text" class="form-control" name="deptName">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-6 col-md-6">
|
||||
<label class="col-sm-4 col-md-4 control-label">提交指标</label>
|
||||
<div class="col-sm-8 col-md-8">
|
||||
<!-- <p class="form-control-static" id="shotName" name="shotName"></p>-->
|
||||
<input id="shotName" readonly type="text" class="form-control" name="shotName">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-6 col-md-6">
|
||||
<label class="col-sm-4 col-md-4 control-label">审核人</label>
|
||||
<div class="col-sm-8 col-md-8">
|
||||
<input id="reviewer" readonly type="text" class="form-control" name="reviewer">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-6 col-md-6">
|
||||
<label class="col-sm-4 col-md-4 control-label">类型</label>
|
||||
<div class="col-sm-8 col-md-8">
|
||||
<input id="type" readonly type="text" class="form-control" name="type">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-6 col-md-6">
|
||||
<label class="col-sm-4 col-md-4 control-label">提交指标</label>
|
||||
<div class="col-sm-8 col-md-8">
|
||||
<input id="shotName" readonly type="text" class="form-control" name="shotName">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-6 col-md-6">
|
||||
<label class="col-sm-4 col-md-4 control-label">达标分</label>
|
||||
<div class="col-sm-8 col-md-8">
|
||||
<input id="score" readonly type="number" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-6 col-md-6">
|
||||
<label class="col-sm-4 col-md-4 control-label">评分</label>
|
||||
<div class="col-sm-8 col-md-8">
|
||||
<input id="nowScore" required type="number" class="form-control" name="nowScore">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-12 col-md-12">
|
||||
<label class="col-sm-2 col-md-2 control-label">目标要求</label>
|
||||
<div class="col-sm-10 col-md-10">
|
||||
<input id="demand" readonly type="text" class="form-control" name="demand">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-12 col-md-12">
|
||||
<label class="col-sm-2 col-md-2 control-label">工作任务</label>
|
||||
<div class="col-sm-10 col-md-10">
|
||||
<textarea id="detailed" readonly class="form-control" name="detailed"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-12 col-md-12">
|
||||
<label class="col-sm-2 col-md-2 control-label">审批意见</label>
|
||||
<div class="col-sm-10 col-md-10">
|
||||
|
@ -110,12 +134,22 @@
|
|||
let deptName = parent.parent.a_deptName;
|
||||
let shotName = parent.parent.a_shotName;
|
||||
let reviewer = parent.parent.a_reviewer;
|
||||
let type = parent.parent.a_type;
|
||||
let demand = parent.parent.a_demand;
|
||||
let detailed = parent.parent.a_detailed;
|
||||
let updatetime = parent.parent.a_updatetime;
|
||||
let score = parent.parent.a_score;
|
||||
$("#id").val(_id)
|
||||
$("#reviewer").val(reviewer)
|
||||
$("#type").val(type)
|
||||
$("#demand").val(demand)
|
||||
$("#detailed").val(detailed)
|
||||
$("#shotName").val(shotName)
|
||||
$("#header").val(header)
|
||||
$("#deptName").val(deptName)
|
||||
$("#commitTime").val(new Date())
|
||||
$("#updatetime").val(updatetime)
|
||||
$("#score").val(score)
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
@ -39,20 +39,20 @@
|
|||
</form>
|
||||
</div>
|
||||
|
||||
<div class="btn-group-sm" id="toolbar" role="group">
|
||||
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="base:affairs:add">
|
||||
<i class="fa fa-plus"></i> 添加
|
||||
</a>
|
||||
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="base:affairs:edit">
|
||||
<i class="fa fa-edit"></i> 修改
|
||||
</a>
|
||||
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="base:affairs:remove">
|
||||
<i class="fa fa-remove"></i> 删除
|
||||
</a>
|
||||
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="base:affairs:export">
|
||||
<i class="fa fa-download"></i> 导出
|
||||
</a>
|
||||
</div>
|
||||
<!-- <div class="btn-group-sm" id="toolbar" role="group">-->
|
||||
<!-- <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="base:affairs:add">-->
|
||||
<!-- <i class="fa fa-plus"></i> 添加-->
|
||||
<!-- </a>-->
|
||||
<!-- <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="base:affairs:edit">-->
|
||||
<!-- <i class="fa fa-edit"></i> 修改-->
|
||||
<!-- </a>-->
|
||||
<!-- <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="base:affairs:remove">-->
|
||||
<!-- <i class="fa fa-remove"></i> 删除-->
|
||||
<!-- </a>-->
|
||||
<!-- <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="base:affairs:export">-->
|
||||
<!-- <i class="fa fa-download"></i> 导出-->
|
||||
<!-- </a>-->
|
||||
<!-- </div>-->
|
||||
<div class="col-sm-12 select-table table-striped">
|
||||
<table id="bootstrap-table"></table>
|
||||
</div>
|
||||
|
@ -124,7 +124,12 @@
|
|||
},
|
||||
{
|
||||
field: 'commitTime',
|
||||
title: '提交时间'
|
||||
title: '提交时间',
|
||||
formatter: function(value, row, index) {
|
||||
if (row.status === '2'){
|
||||
return row.updateTime
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'finishDate',
|
||||
|
@ -163,7 +168,7 @@
|
|||
if (row.status === '1'){
|
||||
actions.push('<a class="btn btn-primary btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.upload(\'' + row.id + '\')"><i class="fa fa-edit"></i>上传附件</a> ');
|
||||
}else if (row.status === '2'){
|
||||
actions.push('<a data-id="'+row.id+'" data-header="'+row.header+'" data-shotname="'+row.shotName+'" data-deptname="'+row.deptName+'" data-reviewer="'+row.reviewer+'" data-nowscore="'+row.nowScore+'" class="shenhe btn btn-primary btn-xs ' + editFlag + '" href="javascript:void(0)">审批</a> ');
|
||||
actions.push('<a data-id="'+row.id+'" data-header="'+row.header+'" data-score="'+row.score+'" data-updatetime="'+row.updateTime+'" data-shotname="'+row.shotName+'" data-deptname="'+row.deptName+'" data-reviewer="'+row.reviewer+'" data-detailed="'+row.detailed+'" data-demand="'+row.demand+'" data-type="'+row.type+'" data-nowscore="'+row.nowScore+'" class="shenhe btn btn-primary btn-xs ' + editFlag + '" href="javascript:void(0)">审批</a> ');
|
||||
}else if (row.status === '3'){
|
||||
actions.push('<a class="btn btn-danger btn-xs" href="javascript:void(0)">已驳回</a> ');
|
||||
actions.push('<a class="btn btn-primary btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.upload(\'' + row.id + '\')"><i class="fa fa-edit"></i>重新上传附件</a> ');
|
||||
|
@ -180,10 +185,15 @@
|
|||
$("#bootstrap-table").on('click','.shenhe',function () {
|
||||
let _id = $(this)[0].dataset.id;
|
||||
let header = $(this)[0].dataset.header;
|
||||
let score = $(this)[0].dataset.score;
|
||||
let nowScore = $(this)[0].dataset.nowscore;
|
||||
let deptName = $(this)[0].dataset.deptname;
|
||||
let shotName = $(this)[0].dataset.shotname;
|
||||
let reviewer = $(this)[0].dataset.reviewer;
|
||||
let updatetime = $(this)[0].dataset.updatetime;
|
||||
let type = $(this)[0].dataset.type;
|
||||
let demand = $(this)[0].dataset.demand;
|
||||
let detailed = $(this)[0].dataset.detailed;
|
||||
layer.open({
|
||||
title:'审批',
|
||||
area:['40%','50%'],
|
||||
|
@ -194,11 +204,16 @@
|
|||
parent.a_upload_id = _id;
|
||||
parent.a_header = header;
|
||||
parent.a_nowScore = nowScore;
|
||||
parent.a_score = score;
|
||||
parent.a_deptName = deptName;
|
||||
parent.a_shotName = shotName;
|
||||
parent.a_reviewer = reviewer;
|
||||
parent.a_updatetime = updatetime;
|
||||
parent.a_upload_index = index;
|
||||
parent.a_upload_type = "1";
|
||||
parent.a_type = type;
|
||||
parent.a_demand = demand;
|
||||
parent.a_detailed = detailed;
|
||||
},
|
||||
end(){
|
||||
$.table.search()
|
||||
|
|
|
@ -7,9 +7,12 @@
|
|||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||
<form class="form-horizontal m" id="form-branch-add">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">父支部id:</label>
|
||||
<label class="col-sm-3 control-label">父支部:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="parentId" class="form-control" type="text">
|
||||
<select name="parentId" id="parentId" class="form-control">
|
||||
<option value="">请选择</option>
|
||||
<option th:each="item : ${branchList}" th:text="${item.branchName}" th:value="${item.branchId}"></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
@ -27,7 +30,11 @@
|
|||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">负责人:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="leader" class="form-control" type="text">
|
||||
<select name="leader" id="leader" class="form-control">
|
||||
<option value="">请选择</option>
|
||||
<option th:each="item : ${perList}" th:text="${item.name}" th:value="${item.name}"></option>
|
||||
</select>
|
||||
<!-- <input name="leader" class="form-control" type="text">-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
|
|
@ -8,9 +8,13 @@
|
|||
<form class="form-horizontal m" id="form-branch-edit" th:object="${tAmentBranch}">
|
||||
<input name="branchId" th:field="*{branchId}" type="hidden">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">父支部id:</label>
|
||||
<label class="col-sm-3 control-label">父支部:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="parentId" th:field="*{parentId}" class="form-control" type="text">
|
||||
<select name="parentId" th:field="*{parentId}" id="parentId" class="form-control">
|
||||
<option value="">请选择</option>
|
||||
<option th:each="item : ${branchList}" th:text="${item.branchName}" th:value="${item.branchId}"></option>
|
||||
</select>
|
||||
<!-- <input name="parentId" th:field="*{parentId}" class="form-control" type="text">-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
@ -28,7 +32,11 @@
|
|||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">负责人:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="leader" th:field="*{leader}" class="form-control" type="text">
|
||||
<select name="leader" th:field="*{leader}" id="leader" class="form-control">
|
||||
<option value="">请选择</option>
|
||||
<option th:each="item : ${perList}" th:text="${item.name}" th:value="${item.name}"></option>
|
||||
</select>
|
||||
<!-- <input name="leader" th:field="*{leader}" class="form-control" type="text">-->
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
|
|
@ -31,7 +31,10 @@
|
|||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">负责人:</label>
|
||||
<div class="col-sm-8">
|
||||
<input class="form-control" type="text" name="leader">
|
||||
<select name="leader" id="leader" class="form-control">
|
||||
<option value="">请选择</option>
|
||||
<option th:each="item : ${perList}" th:text="${item.name}" th:value="${item.name}"></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
|
|
@ -32,7 +32,10 @@
|
|||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">负责人:</label>
|
||||
<div class="col-sm-8">
|
||||
<input class="form-control" type="text" name="leader" th:field="*{leader}">
|
||||
<select name="leader" th:field="*{leader}" id="leader" class="form-control">
|
||||
<option value="">请选择</option>
|
||||
<option th:each="item : ${perList}" th:text="${item.name}" th:value="${item.name}"></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
|
|
@ -9,9 +9,11 @@
|
|||
<form class="form-horizontal m" id="form-personnel-add">
|
||||
<div class="row">
|
||||
<div class="form-group col-sm-6 col-md-6">
|
||||
<label class="col-sm-4 control-label">单位名称:</label>
|
||||
<label class="col-sm-4 control-label">支部名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="unit" class="form-control" type="text">
|
||||
<select name="branchId" id="branchId" class="form-control">
|
||||
<option value="">请选择</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-sm-6 col-md-6">
|
||||
|
@ -135,6 +137,19 @@
|
|||
$("#deptId")[0].innerHTML=opt;
|
||||
}
|
||||
});
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: ctx + "base/personnel/branchList",
|
||||
data: {
|
||||
},
|
||||
success: function(data) {
|
||||
var opt = '<option value="">请选择</option>';
|
||||
data.data.forEach(d=>{
|
||||
opt += '<option value="'+d.branchId+'">'+d.branchName+'</option>';
|
||||
})
|
||||
$("#branchId")[0].innerHTML=opt;
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
function submitHandler() {
|
||||
|
|
|
@ -20,6 +20,15 @@
|
|||
<input name="name" th:field="*{name}" class="form-control" type="text">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">性别:</label>
|
||||
<div class="col-sm-8">
|
||||
<select required name="sex" th:field="*{sex}" class="form-control ">
|
||||
<option value="1">男</option>
|
||||
<option value="2">女</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">民族:</label>
|
||||
<div class="col-sm-8">
|
||||
|
@ -30,6 +39,8 @@
|
|||
<label class="col-sm-3 control-label">部门:</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="deptId" th:field="*{deptId}" id="deptId" class="form-control">
|
||||
<option value="">请选择</option>
|
||||
<option th:each="item : ${deptList}" th:text="${item.deptName}" th:value="${item.deptId}"></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -78,10 +89,13 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">支部ID:</label>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">支部名称:</label>
|
||||
<div class="col-sm-8">
|
||||
<input name="branchId" th:field="*{branchId}" class="form-control" type="text">
|
||||
<select name="branchId" th:field="*{branchId}" id="branchId" class="form-control">
|
||||
<option value="">请选择</option>
|
||||
<option th:each="item : ${branchList}" th:text="${item.branchName}" th:value="${item.branchId}"></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
@ -115,25 +129,6 @@
|
|||
focusCleanup: true
|
||||
});
|
||||
|
||||
$(document).ready(function () {
|
||||
$("#deptId").on("change", function() {
|
||||
console.log($(this).val())
|
||||
});
|
||||
$.ajax({
|
||||
type: "post",
|
||||
url: ctx + "base/personnel/deptList",
|
||||
data: {
|
||||
},
|
||||
success: function(data) {
|
||||
var opt = '<option value="">请选择</option>';
|
||||
data.data.forEach(d=>{
|
||||
opt += '<option value="'+d.deptId+'">'+d.deptName+'</option>';
|
||||
})
|
||||
$("#deptId").html(opt);
|
||||
}
|
||||
});
|
||||
})
|
||||
|
||||
function submitHandler() {
|
||||
if ($.validate.form()) {
|
||||
$.operate.save(prefix + "/edit", $('#form-personnel-edit').serialize());
|
||||
|
|
|
@ -35,8 +35,8 @@
|
|||
<div style="width: 350px;margin: 0 auto;position: absolute;left: 25%">
|
||||
<form autocomplete="off" id="signupForm">
|
||||
<h4 class="no-margins" style="font-size: 22px">请登录:业务绩效考核系统</h4>
|
||||
<input class="form-control uname" name="username" placeholder="用户名" type="text" value="admin"/>
|
||||
<input class="form-control pword" name="password" placeholder="密码" type="password" value="admin123"/>
|
||||
<input class="form-control uname" name="username" placeholder="用户名" type="text" value=""/>
|
||||
<input class="form-control pword" name="password" placeholder="密码" type="password" value=""/>
|
||||
<div class="row m-t" th:if="${captchaEnabled==true}">
|
||||
<div class="col-xs-6">
|
||||
<input class="form-control code" maxlength="5" name="validateCode" placeholder="验证码"
|
||||
|
|
|
@ -243,7 +243,6 @@
|
|||
chart.setOption(option);
|
||||
//通过点击事件,传递参数刷新中间表格数据
|
||||
chart.on('click', function (params) {
|
||||
console.log(params, 'params')
|
||||
window.parent._shotName = params.name;
|
||||
$.modal.openTab("党务及意识形态", prefix + '',true);
|
||||
})
|
||||
|
@ -454,6 +453,10 @@
|
|||
};
|
||||
// 使用刚指定的配置项和数据显示图表。
|
||||
chart.setOption(option);
|
||||
chart.on('click', function (params) {
|
||||
window.parent._shotName = params.name;
|
||||
$.modal.openTab("日常考核指标", prefix + '/day',true);
|
||||
})
|
||||
}
|
||||
})
|
||||
};
|
||||
|
|
|
@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<result property="type" column="type" />
|
||||
<result property="unit" column="unit" />
|
||||
<result property="target" column="target" />
|
||||
<result property="shotName" column="shot_name" />
|
||||
<result property="status" column="status" />
|
||||
<result property="demand" column="demand" />
|
||||
<result property="detailed" column="detailed" />
|
||||
|
@ -30,7 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</resultMap>
|
||||
|
||||
<sql id="selectTAmentPartyAffairsVo">
|
||||
select id, type, files, unit, target, status, demand, detailed, score,now_score, method, head, reviewed, finish_date, per_id, dept_id, branch_id, create_by, create_time, update_by, update_time, remark from t_ament_party_affairs
|
||||
select id, type,shot_name ,files, unit, target, status, demand, detailed, score,now_score, method, head, reviewed, finish_date, per_id, dept_id, branch_id, create_by, create_time, update_by, update_time, remark from t_ament_party_affairs
|
||||
</sql>
|
||||
|
||||
<select id="selectTAmentPartyAffairsList" parameterType="TAmentPartyAffairs" resultMap="TAmentPartyAffairsResult">
|
||||
|
|
Loading…
Reference in New Issue