|
@@ -17,15 +17,45 @@
|
|
|
$('#moresee i').removeClass("glyphicon glyphicon-menu-down").addClass("glyphicon glyphicon-menu-up");
|
|
$('#moresee i').removeClass("glyphicon glyphicon-menu-down").addClass("glyphicon glyphicon-menu-up");
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+ var columnId = $("#columnId").val();
|
|
|
|
|
+ $(".list-tabs li").each(function(){
|
|
|
|
|
+ $(this).removeClass("active");
|
|
|
|
|
+ if($(this).val() == columnId){
|
|
|
|
|
+ $(this).addClass("active");
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ $(".list-tabs li").click(function(){
|
|
|
|
|
+ $(".list-tabs li").removeClass("active");
|
|
|
|
|
+ $(this).addClass("active");
|
|
|
|
|
+ $("#columnId").val($(this).val());
|
|
|
|
|
+ $("#searchForm").submit();
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ // 初始化获取时间 laydate 日期选择器
|
|
|
|
|
+ layui.use('laydate', function() {
|
|
|
|
|
+ var laydate = layui.laydate;
|
|
|
|
|
+ laydate.render({ elem: '#gainBeginDate', event: 'focus', type: 'date', format: 'yyyy-MM-dd', trigger: 'click' });
|
|
|
|
|
+ laydate.render({ elem: '#gainEndDate', event: 'focus', type: 'date', format: 'yyyy-MM-dd', trigger: 'click' });
|
|
|
|
|
+ });
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
function openUserDetailDialog(userId, userName) {
|
|
function openUserDetailDialog(userId, userName) {
|
|
|
|
|
+ var columnId = $("#columnId").val() || '2';
|
|
|
|
|
+ var columnNames = {'1': '基础积分', '2': '贡献积分'};
|
|
|
|
|
+ var typeName = columnNames[columnId] || '积分';
|
|
|
|
|
+ var beginDate = $("#gainBeginDate").val() || '';
|
|
|
|
|
+ var endDate = $("#gainEndDate").val() || '';
|
|
|
|
|
+ var url = '${ctx}/workKnowledgeBase/point/userDetail?userId=' + userId + '&userName=' + encodeURIComponent(userName || '') + '&columnId=' + columnId;
|
|
|
|
|
+ if (beginDate) url += '&beginDate=' + beginDate;
|
|
|
|
|
+ if (endDate) url += '&endDate=' + endDate;
|
|
|
top.layer.open({
|
|
top.layer.open({
|
|
|
type: 2,
|
|
type: 2,
|
|
|
area: ['85%', '80%'],
|
|
area: ['85%', '80%'],
|
|
|
- title: (userName || '用户') + ' - 积分明细',
|
|
|
|
|
|
|
+ title: (userName || '用户') + ' - ' + typeName + '明细',
|
|
|
maxmin: true,
|
|
maxmin: true,
|
|
|
- content: '${ctx}/workKnowledgeBase/point/userDetail?userId=' + userId + '&userName=' + encodeURIComponent(userName || ''),
|
|
|
|
|
|
|
+ content: url,
|
|
|
btn: ['关闭'],
|
|
btn: ['关闭'],
|
|
|
btn1: function(index) { top.layer.close(index); }
|
|
btn1: function(index) { top.layer.close(index); }
|
|
|
});
|
|
});
|
|
@@ -61,12 +91,13 @@
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
function resetSearch() {
|
|
function resetSearch() {
|
|
|
- console.log(12312)
|
|
|
|
|
|
|
+ var currentColumnId = $("#columnId").val();
|
|
|
$("#pageNo").val(0);
|
|
$("#pageNo").val(0);
|
|
|
$("#toflag").val("");
|
|
$("#toflag").val("");
|
|
|
$('#searchForm div.query input[type=text]').val('');
|
|
$('#searchForm div.query input[type=text]').val('');
|
|
|
$('#searchForm div.query input[type=hidden]').val('');
|
|
$('#searchForm div.query input[type=hidden]').val('');
|
|
|
$('#searchForm div.query select').val('');
|
|
$('#searchForm div.query select').val('');
|
|
|
|
|
+ $("#columnId").val(currentColumnId);
|
|
|
$('#searchForm').submit();
|
|
$('#searchForm').submit();
|
|
|
}
|
|
}
|
|
|
</script>
|
|
</script>
|
|
@@ -74,6 +105,13 @@
|
|
|
<body>
|
|
<body>
|
|
|
<div class="wrapper wrapper-content">
|
|
<div class="wrapper wrapper-content">
|
|
|
<sys:message content="${message}"/>
|
|
<sys:message content="${message}"/>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="list-form-tab contentShadow shadowLTR" id="tabDiv">
|
|
|
|
|
+ <ul class="list-tabs" >
|
|
|
|
|
+ <li value="2"><a>贡献积分</a></li>
|
|
|
|
|
+ <li value="1"><a>基础积分</a></li>
|
|
|
|
|
+ </ul>
|
|
|
|
|
+ </div>
|
|
|
<div class="layui-row">
|
|
<div class="layui-row">
|
|
|
<!-- 查询条件 -->
|
|
<!-- 查询条件 -->
|
|
|
<div class="full-width fl">
|
|
<div class="full-width fl">
|
|
@@ -81,23 +119,37 @@
|
|
|
<form:form id="searchForm" modelAttribute="workKnowledgeBasePoint" action="${ctx}/workKnowledgeBase/point/list" method="post" class="form-inline">
|
|
<form:form id="searchForm" modelAttribute="workKnowledgeBasePoint" action="${ctx}/workKnowledgeBase/point/list" method="post" class="form-inline">
|
|
|
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
|
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
|
|
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
|
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
|
|
|
|
+ <input id="columnId" name="columnId" type="hidden" value="${workKnowledgeBasePoint.columnId}"/>
|
|
|
<form:hidden path="toflag" value="${workKnowledgeBasePoint.toflag}"/>
|
|
<form:hidden path="toflag" value="${workKnowledgeBasePoint.toflag}"/>
|
|
|
<div class="commonQuery lw7">
|
|
<div class="commonQuery lw7">
|
|
|
- <div class="layui-item query athird">
|
|
|
|
|
|
|
+ <div class="layui-item query athird" style="width: 25%">
|
|
|
<label class="layui-form-label">经办人:</label>
|
|
<label class="layui-form-label">经办人:</label>
|
|
|
<div class="layui-input-block with-icon">
|
|
<div class="layui-input-block with-icon">
|
|
|
<sys:inquireselectUserNotReadolnyTow id="submitter" name="submitterId" value="${workKnowledgeBasePoint.submitterId}" labelName="submitterName" labelValue="${workKnowledgeBasePoint.submitterName}" cssStyle="background-color: #fff"
|
|
<sys:inquireselectUserNotReadolnyTow id="submitter" name="submitterId" value="${workKnowledgeBasePoint.submitterId}" labelName="submitterName" labelValue="${workKnowledgeBasePoint.submitterName}" cssStyle="background-color: #fff"
|
|
|
title="用户" url="/sys/office/treeDataAll?type=3" cssClass="form-control layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
title="用户" url="/sys/office/treeDataAll?type=3" cssClass="form-control layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="layui-item query athird">
|
|
|
|
|
|
|
+ <div class="layui-item query athird" style="width: 25%">
|
|
|
<label class="layui-form-label">经办人部门:</label>
|
|
<label class="layui-form-label">经办人部门:</label>
|
|
|
<div class="layui-input-block with-icon">
|
|
<div class="layui-input-block with-icon">
|
|
|
<sys:treeselect id="officeId" name="officeId" value="${workKnowledgeBasePoint.officeId}" labelName="officeName" labelValue="${workKnowledgeBasePoint.officeName}" cssStyle="background-color: #fff"
|
|
<sys:treeselect id="officeId" name="officeId" value="${workKnowledgeBasePoint.officeId}" labelName="officeName" labelValue="${workKnowledgeBasePoint.officeName}" cssStyle="background-color: #fff"
|
|
|
title="部门" url="/sys/office/treeDataAll?type=6" cssClass="form-control layui-input" allowInput="true" allowClear="true" notAllowSelectParent="true" />
|
|
title="部门" url="/sys/office/treeDataAll?type=6" cssClass="form-control layui-input" allowInput="true" allowClear="true" notAllowSelectParent="true" />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="layui-item athird">
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 获取时间区间 -->
|
|
|
|
|
+ <div class="layui-item query athird" style="width: 25%">
|
|
|
|
|
+ <label class="layui-form-label">获取时间:</label>
|
|
|
|
|
+ <div class="layui-input-block">
|
|
|
|
|
+ <input id="gainBeginDate" name="gainBeginDate" placeholder="开始时间" type="text" readonly="readonly" maxlength="20" class="laydate-icondate form-control layer-date layui-input laydate-icon query-group"
|
|
|
|
|
+ value="<fmt:formatDate value='${workKnowledgeBasePoint.gainBeginDate}' pattern='yyyy-MM-dd'/>"/>
|
|
|
|
|
+ <span class="group-sep">-</span>
|
|
|
|
|
+ <input id="gainEndDate" name="gainEndDate" placeholder="结束时间" type="text" readonly="readonly" maxlength="20" class="laydate-icondate form-control layer-date layui-input laydate-icon query-group"
|
|
|
|
|
+ value="<fmt:formatDate value='${workKnowledgeBasePoint.gainEndDate}' pattern='yyyy-MM-dd'/>"/>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="layui-item athird" style="width: 25%">
|
|
|
<div class="input-group">
|
|
<div class="input-group">
|
|
|
<div class="layui-btn-group search-spacing">
|
|
<div class="layui-btn-group search-spacing">
|
|
|
<button id="searchQuery" class="layui-btn layui-btn-sm layui-bg-blue" onclick="return search()">查询</button>
|
|
<button id="searchQuery" class="layui-btn layui-btn-sm layui-bg-blue" onclick="return search()">查询</button>
|
|
@@ -107,6 +159,10 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div style="clear:both;"></div>
|
|
<div style="clear:both;"></div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <div id="moresees" style="clear:both;display:none;" class="lw7">
|
|
|
|
|
+
|
|
|
|
|
+ <div style="clear:both;"></div>
|
|
|
|
|
+ </div>
|
|
|
</form:form>
|
|
</form:form>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|