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

View File

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

View File

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