Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
cxsfjx_project_echarts
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
邓文彬
cxsfjx_project_echarts
Commits
6d510dc7
提交
6d510dc7
authored
6月 30, 2022
作者:
Ma
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复兼容问题
上级
40fa8e5b
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
65 行增加
和
64 行删除
+65
-64
index.vue
src/views/dataCenter/map/model/RankList/index.vue
+65
-64
没有找到文件。
src/views/dataCenter/map/model/RankList/index.vue
浏览文件 @
6d510dc7
<
template
>
<MapTitle
text=
"创新示范区县(市、区)排名"
/>
<div>
<MapTitle
text=
"创新示范区县(市、区)排名"
/>
<el-scrollbar
height=
"240px"
>
<el-table
:data=
"tableData"
size=
"small"
style=
"width: 100%"
empty-text=
"暂无数据"
header-row-class-name=
"tabs-header"
>
<el-table-column
label=
"序号"
width=
"120"
align=
"center"
>
<template
#
default=
"scope"
>
<div>
<div
v-if=
"scope.$index > 2"
>
{{
scope
.
$index
+
1
}}
</div>
<div
v-else
class=
"tab-index"
:style=
"
{ background: `${colors[scope.$index + 1]}` }"
>
{{
scope
.
$index
+
1
}}
</div>
</div>
</
template
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"地区"
align=
"center"
/>
<el-table-column
prop=
"score"
label=
"分数"
width=
"120"
align=
"center"
>
<
template
#
default=
"scope"
>
<div>
{{
scope
.
row
.
score
}}
</div>
</
template
>
</el-table-column>
</el-table>
</el-scrollbar>
<el-scrollbar
height=
"240px"
>
<div
class=
"tableBox"
>
<el-row
class=
"tabletit"
>
<el-col
:span=
"6"
>
序号
</el-col>
<el-col
:span=
"12"
>
地区
</el-col>
<el-col
:span=
"6"
>
分数
</el-col>
</el-row>
<el-row
class=
"table_cell"
v-for=
"(item, index) in tableData"
:key=
"index"
>
<el-col
:span=
"6"
>
<div>
<div
v-if=
"index > 2"
>
{{
index
+
1
}}
</div>
<div
v-else
class=
"tab-index"
:style=
"
{ background: colors[index + 1] }">
{{
index
+
1
}}
</div>
</div>
</el-col>
<el-col
:span=
"12"
>
{{
item
.
name
}}
</el-col>
<el-col
:span=
"6"
>
{{
item
.
score
}}
</el-col>
</el-row>
</div>
</el-scrollbar>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
defineComponent
}
from
"vue"
;
<
script
>
import
MapTitle
from
"@/components/mapTitle/index.vue"
;
import
{
Bottom
,
Top
}
from
"@element-plus/icons"
;
import
Mock
from
"./mock"
;
import
{
mapState
}
from
"vuex"
;
export
default
defineComponent
(
{
export
default
{
components
:
{
MapTitle
,
Bottom
,
Top
,
},
setup
()
{},
computed
:
{
...
mapState
({
curDataType
:
(
state
)
=>
state
.
curDataType
,
...
...
@@ -61,10 +55,7 @@ export default defineComponent({
},
};
},
methods
:
{
detailsHandle
()
{},
},
});
};
</
script
>
<
style
>
/* 火狐出行滚动条 */
...
...
@@ -72,40 +63,50 @@ export default defineComponent({
display
:
none
;
width
:
0
!important
}
.rank-list
.el-scrollbar__wrap
{
width
:
calc
(
100%
+
20px
);
}
.tabs-header
.el-table__cell
{
background-color
:
#0e4781
!important
;
color
:
#d4f7ff
;
font-weight
:
bold
;
font-size
:
14px
;
}
.el-table__body
tr
:hover
>
td
{
background-color
:
#134087
!important
;
}
.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
;
width
:
calc
(
100%
+
20px
);
}
</
style
>
<
style
lang=
"scss"
scoped
>
.tableBox
{
color
:
#ffffff
;
width
:
calc
(
100%
-
17px
);
.tabletit
.el-col
{
font-weight
:
bold
;
font-size
:
14px
;
background-color
:
#0e4781
!
important
;
}
.el-col
{
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
;
}
}
.el-scrollbar
{
margin-top
:
10px
;
}
.tab-other-index
{
text-align
:
center
;
}
.tab-index
{
border-radius
:
50%
;
display
:
flex
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论