-
{{ item.deptName }}
+
+ {{ 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++