From 7203578a5592f9dd669ca03c2669d72f0657a9a7 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Thu, 18 Jul 2024 15:45:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AE=BE=E5=A4=87=E5=AE=9E?= =?UTF-8?q?=E6=97=B6=E6=9F=A5=E7=9C=8B=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 6 ++ src/views/DeviceList.vue | 13 +++- src/views/DeviceRealVP.vue | 121 +++++++++++++++++++++++++++++++++++++ 3 files changed, 139 insertions(+), 1 deletion(-) create mode 100644 src/views/DeviceRealVP.vue diff --git a/src/router/index.js b/src/router/index.js index f07e0a4..cd8c1a8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -8,6 +8,7 @@ import UserListVue from "@/views/UserList.vue"; import ImVue from "@/views/Im.vue"; import CIDListVue from "@/views/CIDList.vue"; import CIDLog from "@/views/CIDLog.vue"; +import DeviceRealVP from "@/views/DeviceRealVP.vue"; const routes = [ { @@ -30,6 +31,11 @@ const routes = [ name: 'Device', component: DeviceListVue }, + { + path: '/deviceRealVP', + name: 'DeviceRealVP', + component: DeviceRealVP + }, { path: '/im', name: 'Im', diff --git a/src/views/DeviceList.vue b/src/views/DeviceList.vue index dc602be..d9c8091 100644 --- a/src/views/DeviceList.vue +++ b/src/views/DeviceList.vue @@ -101,6 +101,11 @@ export default { console.log(e); } }, + playRealVp(index) { + var id = this.tableData[index].ID; + localStorage.setItem("realvp_device_id", id); + router.push("/deviceRealVP"); + }, async deleteDevice(index) { var id = this.tableData[index].ID; var delete_data = { @@ -416,7 +421,7 @@ export default { label="设备信息" width="150" > - + diff --git a/src/views/DeviceRealVP.vue b/src/views/DeviceRealVP.vue new file mode 100644 index 0000000..51af3fc --- /dev/null +++ b/src/views/DeviceRealVP.vue @@ -0,0 +1,121 @@ + + + + \ No newline at end of file