张家口产业监测
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

414 lines
13 KiB

<%--
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://tags.clayton.io/blacklayout" prefix="bl" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="cjy" uri="/cjytaglib" %>
<bl:extends page="/common/layout/main.jsp"/>
<bl:set var="title" value="综合网评查询列表"/>
<bl:block name="style">
<style type="text/css">
.mousefocus {
background-color: rgba(0, 109, 207, .20);
}
</style>
</bl:block>
<%-- 子页面 不要覆盖 main --%>
<bl:block name="main">
<form action="${ctx}/network/goto_simple_list.do" id="mainForm" method="post" name="mainForm" enctype="multipart/form-data">
<div class="table_sck">
<div class="tsble_form">
<div class="form_hpzs">
<label class="form_label">行政区划:</label>
<div class="form_select" style="width: 110px;">
<select class="form-control" id="province" name="province" onchange="chooseCity()">
<c:forEach items="${provinceList}" var="dept">
<c:choose>
<c:when test="${dept.dremark == province}">
<option value="${dept.dremark}" selected="selected">${dept.dname}</option>
</c:when>
<c:otherwise>
<option value="${dept.dremark}">${dept.dname}</option>
</c:otherwise>
</c:choose>
</c:forEach>
</select>
</div>
<div class="form_select" style="width: 110px;">
<select class="form-control" id="city" name="city" onchange="chooseCounty()">
<c:forEach items="${cityList}" var="dept">
<c:choose>
<c:when test="${dept.dremark == city}">
<option value="${dept.dremark}" selected="selected">${dept.dname}</option>
</c:when>
<c:otherwise>
<option value="${dept.dremark}">${dept.dname}</option>
</c:otherwise>
</c:choose>
</c:forEach>
</select>
</div>
<div class="form_select" style="width: 110px;">
<select class="form-control" id="county" name="county">
<c:forEach items="${countyList}" var="dept">
<c:choose>
<c:when test="${dept.dremark == county}">
<option value="${dept.dremark}" selected="selected">${dept.dname}</option>
</c:when>
<c:otherwise>
<option value="${dept.dremark}">${dept.dname}</option>
</c:otherwise>
</c:choose>
</c:forEach>
</select>
</div>
</div>
<div class="form_hpzs">
<label class="form_label">评论来源:</label>
<div class="form_select">
<select id="criticismSource" name="criticismSource">
<option value="">请选择</option>
<c:forEach items="${sourceList}" var="lis" varStatus="vst">
<c:choose>
<c:when test="${lis.criticismSource == criticismSource}">
<option value="${lis.criticismSource}" selected="selected">
<cjy:dic diccode="${lis.criticismSource}"/>
</option>
</c:when>
<c:otherwise>
<option value="${lis.criticismSource}"><cjy:dic
diccode="${lis.criticismSource}"/></option>
</c:otherwise>
</c:choose>
</c:forEach>
</select>
</div>
</div>
<div class="form_hpzs">
<label class="form_label">评论对象类型:</label>
<div class="form_select" style="width: 1 10px;">
<select id="criticismType" name="criticismType">
<c:choose>
<c:when test="${criticismType=='1'}">
<option value="1" selected="selected">景区</option>
</c:when>
<c:otherwise>
<option value="1">景区</option>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${criticismType=='2'}">
<option value="2" selected="selected">酒店</option>
</c:when>
<c:otherwise>
<option value="2">酒店</option>
</c:otherwise>
</c:choose>
</select>
</div>
</div>
<div class="form_hpzs">
<label class="form_label">评论类型:</label>
<div class="form_select" style="width: 110px;">
<select id="ctype" name="ctype">
<option value="">请选择</option>
<c:choose>
<c:when test="${ctype=='1'}">
<option value="1" selected="selected">好评</option>
</c:when>
<c:otherwise>
<option value="1">好评</option>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${ctype=='2'}">
<option value="2" selected="selected">中评</option>
</c:when>
<c:otherwise>
<option value="2">中评</option>
</c:otherwise>
</c:choose>
<c:choose>
<c:when test="${ctype=='3'}">
<option value="3" selected="selected">差评</option>
</c:when>
<c:otherwise>
<option value="3">差评</option>
</c:otherwise>
</c:choose>
</select>
</div>
</div>
<div class="form_hpzs">
<label class="form_label">评论对象等级:</label>
<div class="form_select" style="width: 110px;">
<select id="criticismLevel" name="criticismLevel">
<option value="">请选择</option>
<c:forEach items="${dicList}" var="lis" varStatus="vst">
<c:choose>
<c:when test="${lis.dicid == criticismLevel}">
<option value="${lis.dicid}" selected="selected">${lis.dicname}</option>
</c:when>
<c:otherwise>
<option value="${lis.dicid}">${lis.dicname}</option>
</c:otherwise>
</c:choose>
</c:forEach>
</select>
</div>
</div>
<div class="form_hpzs">
<label class="form_label">时间范围:</label>
<div class="form_input">
<input id="starttime" name="starttime" value="${starttime}"/>
</div>
-
<div class="form_input">
<input id="endtime" name="endtime" value="${endtime}"/>
</div>
</div>
<div class="">
<button type="button" onclick="mySearch()" class="bttn bttn_ss" title="搜索"><i class="fa fa-search"></i>搜索
</button>
<button class="bttn" title="重置" onclick="myReset()"><i class="fa fa-rotate-left "></i>重置</button>
</div>
<div class="clear"></div>
</div>
</div>
<div class="lst_table_box">
<div class="t_r_t" id="t_r_t">
<div class="t_r_title pp-list">
<table class="pp-list">
<tr>
<th style="text-align:center;" width="5%">序号</th>
<th style="text-align:center;" width="10%">评论时间</th>
<th style="text-align:center;" width="15%">评论用户</th>
<th style="text-align:center;" width="10%">评论来源</th>
<th style="text-align:center;" width="10%">评分</th>
<th style="text-align:center;" width="50%">评论内容</th>
</tr>
</table>
</div>
</div>
<div class="t_r_content t_table" id="t_r_content" onscroll="aa()" style="max-height:360px">
<table class="pp-list">
<c:forEach items="${list}" var="lis" varStatus="vst">
<tr onclick="gotoDetail('${lis.guid}')">
<td align="center" width="5%">${(vst.index)+1}</td>
<td title="" width="10%"><fmt:formatDate value="${lis.criticismTime}" type="date"
pattern="yyyy-MM-dd"/></td>
<td title="" width="15%">${lis.criticismUser}</td>
<td title="" width="10%">
<cjy:dic diccode="${lis.criticismSource}"/>
</td>
<td title="" width="10%">${lis.grade}</td>
<td title="" width="50%">${lis.criticismContent}</td>
</tr>
</c:forEach>
</table>
</div>
<%@include file="/common/page.jsp" %>
</div>
</form>
</bl:block>
<bl:block name="script">
<script type="text/javascript">
//搜索
function mySearch() {
document.mainForm.submit();
}
//重置
function myReset() {
$("#province").val("");
$("#city").val("");
$("#county").val("");
$("#starttime").val("");
$("#endtime").val("");
$("#criticismSource").val("");
$("#criticismType").val("");
$("#ctype").val("");
$("#criticismLevel").val("");
}
//详情
function gotoDetail(guid) {
var criticismType = $("#criticismType").val();
layer.open({
type: 2,
title: "",
anim: 2,
shade: [0.7, '#333'],
area: ['80%', '90%'],
content: "${ctx}/network/detail.do?criticismType=" + criticismType + "&guid=" + guid
});
}
$(document).ready(function () {
if ('${isDept}' == 'city') {
$("#county").val('${county}');
chooseCounty();
} else if ('${isDept}' == 'province') {
$("#city").val('${city}');
chooseCity();
$("#county").val('${county}');
chooseCounty();
}
//隐藏三级联动中的中间一级---城市为 雄安(131401),辛集市(131402),定州市(131403)隐藏
var cityList = '${countyList[0].dremark}';
if (cityList == "131401" || cityList == "131402" || cityList == "131403") {
$("#city").parent().css("display", "none");
}
});
//选择市
function chooseCity() {
var deptid = $("#province").val();
if (deptid) {
$.ajax({
url: "${ctx}/sysdept/selectBydpid.do",
data: {"deptid": deptid},
type: "post",
dataType: "json",
async: false,
success: function (data) {
document.getElementById("city").options.length = 0;//删除所有option
$("#city").append("<option value=''>-请选择-</option>");
if (data != null && data.length > 0) {
for (var i = 0; i < data.length; i++) {
$("#city").append("<option value='" + data[i].dremark + "'>" + data[i].dname + "</option>");
}
$("#city option[value='${city}']").attr("selected", true);
}
}
});
} else {
document.getElementById("city").options.length = 0;//删除所有option
$("#city").append("<option value=''>-请选择-</option>");
}
}
//选择区/县
function chooseCounty() {
var deptid = $("#city").val();
if (deptid) {
$.ajax({
url: "${ctx}/sysdept/selectBydpid.do",
data: {"deptid": deptid},
type: "post",
dataType: "json",
async: false,
success: function (data) {
document.getElementById("county").options.length = 0;//删除所有option
$("#county").append("<option value=''>-请选择-</option>");
if (data != null && data.length > 0) {
for (var i = 0; i < data.length; i++) {
$("#county").append("<option value='" + data[i].dremark + "'>" + data[i].dname + "</option>");
}
$("#county option[value='${county}']").attr("selected", true);
}
}
});
} else {
document.getElementById("county").options.length = 0;//删除所有option
$("#county").append("<option value=''>-请选择-</option>");
}
}
$(document).ready(function () {
//鼠标点击变色
$("#t_r_content tr").on("click", function () {
$(this).parent().find("tr.focus").toggleClass("focus");//取消原先选中行
$(this).toggleClass("focus");//设定当前行为选中行
});
//鼠标指向变色
$("#t_r_content tr").on("mouseover", function () {
$(this).parent().find("tr.mousefocus").toggleClass("mousefocus");//取消原先选中行
$(this).toggleClass("mousefocus");//设定当前行为选中行
});
});
</script>
<script type="text/javascript">
$(document).ready(function () {
var sysName = "网络评价分析系统";
if ('${UserAttrFacade.getDeptInfo(request).dremark}' === '131401') {
sysName = '文旅口碑';
document.getElementsByTagName("title")[0].innerText = sysName;
}
$("#sysName").html(sysName);
var pageName = "评论列表";
$("#pageName").html(pageName);
// var my_menu_html =
// '<a href="${ctx}/allanalysis/gotoAllList.do" class="caid_xiang">网评综合分析</a>' +
// '<a href="${ctx}/scenicReport/gotoPage.do" class="caid_xiang">景区网评报告</a>' +
// '<a href="${ctx}/indexscenic/scenicanalysis.do" class="caid_xiang">景区网评分析</a>' +
// '<a href="${ctx}/hotelReport/gotoPage.do" class="caid_xiang">酒店网评报告</a>' +
// '<a href="${ctx}/resourcesAnalysis/hotelanalysis.do" class="caid_xiang">酒店网评分析</a>'+
// '<a href="${ctx}/network/gotolist.do" class="caid_xiang active">综合评价查询</a>';
// $("#menuList").html(my_menu_html);
getLeftlowermenu();
});
//获得左下角菜单
//加个id--leftlowermenu
function getLeftlowermenu() {
var dicnum = '010706'; //测试,需要换成自己当前菜单dicnum --> sys_menu_item_dictionary
$.ajax({
url: "${ctx}/hbcyjclogin/getzccd.do",
data: {"dicnum": dicnum},
type: "post",
dataType: "json",
success: function (data) {
var leftlowerhtml = "";
if (data.success) {
var zcdlist = data.data;
for (var i = 0; i < zcdlist.length; i++) {
var menuurl = zcdlist[i].menuurl; //配置的链接
var dicname = zcdlist[i].dicname; //名称
if (dicnum == zcdlist[i].dicnum) {
leftlowerhtml += "<a href=\"" + menuurl + "\" class=\"caid_xiang active\">" + dicname + "</a>";
} else {
leftlowerhtml += "<a href=\"" + menuurl + "\" class=\"caid_xiang\">" + dicname + "</a>";
}
}
}
$("#menuList").html(leftlowerhtml);
}
});
}
</script>
<script type="text/javascript" src="${ctx}/js/laydate5.09/laydate.js"></script>
<script type="text/javascript">
laydate.render({
elem: '#starttime',
theme: 'datecolor'
});
laydate.render({
elem: '#endtime',
theme: 'datecolor'
});
</script>
</bl:block>
<bl:finish/>