Commit 24c61abc by chentian

恢复代码

parent 8d6d4d08
......@@ -150,9 +150,10 @@ function doQueryFL(){
"<div class='newNavTop' id='newNavTop' style='top:24px;'>"+flStr+"分类</div>" +
"<div class='newNavbody'>" +
"<div class='newLayoutDiv pull-clear'>" +
"<a onclick='' href='javascript:void(0)' class='newNavA pull-left'>"+flStr+"导航</a>" +
"<a onclick=\"goBack()\" href='javascript:void(0)' class='newNavA pull-left'>"+flStr+"导航</a>" +
"<span class='current-icon'><<<span class='current-text'></span></span></a>" +
"<a onclick=\"goSlide(this)\" href='javascript:void(0)' class='newNavA newNavBtn newMore newNavTools pull-right'>更多</a>" +
"<a href='javascript:void(0)' onclick='' class='newNavA newNavBtn newMultival_1 newNavTools pull-right' title='图表筛选'> 图表</a>" +
/* "<a href='javascript:void(0)' onclick='' class='newNavA newNavBtn newMultival_1 newNavTools pull-right' title='图表筛选'> 图表</a>" +*/
"<div class='fillColorCheckBox pull-right'>" +
"</div>" +
"</div>" +
......@@ -167,7 +168,7 @@ function doQueryFL(){
// alert(item.COUNT+":"+item.OBJECT_TYPE+":"+item.OBJECT_NAME);
var str=item.NAMES+"("+item.COUNTS+")";
$("#flnr"+index2).append(
"<a class='newNavA' style='text-decoration:none;' href='javascript:void(0)' onclick=flclick('"+index2+"','"+item.VALS+"')>"+str+"</a>"
"<a class='newNavA' style='text-decoration:none;' href='javascript:void(0)' onclick=flclick(this,'"+item.NAMES+"',"+index2+"','"+item.VALS+"')>"+str+"</a>"
);
});
$("#fldh").append(
......@@ -190,13 +191,81 @@ function doQueryFL(){
}
}
function flclick(index,object_type){
if(index=="BZHLX"){
$("#objectType").val(object_type);
}else{
$("#objectType").val("");
function flclick(obj,value,index,object_type){
$(obj).parents(".newNavbody").find(".current-icon").show();
$(obj).parents(".newNavbody").find(".current-text").html(value);
$(".newLayoutDiv").siblings().hide();
if(index=="date"){
if($(obj).parents(".newNavInfo").length == 1 || $(obj).parents(".newNavMoreInfo").length==1) {
$(obj).parents(".newNavbody").find(".newNavInfo").hide();
$(obj).parents(".newNavbody").find(".newNavInfo-m").show();
}
doQuery();
if($(obj).parents(".newNavInfo-m").length == 1){
$(obj).parents(".newNavbody").find(".newNavInfo-m").hide();
$(obj).parents(".newNavbody").find(".newNavInfo-d").show();
}
}
if(index=="BZHLX"){
$("#objectType").val(object_type);
}else{
$("#objectType").val("");
}
doQuery();
}
function goBack(){
$(".current-icon").hide();
$(".current-text").html("");
$(".newNavInfo,.newNavMoreInfo").show();
}
function openDialog(arr){
console.log(arr)
$('#w').dialog({
buttons:[{
//确定生成表头配置信息,并重新加载表格数据
text:'确定',
handler:function(){
$('#w').dialog('close');
$(document).unbind("scroll");
}
},{
text:'取消',
handler:function(){
$('#w').dialog('close');
$(document).unbind("scroll");
}
}],
onClose: function () {
$(document).unbind("scroll");
}
});
$('#w').show().dialog('open');
$("#w").window('center');
var tops = $(document).scrollTop();//当页面滚动时,把当前距离赋值给页面,这样保持页面滚动条不动
$(document).bind("scroll",function (){$(document).scrollTop(tops);})
myEcharts();
}
function myEcharts(){
var dom = document.getElementById("echarts-wrap");
var myChart = echarts.init(dom);
var app = {};
option = null;
option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value'
},
series: [{
data: [120, 200, 150, 80, 70, 110, 130],
type: 'bar'
}]
};
;
if (option && typeof option === "object") {
myChart.setOption(option, true);
}
}
/**
......
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