|
@@ -6,7 +6,7 @@
|
|
<link rel="stylesheet" type="text/css" href="css/main.css">
|
|
<link rel="stylesheet" type="text/css" href="css/main.css">
|
|
<link rel="stylesheet" type="text/css" href="css/jquery-ui.css">
|
|
<link rel="stylesheet" type="text/css" href="css/jquery-ui.css">
|
|
</head>
|
|
</head>
|
|
-<body onclick="$('#imp_item,#date_select,#day_select').hide();$('#search_result').html('').hide();$('#search input').val('')">
|
|
|
|
|
|
+<body onclick="clearEle()">
|
|
<div id="loading_a1"></div>
|
|
<div id="loading_a1"></div>
|
|
<div id="loading">正在加载模型中...</div>
|
|
<div id="loading">正在加载模型中...</div>
|
|
<div for="FAC" id="top" class="top topfac">
|
|
<div for="FAC" id="top" class="top topfac">
|
|
@@ -29,7 +29,7 @@
|
|
onclick="backMasterView()"><img src="image/view.png"></div>
|
|
onclick="backMasterView()"><img src="image/view.png"></div>
|
|
</div>
|
|
</div>
|
|
<div for="IN02" id="top" class="top top02 hideDiv">
|
|
<div for="IN02" id="top" class="top top02 hideDiv">
|
|
- <div id="maogao_btn" title=""
|
|
|
|
|
|
+ <div id="func_menu_btn" title=""
|
|
style="cursor: pointer;position: absolute;right: 176px;top: 25px;height: 38px;width: 38px;"><IMG
|
|
style="cursor: pointer;position: absolute;right: 176px;top: 25px;height: 38px;width: 38px;"><IMG
|
|
src="image/menu1.png"></div>
|
|
src="image/menu1.png"></div>
|
|
<div id="autoplayer_btn" title="切换自动漫游"
|
|
<div id="autoplayer_btn" title="切换自动漫游"
|
|
@@ -42,6 +42,10 @@
|
|
style="cursor: pointer;position: absolute;right: 10px;top: 25px;height: 38px;width: 38px;text-align: center;"
|
|
style="cursor: pointer;position: absolute;right: 10px;top: 25px;height: 38px;width: 38px;text-align: center;"
|
|
onclick="backMasterView()"><img src="image/view.png"></div>
|
|
onclick="backMasterView()"><img src="image/view.png"></div>
|
|
</div>
|
|
</div>
|
|
|
|
+<div for="IN02" id="func_menulist">
|
|
|
|
+ <div id="maogao_btn" title="" style="cursor: pointer;">毛高比重</div>
|
|
|
|
+ <div id="bpb_fx" title="" style="cursor: pointer;">白柸布预测分析</div>
|
|
|
|
+</div>
|
|
<div for="IN02" id="imp_item">
|
|
<div for="IN02" id="imp_item">
|
|
<div itemcode="1"><span>生产数据</span><img src="image/imp2.png" style="float: right;margin-top: 7px;"></div>
|
|
<div itemcode="1"><span>生产数据</span><img src="image/imp2.png" style="float: right;margin-top: 7px;"></div>
|
|
<div itemcode="2"><span>停机原因</span><img src="image/imp2.png" style="float: right;margin-top: 7px;"></div>
|
|
<div itemcode="2"><span>停机原因</span><img src="image/imp2.png" style="float: right;margin-top: 7px;"></div>
|
|
@@ -427,10 +431,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="newwin" class="newwin">
|
|
<div id="newwin" class="newwin">
|
|
- <div class="title"><img src="image/title_icon.png" style="margin: 7px;float: left;"><span class="text"></span><span
|
|
|
|
- class="text">#经编机-详细数据</span><img src="image/Close.png"
|
|
|
|
- style="margin: 7px;float: right;cursor: pointer;"
|
|
|
|
- onclick="CloseWin()"></div>
|
|
|
|
|
|
+ <div class="title"><img src="image/title_icon.png" style="margin: 7px;float: left;"><span class="text"></span><span class="text">#经编机-详细数据</span><img src="image/Close.png" style="margin: 7px;float: right;cursor: pointer;" onclick="CloseWin()"></div>
|
|
<div class="content">
|
|
<div class="content">
|
|
<div style="text-align: center;"><span class="btn btn_active" style="margin-left: -220px;">告警</span><span
|
|
<div style="text-align: center;"><span class="btn btn_active" style="margin-left: -220px;">告警</span><span
|
|
class="btn">产能</span><span class="btn">产线及设备</span><span class="btn">配方</span><span
|
|
class="btn">产能</span><span class="btn">产线及设备</span><span class="btn">配方</span><span
|
|
@@ -1391,6 +1392,10 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+<div id="iframeWin">
|
|
|
|
+ <div class="title"><img src="image/title_icon.png" style="margin: 7px;float: left;"><span class="text">--</span><img src="image/Close.png" style="margin: 7px;float: right;cursor: pointer;" onclick="CloseWin()"></div>
|
|
|
|
+ <div class="content"><iframe src="" class=""></iframe></div>
|
|
|
|
+</div>
|
|
</body>
|
|
</body>
|
|
<script type="text/html" id="maogodetail_tpl">
|
|
<script type="text/html" id="maogodetail_tpl">
|
|
{{each data}}
|
|
{{each data}}
|
|
@@ -2503,12 +2508,18 @@
|
|
$("#imp_btn").on('click', function (e) {
|
|
$("#imp_btn").on('click', function (e) {
|
|
e.stopPropagation();
|
|
e.stopPropagation();
|
|
$('#imp_item').show();
|
|
$('#imp_item').show();
|
|
- $('#search_result').hide()
|
|
|
|
|
|
+ $('#search_result,#func_menulist').hide()
|
|
})
|
|
})
|
|
$("#search .search_btn").on('click', function (e) {
|
|
$("#search .search_btn").on('click', function (e) {
|
|
e.stopPropagation();
|
|
e.stopPropagation();
|
|
search();
|
|
search();
|
|
})
|
|
})
|
|
|
|
+ //分析功能
|
|
|
|
+ $("#func_menu_btn").on('click',function(e){
|
|
|
|
+ e.stopPropagation();
|
|
|
|
+ $("#func_menulist").show();
|
|
|
|
+ $('#search_result,#imp_item').hide()
|
|
|
|
+ });
|
|
//导出数据项选择
|
|
//导出数据项选择
|
|
$("#imp_item>div").on('click', function (e) {
|
|
$("#imp_item>div").on('click', function (e) {
|
|
$(this).parent().find(".active").removeClass("active");
|
|
$(this).parent().find(".active").removeClass("active");
|
|
@@ -2761,6 +2772,13 @@
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
})
|
|
|
|
+ //白柸布预测分析
|
|
|
|
+ $("#bpb_fx").on('click',function(e){
|
|
|
|
+ e.stopPropagation();
|
|
|
|
+ var ifm = $("#iframeWin").attr("class","newwin bpbWin").show();
|
|
|
|
+ ifm.find(".title .text").html('');
|
|
|
|
+ ifm.find("iframe").attr({"src":"bpb_fx.html"});
|
|
|
|
+ });
|
|
//初始化小时选择项
|
|
//初始化小时选择项
|
|
var hour1Opts = [];
|
|
var hour1Opts = [];
|
|
var hour2Opts = [];
|
|
var hour2Opts = [];
|
|
@@ -2772,6 +2790,12 @@
|
|
$("#hour1,#hourP1").html(hour1Opts.join(''))
|
|
$("#hour1,#hourP1").html(hour1Opts.join(''))
|
|
$("#hour2,#hourP2").html(hour2Opts.join(''))
|
|
$("#hour2,#hourP2").html(hour2Opts.join(''))
|
|
});
|
|
});
|
|
|
|
+ function clearEle(){
|
|
|
|
+ $('#imp_item,#func_menulist,#date_select,#day_select').hide();
|
|
|
|
+ $('#search_result').html('').hide();
|
|
|
|
+ $('#search input').val('');
|
|
|
|
+ $("#iframeWin").hide().find("iframe").attr("src","");
|
|
|
|
+ }
|
|
function GetData() {
|
|
function GetData() {
|
|
$.getJSON(SERVER_URL + "/index", {}, function (res) {
|
|
$.getJSON(SERVER_URL + "/index", {}, function (res) {
|
|
setTimeout(function () {
|
|
setTimeout(function () {
|
|
@@ -3049,6 +3073,7 @@
|
|
//3.[可选]监听连接失败消息
|
|
//3.[可选]监听连接失败消息
|
|
player.on("Disconnected", (e) => {
|
|
player.on("Disconnected", (e) => {
|
|
console.log("Disconnected from engine", e);
|
|
console.log("Disconnected from engine", e);
|
|
|
|
+ clearEle();
|
|
playerConnState = false
|
|
playerConnState = false
|
|
//4.[推荐]尝试重新连接
|
|
//4.[推荐]尝试重新连接
|
|
reconntimer = setTimeout(function () {
|
|
reconntimer = setTimeout(function () {
|
|
@@ -3144,14 +3169,14 @@
|
|
var pantou = await player.Native.ModelTree.findItemByName("B412",0,true,1);
|
|
var pantou = await player.Native.ModelTree.findItemByName("B412",0,true,1);
|
|
//var imgid = await player.Native.GisMarker.loadImage("rgba:255,0,255,255");
|
|
//var imgid = await player.Native.GisMarker.loadImage("rgba:255,0,255,255");
|
|
var options = {
|
|
var options = {
|
|
- "text": "原材料(条)\r\rfdy当日入库:- 出库:-\rfdy当月入库:- 出库:-\rpoy当日入库:- 出库:-\rpoy当月入库:- 出库:-",
|
|
|
|
|
|
+ "text": "原材料(KG)\r\rfdy当日入库:- 出库:-\rfdy当月入库:- 出库:-\rpoy当日入库:- 出库:-\rpoy当月入库:- 出库:-",
|
|
"visible": true,
|
|
"visible": true,
|
|
//"maxLod": 130,
|
|
//"maxLod": 130,
|
|
"minLod": 0,
|
|
"minLod": 0,
|
|
"textFontSize":16,
|
|
"textFontSize":16,
|
|
"textColor": parseInt("0xffffffff"),
|
|
"textColor": parseInt("0xffffffff"),
|
|
"contentPadding":[5,5,5,5],
|
|
"contentPadding":[5,5,5,5],
|
|
- "userData":"ycl|原材料(条)\r\rfdy当日入库:{fdy.d-in} 出库:{fdy.d-out}\rfdy当月入库:{fdy.m-in} 出库:{fdy.m-out}\rpoy当日入库:{poy.d-in} 出库:{poy.d-out}\rpoy当月入库:{poy.m-in} 出库:{poy.m-out}"
|
|
|
|
|
|
+ "userData":"ycl|原材料(KG)\r\rfdy当日入库:{fdy.d-in} 出库:{fdy.d-out}\rfdy当月入库:{fdy.m-in} 出库:{fdy.m-out}\rpoy当日入库:{poy.d-in} 出库:{poy.d-out}\rpoy当月入库:{poy.m-in} 出库:{poy.m-out}"
|
|
};
|
|
};
|
|
var obj02Aabb = await player.Native.ModelTree.getItemShapeInfo(pantou.item);
|
|
var obj02Aabb = await player.Native.ModelTree.getItemShapeInfo(pantou.item);
|
|
options.pos = [obj02Aabb.aabb[0][0], obj02Aabb.aabb[0][1]-30, obj02Aabb.aabb[0][2]+60];
|
|
options.pos = [obj02Aabb.aabb[0][0], obj02Aabb.aabb[0][1]-30, obj02Aabb.aabb[0][2]+60];
|
|
@@ -3163,14 +3188,14 @@
|
|
//await player.Native.GisMarker.update(markPtr, options);
|
|
//await player.Native.GisMarker.update(markPtr, options);
|
|
//var imgid = await player.Native.GisMarker.loadImage("rgba:255,0,255,255");
|
|
//var imgid = await player.Native.GisMarker.loadImage("rgba:255,0,255,255");
|
|
var options = {
|
|
var options = {
|
|
- "text": "成品(KG)\r\r当日入库:- 出库:-\r当月入库:- 出库:-",
|
|
|
|
|
|
+ "text": "成品(条)\r\r当日入库:- 出库:-\r当月入库:- 出库:-",
|
|
"visible": true,
|
|
"visible": true,
|
|
//"maxLod": 130,
|
|
//"maxLod": 130,
|
|
"minLod": 0,
|
|
"minLod": 0,
|
|
"textFontSize":16,
|
|
"textFontSize":16,
|
|
"textColor": parseInt("0xffffffff"),
|
|
"textColor": parseInt("0xffffffff"),
|
|
"contentPadding":[5,5,5,5],
|
|
"contentPadding":[5,5,5,5],
|
|
- "userData":"cp|成品(KG)\r\r当日入库:{d-in} 出库:{d-out}\r当月入库:{m-in} 出库:{m-out}\r"
|
|
|
|
|
|
+ "userData":"cp|成品(条)\r\r当日入库:{d-in} 出库:{d-out}\r当月入库:{m-in} 出库:{m-out}\r"
|
|
};
|
|
};
|
|
options.pos = [obj02Aabb.aabb[0][0]+120, obj02Aabb.aabb[0][1]-20, obj02Aabb.aabb[0][2]+50];
|
|
options.pos = [obj02Aabb.aabb[0][0]+120, obj02Aabb.aabb[0][1]-20, obj02Aabb.aabb[0][2]+50];
|
|
//options.parentNode=tmp.item;
|
|
//options.parentNode=tmp.item;
|
|
@@ -3733,6 +3758,7 @@
|
|
openState = false
|
|
openState = false
|
|
window.Device_Data = null;
|
|
window.Device_Data = null;
|
|
$("#newwin,#nodevice").hide();
|
|
$("#newwin,#nodevice").hide();
|
|
|
|
+ $("iframe").attr("src","");
|
|
}
|
|
}
|
|
|
|
|
|
//显示设备基本信息
|
|
//显示设备基本信息
|