Commit adea95ab9028619f0a3e1881b8d80b738c10e667
Merge branch 'develop4' of http://172.16.29.40:8010/wms/wms4.git into develop4
Showing
1 changed file
with
13 additions
and
7 deletions
ant-design-vue-jeecg/src/views/system/monitor/locationStatus.vue
... | ... | @@ -93,14 +93,16 @@ |
93 | 93 | </div> |
94 | 94 | |
95 | 95 | <div class="col-sm-12 select-info"> |
96 | - <div id="borderCol" style="overflow-y: scroll;white-space:nowrap"> | |
97 | - <a-spin tip="等待加载中..." :spinning="spinning"> | |
96 | + <div id="borderCol" style="overflow-y: scroll;white-space:nowrap" v-show="showPrise"> | |
98 | 97 | <div class="location" id="location"> |
99 | 98 | </div> |
100 | - </a-spin> | |
101 | 99 | </div> |
100 | + <a-spin tip="库位视图生成中..." :spinning="spinning"> | |
101 | + <a-skeleton active :loading="loading" :paragraph="{ rows: 5 }"/> | |
102 | + </a-spin> | |
102 | 103 | </div> |
103 | 104 | |
105 | + | |
104 | 106 | </div> |
105 | 107 | </div> |
106 | 108 | </template> |
... | ... | @@ -158,6 +160,9 @@ |
158 | 160 | data() { |
159 | 161 | return { |
160 | 162 | spinning:true, |
163 | + loading:true, | |
164 | + showPrise:false, | |
165 | + // loading:true, | |
161 | 166 | zoneCode:'', |
162 | 167 | locationTypeList: [], |
163 | 168 | model:{}, |
... | ... | @@ -437,6 +442,9 @@ |
437 | 442 | $(".grid").eq(j).attr({"src": rel_empty,"onmouseover": "","onclick": ""}); |
438 | 443 | } |
439 | 444 | } |
445 | + this.spinning=false; | |
446 | + this.showPrise=true; | |
447 | + this.loading=false; | |
440 | 448 | }, |
441 | 449 | |
442 | 450 | //点击显示当前库位信息 |
... | ... | @@ -532,11 +540,11 @@ |
532 | 540 | }, |
533 | 541 | |
534 | 542 | |
535 | - | |
536 | - | |
537 | 543 | //搜索平面库位 |
538 | 544 | Search(){ |
539 | 545 | this.spinning=true; |
546 | + this.showPrise=false; | |
547 | + this.loading=true; | |
540 | 548 | let index=$("#editable-select").val(); |
541 | 549 | let num=$("#editable-num").val(); |
542 | 550 | |
... | ... | @@ -595,7 +603,6 @@ |
595 | 603 | this.changeMargin(); |
596 | 604 | this.ajaxGrid(index,data); |
597 | 605 | } |
598 | - | |
599 | 606 | }, |
600 | 607 | |
601 | 608 | |
... | ... | @@ -623,7 +630,6 @@ |
623 | 630 | if (response.code==200){ |
624 | 631 | $("#zone").val("库位总数:"+response.result.location+", 空闲库位:"+response.result.emptyLocation+ |
625 | 632 | ", 空托盘库位:"+response.result.haveContainLocation+", 有货库位:"+response.result.haveInventoryLocation) |
626 | - _this.spinning=false; | |
627 | 633 | }else { |
628 | 634 | alert(response.message) |
629 | 635 | } |
... | ... |