道闸部分和新版物联网打通

This commit is contained in:
wuxw 2024-02-01 17:01:56 +08:00
parent 880b4ecfe2
commit 78c7be9562
2 changed files with 16 additions and 11 deletions

View File

@ -83,7 +83,7 @@
<script> <script>
import noDataPage from '../../components/no-data-page/no-data-page.vue' import noDataPage from '../../components/no-data-page/no-data-page.vue'
import {listChargeMachine,listChargeMachineOrder} from '../../api/machine/machineApi.js'; import {listChargeMachine,listChargeMachineOrder,getIotOpenApi} from '../../api/machine/machineApi.js';
export default { export default {
data() { data() {
return { return {
@ -104,22 +104,24 @@
methods: { methods: {
_loadChargeMachineOrder:function(){ _loadChargeMachineOrder:function(){
let _that =this; let _that =this;
listChargeMachineOrder(this,{ getIotOpenApi(this,{
machineId:this.machineId, machineId:this.machineId,
communityId:this.getCommunityId(), communityId:this.getCommunityId(),
page:1, page:1,
row:100, row:100,
personName:this.personName personName:this.personName,
iotApiCode:'listChargeMachineOrderBmoImpl'
}).then(_data=>{ }).then(_data=>{
_that.orders = _data.data; _that.orders = _data.data;
}) })
}, },
_loadChargeMachine:function(){ _loadChargeMachine:function(){
let _that =this; let _that =this;
listChargeMachine(this,{ getIotOpenApi(this,{
communityId:this.getCommunityId(), communityId:this.getCommunityId(),
page:1, page:1,
row:100, row:100,
iotApiCode:'listChargeMachineBmoImpl'
}).then(_data=>{ }).then(_data=>{
_that.machines = _data.machines; _that.machines = _data.machines;
}) })

View File

@ -63,7 +63,8 @@
<script> <script>
import noDataPage from '../../components/no-data-page/no-data-page.vue' import noDataPage from '../../components/no-data-page/no-data-page.vue'
import {listMachines,listMachineRecords} from '../../api/machine/machineApi.js'; import {listMachines,listMachineRecords,getIotOpenApi} from '../../api/machine/machineApi.js';
export default { export default {
data() { data() {
return { return {
@ -84,26 +85,28 @@
methods: { methods: {
_loadOpenDoorLog:function(){ _loadOpenDoorLog:function(){
let _that =this; let _that =this;
listMachineRecords(this,{ getIotOpenApi(this,{
machineId:this.machineId, machineId:this.machineId,
communityId:this.getCommunityId(), communityId:this.getCommunityId(),
page:1, page:1,
row:100, row:100,
name:this.name name:this.name,
iotApiCode:'listAccessControlInoutBmoImpl'
}).then(_data=>{ }).then(_data=>{
_that.logs = _data.machineRecords; _that.logs = _data.data;
}) })
}, },
_loadAccessControl:function(){ _loadAccessControl:function(){
let _that =this; let _that =this;
listMachines(this,{ getIotOpenApi(this,{
communityId:this.getCommunityId(), communityId:this.getCommunityId(),
page:1, page:1,
row:100, row:100,
machineTypeCd:'9999', machineTypeCd:'9999',
domain:'ACCESS_CONTROL' domain:'ACCESS_CONTROL',
iotApiCode:'listAccessControlBmoImpl',
}).then(_data=>{ }).then(_data=>{
_that.machines = _data.machines; _that.machines = _data.data;
}) })
}, },
machineChange: function(e) { machineChange: function(e) {