提交 6d510dc7 authored 作者: Ma's avatar Ma

修复兼容问题

上级 40fa8e5b
<template> <template>
<div>
<MapTitle text="创新示范区县(市、区)排名" /> <MapTitle text="创新示范区县(市、区)排名" />
<el-scrollbar height="240px"> <el-scrollbar height="240px">
<el-table <div class="tableBox">
:data="tableData"
size="small" <el-row class="tabletit">
style="width: 100%" <el-col :span="6">序号</el-col>
empty-text="暂无数据" <el-col :span="12">地区</el-col>
header-row-class-name="tabs-header" <el-col :span="6">分数</el-col>
> </el-row>
<el-table-column label="序号" width="120" align="center"> <el-row class="table_cell" v-for="(item, index) in tableData" :key="index">
<template #default="scope"> <el-col :span="6">
<div> <div>
<div v-if="scope.$index > 2">{{ scope.$index + 1 }}</div> <div v-if="index > 2">{{ index + 1 }}</div>
<div <div v-else class="tab-index" :style="{ background: colors[index + 1] }">{{ index + 1 }}
v-else </div>
class="tab-index"
:style="{ background: `${colors[scope.$index + 1]}` }"
>{{ scope.$index + 1 }}</div>
</div> </div>
</template> </el-col>
</el-table-column> <el-col :span="12">{{ item.name }}</el-col>
<el-table-column prop="name" label="地区" align="center" /> <el-col :span="6">{{ item.score }}</el-col>
<el-table-column prop="score" label="分数" width="120" align="center"> </el-row>
<template #default="scope"> </div>
<div>{{ scope.row.score }}</div>
</template>
</el-table-column>
</el-table>
</el-scrollbar> </el-scrollbar>
</div>
</template> </template>
<script lang="ts"> <script>
import { defineComponent } from "vue";
import MapTitle from "@/components/mapTitle/index.vue"; import MapTitle from "@/components/mapTitle/index.vue";
import { Bottom, Top } from "@element-plus/icons"; import { Bottom, Top } from "@element-plus/icons";
import Mock from "./mock"; import Mock from "./mock";
import { mapState } from "vuex"; import { mapState } from "vuex";
export default defineComponent({ export default {
components: { components: {
MapTitle, MapTitle,
Bottom, Bottom,
Top, Top,
}, },
setup() {},
computed: { computed: {
...mapState({ ...mapState({
curDataType: (state) => state.curDataType, curDataType: (state) => state.curDataType,
...@@ -61,10 +55,7 @@ export default defineComponent({ ...@@ -61,10 +55,7 @@ export default defineComponent({
}, },
}; };
}, },
methods: { };
detailsHandle() {},
},
});
</script> </script>
<style> <style>
/* 火狐出行滚动条 */ /* 火狐出行滚动条 */
...@@ -72,40 +63,50 @@ export default defineComponent({ ...@@ -72,40 +63,50 @@ export default defineComponent({
display: none; display: none;
width: 0 !important width: 0 !important
} }
.rank-list .el-scrollbar__wrap { .rank-list .el-scrollbar__wrap {
width: calc( 100% + 20px); width: calc(100% + 20px);
} }
.tabs-header .el-table__cell {
background-color: #0e4781 !important; </style>
color: #d4f7ff; <style lang="scss" scoped>
.tableBox {
color: #ffffff;
width: calc(100% - 17px);
.tabletit .el-col {
font-weight: bold; font-weight: bold;
font-size: 14px; font-size: 14px;
} background-color: #0e4781 !important;
.el-table__body tr:hover > td { }
background-color: #134087 !important;
} .el-col {
.el-table tr {
background: #093971 !important;
}
.el-table td.el-table__cell,
.el-table th.el-table__cell.is-leaf {
border-bottom: 1px dashed #125ba3;
}
.el-scrollbar {
height: 86%;
border-bottom: 1px dashed #125ba3;
}
.el-table .cell {
color: #d4f7ff; color: #d4f7ff;
font-size: 12px;
padding: 8px 0;
display: flex;
align-items: center;
justify-content: center;
line-height: 23px;
}
.el-row {
border-bottom: 1px dashed #10529a;
background-color: #093971;
}
.tab-index {
font-weight: bold;
}
} }
</style>
<style lang="scss" scoped>
.el-scrollbar { .el-scrollbar {
margin-top: 10px; margin-top: 10px;
} }
.tab-other-index {
text-align: center;
}
.tab-index { .tab-index {
border-radius: 50%; border-radius: 50%;
display: flex; display: flex;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论