优化代码

This commit is contained in:
wuxw 2024-01-24 12:27:35 +08:00
parent cd293a7c67
commit 5d24960b33
3 changed files with 48 additions and 58 deletions

View File

@ -3,12 +3,7 @@
<table class="footable table table-stripped toggle-arrow-tiny" style="margin-top:10px" data-page-size="10">
<thead>
<tr>
<th class="text-center">
<vc:i18n name="设备编码" namespace="simplifyOwnerAccessContol"></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name="设备名称" namespace="simplifyOwnerAccessContol"></vc:i18n>
</th>
<th class="text-center">
<vc:i18n name="对象类型" namespace="simplifyOwnerAccessContol"></vc:i18n>
</th>
@ -34,8 +29,7 @@
</thead>
<tbody>
<tr v-for="machineTranslate in simplifyOwnerAccessContolInfo.machineTranslates">
<td class="text-center">{{machineTranslate.machineCode}}</td>
<td class="text-center">{{machineTranslate.machineName}}</td>
<td class="text-center">{{machineTranslate.typeCdName}}</td>
<td class="text-center">{{machineTranslate.objName}}</td>
<td class="text-center">{{machineTranslate.machineCmdName}}</td>

View File

@ -15,38 +15,34 @@
<thead>
<tr>
<th class="text-center">
<span><vc:i18n name="同步" namespace="simplifyOwnerTransactionCar"></vc:i18n></span>ID
<vc:i18n name="同步ID" namespace="simplifyOwnerTransactionCar"></vc:i18n>
</th>
<th class="text-center">
<span><vc:i18n name="设备编码" namespace="simplifyOwnerTransactionCar"></vc:i18n></span>
<vc:i18n name="对象类型" namespace="simplifyOwnerTransactionCar"></vc:i18n>
</th>
<th class="text-center">
<span><vc:i18n name="对象类型" namespace="simplifyOwnerTransactionCar"></vc:i18n></span>
<vc:i18n name="对象名称" namespace="simplifyOwnerTransactionCar"></vc:i18n>
</th>
<th class="text-center">
<span><vc:i18n name="对象名称" namespace="simplifyOwnerTransactionCar"></vc:i18n></span>
<vc:i18n name="指令" namespace="simplifyOwnerTransactionCar"></vc:i18n>
</th>
<th class="text-center">
<span><vc:i18n name="指令" namespace="simplifyOwnerTransactionCar"></vc:i18n></span>
</th>
<th class="text-center">
<span><vc:i18n name="状态" namespace="simplifyOwnerTransactionCar"></vc:i18n></span>
<vc:i18n name="状态" namespace="simplifyOwnerTransactionCar"></vc:i18n>
</th>
<th class="text-center" width="80px">
<span><vc:i18n name="说明" namespace="simplifyOwnerTransactionCar"></vc:i18n></span>
<vc:i18n name="说明" namespace="simplifyOwnerTransactionCar"></vc:i18n>
</th>
<th class="text-center">
<span><vc:i18n name="同步时间" namespace="simplifyOwnerTransactionCar"></vc:i18n></span>
<vc:i18n name="同步时间" namespace="simplifyOwnerTransactionCar"></vc:i18n>
</th>
<th class="text-center">
<span><vc:i18n name="操作" namespace="simplifyOwnerTransactionCar"></vc:i18n></span>
<vc:i18n name="操作" namespace="simplifyOwnerTransactionCar"></vc:i18n>
</th>
</tr>
</thead>
<tbody>
<tr v-for="machineTranslate in simplifyOwnerTransactionCarInfo.machineTranslates">
<td class="text-center">{{machineTranslate.machineTranslateId}}</td>
<td class="text-center">{{machineTranslate.machineCode}}</td>
<td class="text-center">{{machineTranslate.typeCdName}}</td>
<td class="text-center">{{machineTranslate.objName}}</td>
<td class="text-center">{{machineTranslate.machineCmdName}}</td>
@ -57,7 +53,7 @@
<div class="btn-group">
<button class="btn-white btn btn-xs"
v-on:click="_openEditCarTranslateModel(machineTranslate)">
<span><vc:i18n name="重新同步" namespace="simplifyOwnerTransactionCar"></vc:i18n></span>
<vc:i18n name="重新同步" namespace="simplifyOwnerTransactionCar"></vc:i18n>
</button>
</div>
</td>

View File

@ -307,14 +307,14 @@
<a class="nav-link"
v-bind:class="{active:simplifyAcceptanceInfo._currentTab == 'simplifyOwnerAccessContol'}"
v-on:click="changeTab('simplifyOwnerAccessContol')">
<vc:i18n name="设备同步" namespace="simplifyAcceptance"></vc:i18n>
<vc:i18n name="业主同步" namespace="simplifyAcceptance"></vc:i18n>
</a>
</li>
<li class="nav-item">
<a class="nav-link"
v-bind:class="{active:simplifyAcceptanceInfo._currentTab == 'simplifyOwnerTransactionCar'}"
v-on:click="changeTab('simplifyOwnerTransactionCar')">
<vc:i18n name="道闸同步" namespace="simplifyAcceptance"></vc:i18n>
<vc:i18n name="车辆同步" namespace="simplifyAcceptance"></vc:i18n>
</a>
</li>
<li class="nav-item" v-if="vc.hasPrivilege('502020092373407363')">