diff --git a/front/src/views/assignCase/components/AssignCaseDetailPage.vue b/front/src/views/assignCase/components/AssignCaseDetailPage.vue index 91839f92..7055107c 100644 --- a/front/src/views/assignCase/components/AssignCaseDetailPage.vue +++ b/front/src/views/assignCase/components/AssignCaseDetailPage.vue @@ -108,6 +108,11 @@ import { useRouter } from 'vue-router' const router = useRouter() let val = router.currentRoute.value.query.val + const scrollTop = ref(0) + let dataFrom = ref({}) + const domArr = ref([]) + const selectNow = ref('') + let tabName = ref('案例背景') console.log('val', val) //图片样式切换 function pictureFormat(name) { @@ -122,9 +127,9 @@ val = name router.push({ path: 'AssignCaseDetailPage', query: { val } }) } - let dataFrom = ref({}) const init = () => { val = router.currentRoute.value.query.val + tabName.value = '案例背景' if (val == '道路保洁监管场景') { dataFrom.value = { name: '道路保洁监管场景', @@ -216,7 +221,6 @@ }, { immediate: true } ) - let tabName = ref('案例背景') //tab点击事件 const tabSwitch = (item, index) => { tabName.value = item.title @@ -258,13 +262,9 @@ view.style.top = '220px' } } - const scrollTop = ref(0) - const domArr = ref([]) - const selectNow = ref('') onMounted(() => { // console.clear() window.addEventListener('scroll', () => { - debugger domArr.value = document.querySelectorAll( '.assign-case-detail-page-content-center-card' )