BUG修改

This commit is contained in:
a0049873 2022-07-01 10:50:29 +08:00
parent cf0bb02b43
commit 97a24aa4c1
3 changed files with 68 additions and 7 deletions

View File

@ -156,6 +156,7 @@
], //, ], //,
}) })
let visible = ref(false) let visible = ref(false)
const jjssType = ref(router.currentRoute.value.query.type)
const pagination = ref({ const pagination = ref({
total: 0, total: 0,
current: 1, current: 1,
@ -177,7 +178,12 @@
}) })
const showMap = ref(true) const showMap = ref(true)
onMounted(() => { onMounted(() => {
if (jjssType.value) {
tabClick(0, jjssType.value)
} else {
tabClick(0, '视频资源') tabClick(0, '视频资源')
}
getCamera() getCamera()
mybus.off('getListByParentId') mybus.off('getListByParentId')
mybus.on('getListByParentId', (parentId) => { mybus.on('getListByParentId', (parentId) => {

View File

@ -37,8 +37,9 @@
<div <div
class="name" class="name"
v-for="(item, index) in jcList" v-for="(item, index) in jcList"
:key="item.id" :key="item.name"
:class="index == 2 ? 'name-last' : ''" :class="index == 2 ? 'name-last' : ''"
@click="selectOne2(item.name)"
> >
{{ item.name + '-' + item.num + '项' }} {{ item.name + '-' + item.num + '项' }}
</div> </div>
@ -232,6 +233,16 @@
}, },
}) })
} }
const selectOne2 = (name) => {
console.log('点击===============》', name)
router.push({
path: '/DetailsPageconetent',
query: {
type: name,
select: '基础设施',
},
})
}
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.capability-convergence { .capability-convergence {

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="navigation2"> <div class="navigation2">
<div class="item"> <div class="item" @click="jumpPage('组件服务')">
<div class="img zj"></div> <div class="img zj"></div>
<div class="name">组件服务</div> <div class="name">组件服务</div>
<div class="sl"> <div class="sl">
@ -8,7 +8,7 @@
</div> </div>
</div> </div>
<div class="item"> <div class="item" @click="jumpPage('应用资源')">
<div class="img yy"></div> <div class="img yy"></div>
<div class="name">应用资源</div> <div class="name">应用资源</div>
<div class="sl"> <div class="sl">
@ -16,7 +16,7 @@
</div> </div>
</div> </div>
<div class="item"> <div class="item" @click="jumpPage('基础设施')">
<div class="img jc"></div> <div class="img jc"></div>
<div class="name">基础设施</div> <div class="name">基础设施</div>
<div class="sl"> <div class="sl">
@ -24,7 +24,7 @@
</div> </div>
</div> </div>
<div class="item"> <div class="item" @click="jumpPage('数据资源')">
<div class="img sj"></div> <div class="img sj"></div>
<div class="name">数据资源</div> <div class="name">数据资源</div>
<div class="sl"> <div class="sl">
@ -32,7 +32,7 @@
</div> </div>
</div> </div>
<div class="item"> <div class="item" @click="jumpPage('知识库')">
<div class="img zs"></div> <div class="img zs"></div>
<div class="name">知识库</div> <div class="name">知识库</div>
<div class="sl"> <div class="sl">
@ -45,6 +45,10 @@
<script setup> <script setup>
import { selectTotal } from '@/api/home' import { selectTotal } from '@/api/home'
import { ref, onMounted, onBeforeUnmount } from 'vue' import { ref, onMounted, onBeforeUnmount } from 'vue'
import { useRouter } from 'vue-router'
import { useStore } from 'vuex'
const router = useRouter()
const store = useStore()
// import mybus from '@/myplugins/mybus' // import mybus from '@/myplugins/mybus'
const yyNum = ref('') const yyNum = ref('')
const zjNum = ref('') const zjNum = ref('')
@ -81,6 +85,23 @@
} }
}) })
}) })
function jumpPage(type) {
// store
store.commit('home/selectCardsData', {
selectCardsnum: type,
})
console.log(
'选中===================>',
store.getters['home/selectCardsnum']
)
// router.push({ path: '/DetailsPageconetent' })
router.push({
path: '/DetailsPageconetent',
query: {
select: type,
},
})
}
// const findZywMessage = () => { // const findZywMessage = () => {
// zywMessage().then((res) => { // zywMessage().then((res) => {
// // console.log('findMessage============>', res) // // console.log('findMessage============>', res)
@ -149,5 +170,28 @@
} }
} }
} }
.item:hover {
cursor: pointer;
.img {
animation: turn 5s linear infinite;
}
}
}
@keyframes turn {
0% {
-webkit-transform: rotateY(0deg);
}
25% {
-webkit-transform: rotateY(90deg);
}
50% {
-webkit-transform: rotateY(180deg);
}
75% {
-webkit-transform: rotateY(270deg);
}
100% {
-webkit-transform: rotateY(360deg);
}
} }
</style> </style>