严智鑫
2025-11-11 1dbcc9aaece95a75fc9720ef13e4d191ec3e0af6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<%@ page contentType="text/html;charset=UTF-8"%>
<%@page import="ng.db.DBHelper"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
 
<html>
<head>
<link rel="stylesheet" href="../static/AdminLTE/bower_components/bootstrap/dist/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="../static/AdminLTE/bower_components/font-awesome/css/font-awesome.min.css">
<!-- Ionicons -->
<link rel="stylesheet" href="../static/AdminLTE/bower_components/Ionicons/css/ionicons.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="../static/AdminLTE/dist/css/AdminLTE.min.css">
<link rel="stylesheet" href="../static/AdminLTE/dist/css/skins/skin-blue.min.css">
 
<link rel="stylesheet" href="../static/css/element.css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript">
/*   var interval = setInterval('refreshStatus()', 20000);
   $(document).ready(function(){
        var info = $("#info").attr("info");
        $("#infos").html(info);
   }); */
  // 设备页面自动刷新
/*    function refreshStatus() {
    window.location.reload();
   } 
  // 停止页面自动刷新
  function disableAutoRefresh() {
    clearInterval(interval);
   } */
  
 
 
 
</script>
<style>
    .box table tr th,.box table tr td{
        text-align:center;
    }
</style>    
<title>当前配方</title>
</head>
<body style="padding: 20px;background-color:#D5EAFF;height:100%">
    <div id='app'>
    <!-- <div style='height:20px;width:300px;background-color:#3C8DBC;float:right;'><span style = 'color:#fff;' >故障情况:</span><span id='infos'></span></div> -->
        <section class="content-header" style="padding: 0px 15px 0 15px;">
            <h1>当前配方&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</h1>
            
            <ol class="breadcrumb">
            
                
                </a></li>
            </ol>
        </section>
    
    <div id = "allstatu" ></div>
           <div id = "info" style="height:3%;" >
               <input style="display:none" type="text" name="groups" value="${groups}" />
           </div>
        <!-- Main content -->
            
        <section class="content container-fluid" style="padding: 0px;">
            <div class="box" style="height:90%; overflow: auto;margin-top: 10px;">
                    <table class="table table-striped table-hover"
                        style="overflow-x: auto;font-size: 12px;">
                        <thead style="font-size: 22px;font-weight: bold;">
                            <tr>
                                <th>设备ID</th>
                                <th>设备名称</th>
                                <th>设备IP</th>
                                <th>当前配方</th>
                                <th>当前配方更新时间</th>
                                <th>MES发送配方</th>
                                <th>MES发送配方更新时间</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="(item, index) in shuzu" :key="index" style="height: 51px;">
                                <td>{{item['0_id']}}</td>
                                <td style="font-size: 18px;font-weight: bold;">{{item['1_machine_name']}}</td>
                                <td>{{item['2_ip_address']}}</td>
                                <td style="font-weight: bold; font-size: 18px">{{item['3_content_value']}}</td>
                                <td style="font-size: 18px">{{item['4_finsh_time']}}</td>
                                <td style="font-weight: bold; font-size: 18px">{{item['5_content_value2']}}</td>
                                <td style="font-size: 18px">{{item['6_finsh_time2']}}</td>
                                </td>
                            </tr>
                        </tbody>
                    </table>
            </div>
            
 
            
        </section>
        <!-- /.content -->
    </div>
<script src="../js/jquery-3.4.1.min.js"></script>
<script type="text/javascript" src="../static/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="../js/vue.min.js"></script>
  <script src="../js/axios.min.js"></script>
<script src="../js/mixins.js"></script>
 
<script>
Vue.prototype.$http= axios
 let app = new Vue({
      el:'#app',
      mixins:[mixin],
      data:{
          shuzu:[],
          shuzu1:[],
          shuzu2:[],
          lines:<%= request.getParameter("id") %>,
          peifanhao:[{}],
          subval:{
              id:'',
              type:''
          }
      },
      methods:{
         
         
        
      },
      async mounted(){
         let canshu={
                 line:<%= request.getParameter("id") %>
         }
         // this.shuzu="";
         let sql="{call selectRecipe()}";
         let flag=2;
         this.loadAjxss('任务查询成功',sql,flag,"shuzu");
         console.log("sql:",this.shuzu);
         
          await setInterval(()=>{
 
              let sql="{call selectRecipe()}";
              this.loadAjxss('任务查询成功',sql,flag,"shuzu");
          },5000)
         /* sql="{call AXJ_qiegeguanli_peifanghao_cahxun()}";
         loadAjxs('配方号查询',sql,flag,"peifanhao");  */
      }
 
})
 </script>
</body>
</html>