[1078] 合并主线

This commit is contained in:
lin
2025-07-03 14:54:29 +08:00
parent 465e03d15d
commit 537d86ca89
12 changed files with 37 additions and 1696 deletions

View File

@@ -95,24 +95,16 @@ export const constantRoutes = [
component: () => import('@/views/device/channel/record'),
},
{
path: '/jtDevice',
component: Layout,
redirect: '/jtDevice',
onlyIndex: 0,
children: [
{
path: '',
name: 'JTDevice',
component: () => import('@/views/jtDevice/index'),
meta: { title: '部标设备', icon: 'jtDevice' }
},
{
path: '/jtDevice/record/:phoneNumber/:channelId',
name: 'JTDeviceRecord',
component: () => import('@/views/jtDevice/channel/record'),
}
]
},
path: '/jtDevice',
name: 'JTDevice',
component: () => import('@/views/jtDevice/index'),
meta: { title: '部标设备', icon: 'jtDevice' }
},
{
path: '/jtDevice/record/:phoneNumber/:channelId',
name: 'JTDeviceRecord',
component: () => import('@/views/jtDevice/channel/record')
},
{
path: '/push',
name: 'PushList',

View File

@@ -1,5 +1,5 @@
<template>
<div id="device" class="app-container">
<div id="JTDevice" class="app-container">
<deviceList v-show="show === 'device'" @show-channel="showChannelList" @show-param="showParam" />
<channelList v-if="show === 'channel'" :device-id="deviceId" @show-device="showDevice" />
<deviceParam v-if="show === 'param'" :phone-number="phoneNumber" @show-device="showDevice" />
@@ -12,7 +12,7 @@ import channelList from './channel/index.vue'
import deviceParam from './jtDeviceParam.vue'
export default {
name: 'Device',
name: 'JTDevice',
components: {
deviceList,
channelList,