From e69474ab591306dba8fa08d234ffc76ac492a5db Mon Sep 17 00:00:00 2001 From: zprobot <1727697083@qq.com> Date: Thu, 4 Apr 2024 19:46:57 +0800 Subject: [PATCH] update: link --- src/components/AeShow/index.vue | 4 +-- src/layout/Menu/index.vue | 2 +- src/router/index.js | 6 ++-- src/views/home/index.vue | 2 +- src/views/overview/index.vue | 51 +++------------------------------ 5 files changed, 11 insertions(+), 54 deletions(-) diff --git a/src/components/AeShow/index.vue b/src/components/AeShow/index.vue index ba6b9a2..a9e5329 100644 --- a/src/components/AeShow/index.vue +++ b/src/components/AeShow/index.vue @@ -132,7 +132,7 @@ const getProteinTable = async () => { const handleClose = (tag) => { dataHistory.value.splice(proteinTags.value.indexOf(tag), 1) proteinTags.value.splice(proteinTags.value.indexOf(tag), 1) - routerName.value ==='tissues' ? router.push({ path: "/ae/tissues", query: { protein: tags.value } }) : router.push({ path: "/ae/cellline", query: { protein: tags.value} }) + routerName.value ==='tissues' ? router.push({ path: "/baseline/tissues", query: { protein: tags.value } }) : router.push({ path: "/baseline/cellline", query: { protein: tags.value} }) } // qeury const queryProtein = (input) => { @@ -165,7 +165,7 @@ const queryProtein = (input) => { } }) if (proteinTags.value.length != input.value.length) { - routerName.value ==='tissues' ? router.push({ path: "/ae/tissues", query: { protein: tags.value } }) : router.push({ path: "/ae/cellline", query: { protein: tags.value } }) + routerName.value ==='tissues' ? router.push({ path: "/baseline/tissues", query: { protein: tags.value } }) : router.push({ path: "/baseline/cellline", query: { protein: tags.value } }) //router.push({ path: "/ae/tissues", query: { protein: proteinTags.value } }) } else { showImg.value = true diff --git a/src/layout/Menu/index.vue b/src/layout/Menu/index.vue index 6a2d55f..1280c20 100644 --- a/src/layout/Menu/index.vue +++ b/src/layout/Menu/index.vue @@ -17,7 +17,7 @@
Home Datasets - Absolute + Absolute
diff --git a/src/router/index.js b/src/router/index.js index e5e3086..53e25a3 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -16,17 +16,17 @@ const routes = [ component: () => import('@/views/information') }, { - path: '/ae', + path: '/baseline', name: 'overview', component: () => import('@/views/overview'), children: [ { - path: '/ae/tissues', + path: '/baseline/tissues', name: 'tissues', component: () => import('@/components/AeShow') }, { - path: '/ae/cellline', + path: '/baseline/cellline', name: 'cellline', component: () => import('@/components/AeShow') } diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 4b90b38..5bcb3a9 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -44,7 +44,7 @@
- +
- -
select type: @@ -137,23 +111,6 @@ onMounted(() => { checkedTissue.value = !status checkedCellLine.value = status }) -// const font = ["V", "i", "s", "u", "a", "l", "i", "z", "a", "t", "i", "o", "n"]; -// const fontColor = [ -// "#25BEF6", -// "#EB3E71", -// "#0BB88D", -// "#FF7B22", -// "#25BEF6", -// "#EB3E71", -// "#0BB88D", -// "#FF7B22", -// "#25BEF6", -// "#EB3E71", -// "#0BB88D", -// "#FF7B22", -// "#25BEF6", -// ]; -// input protien name const input = ref(""); const onEnter = () => { @@ -162,9 +119,9 @@ const onEnter = () => { return; } if (checkedTissue.value) { - router.push({ path: "/ae/tissues", query: { protein: [input.value] } }); + router.push({ path: "/baseline/tissues", query: { protein: [input.value] } }); } else { - router.push({ path: "/ae/cellline", query: { protein: [input.value] } }); + router.push({ path: "/baseline/cellline", query: { protein: [input.value] } }); } }; @@ -184,9 +141,9 @@ const onSearch = (val) => { } input.value = val; if (checkedTissue.value) { - router.push({ path: "/ae/tissues", query: { protein: [val] } }); + router.push({ path: "/baseline/tissues", query: { protein: [val] } }); } else { - router.push({ path: "/ae/cellline", query: { protein: [val] } }); + router.push({ path: "/baseline/cellline", query: { protein: [val] } }); } };