viewport:{

<%@page language=“java” contentType=“text/html; charset=UTF-8”
pageEncoding=“UTF-8”%>
<%@ include file="/webView/include/taglib.jsp"%>
<%@ taglib prefix=“c” uri=“http://java.sun.com/jsp/jstl/core”%>
<%@ taglib prefix=“form” uri=“http://www.springframework.org/tags/form”%>
<%@ taglib prefix=“fmt” uri=“http://java.sun.com/jsp/jstl/fmt”%>
<%@ taglib prefix=“fn” uri=“http://java.sun.com/jsp/jstl/functions”%>
<c:set var=“ctx” value=" p a g e C o n t e x t . r e q u e s t . c o n t e x t P a t h " / > < c : s e t v a r = " c t x S t a t i c " v a l u e = " {pageContext.request.contextPath}" /> <c:set var="ctxStatic" value=" pageContext.request.contextPath"/><c:setvar="ctxStatic"value="{pageContext.request.contextPath}/static" />

局属采购页面 <%@include file="/static/include/public-list-css.inc"%>
序号年份区域学校校服企业夏装价格春秋装价格制服装价格冬装价格其他价格订货系列总套数总金额招标形式采购形式招标期限(年)学校联系人姓名及电话企业联系人姓名及电话操作
<%@include file="/static/include/public-list-js.inc"%>

// var id = ( t h i s ) . p a r e n t s ( " t r " ) . f i n d ( " [ n a m e = ′ G I D ′ ] " ) . v a l ( ) ; s e l e c t c o m m o n W i n ( " (this).parents("tr").find("[name='GID']").val(); select_commonWin( " (this).parents("tr").find("[name=GID]").val();selectcommonWin("{ctx}/Jscgtb/EditJscgPage?operateType=L&xz=${xz}&gid="
+ id, “局属采购信息”, “800”, “400”);
});

	$(function() {
		//列表右侧悬浮按钮
		$(window).resize(
				function() {
					$("div.dataTables_wrapper").width(
							$("#searchBox").width());
					heights = $(window).outerHeight()
							- $(".search").outerHeight()
							- $(".row.bottom").outerHeight() - 20
							- $(".dataTables_scrollHead").outerHeight();
					$(".dataTables_scrollBody").height(heights);
					table.draw();
				});
	});
	
	$(document).ready(function(){
			$(".contact").mouseover(function(){
				$(".us").show("slow");
				$(".contact").mouseout(function(){
					$(".us").hide("slow");
				});
			});
		})
		
	var options = {
			trigger:'hover', 
	/* 		placement:'bottom', */
			title:"详细信息",
			html:true,
			content:"<div style='font-size: 15px; font-family:fontawesome;'>"+
			"<h3 class='panel-title xmxh' style='color: #00acec; margin-bottom: 10px;'></h3>"+
			"<div id='cc' class='cc'  style='text-right'></div>"+
			"</div>",
			viewport:{
				selector:'.dataTables_scrollBody',
				padding:10,
				} 
			
			
		}
	
	
	
	//夏装价格
	$(document).on('mouseover','.xjjg',function(e){
		//var showDiv = document.getElementById("dzjg").innerHTML; // 如果只是单纯的添加css样式,id不唯一也可以。但是如果与js或者是jquery结合时,只会对第一个起作用
		var showDiv = $(this).data("xjjg");
		console.log("xjjg="+showDiv);

/* var table = $(’#mydatatables’).DataTable();
var data1 = table.rows([’.selected’]).data()[0];
console.log(“data1=”+data1); /
if(noNull(showDiv) || noNull(showDiv)){
$(this).popover(options);
KaTeX parse error: Expected '}', got 'EOF' at end of input: …ction(){ //("#cc").text(delHtmlTag(showDiv));
$("#cc").html(showDiv);
})
}
});
//夏装价格
$(document).on(‘mouseover’,’.xs’,function(e){
//var showDiv = KaTeX parse error: Expected 'EOF', got '#' at position 3: ("#̲xs").data("sj")…(this).data(“sj”);
console.log(“sj=”+showDiv);
/
var table = $(’#mydatatables’).DataTable();
var data1 = table.rows([’.selected’]).data()[0];
console.log(“data1=”+data1); /
/

//获取所在行的行号
$(this).parent().prevAll().length + 1;//行号
//获取所在列的列号
( t h i s ) . p r e v A l l ( ) . l e n g t h + 1 ; / / 列 ∗ / / ∗ v a r c c = (this).prevAll().length + 1;//列 */ /* var cc= (this).prevAll().length+1;////varcc=(this).parent().prevAll().length + 1;//获取当前的列号
console.log(“cc=”+cc);
var dd= ( t h i s ) . p r e v A l l ( ) . l e n g t h + 1 ; / / 列 号 c o n s o l e . l o g ( " d d = " + d d ) ; / / v a r m m = (this).prevAll().length + 1;//列号 console.log("dd="+dd); //var mm= (this).prevAll().length+1;//console.log("dd="+dd);//varmm=(’#mydatatables’).DataTable().row(this).index();
var mm= ( t h i s ) . r o w I n d e x ; c o n s o l e . l o g ( " m m = " + m m ) ; / / (this).rowIndex ; console.log("mm="+mm); // (this).rowIndex;console.log("mm="+mm);//(this).prevAll().length + 1;//列
var dataTable = $(’#mydatatables’).DataTable();
var info = dataTable.page.info();
var dataRows = info.recordsTotal;//当前页的总行数
console.log(“dataRows=”+dataRows); */
if(noNull(showDiv) || noNull(showDiv)){
$(this).popover(options);
$(this).on(‘shown.bs.popover’,function(){
$("#cc").html(showDiv);
})
}
});

		//春秋装价格 
		$(document).on('mouseover','.cqjg',function(e){
			//var showDiv = document.getElementById("cqjg").innerHTML;  // 如果只是单纯的添加css样式,id不唯一也可以。但是如果与js或者是jquery结合时,只会对第一个起作用
			var showDiv = $(this).data("cqjg"); 
			/* console.log("cqjg="+showDiv); */
			/* 				var table = $('#mydatatables').DataTable();
			var data1 = table.rows(['.selected']).data()[0];
			console.log("data1="+data1); */

/* var cc= ( t h i s ) . p a r e n t ( ) . p r e v A l l ( ) . l e n g t h + 1 ; / / 行 号 c o n s o l e . l o g ( " c c = " + c c ) ; v a r d d = (this).parent().prevAll().length + 1;//行号 console.log("cc="+cc); var dd= (this).parent().prevAll().length+1;//console.log("cc="+cc);vardd=(this).prevAll().length + 1;//列号
console.log(“dd=”+dd);
//$(this).prevAll().length + 1;//列
var dataTable = $(’#mydatatables’).DataTable();
var info = dataTable.page.info();
var dataRows = info.recordsTotal;//当前页的总行数
console.log(“dataRows=”+dataRows); /
if(noNull(showDiv) || noNull(showDiv)){
$(this).popover(options);
$(this).on(‘shown.bs.popover’,function(){
// $("#cc").text(delHtmlTag(showDiv));
$("#cc").html(showDiv);
})
}
});
//春秋装价格
$(document).on(‘mouseover’,’.xs1’,function(e){
var showDiv = $(this).data(“sj1”);
/
var table = KaTeX parse error: Expected 'EOF', got '#' at position 3: ('#̲mydatatables').…(this).parent().prevAll().length + 1;//行号
console.log(“cc=”+cc);
var dd= ( t h i s ) . p r e v A l l ( ) . l e n g t h + 1 ; / / 列 号 c o n s o l e . l o g ( " d d = " + d d ) ; / / (this).prevAll().length + 1;//列号 console.log("dd="+dd); // (this).prevAll().length+1;//console.log("dd="+dd);//(this).prevAll().length + 1;//列
var dataTable = $(’#mydatatables’).DataTable();
var info = dataTable.page.info();
var dataRows = info.recordsTotal;//当前页的总行数
console.log(“dataRows=”+dataRows);*/
if(noNull(showDiv) || noNull(showDiv)){
$(this).popover(options);
$(this).on(‘shown.bs.popover’,function(){
$("#cc").html(showDiv);
})
}
});

         //制服价格 
		$(document).on('mouseover','.zfjg',function(e){
			var showDiv = $(this).data("zfjg"); // 如果只是单纯的添加css样式,id不唯一也可以。但是如果与js或者是jquery结合时,只会对第一个起作用
			//console.log("showDiv222="+showDiv);
			/* 				var table = $('#mydatatables').DataTable();
			var data1 = table.rows(['.selected']).data()[0];
			console.log("data1="+data1); */

/* var cc= ( t h i s ) . p a r e n t ( ) . p r e v A l l ( ) . l e n g t h + 1 ; / / 行 号 c o n s o l e . l o g ( " c c = " + c c ) ; v a r d d = (this).parent().prevAll().length + 1;//行号 console.log("cc="+cc); var dd= (this).parent().prevAll().length+1;//console.log("cc="+cc);vardd=(this).prevAll().length + 1;//列号
console.log(“dd=”+dd);
//$(this).prevAll().length + 1;//列
var dataTable = $(’#mydatatables’).DataTable();
var info = dataTable.page.info();
var dataRows = info.recordsTotal;//当前页的总行数
console.log(“dataRows=”+dataRows); /
if(noNull(showDiv) || noNull(showDiv)){
//console.log(“showDiv=”+showDiv);
$(this).popover(options);
$(this).on(‘shown.bs.popover’,function(){
$("#cc").text(delHtmlTag(showDiv));
})
}
//因为在html
});
//制服价格
$(document).on(‘mouseover’,’.xs2’,function(e){
var showDiv = $(this).data(“sj2”);
/
var table = KaTeX parse error: Expected 'EOF', got '#' at position 3: ('#̲mydatatables').…(this).parent().prevAll().length + 1;//行号
console.log(“cc=”+cc);
var dd= ( t h i s ) . p r e v A l l ( ) . l e n g t h + 1 ; / / 列 号 c o n s o l e . l o g ( " d d = " + d d ) ; / / (this).prevAll().length + 1;//列号 console.log("dd="+dd); // (this).prevAll().length+1;//console.log("dd="+dd);//(this).prevAll().length + 1;//列
var dataTable = $(’#mydatatables’).DataTable();
var info = dataTable.page.info();
var dataRows = info.recordsTotal;//当前页的总行数
console.log(“dataRows=”+dataRows); */
if(noNull(showDiv) || noNull(showDiv)){

					$(this).popover(options); 
					$(this).on('shown.bs.popover',function(){
					$("#cc").html(showDiv);
			      })  
				}
	   });
	   
		   //冬装价格
		$(document).on('mouseover','.dzjg',function(e){
			//var showDiv = document.getElementById("dzjg").innerHTML; // 如果只是单纯的添加css样式,id不唯一也可以。但是如果与js或者是jquery结合时,只会对第一个起作用
			var showDiv = $(this).data("dzjg");
			console.log("dzjg="+showDiv);
			/* 				var table = $('#mydatatables').DataTable();
			var data1 = table.rows(['.selected']).data()[0];
			console.log("data1="+data1); */

/* var cc= ( t h i s ) . p a r e n t ( ) . p r e v A l l ( ) . l e n g t h + 1 ; / / 行 号 c o n s o l e . l o g ( " c c = " + c c ) ; v a r d d = (this).parent().prevAll().length + 1;//行号 console.log("cc="+cc); var dd= (this).parent().prevAll().length+1;//console.log("cc="+cc);vardd=(this).prevAll().length + 1;//列号
console.log(“dd=”+dd);
//$(this).prevAll().length + 1;//列
var dataTable = $(’#mydatatables’).DataTable();
var info = dataTable.page.info();
var dataRows = info.recordsTotal;//当前页的总行数
console.log(“dataRows=”+dataRows); */
if(noNull(showDiv) || noNull(showDiv)){
$(this).popover(options);
KaTeX parse error: Expected '}', got 'EOF' at end of input: …tion(){ //("#cc").text(delHtmlTag(showDiv));
$("#cc").html(showDiv);
})
}
});

		$(document).on('mouseover','.xs3',function(e){
			var showDiv =$(this).data("sj3"); 
			/* 				var table = $('#mydatatables').DataTable();
			var data1 = table.rows(['.selected']).data()[0];
			console.log("data1="+data1); */

/* var cc= ( t h i s ) . p a r e n t ( ) . p r e v A l l ( ) . l e n g t h + 1 ; / / 行 号 c o n s o l e . l o g ( " c c = " + c c ) ; v a r d d = (this).parent().prevAll().length + 1;//行号 console.log("cc="+cc); var dd= (this).parent().prevAll().length+1;//console.log("cc="+cc);vardd=(this).prevAll().length + 1;//列号
console.log(“dd=”+dd);
//$(this).prevAll().length + 1;//列
var dataTable = $(’#mydatatables’).DataTable();
var info = dataTable.page.info();
var dataRows = info.recordsTotal;//当前页的总行数
console.log(“dataRows=”+dataRows); */
if(noNull(showDiv) || noNull(showDiv)){
$(this).popover(options);
$(this).on(‘shown.bs.popover’,function(){
$("#cc").html(showDiv);
})
}
});

	  //其他价格
		$(document).on('mouseover','.qtjg',function(e){
			//var showDiv = document.getElementById("qtjg").innerHTML; // 如果只是单纯的添加css样式,id不唯一也可以。但是如果与js或者是jquery结合时,只会对第一个起作用
			var showDiv = $(this).data("qtjg");
			/* 				var table = $('#mydatatables').DataTable();
			var data1 = table.rows(['.selected']).data()[0];
			console.log("data1="+data1); */

/* var cc= ( t h i s ) . p a r e n t ( ) . p r e v A l l ( ) . l e n g t h + 1 ; / / 行 号 c o n s o l e . l o g ( " c c = " + c c ) ; v a r d d = (this).parent().prevAll().length + 1;//行号 console.log("cc="+cc); var dd= (this).parent().prevAll().length+1;//console.log("cc="+cc);vardd=(this).prevAll().length + 1;//列号
console.log(“dd=”+dd);
//$(this).prevAll().length + 1;//列
var dataTable = $(’#mydatatables’).DataTable();
var info = dataTable.page.info();
var dataRows = info.recordsTotal;//当前页的总行数
console.log(“dataRows=”+dataRows);
console.log(“showDiv=”+showDiv); /
if(noNull(showDiv) || noNull(showDiv)){
$(this).popover(options);
KaTeX parse error: Expected '}', got 'EOF' at end of input: …tion(){ //("#cc").text(delHtmlTag(showDiv));
$("#cc").html(showDiv);
})
}
});
//其他价格
$(document).on(‘mouseover’,’.xs4’,function(e){
var showDiv = $(this).data(“sj4”);
/
var table = KaTeX parse error: Expected 'EOF', got '#' at position 3: ('#̲mydatatables').…(this).parent().prevAll().length + 1;//行号
console.log(“cc=”+cc);
var dd= ( t h i s ) . p r e v A l l ( ) . l e n g t h + 1 ; / / 列 号 c o n s o l e . l o g ( " d d = " + d d ) ; / / (this).prevAll().length + 1;//列号 console.log("dd="+dd); // (this).prevAll().length+1;//console.log("dd="+dd);//(this).prevAll().length + 1;//列
var dataTable = $(’#mydatatables’).DataTable();
var info = dataTable.page.info();
var dataRows = info.recordsTotal;//当前页的总行数
console.log(“dataRows=”+dataRows); */
if(noNull(showDiv) || noNull(showDiv)){
$(this).popover(options);
$(this).on(‘shown.bs.popover’,function(){
$("#cc").html(showDiv);
})
}
});

	  function delHtmlTag(str){
		 return str.replace(/<[^>]+>/g,"\n");//去掉所有的html标记
		  /* return str.replace(/<[^>]+>/g,"");//去掉所有的html标记 */
		} 
	  
	  
		//导出EXCEL
		$("#btn_exp").click(
				function() {
					var checkbox = $("#mydatatables").find("[name='GID']").filter(":checked");	
					var cgnf = $("#txt_cgnf").val();
					var dwbh = "${param.dwbh}";
					if (checkbox.length > 0) {
						confirm("是否导出选中数据", {title : "提示"}, function(index) {
							var gid = [];
							checkbox.each(function() {
								gid.push($(this).val());
							});

/* alert(“gid=”+gid.join(","));
return; */
$.ajax({
type : “post”,
data : {
ids : gid.join(","),
cgnf : cgnf,
dwbh : dwbh

								},
								url : "${ctx}/Jscgtb/expJssjList",
								success : function(val) {
									FileDownload("${ctx}/file/fileDownload","局属校服采购信息.xls", val.url);
											
								}
							});
							close(index);
						});
					} else {
						confirm("是否导出所有数据", {
							title : "提示"
						}, function(index) {
							$.ajax({
								type : "post",
								data : {
									cgnf : cgnf,
									dwbh : dwbh
								},
								url : "${ctx}/Jscgtb/expJssjList",
								success : function(val) {
									FileDownload("${ctx}/file/fileDownload","局属校服采购信息.xls", val.url);		
								}
							});
							close(index);
						});
					}
				});
	  

</script>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值