#
luxiaotao1123
2022-02-21 34d91785720a2953af54b0a621c301b2fd821a2c
src/main/webapp/views/console.html
@@ -22,26 +22,34 @@
         </div>
         <!--第1列(宽度 70px) -->
         <div class="site-row site-row-1">
        <div class="site-k" style="height:39px;width:70px;"></div>
            <div id="site-173" class="site" style="height: 18px;line-height: 18px;margin-bottom: 85px">173</div>
         </div>
         <!--第2列(宽度 70px)-->
         <div class="site-row site-row-2">
            <div id="site-175" class="site" style="height: 18px;line-height: 18px;">175</div>
            <div id="site-174" class="site" style="height: 19px;line-height: 19px;">174</div>
            <div id="site-172" class="site" style="height: 18px;line-height: 18px;margin-bottom: 248px">172</div>
        <div id="site-172" class="site" style="height: 18px;line-height: 18px;">172</div>
        <div class="site-k" style="height: 246px;width:70px;"></div>
            <div id="site-182" class="site" style="height: 18px;line-height: 18px;">182</div>
         </div>
         <!-- 第3列(宽度 70px) -->
         <div class="site-row site-row-3">
            <div id="site-171" class="site" style="height: 18px;line-height: 18px;margin-bottom: 248px; ">171</div>
            <div id="site-181" class="site" style="height: 18px;line-height: 18px;margin-bottom: 44px; ">181</div>
        <div id="site-176" class="site" style="height: 18px;line-height: 18px;width:162px;">176</div>
        <div class="site-k" style="height: 19px;width:162px;"></div>
        <div>
            <div id="site-171" class="site" style="height: 18px;line-height: 18px;position: absolute;clear: right">171</div>
            <div id="site-170" class="site" style="height: 18px;line-height: 18px;width:80px;float: right">170</div>
        </div>
        <div class="site-k" style="height: 246px;width:70px;"></div>
        <div>
            <div id="site-181" class="site" style="height: 18px;line-height: 18px;position: absolute;clear: right">181</div>
            <div id="site-180" class="site" style="height: 18px;line-height: 18px;width:80px;float: right">180</div>
        </div>
         </div>
         <!-- 第4列(宽度 70px 140px) -->
         <div class="site-row site-row-4">
            <div id="site-176" class="site" style="height: 18px;line-height: 18px;width:140px;margin-bottom: 21px">176</div>
            <div id="site-170" class="site" style="height: 18px;line-height: 18px;width:70px;margin-bottom: 248px;position: relative;float: right">170</div>
            <div id="site-180" class="site" style="height: 18px;line-height: 18px;width:70px;position: relative;clear:right;float: right">180</div>
         </div>
         <!--&lt;!&ndash; 第5列(宽度 70px) &ndash;&gt;-->
         <div class="site-row site-row-5">
            <div id="site-163" class="site" style="height: 28.5px;line-height: 28.5px">163</div>
@@ -1227,31 +1235,28 @@
   $('.site').on('click',function(){
      var id = this.id.split("-")[1];
       $("#siteWindow").attr("style","display:block;");//显示div
        $("#crnWindow").attr("style","display:none;");
       $(".detailed").empty();
       $('.detailed').append(id+'站点详细信息');
       var res = {
           code: 500,
          msg: '服务器异常',
        $.ajax({
            url:baseUrl+"/console/site/detail",
            headers:{
                'token': localStorage.getItem('token')
            },
          data: {
             siteId:id,
             workNo:100,
             wrkSts:'运行中',
             autoing:'Y',
             loading:'',
             canining:'',
             canouting:'',
             ioType:'出库',
             sourceStaNo:'站点2',
             staNo:'站点1',
             sourceLocNo:2,
             locNo:2,
                siteId: id
            },
            method:'post',
            success:function (res) {
                for (var val in data) {
                    var find = $("#siteWindow").find(":input[name='" + val + "']");
                    if (find[0].type==='text') {
                        find.val(data[val]);
                    } else if (find[0].type === 'checkbox') {
                        find.attr("checked", data[val] === 'Y');
          }
       }
      http.post(baseUrl+"/console/site/detail", {siteId: id}, function (res) {
            }
      })
      // res.data
@@ -1269,9 +1274,11 @@
   $('.machine').on('click',function(){
      var id = this.id.split("-")[1];
      $("#crnWindow").attr('style','display:block;');
        $("#siteWindow").attr("style","display:none;");
      $('.detailed').empty();
      $('.detailed').append(id+'号堆垛机');
      $.post(baseUrl+"/console/crn/detail", {crnNo: id}, function (res) {
            console.log(res)
         for (var val in res.data) {
            var find = $("#crnWindow").find(":input[name='" + val + "']");
            if (find[0].type==='text') {