优化admin 调转物联网功能

This commit is contained in:
wuxw 2025-07-08 18:42:22 +08:00
parent 29e25b4685
commit f2cd6b17b0
3 changed files with 8 additions and 13 deletions

View File

@ -55,7 +55,8 @@
</el-table-column>
<el-table-column prop="direction" :label="$t('aAccessControl.table.direction')" align="center">
<template slot-scope="scope">
{{ scope.row.direction === '3306' ? $t('aAccessControl.direction.in') : $t('aAccessControl.direction.out')
{{ scope.row.direction === '3306' ? $t('aAccessControl.direction.in') :
$t('aAccessControl.direction.out')
}}
</template>
</el-table-column>
@ -83,6 +84,7 @@
<script>
import { listAdminAccessControl } from '@/api/iot/aAccessControlApi'
import SelectAdminCommunity from '@/components/community/selectAdminCommunity'
import { jumpToIot } from '@/api/user/menuApi'
export default {
name: 'AAccessControlList',
@ -144,10 +146,7 @@ export default {
this.handleSearch()
},
handleDetail(row) {
this.$router.push({
path: '/iot/aAccessControlDetail',
query: { machineId: row.machineId }
})
jumpToIot('/#/pages/iot/aAccessControlDetail?machineId=' + row.machineId)
}
}
}

View File

@ -73,6 +73,7 @@
<script>
import { listAdminChargeMachine } from '@/api/iot/adminChargeMachineApi'
import SelectAdminCommunity from '@/components/community/selectAdminCommunity'
import { jumpToIot } from '@/api/user/menuApi'
export default {
name: 'AdminChargeMachineList',
@ -126,7 +127,7 @@ export default {
this.getList()
},
handleDetail(row) {
this.$router.push({ path: '/iot/chargeMachineDetail', query: { machineId: row.machineId } })
jumpToIot('/#/pages/iot/chargeMachineDetail?machineId=' + row.machineId)
},
handleSizeChange(val) {
this.page.size = val

View File

@ -97,6 +97,7 @@
<script>
import SelectAdminCommunity from '@/components/community/selectAdminCommunity'
import { listAdminMeterMachine } from '@/api/iot/adminMeterApi'
import { jumpToIot } from '@/api/user/menuApi'
export default {
name: 'AdminMeterList',
@ -164,13 +165,7 @@ export default {
return type ? type.typeName : '-'
},
handleDetail(row) {
this.$router.push({
path: '/iot/meterDetail',
query: {
machineId: row.machineId,
roomId: row.roomId
}
})
jumpToIot('/#/pages/iot/meterDetail?machineId=' + row.machineId + '&roomId=' + row.roomId)
}
}
}