From 2390dd9eb74cb7aa152a36a40fcaf1706a8e9767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=93=B6=E4=B8=AD=E6=B2=99?= <464652163@qq.com> Date: Sat, 29 Jun 2024 11:04:11 +0800 Subject: [PATCH] 123 --- src/assets/qd.png | Bin 0 -> 1253 bytes src/components/Header.vue | 3 + src/components/Sidebar.vue | 10 ++-- src/router/index.js | 10 ++-- src/views/Data.vue | 119 ++++++++++++++++++++++++++++++++++++- 5 files changed, 129 insertions(+), 13 deletions(-) create mode 100644 src/assets/qd.png diff --git a/src/assets/qd.png b/src/assets/qd.png new file mode 100644 index 0000000000000000000000000000000000000000..3cb955bf8433d3930c34b28e86da22ff713d6f8a GIT binary patch literal 1253 zcmVPx(pGibPR9Hv7S6yrrRTTctEG?}hCX(`&@NnWHeCO+|i8f;^Cwi=s$HB>}G7Mn1E%8kP#u?ad z2V=6SN|2^Y0J3@A7`X7A{eL;E>^5S0Y9$|2mN{8fcqs^hGA7Ie87(>15N>W`;xk?n zFwmFL^cRJ#?PF7hrtk6MFKjA;W8l4vrXLZ;!GkU9$;|%dHMpVaBp3rhR3f(+d%QB} z1nye^TXN_N%*kOT0z$tRaJP-QpsMr|&}}a*gKGiQ6#*lD0VWmoR*s$9*mLz=O;1Vz zDGp%03rk-bn*Nv<7M*OYl1pdKrVQJ~y^1$0#b?SsvZ~-#qJ#OqBJMP4O`JH}0mccNDset`Wqg^EPkF8%;c=E2Dk18oq zPJm#IC)dU3DZ5W4%{>Cs>|8$hmwdN{n;#4iPq^kH3>i_qg=AH^3gFRvgEAdR#}b2b zL^)E_pq0Sq_J`+*I>)1lAKlC=#J*u@`X;OGWmWkFzy|9FD3jI_LeH!vtBO$T0@W@V z861~tYC6&5xsA7xC!9$;_t$Rb5XUu23`$25)3V1 zVYq^-j~kl4)o;RW-7WV9{>h4qXDbMe42l!;<+=H)lapq$H?@>Lo~L901;6 zqQjYJ;+!9FZm~s=6XEEnL+rc=iy#E46W~?=8wqrsfe9%H01}_;-L~PQhNKy zcRhZkth6^hFeFr?XnC5gJKA>C{&`pJ#*#-%SEvyZIp6sLbRSIqXjxA2oGiMuGI1;u zO{yyfCm03OXGD0&e)SHj%5g&ZDd5;ciyFFosxWvuqb2WOF*rG_9D{8Nh)2s}x$-YG zFC}-?P{NE6)k`W+v8=1boLxif)n}iQV2%_%imw`4^6?cjCmekD9ML9#KelTqfu;bi zV?aEZti_CXGBN!PU*Noy&B;bqo6iBf-z^3)8q+a7eaFFV4e#E(hN}7i7FVL>Yf_Tv zrP2OGvK;t|J@ 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 }; }, };