Commit 131b3ed5 authored by Administrator's avatar Administrator

2018年4月18日 --智能分析平台

--增加投诉文本明细页面和部分jquery1.9页面升级问题
parent cf038b10
package com.hp.cmsz.entity;
import javax.persistence.*;
import java.sql.Timestamp;
@Entity
@Table(name="app_complain_all_for_day_t")
public class TSWB_TSDetail {
private int id;
@Column(name="prov_name")
private String provName;
@Column(name="mobile")
private String mobile;
@Column(name="gradle")
private String gradle;
@Column(name="channel")
private String channel;
@Column(name="processing_time")
private Timestamp processingTime;
@Column(name="service_request")
private String serviceRequest;
@Column(name="satisfaction")
private String satisfaction;
@Column(name="descr")
private String descr;
@Column(name="reson")
private String reson;
@Column(name="filing_time")
private Timestamp filingTime;
@Column(name="suggestion")
private String suggestion;
@Id
@GeneratedValue(strategy= GenerationType.AUTO)
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getProvName() {
return provName;
}
public void setProvName(String provName) {
this.provName = provName;
}
public String getMobile() {
return mobile;
}
public void setMobile(String mobile) {
this.mobile = mobile;
}
public String getGradle() {
return gradle;
}
public void setGradle(String gradle) {
this.gradle = gradle;
}
public String getChannel() {
return channel;
}
public void setChannel(String channel) {
this.channel = channel;
}
public Timestamp getProcessingTime() {
return processingTime;
}
public void setProcessingTime(Timestamp processingTime) {
this.processingTime = processingTime;
}
public String getServiceRequest() {
return serviceRequest;
}
public void setServiceRequest(String serviceRequest) {
this.serviceRequest = serviceRequest;
}
public String getSatisfaction() {
return satisfaction;
}
public void setSatisfaction(String satisfaction) {
this.satisfaction = satisfaction;
}
public String getDescr() {
return descr;
}
public void setDescr(String descr) {
this.descr = descr;
}
public String getReson() {
return reson;
}
public void setReson(String reson) {
this.reson = reson;
}
public Timestamp getFilingTime() {
return filingTime;
}
public void setFilingTime(Timestamp filingtime) {
this.filingTime = filingtime;
}
public String getSuggestion() {
return suggestion;
}
public void setSuggestion(String suggestion) {
this.suggestion = suggestion;
}
}
package com.hp.cmsz.repository;
import com.hp.cmsz.entity.TSWB_TSDetail;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import java.sql.Timestamp;
import java.util.List;
public interface TSWB_TSDetailDao extends JpaSpecificationExecutor<TSWB_TSDetail>,
PagingAndSortingRepository<TSWB_TSDetail, Long> {
@Query("from TSWB_TSDetail tsDetail where tsDetail.filingTime between timestampadd(M,-1,getdate()) and getdate() order by tsDetail.filingTime Desc")
Page<TSWB_TSDetail> findTsDetail(Pageable pageable);
//根据筛选项查询投诉明细
Page<TSWB_TSDetail> findByFilingTimeBetweenOrderByFilingTimeDesc(Timestamp startTime, Timestamp endTime,Pageable pageable);
}
......@@ -15,6 +15,7 @@ import org.springside.modules.persistence.SearchFilter;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
......@@ -38,6 +39,12 @@ public class TSWBAnalysisService {
@Autowired
TSWB_TZTemplateDataDao tSWB_TZTemplateDataDao;
@Autowired
TSWB_TSDetailDao tSWB_TSDetailDao;
@Autowired
TSWB_TSDetailDao tswb_tsDetailDao;
@PersistenceContext
EntityManager em;
......@@ -205,8 +212,17 @@ public class TSWBAnalysisService {
// }
//生成分页
public Page<TSWB_TSDetail> getTsDetailPage(TSWB_TSDetail appData, int pageNumber, int pageSize, String sortType) {
PageRequest pageRequest = buildPageRequest(pageNumber, pageSize, sortType, "id");
return tSWB_TSDetailDao.findTsDetail(pageRequest);
}
//根据筛选项查找投诉明细数据
public Page<TSWB_TSDetail> getTsDetailBy(TSWB_TSDetail appData, int pageNumber, int pageSize, String sortType, Timestamp startTime, Timestamp endTime) {
PageRequest pageRequest = buildPageRequest(pageNumber, pageSize, sortType, "id");
return tSWB_TSDetailDao.findByFilingTimeBetweenOrderByFilingTimeDesc(startTime, endTime, pageRequest);
}
/**
* 创建分页请求.
......
......@@ -6,6 +6,7 @@ package com.hp.cmsz.web.analysissupport;
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.io.*;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
......@@ -225,12 +226,39 @@ public class TSWBAnalysisController {
return modelAndView;
}
//投诉文本明细
@RequestMapping(value = "/TsDetailFrame")
public ModelAndView TsDetail() {
ModelAndView modelAndView = new ModelAndView("AnalysisSupport/TsDatail");
return modelAndView;
}
@RequestMapping(value = "/queryTsDetailFrame")
public ModelAndView queryTsDetailFrame(HttpServletRequest request,
@RequestParam(value = "period") String period,
@RequestParam(value = "page", defaultValue = "parameterId") String sortType,
@RequestParam(value = "page", defaultValue = "1") int pageNumber,
@RequestParam(value = "pageSize", defaultValue = "30") int pageSize,
TSWB_TSDetail tsDetail) {
ModelAndView modelAndView = new ModelAndView("AnalysisSupport/TsDetailDataTable");
String[] dates=period.split("~");
Timestamp startTime= Timestamp.valueOf(dates[0]);
Timestamp endTime=Timestamp.valueOf(dates[1]);
sortType = HtmlUtils.htmlEscape(sortType);
Page<TSWB_TSDetail> DataList = tSWBAnalysisService.getTsDetailBy(tsDetail, pageNumber, pageSize, sortType, startTime, endTime);
modelAndView.addObject("DataList", DataList);
modelAndView.addObject("pageSize", pageSize);
modelAndView.addObject("sortType", sortType);
cmszOperationLogService.createLog("查询", "投诉文本明细数据", "运营支撑投诉文本分析的投诉明细数据查询");
return modelAndView;
}
@RequestMapping(value = "/exportDataFrame")
public void exportDataFrame(HttpServletRequest request, HttpServletResponse response, String dataType,
String dataIds,String time) {
String dataIds,String time, String period) {
SimpleDateFormat formatDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date date = new Date();
......@@ -368,6 +396,30 @@ public class TSWBAnalysisController {
jhql = "SELECT prov_name, month, prov_code, data_character, rank, complaint_name, complaint_top_details, reply_date FROM complaint_month_detail_top5_issue " +
(dataIds != null && dataIds.length() > 0 ? ("where id in (" + dataIds + ") and month = '"+time+"'") : "where month='"+time+"'");
}else if("tsDetail".equals(dataType)){
typeName = "投诉明细数据";
fialList.add("省份名称");
fialList.add("受理号码");
fialList.add("客户级别");
fialList.add("受理渠道");
fialList.add("受理时间");
fialList.add("服务请求分类");
fialList.add("满意度");
fialList.add("投诉工单描述");
fialList.add("责任原因");
fialList.add("归档时间");
fialList.add("工单环节处理意见");
period = request.getParameter("period");
String[] dates=period.split("~");
Timestamp startTime= Timestamp.valueOf(dates[0]);
Timestamp endTime=Timestamp.valueOf(dates[1]);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
System.out.println("sdf.format(startTime)"+sdf.format(startTime));
jhql = "SELECT prov_name, mobile, gradle, channel, processing_time, service_request, satisfaction, descr, reson, filing_time, suggestion FROM app_complain_all_for_day_t " +
(dataIds != null && dataIds.length() > 0 ? ("where id in (" + dataIds + ") and processing_time>='"+sdf.format(startTime)+"' and processing_time<='"+sdf.format(endTime)+"' order by filing_time Desc" ) : ("where processing_time>='"+sdf.format(startTime)+"' and processing_time<='"+sdf.format(endTime)+"' order by filing_time Desc") );
}
......
......@@ -28,7 +28,8 @@ jdbc.database=ccolap
#jdbc.username=szcm
#jdbc.password=szcm
jdbc.driver=com.vertica.jdbc.Driver
jdbc.url=jdbc:vertica://hg-computer:5433/cmsz_ccolap
#jdbc.url=jdbc:vertica://hg-computer:5433/cmsz_ccolap
jdbc.url=jdbc:vertica://192.168.127.58:5433/vertica_prd
jdbc.username=ccolap
jdbc.password=hg.2015
##test
......
......@@ -276,6 +276,9 @@
<li>
<a href="${ctx}/AnalysisSupport/TSWBAnalysisHomeView/home?selectTab=yz_template">业支-下发模板</a>
</li>
<li>
<a href="${ctx}/AnalysisSupport/TSWBAnalysisHomeView/home?selectTab=ts_detail">投诉明细</a>
</li>
</ul>
</li>
</shiro:hasPermission>
......
......@@ -20,23 +20,23 @@
<script type="text/javascript">
var dataModelTypeCheckedValues=$(".dataModelType:checked");
$("#allDataModelType").click(function(){
if($("#allDataModelType").attr("checked") == "checked"){
$(".dataModelType").attr("checked","checked");
$("#allDataModelType").on('click',function(){
if($("#allDataModelType").prop("checked") == true){
$(".dataModelType").prop("checked",true);
dataModelTypeCheckedValues=$(".dataModelType");
}else{
$(".dataModelType").attr("checked",false);
$(".dataModelType").prop("checked",false);
dataModelTypeCheckedValues=$(".dataModelType:checked");
}
judge=false;
});
$(".dataModelType").click(function(){
$(".dataModelType").on('click',function(){
var clickFlag=true;//是否全部选中
$(".dataModelType").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allDataModelType").attr("checked",clickFlag);
$("#allDataModelType").prop("checked",clickFlag);
dataModelTypeCheckedValues=$(".dataModelType:checked");
judge=false;
......@@ -89,8 +89,8 @@ var dataModelTypeCheckedValues=$(".dataModelType:checked");
}
function dataModelTypeReset(){
$("#allDataModelType").attr("checked","checked");
$(".dataModelType").attr("checked","checked");
$("#allDataModelType").prop("checked",true);
$(".dataModelType").prop("checked",true);
dataModelTypeCheckedValues=$(".dataModelType");
}
</script>
......@@ -20,9 +20,9 @@
<script type="text/javascript">
var deployedServerCheckedValues=$(".deployedServer:checked");
$("#allDeployedServer").click(function(){
if($("#allDeployedServer").attr("checked") == "checked"){
$(".deployedServer").attr("checked","checked");
$("#allDeployedServer").on('click',function(){
if($("#allDeployedServer").prop("checked") == true){
$(".deployedServer").prop("checked",true);
deployedServerCheckedValues=$(".deployedServer");
}else{
$(".deployedServer").attr("checked",false);
......@@ -80,8 +80,8 @@
}
function deployedServerReset(){
$("#allDeployedServer").attr("checked","checked");
$(".deployedServer").attr("checked","checked");
$("#allDeployedServer").prop("checked",true);
$(".deployedServer").prop("checked",true);
deployedServerCheckedValues=$(".deployedServer");
}
</script>
......@@ -39,28 +39,28 @@
<script type="text/javascript">
var statsProviderCheckedValues=$(".providerStats:checked");
$("#allProviderStats").click(function(){
if($("#allProviderStats").attr("checked") == "checked"){//全选
$(".providerStats").attr("checked","checked");
//$(".providerStats").attr("disabled",true);
$("#allProviderStats").on('click',function(){
if($("#allProviderStats").prop("checked") == true){//全选
$(".providerStats").prop("checked",true);
//$(".providerStats").prop("disabled",true);
statsProviderCheckedValues=$(".providerStats:checked");
// alert(getStatsChannelCheckedValuesString());
statsProviderChange();
}else{//不全选
$(".providerStats").attr("checked",false);
$(".providerStats").attr("disabled",false);
$(".providerStats").prop("checked",false);
$(".providerStats").prop("disabled",false);
statsProviderCheckedValues=$(".providerStats:checked");
// alert(getStatsChannelCheckedValuesString());
statsProviderChange();
}
});
$(".providerStats").click(function(){
$(".providerStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".providerStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allProviderStats").attr("checked",clickFlag);
$("#allProviderStats").prop("checked",clickFlag);
statsProviderCheckedValues=$(".providerStats:checked");
statsProviderChange();
});
......@@ -97,8 +97,8 @@ function getProviderCheckedTitles(){
}
function statsProviderReset(){
$("#allProviderStats").attr("checked","checked");
$(".providerStats").attr("checked","checked");
$("#allProviderStats").prop("checked",true);
$(".providerStats").prop("checked",true);
statsProviderCheckedValues=$(".providerStats:checked");
statsProviderChange();
}
......@@ -110,32 +110,32 @@ function statsProviderReset(){
var statsProvinceCheckedValues=$(".provinceStats:checked");
//全选和不全选所有的省
$("#allProvinceStats").click(function(){
if($("#allProvinceStats").attr("checked") == "checked"){//全选
$(".provinceStats").attr("checked","checked");
$("#allProvinceStats").on('click',function(){
if($("#allProvinceStats").prop("checked") == true){//全选
$(".provinceStats").prop("checked",true);
statsProvinceCheckedValues=$(".provinceStats");
$("#cityDiv").empty();
}else{//不全选
$(".provinceStats").attr("checked",false);
$(".provinceStats").attr("disabled",false);
$(".provinceStats").prop("checked",false);
$(".provinceStats").prop("disabled",false);
statsProvinceCheckedValues=$(".provinceStats:checked");
}
});
//选中勾选了的省
$(".provinceStats").click(function(){
$(".provinceStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".provinceStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allProvinceStats").attr("checked",clickFlag);
$("#allProvinceStats").prop("checked",clickFlag);
statsProvinceCheckedValues=$(".provinceStats:checked");
// alert(getStatsProvinceCheckedValuesString());
});
//重置
function statsProvinceReset(){
$("#allProvinceStats").attr("checked","checked");
$(".provinceStats").attr("checked","checked");
$("#allProvinceStats").prop("checked",true);
$(".provinceStats").prop("checked",true);
statsProvinceCheckedValues=$(".provinceStats");
}
......@@ -192,32 +192,32 @@ function statsProviderChange(){
data=eval("("+data+")");//获取从后台返回的数据,通常是Json格式
if(data != null && data != ""){
$("#allProvinceStats").attr("checked",true);
$("#allProvinceStats").prop("checked",true);
for(var t=0;t<data.length;t++){
$("#provinceSelectAreaStats").append('<div class="checkbox-inline"><label><input type="checkbox" name="provinceStats" class="provinceStats" title="'+data[t].provinceName+'" value="'+data[t].provinceId+'" checked>'+data[t].provinceName+'</label></div>');
}
}
statsProvinceCheckedValues=$(".provinceStats:checked");
//全选和不全选所有的省
$("#allProvinceStats").click(function(){
if($("#allProvinceStats").attr("checked") == "checked"){//全选
$(".provinceStats").attr("checked","checked");
$("#allProvinceStats").on('click',function(){
if($("#allProvinceStats").prop("checked") == true){//全选
$(".provinceStats").prop("checked",true);
statsProvinceCheckedValues=$(".provinceStats");
$("#cityDiv").empty();
}else{//不全选
$(".provinceStats").attr("checked",false);
$(".provinceStats").attr("disabled",false);
$(".provinceStats").prop("checked",false);
$(".provinceStats").prop("disabled",false);
statsProvinceCheckedValues=$(".provinceStats:checked");
}
});
//选中勾选了的省
$(".provinceStats").click(function(){
$(".provinceStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".provinceStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allProvinceStats").attr("checked",clickFlag);
$("#allProvinceStats").prop("checked",clickFlag);
statsProvinceCheckedValues=$(".provinceStats:checked");
// alert(getStatsProvinceCheckedValuesString());
});
......
......@@ -52,22 +52,22 @@
<%--------------------------------------------------数据来源JS代码块 --------------------------------------------------%>
<script type="text/javascript">
$("#allDataSourceStats").click(function(){
if($("#allDataSourceStats").attr("checked") == "checked"){//全选
$(".datasourceStats").attr("checked","checked");
$("#allDataSourceStats").on('click',function(){
if($("#allDataSourceStats").prop("checked") == true){//全选
$(".datasourceStats").prop("checked",true);
statsDatasourceChange();
}else{//不全选
$(".datasourceStats").attr("checked",false);
$(".datasourceStats").prop("checked",false);
statsDatasourceChange();
}
});
$(".datasourceStats").click(function(){
$(".datasourceStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".datasourceStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allDataSourceStats").attr("checked",clickFlag);
$("#allDataSourceStats").prop("checked",clickFlag);
statsDatasourceChange();
});
......@@ -143,29 +143,29 @@ function getStatsDataSourceCheckedTitles(){
//数据来源,渠道,业务三级联动重置
function statsDataSourceReset(){
$("#allDataSourceStats").attr("checked","ckecked");
$(".datasourceStats").attr("checked","checked");
$("#allDataSourceStats").prop("checked",true);
$(".datasourceStats").prop("checked",true);
statsDatasourceChange();
}
</script>
<%--------------------------------------------------渠道JS代码块 --------------------------------------------------%>
<script type="text/javascript">
$("#allChannelStats").click(function(){
if($("#allChannelStats").attr("checked") == "checked"){//全选
$(".channelStats").attr("checked","checked");
$("#allChannelStats").on('click',function(){
if($("#allChannelStats").prop("checked") == true){//全选
$(".channelStats").prop("checked",true);
statsChannelChange();
}else{//不全选
$(".channelStats").attr("checked",false);
$(".channelStats").prop("checked",false);
statsChannelChange();
}
});
$(".channelStats").click(function(){
$(".channelStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".channelStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allChannelStats").attr("checked",clickFlag);
$("#allChannelStats").prop("checked",clickFlag);
statsChannelChange();
});
......@@ -241,21 +241,21 @@ function getStatsChannelCheckedTitles(){
</script>
<%--------------------------------------------------业务JS代码块 --------------------------------------------------%>
<script type="text/javascript">
$("#allBusinessStats").click(function(){
if($("#allBusinessStats").attr("checked") == "checked"){//全选
$(".businessStats").attr("checked","checked");
$("#allBusinessStats").on('click',function(){
if($("#allBusinessStats").prop("checked") == true){//全选
$(".businessStats").prop("checked",true);
}else{//不全选
$(".businessStats").attr("checked",false);
$(".businessStats").attr("disabled",false);
$(".businessStats").prop("checked",false);
$(".businessStats").prop("disabled",false);
}
});
$(".businessStats").click(function(){
$(".businessStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".businessStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allBusinessStats").attr("checked",clickFlag);
$("#allBusinessStats").prop("checked",clickFlag);
});
//返回结果为一个数组,数组中包含选中的渠道类型
......@@ -332,7 +332,7 @@ function statsDatasourceChange(){
$("#ChannelSelectAreaStats").empty();
}
else{
$("#allChannelStats").attr("checked",true);
$("#allChannelStats").prop("checked",true);
$("#ChannelSelectAreaStats").empty();
for(var t=0;t<data.length;t++){
......@@ -340,12 +340,12 @@ function statsDatasourceChange(){
}
statsChannelChange();
}
$(".channelStats").click(function(){
$(".channelStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".channelStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allChannelStats").attr("checked",clickFlag);
$("#allChannelStats").prop("checked",clickFlag);
statsChannelChange();
});
}
......@@ -378,19 +378,19 @@ function statsChannelChange(){
if(data == null || data == ""){
$("#businessSelectAreaStats").empty();
}else{
$("#allBusinessStats").attr("checked",true);
$("#allBusinessStats").prop("checked",true);
$("#businessSelectAreaStats").show();
$("#businessSelectAreaStats").empty();
for(var t=0;t<data.length;t=t+2){
$("#businessSelectAreaStats").append('<div class="checkbox-inline"><label><input type="checkbox" name="businessStats" class="businessStats" title="'+data[t+1]+'" value="'+data[t]+'" checked>'+data[t+1]+'</label></div>');
}
}
$(".businessStats").click(function(){
$(".businessStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".businessStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allBusinessStats").attr("checked",clickFlag);
$("#allBusinessStats").prop("checked",clickFlag);
});
}
});
......
......@@ -35,16 +35,16 @@
<script type="text/javascript">
var detailProviderCheckedValues=$(".providerDetail:checked");
$("#allProviderDetail").click(function(){
if($("#allProviderDetail").attr("checked") == "checked"){//全选
$(".providerDetail").attr("checked","checked");
// $(".providerDetail").attr("disabled",true);
$("#allProviderDetail").on('click',function(){
if($("#allProviderDetail").prop("checked") == true){//全选
$(".providerDetail").prop("checked",true);
// $(".providerDetail").prop("disabled",true);
detailProviderCheckedValues=$(".providerDetail:checked");
//alert(getDetailChannelCheckedValuesString());
detailProviderChange();
}else{//不全选
$(".providerDetail").attr("checked",false);
$(".providerDetail").attr("disabled",false);
$(".providerDetail").prop("checked",false);
$(".providerDetail").prop("disabled",false);
detailProviderCheckedValues=$(".providerDetail:checked");
// alert(getDetailChannelCheckedValuesString());
detailProviderChange();
......@@ -52,12 +52,12 @@ $("#allProviderDetail").click(function(){
judge=false;
});
$(".providerDetail").click(function(){
$(".providerDetail").on('click',function(){
var clickFlag=true;//是否全部选中
$(".providerDetail").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allProviderDetail").attr("checked",clickFlag);
$("#allProviderDetail").prop("checked",clickFlag);
detailProviderCheckedValues=$(".providerDetail:checked");
detailProviderChange();
//alert(getDetailProviderCheckedValuesString());
......@@ -113,8 +113,8 @@ function getDetailProviderCheckedTitles(){
}
function detailProviderReset(){
$("#allProviderDetail").attr("checked","checked");
$(".providerDetail").attr("checked","checked");
$("#allProviderDetail").prop("checked",true);
$(".providerDetail").prop("checked",true);
detailProviderCheckedValues=$(".providerDetail:checked");
detailProviderChange();
......@@ -127,33 +127,33 @@ var detailProvinceCheckedValues=$(".provinceDetail:checked");
//全选和不全选所有的省
$("#allProvinceDetail").click(function(){
if($("#allProvinceDetail").attr("checked") == "checked"){//全选
$(".provinceDetail").attr("checked","checked");
$("#allProvinceDetail").on('click',function(){
if($("#allProvinceDetail").prop("checked") == true){//全选
$(".provinceDetail").prop("checked",true);
detailProvinceCheckedValues=$(".provinceDetail:checked");
}else{//不全选
$(".provinceDetail").attr("checked",false);
$(".provinceDetail").attr("disabled",false);
$(".provinceDetail").prop("checked",false);
$(".provinceDetail").prop("disabled",false);
detailProvinceCheckedValues=$(".provinceDetail:checked");
}
judge=false;
});
//选中勾选了的省
$(".provinceDetail").click(function(){
$(".provinceDetail").on('click',function(){
var clickFlag=true;//是否全部选中
$(".provinceDetail").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allProvinceDetail").attr("checked",clickFlag);
$("#allProvinceDetail").prop("checked",clickFlag);
detailProvinceCheckedValues=$(".provinceDetail:checked");
//alert(getDetailProvinceCheckedValueString());
judge=false;
});
//重置
function detailProvinceReset(){
$("#allProvinceDetail").attr("checked","checked");
$(".provinceDetail").attr("checked","checked");
$("#allProvinceDetail").prop("checked",true);
$(".provinceDetail").prop("checked",true);
detailProvinceCheckedValues=$(".provinceDetail");
}
......@@ -224,7 +224,7 @@ function detailProviderChange(){
data=eval("("+data+")");//获取从后台返回的数据,通常是Json格式
if(data != null && data != ""){
$("#allProvinceDetail").attr("checked",true);
$("#allProvinceDetail").prop("checked",true);
for(var t=0;t<data.length;t++){
$("#provinceSelectAreaDetail").append('<div class="checkbox-inline"><label><input type="checkbox" name="provinceDetail" class="provinceDetail" title="'+data[t].provinceName+'" value="'+data[t].provinceId+'" checked>'+data[t].provinceName+'</label></div>');
}
......@@ -233,25 +233,25 @@ function detailProviderChange(){
//全选和不全选所有的省
$("#allProvinceDetail").click(function(){
if($("#allProvinceDetail").attr("checked") == "checked"){//全选
$(".provinceDetail").attr("checked","checked");
$("#allProvinceDetail").on('click',function(){
if($("#allProvinceDetail").prop("checked") == true){//全选
$(".provinceDetail").prop("checked",true);
detailProvinceCheckedValues=$(".provinceDetail:checked");
}else{//不全选
$(".provinceDetail").attr("checked",false);
$(".provinceDetail").attr("disabled",false);
$(".provinceDetail").prop("checked",false);
$(".provinceDetail").prop("disabled",false);
detailProvinceCheckedValues=$(".provinceDetail:checked");
}
judge=false;
});
//选中勾选了的省
$(".provinceDetail").click(function(){
$(".provinceDetail").on('click',function(){
var clickFlag=true;//是否全部选中
$(".provinceDetail").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allProvinceDetail").attr("checked",clickFlag);
$("#allProvinceDetail").prop("checked",clickFlag);
detailProvinceCheckedValues=$(".provinceDetail:checked");
//alert(getDetailProvinceCheckedValueString());
judge=false;
......
......@@ -39,28 +39,28 @@
<script type="text/javascript">
var statsProviderCheckedValues=$(".providerStats:checked");
$("#allProviderStats").click(function(){
if($("#allProviderStats").attr("checked") == "checked"){//全选
$(".providerStats").attr("checked","checked");
//$(".providerStats").attr("disabled",true);
$("#allProviderStats").on('click',function(){
if($("#allProviderStats").prop("checked") == true){//全选
$(".providerStats").prop("checked",true);
//$(".providerStats").prop("disabled",true);
statsProviderCheckedValues=$(".providerStats:checked");
// alert(getStatsChannelCheckedValuesString());
statsProviderChange();
}else{//不全选
$(".providerStats").attr("checked",false);
$(".providerStats").attr("disabled",false);
$(".providerStats").prop("checked",false);
$(".providerStats").prop("disabled",false);
statsProviderCheckedValues=$(".providerStats:checked");
// alert(getStatsChannelCheckedValuesString());
statsProviderChange();
}
});
$(".providerStats").click(function(){
$(".providerStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".providerStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allProviderStats").attr("checked",clickFlag);
$("#allProviderStats").prop("checked",clickFlag);
statsProviderCheckedValues=$(".providerStats:checked");
statsProviderChange();
});
......@@ -111,8 +111,8 @@ function getStatsProviderCheckedTitles(){
}
function statsProviderReset(){
$("#allProviderStats").attr("checked","checked");
$(".providerStats").attr("checked","checked");
$("#allProviderStats").prop("checked",true);
$(".providerStats").prop("checked",true);
statsProviderCheckedValues=$(".providerStats:checked");
statsProviderChange();
}
......@@ -135,32 +135,32 @@ function getProviderById(providerId){
var statsProvinceCheckedValues=$(".provinceStats:checked");
//全选和不全选所有的省
$("#allProvinceStats").click(function(){
if($("#allProvinceStats").attr("checked") == "checked"){//全选
$(".provinceStats").attr("checked","checked");
$("#allProvinceStats").on('click',function(){
if($("#allProvinceStats").prop("checked") == true){//全选
$(".provinceStats").prop("checked",true);
statsProvinceCheckedValues=$(".provinceStats");
$("#cityDiv").empty();
}else{//不全选
$(".provinceStats").attr("checked",false);
$(".provinceStats").attr("disabled",false);
$(".provinceStats").prop("checked",false);
$(".provinceStats").prop("disabled",false);
statsProvinceCheckedValues=$(".provinceStats:checked");
}
});
//选中勾选了的省
$(".provinceStats").click(function(){
$(".provinceStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".provinceStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allProvinceStats").attr("checked",clickFlag);
$("#allProvinceStats").prop("checked",clickFlag);
statsProvinceCheckedValues=$(".provinceStats:checked");
// alert(getStatsProvinceCheckedValuesString());
});
//重置
function statsProvinceReset(){
$("#allProvinceStats").attr("checked","checked");
$(".provinceStats").attr("checked","checked");
$("#allProvinceStats").prop("checked",true);
$(".provinceStats").prop("checked",true);
statsProvinceCheckedValues=$(".provinceStats");
}
......@@ -269,25 +269,25 @@ function statsProviderChange(){
}
statsProvinceCheckedValues=$(".provinceStats:checked");
//全选和不全选所有的省
$("#allProvinceStats").click(function(){
if($("#allProvinceStats").attr("checked") == "checked"){//全选
$(".provinceStats").attr("checked","checked");
$("#allProvinceStats").on('click',function(){
if($("#allProvinceStats").prop("checked") == true){//全选
$(".provinceStats").prop("checked",true);
statsProvinceCheckedValues=$(".provinceStats");
$("#cityDiv").empty();
}else{//不全选
$(".provinceStats").attr("checked",false);
$(".provinceStats").attr("disabled",false);
$(".provinceStats").prop("checked",false);
$(".provinceStats").prop("disabled",false);
statsProvinceCheckedValues=$(".provinceStats:checked");
}
});
//选中勾选了的省
$(".provinceStats").click(function(){
$(".provinceStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".provinceStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allProvinceStats").attr("checked",clickFlag);
$("#allProvinceStats").prop("checked",clickFlag);
statsProvinceCheckedValues=$(".provinceStats:checked");
// alert(getStatsProvinceCheckedValuesString());
});
......
......@@ -20,26 +20,26 @@
<script type="text/javascript">
var detailProviderCheckedValues=$(".providerDetail:checked");
$("#allProviderDetail").click(function(){
if($("#allProviderDetail").attr("checked") == "checked"){//全选
$(".providerDetail").attr("checked","checked");
// $(".providerDetail").attr("disabled",true);
$("#allProviderDetail").on('click',function(){
if($("#allProviderDetail").prop("checked") == true){//全选
$(".providerDetail").prop("checked",true);
// $(".providerDetail").prop("disabled",true);
detailProviderCheckedValues=$(".providerDetail:checked");
//alert(getDetailChannelCheckedValuesString());
}else{//不全选
$(".providerDetail").attr("checked",false);
$(".providerDetail").attr("disabled",false);
$(".providerDetail").prop("checked",false);
$(".providerDetail").prop("disabled",false);
detailProviderCheckedValues=$(".providerDetail:checked");
// alert(getDetailChannelCheckedValuesString());
}
});
$(".providerDetail").click(function(){
$(".providerDetail").on('click',function(){
var clickFlag=true;//是否全部选中
$(".providerDetail").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allProviderDetail").attr("checked",clickFlag);
$("#allProviderDetail").prop("checked",clickFlag);
detailProviderCheckedValues=$(".providerDetail:checked");
//alert(getDetailProviderCheckedValuesString());
//alert(getDetailProviderCheckedTitles());
......@@ -93,8 +93,8 @@ function getDetailProviderCheckedTitles(){
}
function detailProviderReset(){
$("#allProviderDetail").attr("checked","checked");
$(".providerDetail").attr("checked","checked");
$("#allProviderDetail").prop("checked","checked");
$(".providerDetail").prop("checked","checked");
statsProviderCheckedValues=$(".providerDetail:checked");
}
......
......@@ -20,26 +20,26 @@
<script type="text/javascript">
var statsProviderCheckedValues=$(".providerStats:checked");
$("#allProviderStats").click(function(){
if($("#allProviderStats").attr("checked") == "checked"){//全选
$(".providerStats").attr("checked","checked");
//$(".providerStats").attr("disabled",true);
$("#allProviderStats").on('click',function(){
if($("#allProviderStats").prop("checked") == true){//全选
$(".providerStats").prop("checked",true);
//$(".providerStats").prop("disabled",true);
statsProviderCheckedValues=$(".providerStats:checked");
// alert(getStatsChannelCheckedValuesString());
}else{//不全选
$(".providerStats").attr("checked",false);
$(".providerStats").attr("disabled",false);
$(".providerStats").prop("checked",false);
$(".providerStats").prop("disabled",false);
statsProviderCheckedValues=$(".providerStats:checked");
// alert(getStatsChannelCheckedValuesString());
}
});
$(".providerStats").click(function(){
$(".providerStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".providerStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allProviderStats").attr("checked",clickFlag);
$("#allProviderStats").prop("checked",clickFlag);
statsProviderCheckedValues=$(".providerStats:checked");
//alert(getStatsProviderCheckedValuesString());
//alert(getStatsProviderCheckedTitles());
......@@ -94,8 +94,8 @@ function getStatsProviderCheckedTitles(){
}
function statsProviderReset(){
$("#allProviderStats").attr("checked","checked");
$(".providerStats").attr("checked","checked");
$("#allProviderStats").prop("checked",true);
$(".providerStats").prop("checked",true);
statsProviderCheckedValues=$(".providerStats:checked");
}
......
......@@ -20,32 +20,31 @@
//全选和不全选所有的省
$("#allProvinceDetail").click(function(){
if($("#allProvinceDetail").attr("checked")
== "checked"){//全选
$(".provinceDetail").attr("checked","checked");
$("#allProvinceDetail").on('click',function(){
if($("#allProvinceDetail").prop("checked") == true){//全选
$(".provinceDetail").prop("checked",true);
detailProvinceCheckedValues=$(".provinceDetail:checked");
}else{//不全选
$(".provinceDetail").attr("checked",false);
$(".provinceDetail").attr("disabled",false);
$(".provinceDetail").prop("checked",false);
$(".provinceDetail").prop("disabled",false);
detailProvinceCheckedValues=$(".provinceDetail:checked");
}
});
//选中勾选了的省
$(".provinceDetail").click(function(){
$(".provinceDetail").on("click",function(){
var clickFlag=true;//是否全部选中
$(".provinceDetail").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allProvinceDetail").attr("checked",clickFlag);
$("#allProvinceDetail").prop("checked",clickFlag);
detailProvinceCheckedValues=$(".provinceDetail:checked");
//alert(getDetailProvinceCheckedValueString());
});
//重置
function detailProvinceReset(){
$("#allProvinceDetail").attr("checked","checked");
$(".provinceDetail").attr("checked","checked");
$("#allProvinceDetail").prop("checked","checked");
$(".provinceDetail").prop("checked","checked");
detailProvinceCheckedValues=$(".provinceDetail");
}
......@@ -57,7 +56,7 @@ function getDetailProvinceCheckedValues(){
provinceArray[i]=$(this).val();
i++;
});
console.log("provinceArray "+provinceArray):
console.log("provinceArray "+provinceArray);
return provinceArray;
}
......
......@@ -29,32 +29,32 @@
var statsWarningSourceCheckedValues=$(".warningsourceStats:checked");
//全选和不全选所有的故障来源
$("#allWarningSourceStats").click(function(){
if($("#allWarningSourceStats").attr("checked") == "checked"){//全选
$(".warningsourceStats").attr("checked","checked");
$("#allWarningSourceStats").on('click',function(){
if($("#allWarningSourceStats").prop("checked") == true){//全选
$(".warningsourceStats").prop("checked",true);
statsWarningSourceCheckedValues=$(".warningsourceStats:checked");
}else{//不全选
$(".warningsourceStats").attr("checked",false);
$(".warningsourceStats").prop("checked",false);
statsWarningSourceCheckedValues=$(".warningsourceStats:checked");
}
judge = false;
});
//选中勾选了的故障来源
$(".warningsourceStats").click(function(){
$(".warningsourceStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".warningsourceStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allWarningSourceStats").attr("checked",clickFlag);
$("#allWarningSourceStats").prop("checked",clickFlag);
statsWarningSourceCheckedValues=$(".warningsourceStats:checked");
// alert(getStatsProvinceCheckedValuesString());
judge = false;
});
//重置
function statsWarningSourceReset(){
$("#allWarningSourceStats").attr("checked","checked");
$(".warningsourceStats").attr("checked","checked");
$("#allWarningSourceStats").prop("checked","checked");
$(".warningsourceStats").prop("checked","checked");
statsWarningSourceCheckedValues=$(".warningsourceStats:checked");
}
......
......@@ -30,30 +30,30 @@
var statsWarningSourceCheckedValues=$(".warningsourceStats:checked");
//全选和不全选所有的故障来源
$("#allWarningSourceStats").click(function(){
if($("#allWarningSourceStats").attr("checked") == "checked"){//全选
$(".warningsourceStats").attr("checked","checked");
$("#allWarningSourceStats").on('click',function(){
if($("#allWarningSourceStats").prop("checked") == true){//全选
$(".warningsourceStats").prop("checked",true);
statsWarningSourceCheckedValues=$(".warningsourceStats:checked");
}else{//不全选
$(".warningsourceStats").attr("checked",false);
$(".warningsourceStats").prop("checked",false);
statsWarningSourceCheckedValues=$(".warningsourceStats:checked");
}
});
//选中勾选了的故障来源
$(".warningsourceStats").click(function(){
$(".warningsourceStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".warningsourceStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allWarningSourceStats").attr("checked",clickFlag);
$("#allWarningSourceStats").prop("checked",clickFlag);
statsWarningSourceCheckedValues=$(".warningsourceStats:checked");
// alert(getStatsProvinceCheckedValuesString());
});
//重置
function statsWarningSourceReset(){
$("#allWarningSourceStats").attr("checked","checked");
$(".warningsourceStats").attr("checked","checked");
$("#allWarningSourceStats").prop("checked",true);
$(".warningsourceStats").prop("checked",true);
statsWarningSourceCheckedValues=$(".warningsourceStats:checked");
}
......
......@@ -58,26 +58,26 @@
<script type="text/javascript">
var detailDataSourceCheckedValues=$(".datasourceDetail:checked");
$("#allDataSourceDetail").click(function(){
if($("#allDataSourceDetail").attr("checked") == "checked"){//全选
$(".datasourceDetail").attr("checked","checked");
//$(".datasourceDetail").attr("disabled",true);
$("#allDataSourceDetail").on('click',function(){
if($("#allDataSourceDetail").prop("checked") == true){//全选
$(".datasourceDetail").prop("checked",true);
//$(".datasourceDetail").prop("disabled",true);
detailDataSourceCheckedValues=$(".datasourceDetail");
detailDatasourceChange();
}else{//不全选
$(".datasourceDetail").attr("checked",false);
$(".datasourceDetail").prop("checked",false);
detailDataSourceCheckedValues=$(".datasourceDetail:checked");
detailDatasourceChange();
}
judge=false;
});
$(".datasourceDetail").click(function(){
$(".datasourceDetail").on('click',function(){
var clickFlag=true;//是否全部选中
$(".datasourceDetail").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allDataSourceDetail").attr("checked",clickFlag);
$("#allDataSourceDetail").prop("checked",clickFlag);
detailDataSourceCheckedValues=$(".datasourceDetail:checked");
detailDatasourceChange();
judge=false;
......@@ -154,8 +154,8 @@ function getDetailDataSourceCheckedTitles(){
return detailDataSourceTitles;
}
function detailDataSourceReset(){
$("#allDataSourceDetail").attr("checked","ckecked");
$(".datasourceDetail").attr("checked","checked");
$("#allDataSourceDetail").prop("checked",true);
$(".datasourceDetail").prop("checked",true);
detailDataSourceCheckedValues=$(".datasourceDetail");
detailDatasourceChange();
//datasourceChange();
......@@ -168,16 +168,16 @@ function detailDataSourceReset(){
<script type="text/javascript">
var detailChannelCheckedValues=$(".channelDetail:checked");
$("#allChannelDetail").click(function(){
if($("#allChannelDetail").attr("checked") == "checked"){//全选
$(".channelDetail").attr("checked","checked");
// $(".channelDetail").attr("disabled",true);
$("#allChannelDetail").on('click',function(){
if($("#allChannelDetail").prop("checked") == true){//全选
$(".channelDetail").prop("checked",true);
// $(".channelDetail").prop("disabled",true);
detailChannelCheckedValues=$(".channelDetail");
detailChannelChange();
// alert(getDetailChannelCheckedValuesString());
}else{//不全选
$(".channelDetail").attr("checked",false);
$(".channelDetail").attr("disabled",false);
$(".channelDetail").prop("checked",false);
$(".channelDetail").prop("disabled",false);
detailChannelCheckedValues=$(".channelDetail:checked");
detailChannelChange();
//alert(getDetailChannelCheckedValuesString());
......@@ -185,12 +185,12 @@ $("#allChannelDetail").click(function(){
judge=false;
});
$(".channelDetail").click(function(){
$(".channelDetail").on('click',function(){
var clickFlag=true;//是否全部选中
$(".channelDetail").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allChannelDetail").attr("checked",clickFlag);
$("#allChannelDetail").prop("checked",clickFlag);
detailChannelCheckedValues=$(".channelDetail:checked");
detailChannelChange();
// alert(getDetailChannelCheckedValuesString());
......@@ -274,27 +274,27 @@ function getDetailChannelCheckedTitles(){
var detailBusinessCheckedValues=$(".businessDetail:checked");
$("#allBusinessDetail").click(function(){
if($("#allBusinessDetail").attr("checked") == "checked"){//全选
$(".businessDetail").attr("checked","checked");
// $(".businessDetail").attr("disabled",true);
$("#allBusinessDetail").on('click',function(){
if($("#allBusinessDetail").prop("checked") == true){//全选
$(".businessDetail").prop("checked",true);
// $(".businessDetail").prop("disabled",true);
detailBusinessCheckedValues=$(".businessDetail");
// alert(getDetailBusinessCheckedValuesString());
}else{//不全选
$(".businessDetail").attr("checked",false);
$(".businessDetail").attr("disabled",false);
$(".businessDetail").prop("checked",false);
$(".businessDetail").prop("disabled",false);
detailBusinessCheckedValues=$(".businessDetail:checked");
// alert(getDetailBusinessCheckedValuesString());
}
judge=false;
});
$(".businessDetail").click(function(){
$(".businessDetail").on('click',function(){
var clickFlag=true;//是否全部选中
$(".businessDetail").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allBusinessDetail").attr("checked",clickFlag);
$("#allBusinessDetail").prop("checked",clickFlag);
detailBusinessCheckedValues=$(".businessDetail:checked");
// alert(getDetailBusinessCheckedValuesString());
judge=false;
......@@ -378,7 +378,7 @@ function detailDatasourceChange(){
}
else{
$("#allChannelDetail").attr("checked",true);
$("#allChannelDetail").prop("checked",true);
$("#ChannelSelectAreaDetail").empty();
// $("#ChannelSelectAreaDetail").empty();
// $("#ChannelSelectAreaDetail").append('<input type="checkbox" id="allChannelDetail" checked>'+'全选'+'<br />');
......@@ -388,16 +388,16 @@ function detailDatasourceChange(){
}
detailChannelCheckedValues=$(".channelDetail:checked");
detailChannelChange();
$("#allChannelDetail").click(function(){
if($("#allChannelDetail").attr("checked") == "checked"){//全选
$(".channelDetail").attr("checked","checked");
//$(".channelDetail").attr("disabled",true);
$("#allChannelDetail").on('click',function(){
if($("#allChannelDetail").prop("checked") == true){//全选
$(".channelDetail").prop("checked",true);
//$(".channelDetail").prop("disabled",true);
detailChannelCheckedValues=$(".channelDetail");
detailChannelChange();
// alert(getDetailChannelCheckedValuesString());
}else{//不全选
$(".channelDetail").attr("checked",false);
$(".channelDetail").attr("disabled",false);
$(".channelDetail").prop("checked",false);
$(".channelDetail").prop("disabled",false);
detailChannelCheckedValues=$(".channelDetail:checked");
detailChannelChange();
// alert(getDetailChannelCheckedValuesString());
......@@ -405,12 +405,12 @@ function detailDatasourceChange(){
judge=false;
});
$(".channelDetail").click(function(){
$(".channelDetail").on('click',function(){
var clickFlag=true;//是否全部选中
$(".channelDetail").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allChannelDetail").attr("checked",clickFlag);
$("#allChannelDetail").prop("checked",clickFlag);
detailChannelCheckedValues=$(".channelDetail:checked");
detailChannelChange();
// alert(getDetailChannelCheckedValuesString());
......@@ -461,27 +461,27 @@ function detailChannelChange(){
}
detailBusinessCheckedValues=$(".businessDetail:checked");
$("#allBusinessDetail").click(function(){
if($("#allBusinessDetail").attr("checked") == "checked"){//全选
$(".businessDetail").attr("checked","checked");
//$(".businessDetail").attr("disabled",true);
$("#allBusinessDetail").on('click',function(){
if($("#allBusinessDetail").prop("checked") == true){//全选
$(".businessDetail").prop("checked",true);
//$(".businessDetail").prop("disabled",true);
detailBusinessCheckedValues=$(".businessDetail");
// alert(getDetailBusinessCheckedValuesString());
}else{//不全选
$(".businessDetail").attr("checked",false);
$(".businessDetail").attr("disabled",false);
$(".businessDetail").prop("checked",false);
$(".businessDetail").prop("disabled",false);
detailBusinessCheckedValues=$(".businessDetail:checked");
// alert(getDetailBusinessCheckedValuesString());
}
judge=false;
});
$(".businessDetail").click(function(){
$(".businessDetail").on('click',function(){
var clickFlag=true;//是否全部选中
$(".businessDetail").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allBusinessDetail").attr("checked",clickFlag);
$("#allBusinessDetail").prop("checked",clickFlag);
detailBusinessCheckedValues=$(".businessDetail:checked");
//alert(getDetailBusinessCheckedValuesString());
judge=false;
......
......@@ -49,22 +49,22 @@
<%--------------------------------------------------数据来源JS代码块 --------------------------------------------------%>
<script type="text/javascript">
$("#allDataSourceStats").click(function(){
if($("#allDataSourceStats").attr("checked") == "checked"){//全选
$(".datasourceStats").attr("checked","checked");
$("#allDataSourceStats").on('click',function(){
if($("#allDataSourceStats").prop("checked") == true){//全选
$(".datasourceStats").prop("checked",true);
statsDatasourceChange();
}else{//不全选
$(".datasourceStats").attr("checked",false);
$(".datasourceStats").prop("checked",false);
statsDatasourceChange();
}
});
$(".datasourceStats").click(function(){
$(".datasourceStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".datasourceStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allDataSourceStats").attr("checked",clickFlag);
$("#allDataSourceStats").prop("checked",clickFlag);
statsDatasourceChange();
});
......@@ -140,8 +140,8 @@ function getStatsDataSourceCheckedTitles(){
//数据来源,渠道,业务三级联动重置
function statsDataSourceReset(){
$("#allDataSourceStats").attr("checked","ckecked");
$(".datasourceStats").attr("checked","checked");
$("#allDataSourceStats").prop("checked",true);
$(".datasourceStats").prop("checked",true);
statsDatasourceChange();
}
</script>
......@@ -149,22 +149,22 @@ function statsDataSourceReset(){
<%--------------------------------------------------渠道JS代码块 --------------------------------------------------%>
<script type="text/javascript">
$("#allChannelStats").click(function(){
if($("#allChannelStats").attr("checked") == "checked"){//全选
$(".channelStats").attr("checked","checked");
$("#allChannelStats").on('click',function(){
if($("#allChannelStats").prop("checked") == true){//全选
$(".channelStats").prop("checked",true);
statsChannelChange();
}else{//不全选
$(".channelStats").attr("checked",false);
$(".channelStats").prop("checked",false);
statsChannelChange();
}
});
$(".channelStats").click(function(){
$(".channelStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".channelStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allChannelStats").attr("checked",clickFlag);
$("#allChannelStats").prop("checked",clickFlag);
statsChannelChange();
});
......@@ -241,21 +241,21 @@ function getStatsChannelCheckedTitles(){
<%--------------------------------------------------业务JS代码块 --------------------------------------------------%>
<script type="text/javascript">
$("#allBusinessStats").click(function(){
if($("#allBusinessStats").attr("checked") == "checked"){//全选
$(".businessStats").attr("checked","checked");
$("#allBusinessStats").on('click',function(){
if($("#allBusinessStats").prop("checked") == true){//全选
$(".businessStats").prop("checked",true);
}else{//不全选
$(".businessStats").attr("checked",false);
$(".businessStats").attr("disabled",false);
$(".businessStats").prop("checked",false);
$(".businessStats").prop("disabled",false);
}
});
$(".businessStats").click(function(){
$(".businessStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".businessStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allBusinessStats").attr("checked",clickFlag);
$("#allBusinessStats").prop("checked",clickFlag);
});
//返回结果为一个数组,数组中包含选中的渠道类型
......@@ -342,7 +342,7 @@ function statsDatasourceChange(){
}
}else{
$("#allChannelStatsLable").css("display","block");
$("#allChannelStats").attr("checked",true);
$("#allChannelStats").prop("checked",true);
$("#ChannelSelectAreaStats").empty();
for(var t=0;t<data.length;t++){
......@@ -352,12 +352,12 @@ function statsDatasourceChange(){
statsChannelChange();
}
$(".channelStats").click(function(){
$(".channelStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".channelStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allChannelStats").attr("checked",clickFlag);
$("#allChannelStats").prop("checked",clickFlag);
statsChannelChange();
});
}
......@@ -389,19 +389,19 @@ function statsChannelChange(){
if(data == null || data == ""){
$("#businessSelectAreaStats").empty();
}else{
$("#allBusinessStats").attr("checked",true);
$("#allBusinessStats").prop("checked",true);
$("#businessSelectAreaStats").show();
$("#businessSelectAreaStats").empty();
for(var t=0;t<data.length;t=t+2){
$("#businessSelectAreaStats").append('<div class="checkbox-inline"><label><input type="checkbox" name="businessStats" class="businessStats" title="'+data[t+1]+'" value="'+data[t]+'" checked>'+data[t+1]+'</label></div>');
}
}
$(".businessStats").click(function(){
$(".businessStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".businessStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allBusinessStats").attr("checked",clickFlag);
$("#allBusinessStats").prop("checked",clickFlag);
});
}
});
......
......@@ -11,20 +11,20 @@
</div>
<script type="text/javascript">
//全选和不全选
$("#allImportanceLevel").click(function(){
if($("#allImportanceLevel").attr("checked") == "checked"){//全选
$(".importanceLevel").attr("checked","checked");
$("#allImportanceLevel").on('click',function(){
if($("#allImportanceLevel").prop("checked") == true){//全选
$(".importanceLevel").prop("checked",true);
}else{//不全选
$(".importanceLevel").attr("checked",false);
$(".importanceLevel").prop("checked",false);
}
});
//选中勾选了的告警级别
$(".importanceLevel").click(function(){
$(".importanceLevel").on('click',function(){
var clickFlag=true;//是否全部选中
$(".importanceLevel").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allImportanceLevel").attr("checked",clickFlag);
$("#allImportanceLevel").prop("checked",clickFlag);
});
//返回结果为一个数组,数组中包含选中的省份,以逗号隔开的ID
......
......@@ -33,22 +33,22 @@
<%--------------------------------------------------数据来源JS代码块 --------------------------------------------------%>
<script type="text/javascript">
$("#allDataSourceStats").click(function(){
if($("#allDataSourceStats").attr("checked") == "checked"){//全选
$(".datasourceStats").attr("checked","checked");
$("#allDataSourceStats").on('click',function(){
if($("#allDataSourceStats").prop("checked") == true){//全选
$(".datasourceStats").prop("checked",true);
statsDatasourceChange();
}else{//不全选
$(".datasourceStats").attr("checked",false);
$(".datasourceStats").prop("checked",false);
statsDatasourceChange();
}
});
$(".datasourceStats").click(function(){
$(".datasourceStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".datasourceStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allDataSourceStats").attr("checked",clickFlag);
$("#allDataSourceStats").prop("checked",clickFlag);
statsDatasourceChange();
//alert(getStatsDataSourceCheckedValuesString());
});
......@@ -69,7 +69,7 @@ function getStatsDataSourceCheckedValuesString(){
//var statsDataSourceStr="";
var dataSourceArray=getStatsDataSourceCheckedValues();
//dataSourceArray.join(",");
//if($("#allDataSourceStats").attr("checked")=="checked"){dataSourceArray.push("-1");}
//if($("#allDataSourceStats").prop("checked")=="checked"){dataSourceArray.push("-1");}
/* for(var i=0;i<dataSourceArray.length;i++){
if(i==dataSourceArray.length-1){
statsDataSourceStr+=dataSourceArray[i];
......@@ -139,8 +139,8 @@ function getStatsDataSourceCheckedTitles(){
//数据来源,渠道二级联动重置
function statsDataSourceReset(){
$("#allDataSourceStats").attr("checked","ckecked");
$(".datasourceStats").attr("checked","checked");
$("#allDataSourceStats").prop("checked",true);
$(".datasourceStats").prop("checked",true);
statsDatasourceChange();
}
</script>
......@@ -148,18 +148,18 @@ function statsDataSourceReset(){
<%--------------------------------------------------渠道JS代码块 --------------------------------------------------%>
<script type="text/javascript">
$("#allChannelStats").click(function(){
if($("#allChannelStats").attr("checked") == "checked"){//全选
$(".channelStats").attr("checked","checked");
$("#allChannelStats").on('click',function(){
if($("#allChannelStats").prop("checked") == true){//全选
$(".channelStats").prop("checked",true);
}else{//不全选
$(".channelStats").attr("checked",false);
$(".channelStats").prop("checked",false);
}
});
$(".channelStats").click(function(){
$(".channelStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".channelStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allChannelStats").attr("checked",clickFlag);
//alert("hello");
......@@ -264,7 +264,7 @@ function statsDatasourceChange(){
$("#ChannelSelectAreaStats").empty();
}
else{
$("#allChannelStats").attr("checked",true);
$("#allChannelStats").prop("checked",true);
$("#ChannelSelectAreaStats").empty();
for(var t=0;t<data.length;t++){
......@@ -272,12 +272,12 @@ function statsDatasourceChange(){
}
}
$(".channelStats").click(function(){
$(".channelStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".channelStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allChannelStats").attr("checked",clickFlag);
$("#allChannelStats").prop("checked",clickFlag);
});
}
......
......@@ -11,21 +11,21 @@
</div>
<script type="text/javascript">
//全选和不全选所有的省
$("#allProvince").click(function(){
if($("#allProvince").attr("checked") == "checked"){//全选
$(".province").attr("checked","checked");
$("#allProvince").on('click',function(){
if($("#allProvince").prop("checked") == true){//全选
$(".province").prop("checked",true);
}else{//不全选
$(".province").attr("checked",false);
$(".province").prop("checked",false);
}
});
//选中勾选了的省
$(".province").click(function(){
$(".province").on('click',function(){
var clickFlag=true;//是否全部选中
$(".province").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allProvince").attr("checked",clickFlag);
$("#allProvince").prop("checked",clickFlag);
});
......
......@@ -33,28 +33,28 @@ $(document).ready(function (){
}
importanceLevelCheckedValues=$(".importanceLevel:checked");
//全选和不全选
$("#allImportanceLevel").click(function(){
if($("#allImportanceLevel").attr("checked") == "checked"){//全选
$(".importanceLevel").attr("checked","checked");
//$(".importanceLevel").attr("disabled",true);
$("#allImportanceLevel").on('click',function(){
if($("#allImportanceLevel").prop("checked") == true){//全选
$(".importanceLevel").prop("checked",true);
//$(".importanceLevel").prop("disabled",true);
importanceLevelCheckedValues=$(".importanceLevel");
}else{//不全选
$(".importanceLevel").attr("checked",false);
$(".importanceLevel").attr("disabled",false);
$(".importanceLevel").prop("checked",false);
$(".importanceLevel").prop("disabled",false);
importanceLevelCheckedValues=$(".importanceLevel:checked");
}
});
//选中勾选了的告警级别
$(".importanceLevel").click(function(){
$("#allImportanceLevel").attr("checked",false);
$(".importanceLevel").on('click',function(){
$("#allImportanceLevel").prop("checked",false);
importanceLevelCheckedValues=$(".importanceLevel:checked");
var clickFlag=true;//是否全部选中
$(".importanceLevel").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allImportanceLevel").attr("checked",clickFlag);
$("#allImportanceLevel").prop("checked",clickFlag);
});
......@@ -108,8 +108,8 @@ function getImportanceLevelCheckedTitles(){
return str;
}
function importantlevelReset(){
$("#allImportanceLevel").attr("checked","checked");
$(".importanceLevel").attr("checked","checked");
$("#allImportanceLevel").prop("checked",true);
$(".importanceLevel").prop("checked",true);
importanceLevelCheckedValues=$(".importanceLevel:checked");
}
......
......@@ -34,25 +34,25 @@ $(document).ready(function (){
}
provinceCheckedValues=$(".province:checked");
//全选和不全选所有的省
$("#allProvince").click(function(){
if($("#allProvince").attr("checked") == "checked"){//全选
$(".province").attr("checked","checked");
$("#allProvince").on('click',function(){
if($("#allProvince").prop("checked") == true){//全选
$(".province").prop("checked",true);
// $(".province").attr("disabled",true);
provinceCheckedValues=$(".province");
}else{//不全选
$(".province").attr("checked",false);
$(".province").attr("disabled",false);
$(".province").prop("checked",false);
$(".province").prop("disabled",false);
provinceCheckedValues=$(".province:checked");
}
});
//选中勾选了的省
$(".province").click(function(){
$(".province").on('click',function(){
var clickFlag=true;//是否全部选中
$(".province").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allProvince").attr("checked",clickFlag);
$("#allProvince").prop("checked",clickFlag);
provinceCheckedValues=$(".province:checked");
//alert(getProvinceCheckedValuesString());
});
......@@ -119,9 +119,9 @@ function getProvinceCheckedTitles(){
//重置
function ProvinceReset(){
$("#allProvince").attr("checked","checked")
$(".province").attr("checked","checked");
// $(".province").attr("disabled",true);
$("#allProvince").prop("checked",true)
$(".province").prop("checked",true);
// $(".province").prop("disabled",true);
provinceCheckedValues=$(".province");
}
......
......@@ -49,22 +49,22 @@
<%--------------------------------------------------数据来源JS代码块 --------------------------------------------------%>
<script type="text/javascript">
$("#allDataSourceStats").click(function(){
if($("#allDataSourceStats").attr("checked") == "checked"){//全选
$(".datasourceStats").attr("checked","checked");
$("#allDataSourceStats").on('click',function(){
if($("#allDataSourceStats").prop("checked") == true){//全选
$(".datasourceStats").prop("checked",true);
statsDatasourceChange();
}else{//不全选
$(".datasourceStats").attr("checked",false);
$(".datasourceStats").prop("checked",false);
statsDatasourceChange();
}
});
$(".datasourceStats").click(function(){
$(".datasourceStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".datasourceStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allDataSourceStats").attr("checked",clickFlag);
$("#allDataSourceStats").prop("checked",clickFlag);
statsDatasourceChange();
});
......@@ -140,29 +140,29 @@
//数据来源,渠道,业务三级联动重置
function statsDataSourceReset(){
$("#allDataSourceStats").attr("checked","ckecked");
$(".datasourceStats").attr("checked","checked");
$("#allDataSourceStats").prop("checked",true);
$(".datasourceStats").prop("checked",true);
statsDatasourceChange();
}
</script>
<%--------------------------------------------------渠道JS代码块 --------------------------------------------------%>
<script type="text/javascript">
$("#allChannelStats").click(function(){
if($("#allChannelStats").attr("checked") == "checked"){//全选
$(".channelStats").attr("checked","checked");
$("#allChannelStats").on('click',function(){
if($("#allChannelStats").prop("checked") == true){//全选
$(".channelStats").prop("checked","checked");
statsChannelChange();
}else{//不全选
$(".channelStats").attr("checked",false);
$(".channelStats").prop("checked",false);
statsChannelChange();
}
});
$(".channelStats").click(function(){
$(".channelStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".channelStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allChannelStats").attr("checked",clickFlag);
$("#allChannelStats").prop("checked",clickFlag);
statsChannelChange();
});
......@@ -239,21 +239,21 @@
<%--------------------------------------------------业务JS代码块 --------------------------------------------------%>
<script type="text/javascript">
console.log('${businessList}')
$("#allBusinessStats").click(function(){
if($("#allBusinessStats").attr("checked") == "checked"){//全选
$(".businessStats").attr("checked","checked");
$("#allBusinessStats").on('click',function(){
if($("#allBusinessStats").prop("checked") == true){//全选
$(".businessStats").prop("checked",true);
}else{//不全选
$(".businessStats").attr("checked",false);
$(".businessStats").attr("disabled",false);
$(".businessStats").prop("checked",false);
$(".businessStats").prop("disabled",false);
}
});
$(".businessStats").click(function(){
$(".businessStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".businessStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allBusinessStats").attr("checked",clickFlag);
$("#allBusinessStats").prop("checked",clickFlag);
});
//返回结果为一个数组,数组中包含选中的渠道类型
......@@ -330,7 +330,7 @@
$("#ChannelSelectAreaStats").empty();
}
else{
$("#allChannelStats").attr("checked",true);
$("#allChannelStats").prop("checked",true);
$("#ChannelSelectAreaStats").empty();
for(var t=0;t<data.length;t++){
......@@ -338,12 +338,12 @@
}
statsChannelChange();
}
$(".channelStats").click(function(){
$(".channelStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".channelStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allChannelStats").attr("checked",clickFlag);
$("#allChannelStats").prop("checked",clickFlag);
statsChannelChange();
});
}
......@@ -376,19 +376,19 @@
if(data == null || data == ""){
$("#businessSelectAreaStats").empty();
}else{
$("#allBusinessStats").attr("checked",true);
$("#allBusinessStats").prop("checked",true);
$("#businessSelectAreaStats").show();
$("#businessSelectAreaStats").empty();
for(var t=0;t<data.length;t=t+2){
$("#businessSelectAreaStats").append('<div class="checkbox-inline"><label><input type="checkbox" name="businessStats" class="businessStats" title="'+data[t+1]+'" value="'+data[t]+'" checked>'+data[t+1]+'</label></div>');
}
}
$(".businessStats").click(function(){
$(".businessStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".businessStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allBusinessStats").attr("checked",clickFlag);
$("#allBusinessStats").prop("checked",clickFlag);
});
}
});
......
......@@ -143,7 +143,7 @@ function provider(){
$("#provider_div").append("");
$("#provider_div").append('<label for="">集成商</label><br>');
$("#provider_div").append('<c:forEach var="provider" items="${providerList}"><div class="checkbox-inline"><input type="Radio" id="p${provider.providerId}" name="provider" class="provider" title="${provider.providerName}" value="${provider.providerId}" checked>${provider.providerName}</div></c:forEach>');
$("#p1").attr("checked","checked");
$("#p1").prop("checked",true);
}else{
document.getElementById("provider_div").style.display="block";
$("#provider_div").empty();
......@@ -154,21 +154,21 @@ function provider(){
}
providerCheckedValues=$(".provider:checked");
//全选和不全选
$("#allProvider").click(function(){
if($("#allProvider").attr("checked") == "checked"){//全选
$(".provider").attr("checked","checked");
//$(".provider").attr("disabled",true);
$("#allProvider").on('click',function(){
if($("#allProvider").prop("checked") == true){//全选
$(".provider").prop("checked",true);
//$(".provider").prop("disabled",true);
providerCheckedValues=$(".provider");
}else{//不全选
$(".provider").attr("checked",false);
$(".provider").attr("disabled",false);
$(".provider").prop("checked",false);
$(".provider").prop("disabled",false);
providerCheckedValues=$(".provider:checked");
}
});
//选中勾选了的厂商
$(".provider").click(function(){
$("#allProvider").attr("checked",false);
$(".provider").on('click',function(){
$("#allProvider").prop("checked",false);
providerCheckedValues=$(".provider:checked");
});
......@@ -217,8 +217,8 @@ function getProviderCheckedTitles(){
}
function providerReset(){
$("#allProvider").attr("checked","checked");
$(".provider").attr("checked","checked");
$("#allProvider").prop("checked",true);
$(".provider").prop("checked",true);
providerCheckedValues=$(".provider");
}
......@@ -261,7 +261,7 @@ function province(){
for(var t=0;t<data.length;t=t+2){
$("#province_div").append('<div class="checkbox-inline"><input type="radio" id="pro'+data[t]+'" name="province" class="province" title="'+data[t+1]+'" value="'+data[t]+'" >'+data[t+1]+'</div>');
}
$("#pro26").attr("checked","checked");
$("#pro26").attr("checked",true);
}
else {
document.getElementById("province_div").style.display="block";
......@@ -277,17 +277,17 @@ function province(){
City();
//全选和不全选所有的省
$("#allProvince").click(function(){
if($("#allProvince").attr("checked") == "checked"){//全选
$(".province").attr("checked","checked");
$("#allProvince").on('click',function(){
if($("#allProvince").prop("checked") == true){//全选
$(".province").prop("checked",true);
provinceCheckedValues=$(".province");
City();
provinceCheckedTotal=31;
}else{//不全选
provinceCheckedTotal=0;
$(".province").attr("checked",false);
$(".province").attr("disabled",false);
$(".province").prop("checked",false);
$(".province").prop("disabled",false);
provinceCheckedValues=$(".province:checked");
City();
......@@ -295,7 +295,7 @@ function province(){
});
//选中勾选了的省
$(".province").click(function(){
$(".province").on('click',function(){
provinceCheckedValues=$(".province:checked");
City();
......@@ -414,18 +414,18 @@ var pro = getProvinceCheckedValuesId();
cityCheckedValues=$(".city:checked");
//全选和不全选所有的市
$("#allCity").click(function(){
if($("#allCity").attr("checked") == "checked"){//全选
$(".city").attr("checked","checked");
$("#allCity").on('click',function(){
if($("#allCity").prop("checked") == true){//全选
$(".city").prop("checked",true);
cityCheckedValues=$(".city");
}else{//不全选
$(".city").attr("checked",false);
$(".city").attr("disabled",false);
$(".city").prop("checked",false);
$(".city").prop("disabled",false);
cityCheckedValues=$(".city:checked");
}
});
//选中勾选了的市
$(".city").click(function(){
$(".city").on('click',function(){
cityCheckedValues=$(".city:checked");
});
}
......@@ -494,8 +494,8 @@ function getCityCheckedValuesTitleString(){
function provinceCityTagReset(){
$("#allProvince").attr("checked","checked");
$(".province").attr("checked","checked");
$("#allProvince").prop("checked",true);
$(".province").prop("checked",true);
provinceCheckedValues=$(".province");
$("#city_div").empty();
}
......@@ -538,7 +538,7 @@ function datasource() {
$("#DataSourceSelectArea").append('<div class="checkbox-inline"><input type="Radio" id="dat'+data[t]+'" name="datasource" class="datasource" title="'+data[t+1]+'" value="'+data[t]+'" >'+data[t+1]+'</div>');
}
$("#dat1").attr("checked","checked");
$("#dat1").prop("checked",true);
}
else{
var t=0;
......@@ -571,22 +571,22 @@ function datasource() {
$("#granularityDiv").hide();
}
channel();
$("#allDataSource").click(function(){
if($("#allDataSource").attr("checked") == "checked"){//全选
$(".datasource").attr("checked","checked");
// $(".datasource").attr("disabled",true);
$("#allDataSource").on('click',function(){
if($("#allDataSource").prop("checked") == true){//全选
$(".datasource").prop("checked",true);
// $(".datasource").prop("disabled",true);
DataSourceCheckedValues=$(".datasource");
channel();
}else{//不全选
$(".datasource").attr("checked",false);
$(".datasource").attr("disabled",false);
$(".datasource").prop("checked",false);
$(".datasource").prop("disabled",false);
DataSourceCheckedValues=$(".datasource:checked");
channel();
}
});
$(".datasource").click(function(){
$("#allDataSource").attr("checked",false);
$(".datasource").on('click',function(){
$("#allDataSource").prop("checked",false);
DataSourceCheckedValues=$(".datasource:checked");
if("3"==DataSourceCheckedValues.val()){
......@@ -676,9 +676,9 @@ function getDataSourceCheckedTitles(){
//数据来源,渠道,业务三级联动重置
function DataSourceReset(){
$("#allDataSource").attr("checked","ckecked");
$(".datasource").attr("checked","checked");
// $(".datasource").attr("disabled",true);
$("#allDataSource").prop("checked",true);
$(".datasource").prop("checked",true);
// $(".datasource").prop("disabled",true);
DataSourceCheckedValues=$(".datasource:checked");
DatasourceChange();
//datasourceChange();
......@@ -761,7 +761,7 @@ if(datasource.length <1){
for(var t=0;t<data.length;t=t+2){
$("#ChannelSelectArea").append('<div class="checkbox-inline"><input type="Radio" id="cha'+data[t]+'" name="channel" class="channel" title="'+data[t+1]+'" value="'+data[t]+'" >'+data[t+1]+'</div>');
}
$("#cha4").attr("checked","checked");
$("#cha4").prop("checked",true);
}else{
var t=0;
$("#ChannelSelectArea").append('<div class="checkbox-inline"><input type="Radio" name="channel" class="channel" title="'+data[t+1]+'" value="'+data[t]+'" checked>'+data[t+1]+'</div>');
......@@ -793,24 +793,24 @@ if(datasource.length <1){
}
ChannelCheckedValues=$(".channel:checked");
business();
$("#allChannel").click(function(){
if($("#allChannel").attr("checked") == "checked"){//全选
$(".channel").attr("checked","checked");
// $(".channel").attr("disabled",true);
$("#allChannel").on('click',function(){
if($("#allChannel").prop("checked") == true){//全选
$(".channel").prop("checked",true);
// $(".channel").prop("disabled",true);
ChannelCheckedValues=$(".channel");
business();
// alert(getChannelCheckedValuesString());
}else{//不全选
$(".channel").attr("checked",false);
$(".channel").attr("disabled",false);
$(".channel").prop("checked",false);
$(".channel").prop("disabled",false);
ChannelCheckedValues=$(".channel:checked");
business();
//alert(getChannelCheckedValuesString());
}
});
$(".channel").click(function(){
$("#allChannel").attr("checked",false);
$(".channel").on('click',function(){
$("#allChannel").prop("checked",false);
ChannelCheckedValues=$(".channel:checked");
business();
//alert(getChannelCheckedValuesString());
......@@ -973,15 +973,15 @@ function business(){
kpi();
kpiType();
$("#allBusiness").click(function(){
if($("#allBusiness").attr("checked") == "checked"){//全选
$(".business").attr("checked","checked");
$("#allBusiness").on('click',function(){
if($("#allBusiness").prop("checked") == true){//全选
$(".business").prop("checked",true);
keyLink();
kpi();
kpiType();
}else{//不全选
$(".business").attr("checked",false);
$(".business").attr("disabled",false);
$(".business").prop("checked",false);
$(".business").prop("disabled",false);
keyLink();
kpi();
kpiType();
......@@ -989,8 +989,8 @@ function business(){
});
$(".business").click(function(){
$("#allBusiness").attr("checked",false);
$(".business").on('click',function(){
$("#allBusiness").prop("checked",false);
keyLink();
kpi();
kpiType();
......@@ -1064,22 +1064,22 @@ function business(){
kpi();
// kpiType();
$("#allBusiness").click(function(){
if($("#allBusiness").attr("checked") == "checked"){//全选
$(".business").attr("checked","checked");
$("#allBusiness").on('click',function(){
if($("#allBusiness").prop("checked") == true){//全选
$(".business").prop("checked",true);
keyLink();
kpi();
// kpiType();
}else{//不全选
$(".business").attr("checked",false);
$(".business").attr("disabled",false);
$(".business").prop("checked",false);
$(".business").prop("disabled",false);
keyLink();
kpi();
// kpiType();
}
});
$(".business").click(function(){
$("#allBusiness").attr("checked",false);
$(".business").on('click',function(){
$("#allBusiness").prop("checked",false);
keyLink();
kpi();
// kpiType();
......@@ -1251,20 +1251,20 @@ function keyLink(){
keyLinkCheckedValues=$(".keyLink:checked");
//全选和不全选所有的
$("#allKeyLink").click(function(){
if($("#allKeyLink").attr("checked") == "checked"){//全选
$(".keyLink").attr("checked","checked");
$("#allKeyLink").on('click',function(){
if($("#allKeyLink").prop("checked") == true){//全选
$(".keyLink").prop("checked",true);
keyLinkCheckedValues=$(".keyLink");
}else{//不全选
$(".keyLink").attr("checked",false);
$(".keyLink").attr("disabled",false);
$(".keyLink").prop("checked",false);
$(".keyLink").prop("disabled",false);
keyLinkCheckedValues=$(".keyLink:checked");
}
});
//选中勾选了的
$(".keyLink").click(function(){
$("#allKeyLink").attr("checked",false);
$(".keyLink").on('click',function(){
$("#allKeyLink").prop("checked",false);
keyLinkCheckedValues=$(".keyLink:checked");
});
......@@ -1392,22 +1392,22 @@ var business = getBusinessCheckedValues();
kpiCheckedValues=$(".kpi:checked");
kpiType();
//全选和不全选所有的
$("#allKpi").click(function(){
if($("#allKpi").attr("checked") == "checked"){//全选
$(".kpi").attr("checked","checked");
$("#allKpi").on('click',function(){
if($("#allKpi").prop("checked") == true){//全选
$(".kpi").prop("checked",true);
kpiCheckedValues=$(".kpi");
kpiType();
}else{//不全选
$(".kpi").attr("checked",false);
$(".kpi").attr("disabled",false);
$(".kpi").prop("checked",false);
$(".kpi").prop("disabled",false);
kpiCheckedValues=$(".kpi:checked");
kpiType();
}
});
//选中勾选了的
$(".kpi").click(function(){
$("#allKpi").attr("checked",false);
$(".kpi").on('click',function(){
$("#allKpi").prop("checked",false);
kpiCheckedValues=$(".kpi:checked");
kpiType();
});
......@@ -1469,22 +1469,22 @@ var business = getBusinessCheckedValues();
kpiCheckedValues=$(".kpi:checked");
kpiType();
//全选和不全选所有的
$("#allKpi").click(function(){
if($("#allKpi").attr("checked") == "checked"){//全选
$(".kpi").attr("checked","checked");
$("#allKpi").on('click',function(){
if($("#allKpi").prop("checked") == true){//全选
$(".kpi").prop("checked",true);
kpiCheckedValues=$(".kpi");
kpiType();
}else{//不全选
$(".kpi").attr("checked",false);
$(".kpi").attr("disabled",false);
$(".kpi").prop("checked",false);
$(".kpi").prop("disabled",false);
kpiCheckedValues=$(".kpi:checked");
kpiType();
}
});
//选中勾选了的
$(".kpi").click(function(){
$("#allKpi").attr("checked",false);
$(".kpi").on('click',function(){
$("#allKpi").prop("checked",false);
kpiCheckedValues=$(".kpi:checked");
kpiType();
});
......@@ -1609,20 +1609,20 @@ $.ajax({
// kpiTypeCheckedValues=$(".kpiType:checked");
//全选和不全选所有的
$("#allKpiType").click(function(){
if($("#allKpiType").attr("checked") == "checked"){//全选
$(".kpiType").attr("checked","checked");
$("#allKpiType").on('click',function(){
if($("#allKpiType").prop("checked") == true){//全选
$(".kpiType").prop("checked",true);
// kpiTypeCheckedValues=$(".kpiType");
}else{//不全选
$(".kpiType").attr("checked",false);
$(".kpiType").attr("disabled",false);
$(".kpiType").prop("checked",false);
$(".kpiType").prop("disabled",false);
// kpiTypeCheckedValues=$(".kpiType:checked");
}
});
//选中勾选了的
$(".kpiType").click(function(){
$("#allKpiType").attr("checked",false);
$(".kpiType").on('click',function(){
$("#allKpiType").prop("checked",false);
// kpiTypeCheckedValues=$(".kpiType:checked");
});
......@@ -1719,20 +1719,20 @@ function bacType(){
}
bacTypeCheckedValues=$(".bacType:checked");
//全选和不全选所有的
$("#allBacType").click(function(){
if($("#allBacType").attr("checked") == "checked"){//全选
$(".bacType").attr("checked","checked");
$("#allBacType").on('click',function(){
if($("#allBacType").prop("checked") == true){//全选
$(".bacType").prop("checked",true);
bacTypeCheckedValues=$(".bacType");
}else{//不全选
$(".bacType").attr("checked",false);
$(".bacType").attr("disabled",false);
$(".bacType").prop("checked",false);
$(".bacType").prop("disabled",false);
bacTypeCheckedValues=$(".bacType:checked");
}
});
//选中勾选了的
$(".bacType").click(function(){
// $("#allBacType").attr("checked",false);
$(".bacType").on('click',function(){
// $("#allBacType").prop("checked",false);
bacTypeCheckedValues=$(".bacType:checked");
});
......
......@@ -45,22 +45,22 @@
<script type="text/javascript">
$("#statsDataSourceSelectArea input:eq(0)").click();//选中第一个数据来源
$("#allDataSourceStats").click(function(){
if($("#allDataSourceStats").attr("checked") == "checked"){//全选
$(".datasourceStats").attr("checked","checked");
$("#allDataSourceStats").on('click',function(){
if($("#allDataSourceStats").prop("checked") == true){//全选
$(".datasourceStats").prop("checked",true);
statsDatasourceChange();
}else{//不全选
$(".datasourceStats").attr("checked",false);
$(".datasourceStats").prop("checked",false);
statsDatasourceChange();
}
});
$(".datasourceStats").click(function(){
$(".datasourceStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".datasourceStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allDataSourceStats").attr("checked",clickFlag);
$("#allDataSourceStats").prop("checked",clickFlag);
statsDatasourceChange();
});
......@@ -97,8 +97,8 @@ function getStatsDataSourceCheckedTitles(){
//数据来源,渠道,业务,指标四级联动重置
function statsDataSourceReset(){
$("#allDataSourceStats").attr("checked","ckecked");
$(".datasourceStats").attr("checked","checked");
$("#allDataSourceStats").prop("checked",true);
$(".datasourceStats").prop("checked",true);
statsDatasourceChange();
}
</script>
......@@ -106,22 +106,22 @@ function statsDataSourceReset(){
<%--------------------------------------------------渠道JS代码块 --------------------------------------------------%>
<script type="text/javascript">
$("#allChannelStats").click(function(){
if($("#allChannelStats").attr("checked") == "checked"){//全选
$(".channelStats").attr("checked","checked");
$("#allChannelStats").on('click',function(){
if($("#allChannelStats").prop("checked") == true){//全选
$(".channelStats").prop("checked",true);
statsChannelChange();
}else{//不全选
$(".channelStats").attr("checked",false);
$(".channelStats").prop("checked",false);
statsChannelChange();
}
});
$(".channelStats").click(function(){
$(".channelStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".channelStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allChannelStats").attr("checked",clickFlag);
$("#allChannelStats").prop("checked",clickFlag);
statsChannelChange();
});
......@@ -159,22 +159,22 @@ function getStatsChannelCheckedTitles(){
<%--------------------------------------------------业务JS代码块 --------------------------------------------------%>
<script type="text/javascript">
$("#allBusinessStats").click(function(){
if($("#allBusinessStats").attr("checked") == "checked"){//全选
$(".businessStats").attr("checked","checked");
$("#allBusinessStats").on('click',function(){
if($("#allBusinessStats").prop("checked") == true){//全选
$(".businessStats").prop("checked",true);
kpiChange();
}else{//不全选
$(".businessStats").attr("checked",false);
$(".businessStats").prop("checked",false);
kpiChange();
}
});
$(".businessStats").click(function(){
$(".businessStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".businessStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allBusinessStats").attr("checked",clickFlag);
$("#allBusinessStats").prop("checked",clickFlag);
});
//返回结果为一个数组,数组中包含选中的渠道类型
......@@ -208,20 +208,20 @@ function getStatsBusinessCheckedTitlesString(){
</script>
<%--------------------------------------------------指标JS代码块 --------------------------------------------------%>
<script type="text/javascript">
$("#allkpi").click(function(){
if($("#allkpi").attr("checked") == "checked"){//全选
$(".kpi").attr("checked","checked");
$("#allkpi").on('click',function(){
if($("#allkpi").prop("checked") == true){//全选
$(".kpi").prop("checked",true);
}else{//不全选
$(".kpi").attr("checked",false);
$(".kpi").prop("checked",false);
}
});
$(".kpi").click(function(){
$(".kpi").on('click',function(){
var clickFlag=true;//是否全部选中
$(".kpi").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allkpi").attr("checked",clickFlag);
$("#allkpi").prop("checked",clickFlag);
});
//返回结果为一个数组,数组中包含选中的渠道类型
......@@ -281,7 +281,7 @@ function statsDatasourceChange(){
$("#ChannelSelectAreaStats").empty();
}
else{
$("#allChannelStats").attr("checked",true);
$("#allChannelStats").prop("checked",true);
$("#ChannelSelectAreaStats").empty();
if(dataSourceIds==5){
......@@ -296,12 +296,12 @@ function statsDatasourceChange(){
}
statsChannelChange();
}
$(".channelStats").click(function(){
$(".channelStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".channelStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allChannelStats").attr("checked",clickFlag);
$("#allChannelStats").prop("checked",clickFlag);
statsChannelChange();
});
}
......@@ -337,7 +337,7 @@ function statsChannelChange(){
$("#businessSelectAreaStats").empty();
$("#kpiSelectAreaStats").empty();
}else{
$("#allBusinessStats").attr("checked",true);
$("#allBusinessStats").prop("checked",true);
$("#businessSelectAreaStats").empty();
$("#businessSelectAreaStats").show();
for(var t=0;t<data.length;t=t+2){
......@@ -345,12 +345,12 @@ function statsChannelChange(){
}
kpiChange();
}
$(".businessStats").click(function(){
$(".businessStats").on('click',function(){
var clickFlag=true;//是否全部选中
$(".businessStats").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allBusinessStats").attr("checked",clickFlag);
$("#allBusinessStats").prop("checked",clickFlag);
kpiChange();
});
}
......@@ -381,19 +381,19 @@ function kpiChange(){
if(data == null || data == ""){
$("#kpiSelectAreaStats").empty();
}else{
$("#allkpi").attr("checked",true);
$("#allkpi").prop("checked",true);
$("#kpiSelectAreaStats").empty();
$("#kpiSelectAreaStats").show();
for(var t=0;t<data.length;t++){
$("#kpiSelectAreaStats").append('<div class="checkbox-inline"><label><input type="checkbox" name="kpi" class="kpi" title="'+data[t][1]+'" value="'+data[t][0]+'" checked>'+data[t][1]+'</label></div>');
}
}
$(".kpi").click(function(){
$(".kpi").on('click',function(){
var clickFlag=true;//是否全部选中
$(".kpi").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allkpi").attr("checked",clickFlag);
$("#allkpi").prop("checked",clickFlag);
});
}
});
......
......@@ -118,22 +118,22 @@ function provider() {
}
province();
//全选和不全选
$("#allProvider").click(function(){
if($("#allProvider").attr("checked") == "checked"){//全选
$(".provider").attr("checked","checked");
$("#allProvider").on('click',function(){
if($("#allProvider").prop("checked") == true){//全选
$(".provider").prop("checked",true);
province();
}else{//不全选
$(".provider").attr("checked",false);
$(".provider").prop("checked",false);
province();
}
});
//选中勾选了的厂商
$(".provider").click(function(){
$(".provider").on('click',function(){
var clickFlag=true;//是否全部选中
$(".provider").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allProvider").attr("checked",clickFlag);
$("#allProvider").prop("checked",clickFlag);
province();
});
}
......@@ -223,20 +223,20 @@ function province() {
}
}
//全选和不全选所有的省
$("#allProvince").click(function(){
if($("#allProvince").attr("checked") == "checked"){//全选
$(".province").attr("checked","checked");
$("#allProvince").on('click',function(){
if($("#allProvince").prop("checked") == true){//全选
$(".province").prop("checked",true);
}else{//不全选
$(".province").attr("checked",false);
$(".province").prop("checked",false);
}
});
//选中勾选了的省
$(".province").click(function(){
$(".province").on('click',function(){
var clickFlag=true;//是否全部选中
$(".province").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allProvince").attr("checked",clickFlag);
$("#allProvince").prop("checked",clickFlag);
});
}
});
......@@ -283,20 +283,20 @@ function province() {
}
}
//全选和不全选所有的省
$("#allProvince").click(function(){
if($("#allProvince").attr("checked") == "checked"){//全选
$(".province").attr("checked","checked");
$("#allProvince").on('click',function(){
if($("#allProvince").prop("checked") == true){//全选
$(".province").prop("checked",true);
}else{//不全选
$(".province").attr("checked",false);
$(".province").prop("checked",false);
}
});
//选中勾选了的省
$(".province").click(function(){
$(".province").on('click',function(){
var clickFlag=true;//是否全部选中
$(".province").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allProvince").attr("checked",clickFlag);
$("#allProvince").prop("checked",clickFlag);
});
}
});
......@@ -392,24 +392,24 @@ function datasource() {
}
channel();
time();
$("#allDataSource").click(function(){
if($("#allDataSource").attr("checked") == "checked"){//全选
$(".datasource").attr("checked","checked");
$("#allDataSource").on('click',function(){
if($("#allDataSource").prop("checked") == true){//全选
$(".datasource").prop("checked",true);
channel();
time();
}else{//不全选
$(".datasource").attr("checked",false);
$(".datasource").prop("checked",false);
channel();
time();
}
});
$(".datasource").click(function(){
$(".datasource").on('click',function(){
var clickFlag=true;//是否全部选中
$(".datasource").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allDataSource").attr("checked",clickFlag);
$("#allDataSource").prop("checked",clickFlag);
channel();
time();
});
......@@ -503,23 +503,23 @@ function channel() {
}
}
business();
$("#allChannel").click(function(){
if($("#allChannel").attr("checked") == "checked"){//全选
$(".channel").attr("checked","checked");
$("#allChannel").on('click',function(){
if($("#allChannel").prop("checked") == true){//全选
$(".channel").prop("checked",true);
business();
}else{//不全选
$(".channel").attr("checked",false);
$(".channel").attr("disabled",false);
$(".channel").prop("checked",false);
$(".channel").prop("disabled",false);
business();
}
});
$(".channel").click(function(){
$(".channel").on('click',function(){
var clickFlag=true;//是否全部选中
$(".channel").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allChannel").attr("checked",clickFlag);
$("#allChannel").prop("checked",clickFlag);
business();
});
}
......@@ -614,22 +614,22 @@ function business() {
}
}
keyLink();
$("#allBusiness").click(function(){
if($("#allBusiness").attr("checked") == "checked"){//全选
$(".business").attr("checked","checked");
$("#allBusiness").on('click',function(){
if($("#allBusiness").prop("checked") == true){//全选
$(".business").prop("checked",true);
keyLink();
}else{//不全选
$(".business").attr("checked",false);
$(".business").attr("disabled",false);
$(".business").prop("checked",false);
$(".business").prop("disabled",false);
keyLink();
}
});
$(".business").click(function(){
$(".business").on('click',function(){
var clickFlag=true;//是否全部选中
$(".business").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allBusiness").attr("checked",clickFlag);
$("#allBusiness").prop("checked",clickFlag);
keyLink();
});
}
......@@ -729,20 +729,20 @@ function keyLink() {
$("#keyLink_div").empty();
}
//全选和不全选所有的
$("#allKeyLink").click(function(){
if($("#allKeyLink").attr("checked") == "checked"){//全选
$(".keyLink").attr("checked","checked");
$("#allKeyLink").on('click',function(){
if($("#allKeyLink").prop("checked") == true){//全选
$(".keyLink").prop("checked",true);
}else{//不全选
$(".keyLink").attr("checked",false);
$(".keyLink").prop("checked",false);
}
});
//选中勾选了的
$(".keyLink").click(function(){
$(".keyLink").on('click',function(){
var clickFlag=true;//是否全部选中
$(".keyLink").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allKeyLink").attr("checked",clickFlag);
$("#allKeyLink").prop("checked",clickFlag);
});
}
});
......@@ -860,7 +860,7 @@ function getGranularityToDays(){
<%------------------------------------重置代码 ------------------------------%>
//数据来源,渠道,业务、环节四级联动重置
function AnalysisTypeReset(){
$("#Granularity option:fourth").attr("selected","selected");
$("#Granularity option:fourth").attr("selected","selected");
$("#Time option:first").attr("selected","selected");
$("#AnalysisType option:first").attr("selected","selected");
analysisTypeVal= $("#AnalysisType").find("option:selected").val();
......
......@@ -431,26 +431,26 @@
})
//省份全选
$("#allProvince").click(function(){
if($("#allProvince").attr("checked") == "checked"){//全选
$(".province").attr("checked","checked");
$("#allProvince").on('click',function(){
if($("#allProvince").prop("checked") == true){//全选
$(".province").prop("checked",true);
}else{//不全选
$(".province").attr("checked",false);
$(".province").prop("checked",false);
}
});
$(".province").click(function(){
$(".province").on('click',function(){
var clickFlag=true;//是否全部选中
$(".province").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allProvince").attr("checked",clickFlag);
$("#allProvince").prop("checked",clickFlag);
});
//业务全选
$("#allBusiness").click(function(){
if($("#allBusiness").attr("checked") == "checked"){//全选
$(".businessItem").attr("checked","checked");
$("#allBusiness").on('click',function(){
if($("#allBusiness").prop("checked") == true){//全选
$(".businessItem").prop("checked",true);
}else{//不全选
$(".businessItem").attr("checked",false);
$(".businessItem").prop("checked",false);
}
businessIds="";
$("[name='businessinput']:checked").each(function (){
......@@ -459,27 +459,27 @@
updateKpi(businessIds);
});
$(".businessItem").click(function(){
$(".businessItem").on('click',function(){
var clickFlag=true;//是否全部选中
$(".businessItem").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allBusiness").attr("checked",clickFlag);
$("#allBusiness").prop("checked",clickFlag);
});
//指标全选
$("#allKpi").click(function(){
if($("#allKpi").attr("checked") == "checked"){//全选
$(".kpiItem").attr("checked","checked");
$("#allKpi").on('click',function(){
if($("#allKpi").prop("checked") == true){//全选
$(".kpiItem").prop("checked",true);
}else{//不全选
$(".kpiItem").attr("checked",false);
$(".kpiItem").prop("checked",false);
}
});
$(".kpiItem").click(function(){
$(".kpiItem").on('click',function(){
var cFlag=true;//是否全部选中
$(".kpiItem").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ cFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ cFlag=false; }
});
$("#allKpi").attr("checked",cFlag);
$("#allKpi").prop("checked",cFlag);
});
</script>
......
......@@ -616,19 +616,19 @@ var businessValue = getBusinessCheckedValuesString();
var kpiValue = getKpiCheckedValuesString();
//省份全选
$("#allProvince").click(function(){
if($("#allProvince").attr("checked") == "checked"){//全选
$(".province").attr("checked","checked");
$("#allProvince").on('click', function(){
if($(this).prop('checked')){//全选
$(".province").prop("checked",true);
}else{//不全选
$(".province").attr("checked",false);
$(".province").prop("checked",false);
}
});
//业务全选
$("#allBusiness").click(function(){
if($("#allBusiness").attr("checked") == "checked"){//全选
$(".businessItem").attr("checked","checked");
$("#allBusiness").on('click',function(){
if($("#allBusiness").prop("checked")){//全选
$(".businessItem").prop("checked",true);
}else{//不全选
$(".businessItem").attr("checked",false);
$(".businessItem").prop("checked",false);
}
businessIds="";
$("[name='businessinput']:checked").each(function (){
......@@ -637,27 +637,27 @@ $("#allBusiness").click(function(){
console.log(businessIds);
updateKpi(businessIds,calCycleValue);
});
$(".businessItem").click(function(){
$(".businessItem").on('click',function(){
var clickFlag=true;//是否全部选中
$(".businessItem").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ clickFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ clickFlag=false; }
});
$("#allBusiness").attr("checked",clickFlag);
$("#allBusiness").prop("checked",clickFlag);
});
//指标全选
$("#allKpi").click(function(){
if($("#allKpi").attr("checked") == "checked"){//全选
$(".kpiItem").attr("checked","checked");
$("#allKpi").on('click',function(){
if($("#allKpi").prop("checked") == true){//全选
$(".kpiItem").prop("checked",true);
}else{//不全选
$(".kpiItem").attr("checked",false);
$(".kpiItem").prop("checked",false);
}
});
$(".kpiItem").click(function(){
$(".kpiItem").on('click',function(){
var cFlag=true;//是否全部选中
$(".kpiItem").each(function(){
if($(this).attr("checked") == null||$(this).attr("checked") == false){ cFlag=false; }
if($(this).prop("checked") == null||$(this).prop("checked") == false){ cFlag=false; }
});
$("#allKpi").attr("checked",cFlag);
$("#allKpi").prop("checked",cFlag);
});
</script>
......
......@@ -38,6 +38,11 @@
$("#yz_template").click(function () {
$("#dataFrame").attr('src', '${ctx}/AnalysisSupport/TSWBAnalysisHomeView/yzTemplateFrame');
});
$("#ts_detail").click(function () {
$("#dataFrame").attr('src', '${ctx}/AnalysisSupport/TSWBAnalysisHomeView/TsDetailFrame');
});
$("#${selectTab}").click();
});
</script>
......@@ -65,6 +70,7 @@
<li><a id="yz_focus" data-toggle="tab">业支-焦点投诉</a></li>
<li><a id="yz_liability" data-toggle="tab">业支-责任原因</a></li>
<li><a id="yz_template" data-toggle="tab">业支-下发模板</a></li>
<li><a id="ts_detail" data-toggle="tab">投诉明细</a></li>
</ul>
</div>
<div class="section">
......
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<title>全网监控智能分析平台</title>
<%-- <script src="${ctx}/static/js/keleyi.min.js"></script> --%>
<script src="${ctx}/static/js/modernizr.custom.js"></script>
<script src="${ctx}/static/js/classie.js"></script>
<script src="${ctx}/static/js/slideCommon.js"></script>
<%-- <script src="${ctx}/static/js/mlpushmenu.js"></script> --%>
<script language="javascript">
function exportAppData() {
var listForm=$("#queryForm");
listForm.attr("method","post");
listForm.attr("action",'${ctx}/AnalysisSupport/TSWBAnalysisHomeView/exportDataFrame?dataType=tsDetail'+"&period="+getPeriodStr());
listForm.submit();
listForm.attr("action","#");
}
function searchAppData() {
$('#PeriodTag').text("时间范围").attr('data-original-title',getPeriodStr()).tooltip();
queryResult(1);
}
function queryResult(page) {
$.ajax({
type : 'post',
'url' : '${ctx}/AnalysisSupport/TSWBAnalysisHomeView/queryTsDetailFrame',
data : $('#queryForm').serialize() + "&page=" + page + "&period="+getPeriodStr(),
success : function(data) {
$('#resultList').html(data);
disable();
}
});
}
$(document).ready(function(){
initDate();
searchAppData()
// queryResult(1);
});
function resultReset(){
initDate();
}
</script>
</head>
<body>
<form action="#" method="get" id="listForm"></form>
<div id="main-tab-container">
<div id="content">
<div class="section" height="100%" style="overflow: visible">
<div class="tab-content">
<div class="row me-row">
<div id="slidePushMenus" class="cbp-spmenu-push">
<div class="slideMenu" id="cbp-spmenu-s1">
<div class="form">
<form id="queryForm" role="form" action="${ctx}/AnalysisSupport/TSWBAnalysisHomeView/queryTsDetailFrame"
method="post">
<div class="slide-menu-option">
<tags:PeriodTag />
</div>
<div class="slide-menu-option">
<button type="input" class="btn btn-primary" onclick="searchAppData();return false;">提交</button>
<button type="reset" class="btn btn-warning" onclick="resultReset()">重置</button>
</div>
</form>
</div>
</div>
<div class="main col-xs-12">
<div id="mainm" class="mainm" onclick="disable()"></div>
<div class="content clearfix">
<div class="block clearfix">
<!-- <a href="#" id="trigger" class="menu-trigger"> <span class="glyphicon glyphicon-list"></span>
</a> -->
<div ><!-- class="slide-menu-tags" -->
<button id="showLeftPush" class="menu-trigger btn btn-default">
<span class="glyphicon glyphicon-list"></span>
</button>
<span id="PeriodTag" class="label label-info" data-placement="bottom" >最近一个月</span>
</div>
</div>
<!-- Top Navigation -->
<div style="OVERFLOW-Y: auto; OVERFLOW-X:auto;height:500px;width:99%">
<!-- <div class="row"> -->
<div class="col-xs-12" id="resultList">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags"%>
<div class="table-header">投诉明细数据
<div id="time_div" style="top: -6px;float: right;height: 0px;position: relative;">
<button class="btn-sm btn btn-warning btn-sm btn-group btn-group-cog" onclick="exportAppData();">导出</button>
</div>
</div>
<table class="table table-hover table-striped">
<thead>
<tr>
<th width="5%">省份</th>
<th width="8.8%">受理号码</th>
<th width="8.8%">星级</th>
<th width="8.8%">受理渠道</th>
<th width="8.8%">受理时间</th>
<th width="8.8%">服务请求分类</th>
<th width="8.8%">满意度</th>
<th width="8.8%">投诉工单描述</th>
<th width="8.8%">责任原因</th>
<th width="8.8%">归档时间</th>
<th width="20%">工单环节处理意见</th>
</tr>
</thead>
<tbody>
<c:forEach items="${DataList.content}" var="appData">
<tr>
<td> ${appData.provName}</td>
<td>${appData.mobile} </td>
<td>${appData.gradle}</td>
<td>${appData.channel}</td>
<td><fmt:formatDate value="${appData.processingTime}" type="both" pattern="yyyy-MM-dd HH:mm:ss" /></td>
<%--<td>${appData.processingTime}</td>--%>
<td>${appData.serviceRequest}</td>
<td>${appData.satisfaction}</td>
<td>${appData.descr}</td>
<td>${appData.reson}</td>
<td><fmt:formatDate value="${appData.filingTime}" type="both" pattern="yyyy-MM-dd HH:mm:ss" /></td>
<%--<td>${appData.filingTime}</td>--%>
<td>${appData.suggestion}</td>
</tr>
</c:forEach>
</tbody>
</table>
<tags:paging page="${DataList}" paginationSize="${pageSize}" />
......@@ -183,7 +183,7 @@ AnalysisTypeReset();
<ul class="nav nav-tabs">
<li><a href="${ctx}/MonitorOperation/RegularityAnalysis">数据特征探查</a></li>
<li class="active"><a id="a_keyLink1" href="#keyLink1" >业务环节分析</a></li>
<li><a href="${ctx}/MonitorOperation/FlowMonitor">实体厅流量监测分析</a></li>
<%--<li><a href="${ctx}/MonitorOperation/FlowMonitor">实体厅流量监测分析</a></li>--%>
</ul>
</div>
<div class="section">
......
......@@ -56,7 +56,7 @@
<%-- <li><a href="${ctx}/MonitorOperation/FailureForcast">故障预测</a>
</li> --%>
<li><a href="${ctx}/MonitorOperation/KeyLinkProcessAnalysis">业务环节分析</a></li>
<li><a href="${ctx}/MonitorOperation/FlowMonitor">实体厅流量监测分析</a></li>
<%--<li><a href="${ctx}/MonitorOperation/FlowMonitor">实体厅流量监测分析</a></li>--%>
</ul>
</div>
<div class="section">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment