BUG修改 首页知识库跳转 、 能力统计 添加tooltip
This commit is contained in:
parent
32997c5f73
commit
b8e4c36223
|
@ -65,7 +65,10 @@
|
||||||
<div class="itemList" v-else-if="navSelect.indexOf('应用领域') > 0">
|
<div class="itemList" v-else-if="navSelect.indexOf('应用领域') > 0">
|
||||||
<div class="item" v-for="item in dataList" :key="item.deptId">
|
<div class="item" v-for="item in dataList" :key="item.deptId">
|
||||||
<div class="top" :class="item.show ? 'showBottom' : ''">
|
<div class="top" :class="item.show ? 'showBottom' : ''">
|
||||||
|
<a-tooltip>
|
||||||
|
<template #title>{{ item.deptName }}</template>
|
||||||
<div class="name">{{ item.deptName }}</div>
|
<div class="name">{{ item.deptName }}</div>
|
||||||
|
</a-tooltip>
|
||||||
<a-progress
|
<a-progress
|
||||||
:percent="((item.provide.length / 15) * 100).toFixed(2)"
|
:percent="((item.provide.length / 15) * 100).toFixed(2)"
|
||||||
:showInfo="false"
|
:showInfo="false"
|
||||||
|
@ -596,7 +599,7 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0.08rem 0.1rem;
|
padding: 0.08rem 0.1rem;
|
||||||
.name {
|
.name {
|
||||||
width: 3rem;
|
width: 3.2rem;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
margin-right: 0.1rem;
|
margin-right: 0.1rem;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
v-for="(item, index) in zsList"
|
v-for="(item, index) in zsList"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:class="index == 4 ? 'name-last' : ''"
|
:class="index == 4 ? 'name-last' : ''"
|
||||||
@click="selectOne(item.id)"
|
@click="openHref(item)"
|
||||||
>
|
>
|
||||||
{{ index + 1 }}-{{ item.name }}
|
{{ index + 1 }}-{{ item.name }}
|
||||||
</div>
|
</div>
|
||||||
|
@ -84,6 +84,7 @@
|
||||||
import { ref, reactive } from 'vue'
|
import { ref, reactive } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import { useStore } from 'vuex'
|
import { useStore } from 'vuex'
|
||||||
|
import { updateVisits, browsingInsert } from '@/api/home'
|
||||||
import mybus from '@/myplugins/mybus'
|
import mybus from '@/myplugins/mybus'
|
||||||
const store = useStore()
|
const store = useStore()
|
||||||
const router = useRouter()
|
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) => {
|
const assignmentMethod = (type, res) => {
|
||||||
object[type] = res.data.data.total
|
object[type] = res.data.data.total
|
||||||
// interfaceSuccess.value++
|
// interfaceSuccess.value++
|
||||||
|
|
Loading…
Reference in New Issue