|
@@ -0,0 +1,198 @@
|
|
|
+<%@ page contentType="text/html;charset=UTF-8" %>
|
|
|
+<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
|
|
|
+<html>
|
|
|
+<head>
|
|
|
+ <title>已注册用户咨询记录</title>
|
|
|
+ <meta name="decorator" content="default"/>
|
|
|
+ <script type="text/javascript">
|
|
|
+ $(document).ready(function () {
|
|
|
+ //$("#name").focus();cmOrderRemarksFormNew.jsp
|
|
|
+ $("#inputForm").validate({
|
|
|
+ submitHandler: function (form) {
|
|
|
+ loading('正在提交,请稍等...');
|
|
|
+ form.submit();
|
|
|
+ },
|
|
|
+ errorContainer: "#messageBox",
|
|
|
+ errorPlacement: function (error, element) {
|
|
|
+ $("#messageBox").text("输入有误,请先更正。");
|
|
|
+ if (element.is(":checkbox") || element.is(":radio") || element.parent().is(".input-append")) {
|
|
|
+ error.appendTo(element.parent().parent());
|
|
|
+ } else {
|
|
|
+ error.insertAfter(element);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+ function getmember() {
|
|
|
+ var leaderId = $("#leaderId").val();
|
|
|
+ if (leaderId > 0) {
|
|
|
+ $.get("${ctx}/new/user/agency/group", {'leaderId': leaderId}, function (data) {
|
|
|
+ console.log(data);
|
|
|
+ var opts = "<option value='" + data[0].serviceProviderID + "'>" + data[0].name + "</option>";
|
|
|
+ if (data.length > 1) {
|
|
|
+ for (let i = 1; i < data.length; i++) {
|
|
|
+ opts += "<option value='" + data[i].serviceProviderID + "' >" + data[i].name + "</option>";
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $("#findgroup").html('').append(opts);
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ $("#findgroup").html('');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ function previewFile(url) {
|
|
|
+ var index = url.lastIndexOf(".");
|
|
|
+ var suffix = url.substring(index);
|
|
|
+ if (suffix.startsWith(".png") || suffix.startsWith(".jpg") || suffix.startsWith(".pdf")) {
|
|
|
+ window.open(url, '_blank');
|
|
|
+ } else {
|
|
|
+ var previewUrl = "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(url);
|
|
|
+ window.open(previewUrl, '_blank');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ function page(n, s) {
|
|
|
+ $("#pageNo").val(n);
|
|
|
+ $("#pageSize").val(s);
|
|
|
+ $("#searchForm").submit();
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+<ul class="nav nav-tabs">
|
|
|
+ <li class="active"><a href="${ctx}/new/user/agency/regist">已注册用户咨询记录</a></li>
|
|
|
+ <li><a href="${ctx}/new/user/visit/unregist">未注册用户咨询记录</a></li>
|
|
|
+ <li><a href="${ctx}/consult/type/cmConsulttype/">咨询类别设置</a></li>
|
|
|
+</ul>
|
|
|
+<br/>
|
|
|
+<form:form id="searchForm" modelAttribute="cmClubRemarks" action="${ctx}/new/user/agency/regist" method="post"
|
|
|
+ class="breadcrumb form-search">
|
|
|
+ <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
|
|
+ <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
|
|
+ <div class="flex-wrap">
|
|
|
+ <div>
|
|
|
+ <label>关键词:</label>
|
|
|
+ <form:input path="remarks" class="input-medium" maxlength="50"/>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <label>咨询类别:</label>
|
|
|
+ <form:select path="consult" class="input-medium">
|
|
|
+ <form:option value="" label="全部"/>
|
|
|
+ <c:forEach items="${cmClubRemarks.consults}" var="consults">
|
|
|
+ <form:option value="${consults.id}">${consults.className}</form:option>
|
|
|
+ </c:forEach>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <label>机构名称:</label>
|
|
|
+ <form:input path="clubName" class="input-medium" maxlength="50"/>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <label>小组:</label>
|
|
|
+ <form:select path="leaderId" class="input-medium" onchange="getmember()">
|
|
|
+ <form:option value="" label="全部"/>
|
|
|
+ <c:forEach items="${cmClubRemarks.teams}" var="team">
|
|
|
+ <form:option value="${team.leaderId}">${team.leaderName}</form:option>
|
|
|
+ </c:forEach>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <label>组员:</label>
|
|
|
+ <form:select path="serviceProviderId" class="input-medium" id="findgroup">
|
|
|
+ <form:option value="" label="全部"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <label class="control-label">添加日期:</label>
|
|
|
+ <form:input path="startAddTime" type="text" maxlength="20" class="input-mini Wdate" value="${cmClubRemarks.startAddTime}" cssStyle="width: 130px"
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
+ -
|
|
|
+ <form:input path="endAddTime" type="text" maxlength="20" class="input-mini Wdate" value="${cmClubRemarks.endAddTime}" cssStyle="width: 130px"
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</form:form>
|
|
|
+<form:form id="inputForm" modelAttribute="cmClubRemarks" action="${ctx}" method="post" class="form-horizontal">
|
|
|
+ <sys:message content="${message}"/>
|
|
|
+ <c:if test="${not empty page.list}">
|
|
|
+ <div style="overflow-x: hidden;word-break:break-all">
|
|
|
+ <c:forEach items="${page.list}" var="clubRemarks" varStatus="remark">
|
|
|
+ <div class="td clear" style="dashed:#0066CC;">
|
|
|
+ <div style="font-weight: bold;width: 100%;float: left;">
|
|
|
+ <span style="float: left;">${clubRemarks.spName}</span>
|
|
|
+ <span style="float: left;margin-left:20px;"><fmt:formatDate value="${clubRemarks.addTime}"
|
|
|
+ pattern="yyyy-MM-dd HH:mm"/></span>
|
|
|
+ <span style="float: left;margin-left:120px;">管理员:${clubRemarks.leaderName}</span>
|
|
|
+ </div>
|
|
|
+ <div class="td-text" style="width: 100%;float: left;margin-top: 20px;">
|
|
|
+ <div style="width: 100px;font-weight: bold;margin: 10px 0;float: left;text-align: right;margin-right: 10px;">
|
|
|
+ 咨询人 :
|
|
|
+ </div>
|
|
|
+ <div style="width: 300px;float: left;margin: 10px 0;">${clubRemarks.questionMan}</div>
|
|
|
+ <div style="width: 100px;font-weight: bold;margin: 10px 0;float: left;text-align: right;margin-right: 10px;">
|
|
|
+ 机构名称:
|
|
|
+ </div>
|
|
|
+ <div style="width: 300px;float: left;margin: 10px 0;">${clubRemarks.clubName}</div>
|
|
|
+ </div>
|
|
|
+ <div class="td-text" style="width: 100%;float: left;margin-top: 20px;">
|
|
|
+ <div style="width: 100px;font-weight: bold;margin: 10px 0;float: left;text-align: right;margin-right: 10px;">
|
|
|
+ 咨询类别:
|
|
|
+ </div>
|
|
|
+ <div style="width: 300px;float: left;margin: 10px 0;">${clubRemarks.consultType}</div>
|
|
|
+ </div>
|
|
|
+ <div class="td-text" style="width: 100%;float: left;margin-top: 20px;">
|
|
|
+ <div style="width: 100px;font-weight: bold;margin: 10px 0;float: left;text-align: right;margin-right: 10px;">
|
|
|
+ 关键词记录:
|
|
|
+ </div>
|
|
|
+ <div style="width: 800px;float: left;margin: 10px 0;">
|
|
|
+ ${clubRemarks.remarks}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="td-text" style="width: 100%;float: left;">
|
|
|
+ <c:if test="${not empty clubRemarks.imageList}">
|
|
|
+ <div style="width: 100px;font-weight: bold;margin: 10px 0;float: left;text-align: right;margin-right: 10px;">
|
|
|
+ 图片:
|
|
|
+ </div>
|
|
|
+ <div style="width: 1000px;float: left;">
|
|
|
+ <c:forEach items="${clubRemarks.imageList}" var="imageUrl" varStatus="remarkImage">
|
|
|
+ <a href="${imageUrl}" target="_blank">
|
|
|
+ <img class="enlarge-pic" style="height: 150px;width: 150px;margin-top: 10px"
|
|
|
+ src="${imageUrl}">
|
|
|
+ </a>
|
|
|
+ </c:forEach>
|
|
|
+ </div>
|
|
|
+ </c:if>
|
|
|
+ </div>
|
|
|
+ <div class="td-text"
|
|
|
+ style="width: 100%;float: left;margin-top: 20px;border-bottom:1px dashed #999999;padding: 10px 0;">
|
|
|
+ <c:if test="${not empty clubRemarks.fileList}">
|
|
|
+ <div style="width: 100px;font-weight: bold;margin: 10px 0;float: left;text-align: right;margin-right: 10px;">
|
|
|
+ 文件:
|
|
|
+ </div>
|
|
|
+ <div style="width: 1000px;float: left;margin: 10px 0;">
|
|
|
+ <c:forEach items="${clubRemarks.fileList}" var="item" varStatus="remarkFile">
|
|
|
+ <p>${item.fileName}
|
|
|
+ <a onclick="previewFile('${item.fileUrl}')" target="_blank">预览</a>
|
|
|
+ <a href="${ctx}/new/user/agency/remarks/download?fileName=${item.fileName}&ossName=${item.ossName}">下载</a>
|
|
|
+ </p>
|
|
|
+ </c:forEach>
|
|
|
+ </div>
|
|
|
+ </c:if>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </c:forEach>
|
|
|
+ </div>
|
|
|
+ <div class="pagination">${page}</div>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${empty page.list}">
|
|
|
+ <font size="3" style="text-align: center;display: block;line-height: 80px;" color="#0066CC">暂无任何备注..</font>
|
|
|
+ </c:if>
|
|
|
+</form:form>
|
|
|
+</body>
|
|
|
+</html>
|