|
@@ -451,7 +451,7 @@
|
|
|
// {checkbox: true, fixed: true},
|
|
|
{field:'index',align:'center', width:40,title: '序号'}
|
|
|
,{field:'title',align:'center', title: '反馈标题', minWidth:150,templet:function(d){
|
|
|
- var xml = "<a class=\"attention-info\" href=\"javascript:void(0)\" onclick=\"openDialogListView('查看反馈', '${ctx}/feedback/questionFeedback/form?id=" + d.id + "','" + d.id + "','95%','95%')\">" +
|
|
|
+ var xml = "<a class=\"attention-info\" href=\"javascript:void(0)\" onclick=\"openDialogListView('查看反馈', '${ctx}/feedback/questionFeedback/view?id=" + d.id + "','" + d.id + "','95%','95%')\">" +
|
|
|
"<span title=" + d.title + ">" + d.title + "</span></a>";
|
|
|
return xml;
|
|
|
}}
|
|
@@ -464,6 +464,19 @@
|
|
|
,{field:'tmdcreateDate', align:'center',title: '创建时间',width:150,templet:function(d){
|
|
|
return "<span title='"+ d.createDate +"'>" + d.tmdcreateDate + "</span>";
|
|
|
}}
|
|
|
+ ,{field:'handlingName', align:'center',title: '处理人',width:150,templet:function(d){
|
|
|
+ return "<span title='"+ d.handlingName +"'>" + d.handlingName + "</span>";
|
|
|
+ }}
|
|
|
+ ,{field:'handlingStatus', align:'center',title: '处理状态',width:150,templet:function(d){
|
|
|
+ if(d.handlingStatus=='1'){
|
|
|
+ var st = getAuditState("5")
|
|
|
+ return "<span class=\"status-label status-label-" + st.label + "\" title='"+ d.handlingStatus +"'>已处理</span>";
|
|
|
+ }else{
|
|
|
+ var st = getAuditState("1")
|
|
|
+ return "<span class=\"status-label status-label-" + st.label + "\" title='"+ d.handlingStatus +"'>未处理</span>";
|
|
|
+
|
|
|
+ }
|
|
|
+ }}
|
|
|
// ,{fixed: 'right',align:'center', toolbar: '#op',title:"操作"}
|
|
|
,{align:'center',title:"操作",width:130,templet:function(d){
|
|
|
////对操作进行初始化
|
|
@@ -476,28 +489,47 @@
|
|
|
{
|
|
|
xml+="<a href=\"${ctx}/feedback/questionFeedback/delete?id=" + d.id + "\" onclick=\"return confirmx('确认要删除该反馈信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\"> 删除</a>";
|
|
|
}
|
|
|
+ if(d.canedit3 != undefined && d.canedit3 =="3")
|
|
|
+ {
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('处理反馈', '${ctx}/feedback/questionFeedback/handle?id=" + d.id +"','95%', '95%','','保存,关闭')\" class=\"layui-btn layui-btn-xs layui-bg-blue\" >处理</a>";
|
|
|
+ }
|
|
|
+ if(d.canedit4 != undefined && d.canedit4 =="4")
|
|
|
+ {
|
|
|
+ xml+="<a href=\"${ctx}/feedback/questionFeedback/rebank?id=" + d.id + "\" onclick=\"return confirmx('确认要撤回该处理信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\"> 撤回</a>";
|
|
|
+ }
|
|
|
xml+="</div>"
|
|
|
return xml;
|
|
|
}}
|
|
|
]]
|
|
|
,data: [
|
|
|
<c:if test="${ not empty page.list}">
|
|
|
- <c:forEach items="${page.list}" var="oaNotify" varStatus="index">
|
|
|
+ <c:forEach items="${page.list}" var="feedback" varStatus="index">
|
|
|
<c:if test="${index.index != 0}">,</c:if>
|
|
|
{
|
|
|
"index":"${index.index+1}"
|
|
|
- ,"id":"${oaNotify.id}"
|
|
|
- ,"title":"<c:out value="${oaNotify.title}" escapeXml="true"/>"
|
|
|
- ,"content":"<c:out value="${oaNotify.content}" escapeXml="true"/>"
|
|
|
- ,"createBy":"${oaNotify.createBy.name}"
|
|
|
- ,"createDate":"<fmt:formatDate value="${oaNotify.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/>"
|
|
|
- ,"tmdcreateDate":"<fmt:formatDate value="${oaNotify.createDate}" pattern="yyyy-MM-dd"/>"
|
|
|
+ ,"id":"${feedback.id}"
|
|
|
+ ,"title":"<c:out value="${feedback.title}" escapeXml="true"/>"
|
|
|
+ ,"content":"<c:out value="${feedback.content}" escapeXml="true"/>"
|
|
|
+ ,"createBy":"${feedback.createBy.name}"
|
|
|
+ ,"handlingName":"${feedback.handlingId.name}"
|
|
|
+ ,"handlingStatus":"${feedback.handlingStatus}"
|
|
|
+ ,"tmdcreateDate":"<fmt:formatDate value="${feedback.createDate}" pattern="yyyy-MM-dd"/>"
|
|
|
<shiro:hasPermission name="feedback:questionFeedback:edit">
|
|
|
,"canedit1":1
|
|
|
</shiro:hasPermission>
|
|
|
<shiro:hasPermission name="feedback:questionFeedback:del">
|
|
|
,"canedit2":2
|
|
|
</shiro:hasPermission>
|
|
|
+ <shiro:hasPermission name="feedback:questionFeedback:handle">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${feedback.handlingStatus!='1'}">
|
|
|
+ ,"canedit3":3
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ ,"canedit4":4
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </shiro:hasPermission>
|
|
|
}
|
|
|
</c:forEach>
|
|
|
</c:if>
|