diff --git a/src/assets/qd.png b/src/assets/qd.png new file mode 100644 index 0000000..3cb955b Binary files /dev/null and b/src/assets/qd.png differ diff --git a/src/components/Header.vue b/src/components/Header.vue index e421973..fb83b9d 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -133,6 +133,9 @@ export default { font-size: 20px; } } + .right { + font-size: 20px; + } } .el-icon-back { border: 1px solid #e9e9e9; diff --git a/src/components/Sidebar.vue b/src/components/Sidebar.vue index 8e4fc0f..c131523 100644 --- a/src/components/Sidebar.vue +++ b/src/components/Sidebar.vue @@ -93,11 +93,11 @@ export default { name: "驱动管理", index: "/page", }, - // { - // id: 3 - 2, - // name: "实时数据", - // index: "/data", - // }, + { + id: 3 - 3, + name: "实时数据", + index: "/data", + }, // { // id: 3 - 3, // name: "上报管理", diff --git a/src/router/index.js b/src/router/index.js index 795aed9..b383398 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -32,11 +32,11 @@ const router = createRouter({ name: 'page', component: () => import('../views/Page.vue') }, - // { - // path: '/data', - // name: 'data', - // component: () => import('../views/Data.vue') - // }, + { + path: '/data', + name: 'data', + component: () => import('../views/Data.vue') + }, // { // path: '/report', // name: 'report', diff --git a/src/views/Data.vue b/src/views/Data.vue index bfa33ba..684fe26 100644 --- a/src/views/Data.vue +++ b/src/views/Data.vue @@ -1,7 +1,48 @@ @@ -15,21 +56,93 @@ export default { setup() { const ruleFormRef = ref(null); const state = reactive({ + indexi: 0, + qdDatas: [{ + id: 1, + name: '驱动一', + },{ + id: 2, + name: '驱动二', + },{ + id: 3, + name: '驱动三', + },{ + id: 4, + name: '驱动四', + },{ + id: 5, + name: '驱动五', + }], + data: [{ + id: 11, + label: '设备一', + }, { + id: 12, + label: '设备二', + }, { + id: 13, + label: '设备三', + + }], + tableData: [] }); onMounted(() => { }); - + const changeQd = (i) => { + state.indexi = i; + } return { ...toRefs(state), + changeQd }; }, };