优化代码

This commit is contained in:
java110 2020-12-24 15:28:52 +08:00
parent 8a4d1fa823
commit a95e011c79
2 changed files with 3 additions and 4 deletions

View File

@ -99,6 +99,8 @@
</td>
<td class="text-center">{{machine.createTime}}</td>
<td class="text-right">
<button class="btn-white btn btn-xs" v-on:click="_openDoorMachineModel(machine)">开门
</button>
<button class="btn-white btn btn-xs dropdown-toggle" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">变更
</button>
@ -113,9 +115,6 @@
<p style="margin:10px 0;">
<a href="javascript:void(0)"
v-on:click="_openRestartMachineModel(machine)">重启设备</a>
<span>|</span>
<a href="javascript:void(0)"
v-on:click="_openDoorMachineModel(machine)">开门</a>
</p>
</div>

View File

@ -101,7 +101,7 @@
},
_openDoorMachineModel: function (_machine) { //设备开门处理
vc.emit('machineState', 'openMachineStateModal', {
machineId: _machine.machineCode,
machineCode: _machine.machineCode,
stateName: '开门',
state: '1500',
url: '/machine/openDoor'