廖井涛
2023-07-25 f253277bd228074b2f0c61125a9695ea8bba2d55
修改领取任务
1个文件已修改
1个文件已添加
21 ■■■■■ 已修改文件
gmms/WebContent/mysqlInsert/toPlc.jsp 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
gmms/WebContent/qiegeguanli/qiegerenwu.jsp 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
gmms/WebContent/mysqlInsert/toPlc.jsp
New file
@@ -0,0 +1,8 @@
<%@page import="builder.Manager"%>
<%
Manager.sendtoPLC(76,20,4,new byte[]{0,1,0,1},0);
Manager.sendtoPLC(77,20,4,new byte[]{0,1,0,1},0);
%>
gmms/WebContent/qiegeguanli/qiegerenwu.jsp
@@ -168,9 +168,11 @@
<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],
@@ -201,7 +203,16 @@
          renwuguanli:function(){
              sql="{call AXJ_qiegeguanli_threelinetask_renwuguanli(?,?,?)}~"+JSON.stringify(this.subval);
              console.log(sql);
              this.connects("任务修改",sql,1,1)
              this.connects("任务修改",sql,1,1);
                this.$http.post( '../mysqlInsert/toPlc.jsp'
                )
            .then(function (response) {
                console.log(response);
            })
            .catch(function (error) {
                alert('Error: ' + "服务器数据发生错误!");
            });
          },
          renwuguanliquxiao:function(){
              this.subval='';