2024-05-22 08:44:08 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
import { rightBottom } from "@/api";
|
|
|
|
import SeamlessScroll from "@/components/seamless-scroll";
|
|
|
|
import { useSettingStore } from "@/stores";
|
|
|
|
import { storeToRefs } from "pinia";
|
|
|
|
import EmptyCom from "@/components/empty-com";
|
|
|
|
import { ElMessage } from "element-plus";
|
|
|
|
|
|
|
|
const settingStore = useSettingStore();
|
|
|
|
const { defaultOption, indexConfig } = storeToRefs(settingStore);
|
2024-05-31 18:55:17 +08:00
|
|
|
// 处理数据
|
|
|
|
import { useDataStore } from "@/stores/index";
|
|
|
|
const dataStore = useDataStore();
|
|
|
|
const { provinceDto } = storeToRefs(dataStore)
|
|
|
|
|
|
|
|
|
2024-05-22 08:44:08 +08:00
|
|
|
const state = reactive<any>({
|
|
|
|
list: [],
|
|
|
|
defaultOption: {
|
|
|
|
...defaultOption.value,
|
2024-05-24 17:42:14 +08:00
|
|
|
singleHeight: 205, //单步运动停止的高度,与滚动盒子的高度进行适配
|
2024-05-22 08:44:08 +08:00
|
|
|
limitScrollNum: 3,
|
2024-05-24 17:42:14 +08:00
|
|
|
// singleWaitTime:3000, // 停顿间隔
|
|
|
|
step:1 //滚动速度,数字越大,滚动越快
|
2024-05-22 08:44:08 +08:00
|
|
|
},
|
|
|
|
scroll: true,
|
|
|
|
});
|
|
|
|
|
|
|
|
const comName = computed(() => {
|
|
|
|
if (indexConfig.value.rightBottomSwiper) {
|
|
|
|
return SeamlessScroll;
|
|
|
|
} else {
|
|
|
|
return EmptyCom;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
2024-05-24 17:42:14 +08:00
|
|
|
<div class="right_bottom">
|
|
|
|
<div class="table-title">
|
|
|
|
<div class="title-item">排名</div>
|
|
|
|
<div class="title-item">省份/地市 </div>
|
|
|
|
<div class="title-item">本科</div>
|
|
|
|
<div class="title-item">专科</div>
|
|
|
|
<div class="title-item">专升本</div>
|
|
|
|
</div>
|
2024-05-26 20:49:54 +08:00
|
|
|
<div class="right_bottom_wrap" :class="{ 'overflow-y-auto': true }">
|
|
|
|
<!-- <component :is="comName" :list="state.list" v-model="state.scroll"
|
2024-05-24 17:42:14 +08:00
|
|
|
:singleHeight="state.defaultOption.singleHeight" :step="state.defaultOption.step"
|
|
|
|
:limitScrollNum="state.defaultOption.limitScrollNum" :hover="state.defaultOption.hover"
|
2024-05-26 20:49:54 +08:00
|
|
|
:singleWaitTime="state.defaultOption.singleWaitTime" :wheel="state.defaultOption.wheel"> -->
|
2024-05-31 18:55:17 +08:00
|
|
|
<div class="table-row" v-for="(item, i) in provinceDto">
|
2024-05-24 17:42:14 +08:00
|
|
|
<div class="row-item">{{ i + 1 }}</div>
|
|
|
|
<div class="row-item">{{ item.provinceName }}</div>
|
|
|
|
<div class="row-item" v-for="(peo) in item.degreesDto">{{ peo.paymentCompleted }}</div>
|
|
|
|
</div>
|
2024-05-26 20:49:54 +08:00
|
|
|
<!-- </component> -->
|
2024-05-24 17:42:14 +08:00
|
|
|
</div>
|
2024-05-22 08:44:08 +08:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
|
.right_bottom {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
|
2024-05-24 17:42:14 +08:00
|
|
|
.table-title {
|
2024-05-22 08:44:08 +08:00
|
|
|
display: flex;
|
2024-05-24 17:42:14 +08:00
|
|
|
height: 50px;
|
2024-05-22 08:44:08 +08:00
|
|
|
align-items: center;
|
2024-05-24 17:42:14 +08:00
|
|
|
color: #545e70;
|
|
|
|
border-radius: 10px 10px 0px 0px;
|
|
|
|
border: 1px solid #33343F;
|
2024-05-22 08:44:08 +08:00
|
|
|
|
2024-05-24 17:42:14 +08:00
|
|
|
.title-item {
|
|
|
|
width: 100px;
|
|
|
|
text-align: center;
|
2024-05-22 08:44:08 +08:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.right_bottom_wrap {
|
|
|
|
overflow: hidden;
|
2024-05-24 17:42:14 +08:00
|
|
|
height: 210px;
|
|
|
|
|
|
|
|
.table-row {
|
|
|
|
display: flex;
|
|
|
|
height: 50px;
|
|
|
|
border-bottom: 1px solid #33343F;
|
|
|
|
border-top: 1px solid #33343F;
|
|
|
|
line-height: 50px;
|
|
|
|
margin-bottom: 2px;
|
|
|
|
color:#E6E6FB;
|
|
|
|
&:hover{
|
|
|
|
background: repeating-linear-gradient(0deg, #0042b3 0%, #0049ca 50%, #0042b3 100%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.row-item {
|
|
|
|
width: 100px;
|
|
|
|
text-align: center;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
}
|
2024-05-22 08:44:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.overflow-y-auto {
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
2024-05-26 20:49:54 +08:00
|
|
|
::-webkit-scrollbar {
|
|
|
|
width: 0px;
|
|
|
|
}
|
2024-05-22 08:44:08 +08:00
|
|
|
</style>
|