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