Просмотр исходного кода

工作组报错解决,及其他模块点选颜色添加

haozi 5 лет назад
Родитель
Сommit
ef70fba39b

+ 1 - 1
resources/views/maintenance/city/index.blade.php

@@ -20,7 +20,7 @@
                         <th>录入时间</th>
                         <th>操作</th>
                     </tr>
-                    <tr v-for="city in cities" @click="selectTr===city.id ? selectTr=0 : selectTr=city.id " :class="selectTr===city.id ? 'focusing':'">
+                    <tr v-for="(city,i) in cities" @click="selectTr===i+1?selectTr=0:selectTr=i+1" :class="selectTr===i+1?'focusing' : ''">
                         <td class="text-muted">@{{city.id}}</td>
                         <td>
                             @{{ city.province }}

+ 2 - 1
resources/views/maintenance/emails/index.blade.php

@@ -21,7 +21,7 @@
                         <th>邮件模板</th>
                         <th>操作</th>
                     </tr>
-                    <tr v-for="(emailEvent,i) in emailEvents">
+                    <tr v-for="(emailEvent,i) in emailEvents" @click="selectTr===i+1?selectTr=0:selectTr=i+1" :class="selectTr===i+1?'focusing' : ''">
                         <td width="50">@{{ i+1 }}</td>
                         <td width="50">@{{ emailEvent.name }}</td>
                         <td width="100">
@@ -103,6 +103,7 @@
                 emailEvents: {!!  $emailEvents->toJson() !!}['data'],
                 roles: {!!  $roles->toJson() !!},
                 addRolesFlag: false,
+                selectTr:0,
             },
             methods: {
                 /**

+ 1 - 0
resources/views/maintenance/log/index.blade.php

@@ -60,6 +60,7 @@
             el: "#list",
             data: {
                 logs: {!! json_encode($logs->toArray()['data'])??[] !!},
+                selectTr:0,
             },
             mounted: function () {
                 let data = [

+ 1 - 1
resources/views/maintenance/priceModel/waybillPriceModel/index.blade.php

@@ -57,7 +57,7 @@
                         <th>录入时间</th>
                         <th>操作</th>
                     </tr>
-                    <tr v-for="waybillPriceModel in waybillPriceModels"  @click="selectTr===i+1?selectTr=0:selectTr=i+1" :class="selectTr===i+1?'focusing' : ''">
+                    <tr v-for="(waybillPriceModel,i) in waybillPriceModels"  @click="selectTr===i+1?selectTr=0:selectTr=i+1" :class="selectTr===i+1?'focusing' : ''">
                         <td class="text-muted">@{{waybillPriceModel.id}}</td>
                         <td>@{{waybillPriceModel.logistic}}</td>
                         <td>@{{waybillPriceModel.province}}</td>

+ 1 - 1
resources/views/maintenance/province/index.blade.php

@@ -19,7 +19,7 @@
                         <th>录入时间</th>
                         <th>操作</th>
                     </tr>
-                    <tr v-for="province in provinces"  @click="selectTr===i+1?selectTr=0:selectTr=i+1" :class="selectTr===i+1?'focusing' : ''">
+                    <tr v-for="(province,i) in provinces"  @click="selectTr===i+1?selectTr=0:selectTr=i+1" :class="selectTr===i+1?'focusing' : ''">
                         <td class="text-muted">@{{province.id}}</td>
                         <td>@{{province.name}}</td>
                         <td class="text-muted">@{{province.created_at}}</td>

+ 4 - 3
resources/views/maintenance/taxRate/index.blade.php

@@ -1,5 +1,5 @@
 @extends('layouts.app')
-@section('title')设置@endsection
+@section('title')税率@endsection
 @section('content')
     <span id="nav2">
        @component('maintenance.menu')@endcomponent
@@ -19,7 +19,7 @@
                         <th>最后操作时间</th>
                         <th></th>
                     </tr>
-                    <tr v-for="(taxRate,i) in taxRates">
+                    <tr v-for="(taxRate,i) in taxRates" @click="selectTr===i+1?selectTr=0:selectTr=i+1" :class="selectTr===i+1?'focusing' : ''">
                         <td>@{{ i+1 }}</td>
                         <td>@{{ taxRate.value }}%</td>
                         <td class="text-muted">@{{ taxRate.created_at }}</td>
@@ -43,6 +43,7 @@
                     @foreach($taxRates as $taxRate)@json($taxRate),@endforeach
                 ],
                 taxRate:{},
+                selectTr:0,
             },
             methods:{
                 openModal(model){
@@ -85,4 +86,4 @@
             },
         });
     </script>
-@stop
+@stop

+ 2 - 0
resources/views/maintenance/unit/index.blade.php

@@ -43,6 +43,7 @@
                     </tr>
                     <tbody id="parent">
                         <tr v-for="(u,i) in units" draggable="true" :id="'unit-'+u.id" :data-order="u.sequence" :data-id="u.id"
+                            @click="selectTr===i+1?selectTr=0:selectTr=i+1" :class="selectTr===i+1?'focusing' : ''"
                             @drop="drop($event)" @dragover="dragover($event)" @dragstart="dragstart(u.id)" style="cursor: move">
                             <td class="text-muted">@{{u.id}}</td>
                             <td>@{{u.name}}</td>
@@ -75,6 +76,7 @@
                     {id:'{{$unit->id}}',name:'{{$unit->name}}',created_at:'{{$unit->created_at}}',sequence:'{{$unit->sequence}}'},
                     @endforeach
                 ],
+                selectTr:0,
                 unit:{},
                 errors:{},
                 dragoverId:"",

+ 2 - 2
resources/views/maintenance/userLabor/index.blade.php

@@ -31,7 +31,7 @@
                                 </tr>
                                 </thead>
                                 <tbody>
-                                <tr v-for="(processDailyParticipant,i) in processDailyParticipants"  @click="selectTr===i+1?selectTr=0:selectTr=i+1" :class="selectTr===i+1?'focusing' : ''">
+                                <tr v-for="(processDailyParticipant,i) in processDailyParticipants" >
                                     <td v-if="processDailyParticipant.process_daily">@{{ processDailyParticipant.process_daily.process_code }}</td>
                                     <td>@{{ processDailyParticipant.started_at }}</td>
                                     <td>@{{ processDailyParticipant.ended_at }}</td>
@@ -88,7 +88,7 @@
                     <th>操作</th>
                     <th>解除绑定设备</th>
                 </tr>
-                <tr v-for="(userLabor,i) in userLabors">
+                <tr v-for="(userLabor,i) in userLabors" @click="selectTr===i+1?selectTr=0:selectTr=i+1" :class="selectTr===i+1?'focusing' : ''">
                     <td>@{{ i+1 }}</td>
                     <td class="text-muted"><span v-if="userLabor.user_detail">@{{userLabor.user_detail.full_name}}</span></td>
                     <td><span v-if="userLabor.user_detail">@{{userLabor.user_detail.mobile_phone}}</span></td>

+ 1 - 0
resources/views/maintenance/userWorkgroup/index.blade.php

@@ -55,6 +55,7 @@
                         },
                     @endforeach
                 ],
+                selectTr:0,
             },
             methods:{
                 edit:function(id){

+ 1 - 0
resources/views/maintenance/warehouse/index.blade.php

@@ -56,6 +56,7 @@
                         code:'{{$warehouse->code}}',created_at:'{{$warehouse->created_at}}'},
                     @endforeach
                 ],
+                selectTr:0,
             },
             methods:{
                 edit:function(id){