//sgworld = window.external.createSgworld(); var form = null; var element = null; var rb = new rightBottomDatlog(); var lc = new leftCenterDatlog(); var TableName = localStorage.getItem("type"); var TableColor = GetCmpareTable(TableName); new CusScrollBar({ contentSelector: '.scroll_cont1', //滚动内容区 barSelector: '.scroll_bar1', //滚动条 sliderSelector: '.scroll_slider1' //滚动滑块 }); //注意:折叠面板 依赖 element 模块,否则无法进行功能性操作 layui.use(['element', 'form'], function () { element = layui.element; form = layui.form; GetColor(); form.on('checkbox(pYc)', function (data) { window.event.stopPropagation(); }); //let CurrentRoot = YingYongDataSencond.filter(function (item) { return item.Type == TableName }); var title = "统计分析";// CurrentRoot[0].sname;//localStorage.getItem("typeName"); $(".ttitle").empty(); $(".ttitle").append(title); }); var skFirst = []; //获取一级菜单选中事件 var qxF = false; function qx1() { if (qxF == false) { qxF = true; var checkItem = $("input:checkbox[name='title']"); checkItem.each(function (index, item) { $(item).attr('checked', true); }); form.render(); } else { qxF = false; var checkItem = $("input:checkbox[name='title']"); checkItem.each(function (index, item) { $(item).removeAttr('checked'); }); form.render(); } } //获取二级菜单选中事件 var qxS = false; var skSecond = []; function qx2() { if (qxS == false) { qxS = true; var checkItem = $("input:checkbox[name='message']"); checkItem.each(function (index, item) { $(item).attr('checked', true); }); form.render(); } else { qxS = false; var checkItem = $("input:checkbox[name='message']"); checkItem.each(function (index, item) { $(item).removeAttr('checked'); }); form.render(); } } var url = getRootPath(); //确定菜单 function sure() { var first = "", second = "", time = "", type = ""; //获取一级选中菜单 //var checkFirst = $('input:checkbox[name="title"]:checked'); //$.each(checkFirst, function (index, value) { // first += value.title + "*"; //}) var checkSecond = $("input:checkbox[name='message']:checked"); $.each(checkSecond, function (index, value) { second += value.title + "*"; }) if (second == "") { alert("请选择二级图例"); return false; } window.external.closeDialog("右中"); window.external.closeDialog("左下"); window.external.closeDialog("右下"); if (second == "") { window.external.createPmDialogDock("右下", url + "../chart/chartQHChoose.html?second=" + second.substring(0, second.length - 1), rb.width, rb.height, rb.top, rb.left, rb.bottom, rb.right); } else { window.external.createPmDialogDock("右中", url + "../legend.html?sk=" + second.substring(0, second.length - 1), lc.width, lc.height, lc.top, lc.left, lc.bottom, lc.right); window.external.createPmDialogDock("右下", url + "../chart/chartQHChoose.html?second=" + second.substring(0, second.length - 1), rb.width, rb.height, rb.top, rb.left, rb.bottom, rb.right); } } function GetColor() { //var TableColor = "colorQHSD"; $.ajax({ url: "../../../Ashx/DataQH.ashx", type: "post", data: { Action: "GetColor", colorTable: TableColor }, dataType: "json", async: false, success: function (result) { var html = ""; var h1 = ""; $.each(result, function (index, value) { if (value.Type == "parent") { if (html == "") { html += '