diff --git a/api/commonRequest.js b/api/commonRequest.js index d927a13..bfee75c 100644 --- a/api/commonRequest.js +++ b/api/commonRequest.js @@ -1,4 +1,4 @@ -const aqEnnable = false;// 参数加密开关 +let aqEnnable = false;// 参数加密开关 const commonUrl = "http://10.40.92.33:18080/zhgd/"; /* 登录相关 */ const login_url = commonUrl + "auth/login"; // 登录url diff --git a/js/pages/home/navigation.js b/js/pages/home/navigation.js index b3d8005..0f0598e 100644 --- a/js/pages/home/navigation.js +++ b/js/pages/home/navigation.js @@ -1,7 +1,8 @@ -let element, layer, bidCode; +let element, layer, form, bidCode; layui.use(['layer', 'element'], function () { element = layui.element; layer = layui.layer; + form = layui.form; // 获取地址栏上的参数 const bidCodeParam = GetQueryString('bidCode'); const tokenParam = GetQueryString('token'); @@ -10,7 +11,6 @@ layui.use(['layer', 'element'], function () { bidCode = decryptCBC(bidCodeParam); const token = decryptCBC(tokenParam); ajaxRequest2(page_jump, "GET", token, function (result) { - console.log(result); if (result.code === 200) { sessionStorage.setItem("zhgd_token", result.data.access_token); sessionStorage.setItem("zhgd_us", result.data.us.sysUser); @@ -33,6 +33,15 @@ layui.use(['layer', 'element'], function () { // 由施工大屏登录 reloadMenuData(JSON.parse(us), bidCode); } + // 标段工程下拉选监听 + form.on('select(bidPro)', function (data) { + $('#nav-right ul li').each(function (index, item) { + if ($(this).hasClass('checked')) { + const hrefValue = $(this).attr('hrefValue'); + $('#indexIframe').attr('src', hrefValue); + } + }) + }); }); diff --git a/js/pages/index/index.js b/js/pages/index/index.js index 435fd92..f951ca2 100644 --- a/js/pages/index/index.js +++ b/js/pages/index/index.js @@ -13,6 +13,7 @@ layui.use(['layer', 'element', 'carousel'], function () { $("#pro-desc").niceScroll({cursorborder:"",cursorcolor:"#c0c4cc",boxzoom:true}); $("body").niceScroll({cursorborder:"",cursorcolor:"#c0c4cc",boxzoom:true}); loadEcharts(); + console.log("选中的标段编码:"+parent.$('#bidPro').val()) }); /* 加载首页Echarts */ diff --git a/pages/home/navigation.html b/pages/home/navigation.html index 928cb9e..503160a 100644 --- a/pages/home/navigation.html +++ b/pages/home/navigation.html @@ -26,7 +26,7 @@ diff --git a/pages/web/index.html b/pages/web/index.html index 1504765..f5f163a 100644 --- a/pages/web/index.html +++ b/pages/web/index.html @@ -41,7 +41,6 @@ const queryString = Object.keys(params) .map(key => encodeURIComponent(key) + '=' + encodeURIComponent(encryptCBC(params[key]))) .join('&'); - console.log(queryString); window.open(login_sg_index + "?" + queryString, "_self"); } diff --git a/sc_login.html b/sc_login.html index aafc1d4..ce16b55 100644 --- a/sc_login.html +++ b/sc_login.html @@ -18,7 +18,7 @@
-

基建智慧现场工地

+

省侧基建智慧现场工地