王 垚
2022-09-14 0c5d5ee5e9274bdf5fcd6756237c1e08346aeea7
优化
2个文件已修改
1个文件已添加
58 ■■■■ 已修改文件
HDEquipment.html 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
KB_ProductionEquipmentOutputAnalysis.html 35 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
js/webConfig.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDEquipment.html
@@ -18,6 +18,7 @@
    <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;
@@ -28,14 +29,11 @@
            margin-top: -75px;
            margin-right: 5px;
            color: #09d1ea;
        }
        .clock #Date {
            text-align: center;
            text-shadow: 0 0 0px #00c6ff;
        }
        .clock ul {
@@ -62,7 +60,6 @@
        }
        .title {
            font-size: 44px;
            font-family: PingFangSC;
            font-weight: 500;
@@ -180,7 +177,6 @@
            display: inline-block;
            height: 100%;
            /*文字居中*/
            /*文字竖排*/
            writing-mode: vertical-lr;
            /*从左向右 从右向左是 writing-mode: vertical-rl;*/
@@ -215,7 +211,6 @@
        .table>thead:first-child>tr:first-child>th {
            background-color: #000;
            color: #3bff72;
        }
        .fixed-table-container tbody td .th-inner,
@@ -350,15 +345,14 @@
             }, 20000);
            //根据窗口的大小变动图表 --- 重点
             window.onresize = function () {
                 myChart1.resize();
                 myChart2.resize();
                mychart1.resize();
                mychart2.resize();
             }
        })
        function Chart(mychart1, mychart2) {
             $.ajax({
                 url: "http://localhost:12298/api/loaddata/SearchGetWorkStepBillPie",
                url: GetWEBURL() + "/loaddata/SearchGetWorkStepBillPie",
                 dataType: "JSON",
                 async: false,//使用同步的方式,true为异步方式
                 type: "Get",
@@ -523,7 +517,7 @@
        }
        function TopData() {
            $('#tb_order').bootstrapTable({
                url: 'http://localhost:12298/api/loaddata/EquipMentData',
                url: GetWEBURL() + '/loaddata/EquipMentData',
                //data: dataJson,
                method: 'get',                      //请求方式(*)
                dataType: "json",
@@ -570,7 +564,7 @@
        }
        function BottomData() {
             $.ajax({
                 url: "http://localhost:12298/api/loaddata/SearchGetWorkStepBillList",
                url: GetWEBURL() + "/loaddata/SearchGetWorkStepBillList",
                 dataType: "JSON",
                 async: false,//使用同步的方式,true为异步方式
                 type: "Get",
KB_ProductionEquipmentOutputAnalysis.html
@@ -17,6 +17,7 @@
    <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>
        .clock0 {
            font-family: 'BebasNeueRegular', Arial, Helvetica, sans-serif;
@@ -381,32 +382,32 @@
            interval = setInterval(function () {
                hours = [];
                hoursqty = [];
                CloseProgress = 0;  //完工率
                LineName = [];  //流水线数组
                LineOrderQty = [];  //流水线当天订单总任务数量数组
                LineOrderCloseQty = [];  //流水线当天订单总完成数量数组
                Week = 0;  //本周分析
                Month = 0; //本月分析
                Chart(mychart1, mychart2, mychart3, mychart4, mychart5);
                closeprogress = 0;  //完工率
                linename = [];  //流水线数组
                lineorderqty = [];  //流水线当天订单总任务数量数组
                lineordercloseqty = [];  //流水线当天订单总完成数量数组
                week = 0;  //本周分析
                month = 0; //本月分析
                chart(mychart1, mychart2, mychart3, mychart4, mychart5);
            }, 20000);
            setInterval(function () {
                //num+=1;
                //$("#tb_order").bootstrapTable('refreshOptions',{offset:num});  // pageNumber:1, 指定页码为第1页
                $("#tb_order").bootstrapTable('refresh');
                //$("#tb_order").bootstraptable('refreshoptions',{offset:num});  // pagenumber:1, 指定页码为第1页
                $("#tb_order").bootstraptable('refresh');
            }, 10000);
            //根据窗口的大小变动图表 --- 重点
            window.onresize = function () {
                myChart1.resize();
                myChart2.resize();
                myChart3.resize();
                myChart4.resize();
                myChart5.resize();
                mychart1.resize();
                mychart2.resize();
                mychart3.resize();
                mychart4.resize();
                mychart5.resize();
            }
        })
        function Chart(mychart1, mychart2, mychart3, mychart4, mychart5) {
            $.ajax({
                url: "http://localhost:12298/api/loaddata/KB_ProductData",
                url: GetWEBURL() + "/loaddata/KB_ProductData",
                dataType: "JSON",
                async: false,//使用同步的方式,true为异步方式
                type: "Get",
@@ -840,7 +841,7 @@
        function DataTable() {
            $('#tb_order').bootstrapTable({
                url: 'http://localhost:12298/api/loaddata/KB_ProductTableData',
                url: GetWEBURL() + '/loaddata/KB_ProductTableData',
                //data: dataJson,
                method: 'get',                      //请求方式(*)
                dataType: "json",
@@ -934,7 +935,7 @@
        }
        function showHospitalCode() {
            $.ajax({
                url: "http://localhost:12298/api/loaddata/Gy_Source",//跳转到控制器HospitalController
                url: GetWEBURL() + "/loaddata/Gy_Source",//跳转到控制器HospitalController
                type: "get",
                success: function (Data) {
                    var hospitals = JSON.parse(Data);//反序列化
js/webConfig.js
New file
@@ -0,0 +1,5 @@
function GetWEBURL() {
    //var WEBURL = "http://183.129.128.86:9090/KanBanApi/";    //凯贝奈特服务器地址
    var WEBURL = "http://192.168.1.253:12298/Api/";
    return WEBURL
}