mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-25 22:27:55 +08:00
优化代码
This commit is contained in:
parent
8a4d1fa823
commit
a95e011c79
@ -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>
|
||||
|
||||
|
||||
@ -101,7 +101,7 @@
|
||||
},
|
||||
_openDoorMachineModel: function (_machine) { //设备开门处理
|
||||
vc.emit('machineState', 'openMachineStateModal', {
|
||||
machineId: _machine.machineCode,
|
||||
machineCode: _machine.machineCode,
|
||||
stateName: '开门',
|
||||
state: '1500',
|
||||
url: '/machine/openDoor'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user