From b8e4c362238250cbeedb5d2ef61a14053a53cfb7 Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Tue, 26 Jul 2022 09:51:47 +0800 Subject: [PATCH] =?UTF-8?q?BUG=E4=BF=AE=E6=94=B9=20=20=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E7=9F=A5=E8=AF=86=E5=BA=93=E8=B7=B3=E8=BD=AC=20=E3=80=81=20?= =?UTF-8?q?=E8=83=BD=E5=8A=9B=E7=BB=9F=E8=AE=A1=20=E6=B7=BB=E5=8A=A0toolti?= =?UTF-8?q?p?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/AtlasResources.vue | 7 +++-- .../components/CapabilityConvergence.vue | 28 ++++++++++++++++++- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/front/src/views/abilityStatistics/components/AtlasResources.vue b/front/src/views/abilityStatistics/components/AtlasResources.vue index 49131229..9992ac31 100644 --- a/front/src/views/abilityStatistics/components/AtlasResources.vue +++ b/front/src/views/abilityStatistics/components/AtlasResources.vue @@ -65,7 +65,10 @@
-
{{ item.deptName }}
+ + +
{{ item.deptName }}
+
{{ index + 1 }}-{{ item.name }}
@@ -84,6 +84,7 @@ import { ref, reactive } from 'vue' import { useRouter } from 'vue-router' import { useStore } from 'vuex' + import { updateVisits, browsingInsert } from '@/api/home' import mybus from '@/myplugins/mybus' const store = useStore() const router = useRouter() @@ -193,6 +194,31 @@ } } } + + const openHref = (item) => { + console.log(item.id, 'wowowo') + console.log(item.visits, 'wowowo') + browsingInsert({ resourceId: item.id }).then((res) => { + // console.log(res) + }) + const arrList = ref([]) + arrList.value = JSON.parse(window.sessionStorage.getItem('visits')) + if (arrList.value.indexOf(item.id) === -1) { + arrList.value.push(item.id) + updateVisits({ + id: item.id, + visits: item.visits || '0', + }).then(() => { + window.sessionStorage.setItem('visits', JSON.stringify(arrList.value)) + }) + } + window.open(item.link) + // window.open( + // window.SITE_CONFIG.previewUrl + + // 'hisense_office/onlinePreview?url=' + + // btoa(encodeURI(item.fileHref)) + // ) + } const assignmentMethod = (type, res) => { object[type] = res.data.data.total // interfaceSuccess.value++