From b44f1627e300a9fb5bea8e281a20637ccba5a37e Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期一, 26 九月 2022 14:12:48 +0800
Subject: [PATCH] 设备状态
---
js/webConfig.js | 1
KB_EquipmentStatus.html | 698 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
KB_ProductionEquipmentOutputAnalysis.html | 18 +
3 files changed, 716 insertions(+), 1 deletions(-)
diff --git a/KB_EquipmentStatus.html b/KB_EquipmentStatus.html
new file mode 100644
index 0000000..c909a18
--- /dev/null
+++ b/KB_EquipmentStatus.html
@@ -0,0 +1,698 @@
+<!DOCTYPE html>
+<html lang="zh-cn">
+
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta http-equiv="X-UA-Compatible" content="ie=edge">
+ <title>璁惧鐘舵�佺湅鏉�</title>
+ <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
+ <link rel="stylesheet" type="text/css" href="css/bootstrap-table.min.css">
+ <link rel="stylesheet" type="text/css" href="css/index.css">
+ <link rel="stylesheet" type="text/css" href="css/ReportPlatform.css">
+ <script src="js/jquery.min.js"></script>
+ <script src='js/echarts.min.js'></script>
+ <script src="js/bootstrap.min.js"></script>
+ <script src='js/bootstrap-table.min.js'></script>
+ <script src='js/bootstrap-table-zh-CN.min.js'></script>
+ <script src="js/jquery.SuperSlide.2.1.3.js"></script>
+ <script src='js/template.js'></script>
+ <script src="js/jquery.qrcode.min.js"></script>
+ <script src="js/webConfig.js"></script>
+ <style>
+ .clock {
+ font-family: 'BebasNeueRegular', Arial, Helvetica, sans-serif;
+ font-size: 20px;
+ width: 450px;
+ float: right;
+ color: #fff;
+ margin-top: -75px;
+ margin-right: 5px;
+ color: #09d1ea;
+ }
+
+ .clock #Date {
+ text-align: center;
+ text-shadow: 0 0 0px #00c6ff;
+ }
+
+ .clock ul {
+ width: 450px;
+ margin: 0 auto;
+ padding: 0px;
+ list-style: none;
+ text-align: right;
+ margin-left: 15px;
+ position: relative;
+ }
+
+ .clock ul li {
+ display: inline;
+ font-size: 24px;
+ text-align: left;
+ font-family: 'BebasNeueRegular', Arial, Helvetica, sans-serif;
+ text-shadow: 0 0 0px #00c6ff;
+ }
+
+ body {
+ padding-left: 50px;
+ padding-right: 50px;
+ }
+
+ .title {
+ font-size: 44px;
+ font-family: PingFangSC;
+ font-weight: 500;
+ color: rgba(9, 209, 234, 1);
+ text-align: center;
+ background: url(img/img_little_new.png) center no-repeat;
+ margin-bottom: 30px;
+ }
+
+ .col-sm-12 {
+ position: relative;
+ min-height: 1px;
+ padding-right: 0px;
+ padding-left: 0px;
+ }
+
+ .top {
+ /* border: 1px solid #00c6ff; */
+ height: 900px;
+ }
+
+ .left {
+ /* border: 1px solid #00c6ff; */
+ height: 300px;
+ }
+
+ .top1 {
+ /* border: 1px solid #00c6ff; */
+ height: 150px;
+ }
+
+ .ctn {
+ /* border: 1px solid #00c6ff; */
+ height: 450px;
+ }
+
+ .bottom {
+ /* border: 1px solid #00c6ff; */
+ height: 600px;
+ }
+
+ .bottom1 {
+ /* border: 1px solid #00c6ff; */
+ height: 750px;
+ }
+
+ .bottom_left {
+ /* border: 1px solid #00c6ff; */
+ height: 300px;
+ }
+
+ .col-sm-8,
+ .col-sm-6,
+ .col-sm-4,
+ .col-sm-3,
+ .col-sm-2 {
+ /* border: 1px solid #00c6ff; */
+ position: relative;
+ min-height: 1px;
+ padding-right: 0px;
+ padding-left: 0px;
+ }
+
+ #cTitle {
+ width: 50px;
+ height: 450px;
+ font-size: 25px;
+ line-height: 30px;
+ color: #00c6ff;
+ border: 1px solid #333
+ }
+
+ .col-sm-12,
+ .col-sm-2,
+ .col-sm-3,
+ .col-sm-4,
+ .col-sm-6,
+ .col-sm-8 {
+ position: relative;
+ min-height: 1px;
+ padding-right: 0px;
+ padding-left: 0px;
+ }
+
+ #mychart1,
+ #mychart2 {
+ width: 100%;
+ border: none;
+ height: 450px;
+ }
+
+ #cList0 {
+ height: 450px;
+ width: 3%;
+ /* border: 1px solid #00c6ff; */
+ float: left;
+ }
+
+ #cList1 {
+ float: left;
+ }
+
+ #cList1 li {
+ float: left;
+ height: 450px;
+ color: #00c6ff;
+ font-size: 20px;
+ /*鏂囧瓧灞呬腑*/
+ text-align: center;
+ /*display: flex;*/
+ }
+
+ #cList1 li span {
+ /*鏂囧瓧灞呬腑*/
+ display: inline-block;
+ height: 100%;
+ /*鏂囧瓧灞呬腑*/
+ /*鏂囧瓧绔栨帓*/
+ writing-mode: vertical-lr;
+ /*浠庡乏鍚戝彸 浠庡彸鍚戝乏鏄� writing-mode: vertical-rl;*/
+ writing-mode: tb-lr;
+ /*IE娴忚鍣ㄧ殑浠庡乏鍚戝彸 浠庡彸鍚戝乏鏄� writing-mode: tb-rl锛�*/
+ }
+
+ #cList2 {
+ height: 450px;
+ width: 97%;
+ /* border: 1px solid #00c6ff; */
+ float: left;
+ }
+
+ table tr td {
+ text-align: center;
+ vertical-align: middle !important;
+ /*border: 1px solid #464646;*/
+ border-right: 0px;
+ height: 40px;
+ font-size: 25px;
+ font-family: '榛戜綋';
+ font-family: Arial;
+ border: none;
+ }
+
+ .table > caption + thead > tr:first-child > td,
+ .table > caption + thead > tr:first-child > th,
+ .table > colgroup + thead > tr:first-child > td,
+ .table > colgroup + thead > tr:first-child > th,
+ .table > thead:first-child > tr:first-child > td,
+ .table > thead:first-child > tr:first-child > th {
+ background-color: #000;
+ color: #3bff72;
+ }
+
+ .fixed-table-container tbody td .th-inner,
+ .fixed-table-container thead th .th-inner {
+ font-size: 28px;
+ color: #09d1ea;
+ padding: 20px 0 15px 0;
+ }
+
+ #tb_order tr td {
+ text-align: center;
+ height: 32px;
+ line-height: 32px;
+ font-size: 25px;
+ /* font-family: '榛戜綋'; */
+ color: #a6a8ae;
+ font-family: Arial;
+ /* border: 1px solid #464646; */
+ border: none;
+ }
+
+ .bootstrap-table .table {
+ border-radius: none
+ }
+
+ th {
+ background-color: transparent !important;
+ }
+
+ td {
+ background-color: transparent;
+ }
+
+ tr {
+ background-color: transparent
+ }
+
+ #tb_order,
+ #tb_order1 tr:nth-child(even) {
+ background: #080c1c;
+ }
+
+ .fixed-table-container tbody td .th-inner,
+ .fixed-table-container thead th .th-inner {
+ text-align: left;
+ }
+
+ .progress {
+ background-color: darkblue;
+ }
+
+ #tb_order,
+ #tb_order1 tr:nth-child(even) {
+ background: #000000;
+ }
+
+ #tb_order1 tr th {
+ /*border: 1px solid #464646;*/
+ border: none;
+ font-size: 22px;
+ }
+
+ #tb_order1 tr td {
+ text-align: center;
+ height: 32px;
+ line-height: 32px;
+ font-size: 18px;
+ font-family: '榛戜綋';
+ font-family: Arial;
+ /*border:1px solid #464646;*/
+ border: none;
+ }
+
+ #tb_order1 tr:hover {
+ background: #000000;
+ }
+
+ .pull-right,
+ .fixed-table-pagination .pagination-detail,
+ .fixed-table-pagination div.pagination {
+ display: none;
+ }
+ </style>
+ <script type="text/javascript">
+ var CallHouseCode = '01';//鍙枡鐪嬫澘浠撳簱缂栫爜
+
+
+ var interval;//璁℃椂鍣�
+ var interval1;//璁℃椂鍣�
+ var interval2;//璁℃椂鍣�
+ var num = 0;
+ var num1 = 0;
+ var TLProgress = 0; //閫�鏂欑巼
+ var CallData = []; //楗煎浘缁撴灉鏁扮粍
+ var CAllDataX = []; //鏌辩姸鍥緓杞�
+ var CAllDataXval = []; //鏌辩姸鍥緔杞�
+ $(document).ready(function () {
+ // 鍒涘缓涓や釜鍙橀噺锛屼竴涓暟缁勪腑鐨勬湀鍜屾棩鐨勫悕绉�
+ var monthNames = ["1 鏈�", "2 鏈�", "3 鏈�", "4 鏈�", "5 鏈�", "6 鏈�", "7 鏈�", "8 鏈�", "9 鏈�", "10 鏈�", "11 鏈�", "12 鏈�"];
+ setInterval(function () {
+ var date1 = new Date;
+ var year = date1.getFullYear();
+ var month = date1.getMonth();
+ var day = date1.getDate();
+ var hh = date1.getHours();
+ var mm = date1.getMinutes();
+ var ss = date1.getSeconds();
+ var dayNames = new Array("鏄熸湡鏃�", "鏄熸湡涓�", "鏄熸湡浜�", "鏄熸湡涓�", "鏄熸湡鍥�", "鏄熸湡浜�", "鏄熸湡鍏�");
+ var Stamp = new Date();
+ $('#Date').html(year + " 骞�" + " " + monthNames[month] + ' ' + day + " 鏃� " + ' ' + dayNames[Stamp.getDay()]);
+ $("#hours").html((hh < 10 ? ("0" + hh) : hh));
+ $("#min").html((mm < 10 ? ("0" + mm) : mm));
+ $("#sec").html((ss < 10 ? ("0" + ss) : ss));
+ }, 1000);
+ });
+ $(function () {
+ var mychart1 = echarts.init(document.getElementById('mychart1'));
+ var mychart2 = echarts.init(document.getElementById('mychart2'));
+ TopData();
+ BottomData();
+ Chart(mychart1, mychart2);
+
+ // 瀹氭椂鍣�
+ interval = setInterval(function () {
+ $("#tb_order").bootstrapTable('refresh');
+ }, 10000);
+ interval2 = setInterval(function () {
+ CallData = [];
+ CAllDataX = [];
+ CAllDataXval = [];
+ Chart(mychart1, mychart2);
+ }, 20000);
+ //鏍规嵁绐楀彛鐨勫ぇ灏忓彉鍔ㄥ浘琛� --- 閲嶇偣
+ window.onresize = function () {
+ mychart1.resize();
+ mychart2.resize();
+ }
+ })
+
+ function Chart(mychart1, mychart2) {
+ $.ajax({
+ url: GetWEBURL() + "/loaddata/EquipmentStatusBillPie",
+ dataType: "JSON",
+ async: false,//浣跨敤鍚屾鐨勬柟寮�,true涓哄紓姝ユ柟寮�
+ type: "Get",
+ data: { "CallHouseCode": CallHouseCode },
+ success: function (data) {
+ //楗煎浘
+ CallData.push(data.Table[0]["column3"]);
+ CallData.push(data.Table[0]["column4"]);
+ CallData.push(data.Table[0]["column5"]);
+ CallData.push(data.Table[0]["column6"]);
+ CallData.push(data.Table[0]["column7"]);
+ //鏌辩姸鍥�
+ $.each(data.Table1, function (index, val) {
+ CAllDataX.push(val.countDay);
+ CAllDataXval.push(val.HName);
+ });
+ },
+ error: function (data) {
+
+ }
+ })
+
+ const colorList = ['#91CC75 ', '#5470C6', '#73C0DE', '#EE6666', '#FAC858']
+ option1 = {
+ title: [
+ {
+ show: true,
+ text: '璁惧杩愯鐘舵��',
+ textStyle: {
+ color: '#00c6ff',
+ fontSize: '16',
+ },
+ left: 'center',
+ }
+ ],
+ tooltip: {
+ trigger: 'item',
+ },
+ // legend: {
+ // orient: 'vertical',
+ // left: 'left'
+ // },
+ color: colorList,
+ series: [
+ {
+ name: '鍗犳瘮',
+ type: 'pie',
+ radius: '60 %',//澶у皬
+ itemStyle: {
+ borderWidth: 3,
+ borderColor: '#000000'
+ },
+ data: [
+ { value: CallData[0], name: '宸ヤ綔' },
+ { value: CallData[1], name: '寰呮満' },
+ { value: CallData[2], name: '绂荤嚎' },
+ { value: CallData[3], name: '鎶ヨ' },
+ { value: CallData[4], name: '缁翠慨' }
+ ],
+ }
+ ]
+ };
+
+ option2 = {
+ title: {
+ text: '绋煎姩鐜囧姣�',
+ left: '0',
+ top: 2,
+ textStyle: {
+ fontSize: 20,
+ color: '#00c6ff',
+ fontFamily: "寰蒋闆呴粦"
+ },
+ },
+ color: ['#5b9bd5', '#ed7d31', '#a9d18e', '#ffc000'],
+ tooltip: {
+
+ },
+ grid: {
+ left: "20%",//grid 缁勪欢绂诲鍣ㄥ乏渚х殑璺濈銆�
+ right: "30px",
+ bottom: "20%" //
+ },
+ legend: {
+ left: 'right',
+ data: ['鍙枡鏁�', '閰嶉�佹暟'],
+ textStyle: {
+ color: '#00c6ff',
+ fontSize: 16,
+ fontFamily: "寰蒋闆呴粦"
+ }
+
+ },
+ xAxis: [
+ {
+ type: 'category',
+ data: CAllDataXval,
+ axisTick: {
+ alignWithLabel: true
+ },
+ axisLine: {
+ show: true,
+ lineStyle: {
+ color: '#00c6ff',
+ type: 'solid', //璁剧疆缃戞牸绾跨被鍨� dotted锛氳櫄绾� solid:瀹炵嚎
+ width: 1, //闅愯棌y杞�
+ }
+ },
+ axisLabel: {
+ show: true,
+ interval: 0, //鎺у埗X杞村埢搴﹀叏閮ㄦ樉绀�
+ rotate: 45, //鍊炬枩瑙掑害
+ textStyle: {
+ color: '#00c6ff', //鍧愭爣鍊煎緱鍏蜂綋鐨勯鑹�
+ fontSize: '16'
+ }
+ }
+ }
+ ],
+ yAxis: [
+ {
+ type: 'value',
+ axisLine: {
+ show: false,
+
+ },
+ splitLine: { //缃戞牸绾�
+ lineStyle: {
+ color: '#00c6ff',
+
+ },
+ show: true //闅愯棌鎴栨樉绀�
+ },
+ axisLabel: {
+ textStyle: {
+ color: '#00c6ff', //鍧愭爣鍊煎緱鍏蜂綋鐨勯鑹�
+ fontSize: '16'
+ }
+ }
+ }
+ ],
+ series: [
+ {
+ data: CAllDataX,
+ type: 'bar',
+ showBackground: true,
+ backgroundStyle: {
+ color: 'rgba(180, 180, 180, 0.2)'
+ },
+ label: {
+ show: true,
+ position: 'inside' //top
+ }
+ }
+
+ ]
+ };
+
+ mychart1.setOption(option1);
+ mychart2.setOption(option2);
+
+ }
+ function TopData() {
+ $('#tb_order').bootstrapTable({
+ url: GetWEBURL() + '/loaddata/EquipmentStatusData',
+ //data: dataJson,
+ method: 'get', //璇锋眰鏂瑰紡锛�*锛�
+ dataType: "json",
+ queryParams: queryParams,
+ striped: false, //鏄惁鏄剧ず琛岄棿闅旇壊
+ cache: false, //鏄惁浣跨敤缂撳瓨锛岄粯璁や负true锛屾墍浠ヤ竴鑸儏鍐典笅闇�瑕佽缃竴涓嬭繖涓睘鎬э紙*锛�
+ pagination: true, //鏄惁鏄剧ず鍒嗛〉锛�*锛�
+ sortable: false, //鏄惁鍚敤鎺掑簭
+ sortable: false, //鏄惁鍚敤鎺掑簭
+ search: false, //鏄惁鍚敤鎼滅储妗�
+ sidePagination: "server", //鍒嗛〉鏂瑰紡锛歝lient瀹㈡埛绔垎椤碉紝server鏈嶅姟绔垎椤碉紙*锛�
+ pageNumber: 1, //鍒濆鍖栧姞杞界涓�椤碉紝榛樿绗竴椤�
+ strictSearch: false, //璁剧疆涓� true鍚敤 鍏ㄥ尮閰嶆悳绱紝鍚﹀垯涓烘ā绯婃悳绱�
+ clickToSelect: true, //鏄惁鍚敤鐐瑰嚮閫変腑琛�
+ singleSelect: true, //璁剧疆True 灏嗙姝㈠閫�
+ uniqueId: "ID", //姣忎竴琛岀殑鍞竴鏍囪瘑锛屼竴鑸负涓婚敭鍒�
+ cardView: false, //鏄惁鏄剧ず璇︾粏瑙嗗浘
+ detailView: false, //鏄惁鏄剧ず鐖跺瓙琛�
+
+ columns: [
+ { field: 'column1', title: '璁惧鏁伴噺', align: "left" },
+ { field: 'column2', title: '寮�鏈虹巼', align: "left" },
+ { field: 'column3', title: '宸ヤ綔', align: "left" },
+ { field: 'column4', title: '寰呮満', align: "left" },
+ { field: 'column5', title: '绂荤嚎', align: "left" },
+ { field: 'column6', title: '鎶ヨ', align: "left" },
+ { field: 'column7', title: '缁翠慨', align: "left" }
+ //{ field: 'column7', title: '淇濆吇', align: "left" }
+ ],
+ onClickRow: function (row, $element) {
+
+ },
+ onCheck: function (row, $element) {
+
+ },
+ onLoadSuccess: function (row) {
+ var num_total = (row.total) / 8
+ if (num >= num_total) {
+ num = 0
+ }
+ }
+
+ })
+ }
+ function BottomData() {
+ $.ajax({
+ url: GetWEBURL() + "/loaddata/EquipmentStatusBillList",
+ dataType: "JSON",
+ async: false,//浣跨敤鍚屾鐨勬柟寮�,true涓哄紓姝ユ柟寮�
+ type: "Get",
+ data: { "CallHouseCode": CallHouseCode },
+ success: function (data) {
+ for (var i = 0; i < data.Table.length; i++) {
+ var html1 = '';
+
+ html1 += '<div class="col-sm-12 col-md-2" >';
+ if (data.Table[i]["璁惧鐘舵��"] == '绂荤嚎')
+ html1 += '<div class="cns" id="bs' + (i + 1) + '" style="background:#9A9999">';
+ else if (data.Table[i]["璁惧鐘舵��"] == '宸ヤ綔')
+ html1 += '<div class="cns" id="bs' + (i + 1) + '" style="background:#259D27">';
+ else if (data.Table[i]["璁惧鐘舵��"] == '寰呮満')
+ html1 += '<div class="cns" id="bs' + (i + 1) + '" style="background:#199687">';
+ else if (data.Table[i]["璁惧鐘舵��"] == '鎶ヨ')
+ html1 += '<div class="cns" id="bs' + (i + 1) + '" style="background:#FC522A">';
+
+ html1 += '<dl>';
+ //html1 += '<img src="img/device.png">'
+ html1 += '<dd class="tcenter">';
+ html1 += '<h1><span></span><span id="ptn' + (i + 1) + '">' + data.Table[i]["璁惧鍚嶇О"] + '</span></h1>';
+ html1 += '<h1><span>杩愯鎬绘椂闂达細' + data.Table[i]["杩愯鎬绘椂闂�"] + '</span></h1>';
+ html1 += '<h1><span>寰呮満鎬绘椂闂�:' + data.Table[i]["寰呮満鎬绘椂闂�"] + '</span><span id="pts' + (i + 1) + '">' + '' + '</span></h1>';
+ html1 += '<h1><span>宸ヤ綔鎬绘椂闂�:' + data.Table[i]["宸ヤ綔鎬绘椂闂�"] + '</span><span id="pts' + (i + 1) + '">' + '' + '</span></h1>';
+ html1 += '<h1><span>璁惧绋煎姩鐜囷細</span><span>' + data.Table[i]["璁惧绋煎姩鐜�"] + '</span><span style="margin-left:20px;">鎶ヨ娆℃暟锛�</span><span>' + data.Table[i]["鎶ヨ娆℃暟"] + '</span></h1>';
+ html1 += '<h1><span>璁惧鐘舵�侊細' + data.Table[i]["璁惧鐘舵��"] + '</span><span id="pts' + (i + 1) + '">' + '' + '</span></h1>';
+ html1 += '</div > ';
+ html1 += '</div>';
+ html1 += '</dd>';
+ html1 += '</dl>';
+ html1 += '</div>';
+ html1 += '</div>';
+ $("#btomleft").append(html1);
+ }
+ },
+ error: function (data) {
+
+ }
+ })
+
+ //for (var i = 0; i < 20; i++) {
+ // var html1 = '';
+ // html1 += '<div class="col-sm-12 col-md-2" >';
+ // if (i == 2 || i == 4 || i == 6)
+ // html1 += '<div class="cns" id="bs' + (i + 1) + '" style="background:#91CC75" onclick="CheckBtom(this,' + (i + 1) + ')">';
+ // else if (i % 2 == 0)
+ // html1 += '<div class="cns" id="bs' + (i + 1) + '" style="" onclick="CheckBtom(this,' + (i + 1) + ')">';
+ // else
+ // html1 += '<div class="cns" id="bs' + (i + 1) + '" style="background:#EE6666; color:#FFF" onclick="CheckBtom(this,' + (i + 1) + ')">';
+
+ // html1 += '<dl>';
+ // //html1 += '<img src="img/device.png">'
+ // html1 += '<dd class="tcenter">';
+ // html1 += '<h1><span>璁惧鍚嶇О锛�</span><span id="ptn' + (i + 1) + '">' + '娴嬭瘯璁惧鏈�' + i + '</span></h1>';
+ // html1 += '<h1><span>宸ュ崟锛歁O20220901001' + i + '</span></h1>';
+ // html1 += '<h1><span>浜у搧鍚嶇О锛氬簳澹崇粍浠�</span><span id="pts' + (i + 1) + '">' + '' + '</span></h1>';
+ // html1 += '<h1><span>浜у搧瑙勬牸鍨嬪彿锛�645mm*320mm</span><span id="pts' + (i + 1) + '">' + '' + '</span></h1>';
+ // html1 += '<h1><span>璁″垝鏁伴噺锛�</span><span>100' + i + '</span><span style="margin-left:20px;">姹囨姤鎬绘暟锛�</span><span>' + i + '</span></h1>';
+ // html1 += '<h1><span>褰撳墠鐘舵�侊細</span><span class="gj_icon color_border1"></span>';
+ // html1 += '</div > ';
+ // html1 += '</div>';
+ // html1 += '</dd>';
+ // html1 += '</dl>';
+ // html1 += '</div>';
+ // html1 += '</div>';
+ // $("#btomleft").append(html1);
+ //}
+ }
+ //寰楀埌鏌ヨ鐨勫弬鏁�
+ function queryParams(params) {
+ num += 1;
+ var temp = { //杩欓噷鐨勯敭鐨勫悕瀛楀拰鎺у埗鍣ㄧ殑鍙橀噺鍚嶅繀椤讳竴鐩达紝杩欒竟鏀瑰姩锛屾帶鍒跺櫒涔熼渶瑕佹敼鎴愪竴鏍风殑
+ CallHouseCode: CallHouseCode,
+ limit: params.limit, //椤甸潰澶у皬
+ offset: num, //椤电爜
+ };
+ return temp;
+ }
+ //寰楀埌鏌ヨ鐨勫弬鏁�
+ function queryParams1(params) {
+ num1 += 1;
+ var temp = { //杩欓噷鐨勯敭鐨勫悕瀛楀拰鎺у埗鍣ㄧ殑鍙橀噺鍚嶅繀椤讳竴鐩达紝杩欒竟鏀瑰姩锛屾帶鍒跺櫒涔熼渶瑕佹敼鎴愪竴鏍风殑
+ CallHouseCode: CallHouseCode,
+ limit: params.limit, //椤甸潰澶у皬
+ offset: num1, //椤电爜
+ };
+ return temp;
+ }
+ </script>
+</head>
+
+<body>
+ <div class='title'>璁惧鐘舵�佺湅鏉�</div>
+ <div class="clock">
+ <ul>
+ <li id="Date"></li>
+ <li id="hours"> </li>
+ <li id="point">:</li>
+ <li id="min"> </li>
+ <li id="point">:</li>
+ <li id="sec"> </li>
+ </ul>
+
+ </div>
+ <div class="col-sm-9 top">
+ <div class="col-sm-12 top1">
+ <div id="cList2 top1">
+ <table id="tb_order" class="table-condensed table-responsive tb_order" data-filter-control="true">
+ </table>
+ </div>
+ </div>
+ <div class="col-sm-12 bottom1">
+ <div id="btomleft">
+
+ </div>
+ </div>
+
+ </div>
+ <div class="col-sm-3 top">
+ <div class="col-sm-12">
+ <div id="mychart1"></div>
+ </div>
+ <div class="col-sm-12">
+ <div id="mychart2"></div>
+ </div>
+ </div>
+
+</body>
+
+</html>
\ No newline at end of file
diff --git a/KB_ProductionEquipmentOutputAnalysis.html b/KB_ProductionEquipmentOutputAnalysis.html
index 754c0a0..8fd9768 100644
--- a/KB_ProductionEquipmentOutputAnalysis.html
+++ b/KB_ProductionEquipmentOutputAnalysis.html
@@ -332,6 +332,8 @@
//閰嶇疆鍙傛暟
var LineCode = '11111'//鐢熶骇璧勬簮缂栫爜
var LineCodeList = 'BM000002';//娴佹按绾跨湅鏉夸粖鏃ュ叏閮ㄦ祦姘寸嚎缂栫爜:浜х嚎1銆佷骇绾�2銆佷骇绾�3銆佷骇绾�4銆佷骇绾�5銆佷骇绾�6
+ var SourceList = [];
+ var SourceNum = 0;
@@ -346,6 +348,7 @@
var LineOrderCloseQty = []; //娴佹按绾垮綋澶╄鍗曟�诲畬鎴愭暟閲忔暟缁�
var Week = 0; //鏈懆鍒嗘瀽
var Month = 0; //鏈湀鍒嗘瀽
+
$(document).ready(function () {
// 鍒涘缓涓や釜鍙橀噺锛屼竴涓暟缁勪腑鐨勬湀鍜屾棩鐨勫悕绉�
var monthNames = ["1 鏈�", "2 鏈�", "3 鏈�", "4 鏈�", "5 鏈�", "6 鏈�", "7 鏈�", "8 鏈�", "9 鏈�", "10 鏈�", "11 鏈�", "12 鏈�"];
@@ -395,6 +398,18 @@
//$("#tb_order").bootstraptable('refreshoptions',{offset:num}); // pagenumber:1, 鎸囧畾椤电爜涓虹1椤�
$("#tb_order").bootstrapTable('refresh');
}, 10000);
+ //鏇存崲涓嬫媺妗嗚祫婧�
+ setInterval(function () {
+ if (SourceNum < SourceList.data.length) {
+ LineCode = SourceList.data[SourceNum].HNumber;
+ $("#hospitalCodeSelect").find("option[value='" + SourceList.data[SourceNum].HNumber + "']").attr("selected", true);//鏇存柊涓嬫媺妗嗛�変腑鏁版嵁
+ $("#hospitalCodeSelect").selectpicker('refresh')//椤甸潰娓叉煋
+ SourceNum += 1;
+ } else {
+ showHospitalCode();
+ SourceNum = 0;
+ }
+ }, 30000);
//鏍规嵁绐楀彛鐨勫ぇ灏忓彉鍔ㄥ浘琛� --- 閲嶇偣
window.onresize = function () {
mychart1.resize();
@@ -941,14 +956,15 @@
type: "get",
success: function (Data) {
var hospitals = JSON.parse(Data);//鍙嶅簭鍒楀寲
+ SourceList = hospitals;
var content = '';
$.each(hospitals.data, function (i, n) {
content += "<option value='" + n.HNumber + "'>" + n.HNumber + '-' + n.HName + "</option>";
});
+ $("#hospitalCodeSelect").empty();
$("#hospitalCodeSelect").append(content);//append 娣诲姞杩涘幓骞跺睍绀�
$("#hospitalCodeSelect").find("option[value='" + hospitals.data[0].HNumber + "']").attr("selected", true);
$("#hospitalCodeSelect").selectpicker('refresh');
-
}
})
}
diff --git a/js/webConfig.js b/js/webConfig.js
index cadc407..4133647 100644
--- a/js/webConfig.js
+++ b/js/webConfig.js
@@ -2,5 +2,6 @@
//var WEBURL = "http://183.129.128.86:9090/KanBanApi/"; //鍑礉濂堢壒鏈嶅姟鍣ㄥ湴鍧�
var WEBURL = "http://localhost:12298/api/";
// var WEBURL = "http://192.168.1.253:12298/Api/";
+ // var WEBURL = "http://47.96.97.237/KanBanApi/";//47鏈嶅姟鍣ㄥ湴鍧�
return WEBURL
}
\ No newline at end of file
--
Gitblit v1.9.1