This commit is contained in:
parent
06588951c5
commit
caf7a2104e
|
|
@ -60,18 +60,6 @@ function pages(pageNum, pageSize, typeNum) {
|
|||
|
||||
function laypages(total, page, limit) {
|
||||
console.log(page)
|
||||
// if(isBd){
|
||||
// if(proStatusParam=='05'){
|
||||
// total=403;
|
||||
// }else if(proStatusParam=='01'){
|
||||
// total=786;
|
||||
// }else if(proStatusParam=='04'){
|
||||
// total=251;
|
||||
// }else if(proStatusParam=='03'){
|
||||
// total=15;
|
||||
// }
|
||||
|
||||
// }
|
||||
laypage.render({
|
||||
elem: 'voi-page',
|
||||
count: total,
|
||||
|
|
@ -90,14 +78,6 @@ function laypages(total, page, limit) {
|
|||
}
|
||||
|
||||
function initTable(dataList, limit, page) {
|
||||
// if(isBd){
|
||||
// if(proStatusParam=='03'){
|
||||
// dataList=dataList.slice(-15);
|
||||
// dataList.forEach(function(item) {
|
||||
// item.proStatus='停工';
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
let loadingMsg = layer.msg("数据加载中,请稍候...", {icon: 16, scrollbar: false, time: 0,});
|
||||
table.render({
|
||||
elem: "#proTable",
|
||||
|
|
@ -155,11 +135,7 @@ function initTable(dataList, limit, page) {
|
|||
function getReqParams(page, limit, type) {
|
||||
let obj = {};
|
||||
let proStatetus=proStatusParam;
|
||||
// if(isBd){
|
||||
// if(proStatetus=='03'){
|
||||
// proStatetus='04'
|
||||
// }
|
||||
// }
|
||||
|
||||
if (!type) {
|
||||
obj = {
|
||||
page: page + "",
|
||||
|
|
|
|||
|
|
@ -38,19 +38,10 @@ function getWeekRiskNumAjax() {
|
|||
success: function (result) {
|
||||
if (result.code === 200) {
|
||||
if (result.data) {
|
||||
console.log("周计划")
|
||||
console.log(isBd)
|
||||
// if(isBd){
|
||||
// let da1=['合肥', '马鞍山', '芜湖', '安庆', '淮南', '宣城', '阜阳', '铜陵', '蚌埠',
|
||||
// '滁州', '六安', '淮北', '宿州', '池州', '黄山', '亳州', '建设分公司'];
|
||||
// let da2=[81,5,11,70,26,49,3,4,3,16,14,12,12,37,157,48,195];
|
||||
// let da3=[50,0,2,0,6,0,0,0,0,3,0,2,5,1,0,0,21];
|
||||
// initEchartsTwo(da1, da2, da3);
|
||||
// }else{
|
||||
console.log("周计划")
|
||||
console.log(result.data)
|
||||
initEchartsTwo(result.data.data, result.data.data1, result.data.data2);
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -405,14 +396,7 @@ function getProNumByType(proType, orgId, type) {
|
|||
$('#cityProNum3').html(result.data.tgNum);
|
||||
$('#cityProNum4').html(result.data.dkgNum);
|
||||
}
|
||||
// if(isBd){
|
||||
// $('#buildNum').html(219);
|
||||
// $('#buildNum2').html(403);//总数量
|
||||
// $('#consNum').html(15);
|
||||
// $('#stopNum').html(251);
|
||||
// $('#dkgNum').html(786);
|
||||
|
||||
// }
|
||||
|
||||
}
|
||||
} else if (result.code === 500) {
|
||||
return layer.alert(result.msg, { icon: 2 })
|
||||
|
|
@ -478,10 +462,7 @@ function scrollEarlyData(data) {
|
|||
$('#earlyTotalNum').html(earlyTotalNum);
|
||||
$('#earlyDealNum').html(earlyDealNum);
|
||||
$('#earlyNoDealNum').html(earlyNoDealNum);
|
||||
// if(isBd){
|
||||
// $('#earlyDealNum').html(earlyTotalNum-4);
|
||||
// $('#earlyNoDealNum').html(4);
|
||||
// }
|
||||
|
||||
|
||||
let box = document.getElementById("early-info-ul");
|
||||
box.scrollTop = scrollTopValue;
|
||||
|
|
|
|||
|
|
@ -17,13 +17,9 @@ function initEchartsOne(listMap) {
|
|||
if (listMap != null && listMap.length > 0) {
|
||||
$.each(listMap, function (index, item) {
|
||||
nameList.push(item.cityName);
|
||||
// if(isBd){
|
||||
// dataList.push(item.totalNum/2);
|
||||
// dataList2.push(item.executedNum/2);
|
||||
// }else{
|
||||
|
||||
dataList.push(item.totalNum);
|
||||
dataList2.push(item.executedNum);
|
||||
// }
|
||||
});
|
||||
}
|
||||
// 基于准备好的dom,初始化echarts图表
|
||||
|
|
|
|||
|
|
@ -47,17 +47,6 @@ function pages(pageNum, pageSize, typeNum) {
|
|||
}
|
||||
|
||||
function laypages(total, page, limit) {
|
||||
// if(isBd){
|
||||
// if(chooseTypeParam==1){
|
||||
// total=1440;
|
||||
// }else if(chooseTypeParam==2){
|
||||
// total=228;
|
||||
// }else if(chooseTypeParam==3){
|
||||
// total=158;
|
||||
// }else if(chooseTypeParam==4){
|
||||
// total=15;
|
||||
// }
|
||||
// }
|
||||
|
||||
laypage.render({
|
||||
elem: 'voi-page',
|
||||
|
|
@ -77,14 +66,7 @@ function laypages(total, page, limit) {
|
|||
}
|
||||
|
||||
function initTable(dataList, limit, page) {
|
||||
// if(isBd){
|
||||
// if(chooseTypeParam==4){
|
||||
// dataList=dataList.slice(-15);
|
||||
// dataList.forEach(function(item) {
|
||||
// item.proStatus='停工';
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
|
||||
let loadingMsg = layer.msg("数据加载中,请稍候...", {icon: 16, scrollbar: false, time: 0,});
|
||||
table.render({
|
||||
elem: "#proTable",
|
||||
|
|
|
|||
|
|
@ -32,19 +32,11 @@ function loadProNumAjax() {
|
|||
|
||||
// 工程统计数量赋值
|
||||
function setProNum(obj) {
|
||||
// if(isBd){
|
||||
// $('#proTotalNum').html(1440);
|
||||
// $('#workNum').html(228);
|
||||
// $('#noWorkNum').html(158);
|
||||
// $('#stopNum').html(15);
|
||||
// initEchartsOne(1440, 228, 158,15);
|
||||
// }else{
|
||||
$('#proTotalNum').html(obj.allNum);
|
||||
$('#workNum').html(obj.sgNum);
|
||||
$('#noWorkNum').html(obj.wsgNum);
|
||||
$('#stopNum').html(obj.TgNum);
|
||||
initEchartsOne(obj.allNum, obj.sgNum, obj.wsgNum, obj.TgNum);
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -74,24 +66,12 @@ function loadWeekPlanAjax(type) {
|
|||
function setWeekPlan(obj) {
|
||||
if (type === '1') {
|
||||
let data = obj.data;
|
||||
// if(isBd){
|
||||
// initEchartsFive(90, 742, 8075, 302);
|
||||
// $('#weekPlanNum').html(9209);
|
||||
// }else{
|
||||
initEchartsFive(data[0], data[1], data[2], data[3]);
|
||||
$('#weekPlanNum').html(parseInt(data[0]) + parseInt(data[1]) + parseInt(data[2]) + parseInt(data[3]));
|
||||
//}
|
||||
|
||||
} else if (type === '2') {
|
||||
// if(isBd){
|
||||
// let da1=['合肥', '马鞍山', '芜湖', '安庆', '淮南', '宣城', '阜阳', '铜陵', '蚌埠',
|
||||
// '滁州', '六安', '淮北', '宿州', '池州', '黄山', '亳州', '建设分公司'];
|
||||
// let da2=[81,5,11,70,26,49,3,4,3,16,14,12,12,37,157,48,195];
|
||||
// let da3=[50,0,2,0,6,0,0,0,0,3,0,2,5,1,0,0,21];
|
||||
// initEchartsThree(da1,da3, da2);
|
||||
// }else{
|
||||
|
||||
initEchartsThree(obj.times, obj.twoList, obj.threeList);
|
||||
// }
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -424,7 +424,7 @@ function showTime() {
|
|||
|
||||
//url
|
||||
function gotofx() {
|
||||
window.open(jj_jc_url);
|
||||
// window.open(jj_jc_url);
|
||||
}
|
||||
|
||||
function getIsBg(orgId) {
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ function logout(type) {
|
|||
if (html_type === '1') {
|
||||
loginOutAjax(token, login_url);
|
||||
} else if (html_type === '2') {
|
||||
loginOutAjax(token, login_url_new);
|
||||
loginOutAjax(token, login_url);
|
||||
} else {
|
||||
loginOutAjax(token, login_url);
|
||||
}
|
||||
|
|
@ -225,7 +225,7 @@ function loginExpire(html_type) {
|
|||
if (html_type === '1') {
|
||||
top.location.href = login_url;
|
||||
} else if (html_type === '2') {
|
||||
top.location.href = login_url_new;
|
||||
top.location.href = login_url;
|
||||
} else {
|
||||
top.location.href = login_url;
|
||||
}
|
||||
|
|
@ -238,7 +238,7 @@ $(function () {
|
|||
if (html_type === '1') {
|
||||
top.location.href = login_url;
|
||||
} else if (html_type === '2') {
|
||||
top.location.href = login_url_new;
|
||||
top.location.href = login_url;
|
||||
} else {
|
||||
top.location.href = login_url;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,37 +1,9 @@
|
|||
//测试环境
|
||||
// let dataUrl = "http://192.168.0.14:11122/basfs/";
|
||||
// let login_url="http://192.168.0.14:11122/ahsfs/login.html";
|
||||
//测试环境
|
||||
// let host=window.location.host;
|
||||
// let dataUrl = "http://"+host+"/basfs/";
|
||||
// let login_url="http://"+host+"/ahsfs/login.html";
|
||||
|
||||
// let dataUrl = "http://192.168.0.7:17789/basfs/";
|
||||
// let login_url="http://192.168.0.7:17789/ahsfs/login.html";
|
||||
//只允许包含静态资源-不包含方法 //系统请求路径
|
||||
|
||||
|
||||
|
||||
// let login_url="http://sgwpdm.ah.sgcc.com.cn/ahsfs/login.html";
|
||||
// let dataUrl = "http://127.0.0.1:18080/basfs/";
|
||||
// let login_url="http://127.0.0.1:5501/login.html";
|
||||
|
||||
|
||||
//生产环境
|
||||
let dataUrl = "http://sgwpdm.ah.sgcc.com.cn/basfs/";
|
||||
let login_url="http://sgwpdm.ah.sgcc.com.cn/sgwpdm/#/weblogin";
|
||||
let dataUrl = "http://192.168.0.14:38080/gsbasfs/";
|
||||
let login_url="http://192.168.0.14:38080/gssfs/login.html";
|
||||
|
||||
|
||||
|
||||
|
||||
//let login_url="http://127.0.0.1:8848/jjsp_web/login.html";
|
||||
//重定向登录页面
|
||||
let login_url_new = "http://sgwpdm.ah.sgcc.com.cn/sgwpdm/#/weblogin";
|
||||
//分析决策中心
|
||||
let jj_jc_url = "http://sgwpdm.ah.sgcc.com.cn/ahsfs/youo/infrastructureControl/index.html";//决策中心系统
|
||||
//文件映射路径
|
||||
let photoUrl = dataUrl + "proteam/files/";
|
||||
|
||||
|
||||
//是否是本地
|
||||
let isBd=false;
|
||||
54
logins.html
54
logins.html
|
|
@ -1,54 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>登录页面</title>
|
||||
</head>
|
||||
<link href="bns/css/login.css" rel="stylesheet">
|
||||
<link href="bns/js/layui/css/layui.css" rel="stylesheet">
|
||||
<script src="bns/js/layui/layui.js"></script>
|
||||
<script src="bns/js/public/jquery-3.6.0.js" type="text/javascript"></script>
|
||||
<script src="bns/js/public/aes.js" type="text/javascript"></script>
|
||||
<script src="bns/js/login/public.js" type="text/javascript"></script>
|
||||
<script src="bns/js/login/logins.js" type="text/javascript"></script>
|
||||
<body>
|
||||
<div id="wdiv">
|
||||
<div class="fdiv">安 全 质 量 智 慧 决 策 中 心</div>
|
||||
<div class="mdiv">
|
||||
<div style="border-bottom:1px solid #FFFFFF;width: 60%;margin-left: 18%;top: 72px;height: 40px;position: absolute ">
|
||||
<IMG src="bns/img/login/user.png" style="">
|
||||
<input TYPE="text" id="userName" placeholder="请输入用户名"
|
||||
style="background-color:transparent;border: 0;outline: none;color: white"/>
|
||||
</div>
|
||||
<div style="border-bottom:1px solid #FFFFFF;width: 60%;margin-left: 18%;top: 150px;height: 40px;position: absolute ">
|
||||
<IMG src="bns/img/login/pwd.png">
|
||||
<input TYPE="password" id="password" placeholder="请输入密码"
|
||||
style="background-color:transparent;border: 0;outline: none;color: white"/>
|
||||
</div>
|
||||
<div style="width: 60%;margin-left: 58%; top: 195px;height: 20px;position: absolute;font-size: 7px ">
|
||||
<input type="checkbox"
|
||||
style="background-color: transparent;border: solid 1px #FFFFFF;background-color: #4f5050"> <span
|
||||
style="color: white">记 住 密 码</span>
|
||||
</div>
|
||||
<div style="width: 60%;margin-left: 18%;top: 230px;height: 40px;position: absolute;width: 100%">
|
||||
<button id="login" onclick="login()"
|
||||
style="background-color:#2F82FB;width: 60%;border:none;color: white;height: 36px;border-radius: 2px ">
|
||||
登 录
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script>
|
||||
|
||||
document.onkeydown = function (e) { // 回车提交表单
|
||||
// 兼容FF和IE和Opera
|
||||
var theEvent = window.event || e;
|
||||
var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
|
||||
if (code == 13) {
|
||||
login();
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</html>
|
||||
Loading…
Reference in New Issue