Преглед на файлове

修改运单查询页面 选中后在点选不切换问题

ajun преди 5 години
родител
ревизия
cae8aaed77
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      resources/views/transport/waybill/index.blade.php

+ 3 - 3
resources/views/transport/waybill/index.blade.php

@@ -48,7 +48,9 @@
             </div>
             <table class="table table-striped table-sm table-bordered table-hover text-nowrap waybill-table td-min-width-80" style="background: #fff;" id="table">
                 <tr v-for="(waybill,i) in waybills" :style="[{color:waybill.status=='待重审'?'red':''||waybill.status=='已完结'?'green':''},{'font-weight': waybill.id==selectedStyle?'bold':''}]"
-                    :id="'waybill'+waybill.id" @click="selectedColor(waybill.id,$event)" position="static" @mouseover="hidetop($event)" @mouseleave="showtop($event)">
+                    :id="'waybill'+waybill.id" @click="selectedColor(waybill.id,$event) & (selectTr===i+1?selectTr=0:selectTr=i+1)" position="static" @mouseover="hidetop($event)" @mouseleave="showtop($event)"
+                    :class="selectTr===i+1?'focusing':''"
+                >
                     <td><input class="checkItem" type="checkbox" :value="waybill.id"></td>
                     <td>
                         <span v-if=waybill.status==="未审核"||waybill.status==="待重审">
@@ -583,13 +585,11 @@
                     excelExport(checkAllSign,checkData,url,this.sum,token);
                 },
                 selectedColor(id,e){
-                    $('#headerParent tr[class=focusing]').removeClass('focusing')
                     if (id==this.selectedStyle){
                         this.selectedStyle='';
                         return;
                     }
                     this.selectedStyle=id;
-                    $(e.target).parent('tr').addClass('focusing')
                 },
                 mouseleaveOwner:function () {
                     if(!this.isOut&&!this.isBlur){