Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-training-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-training-new
Commits
a0de1d46
提交
a0de1d46
authored
9月 22, 2021
作者:
pengxiaohui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 修复用户分析数据表格字段展示错误的bug [2213]
上级
629d1fbc
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
33 行增加
和
7 行删除
+33
-7
UserTable.vue
src/modules/user-study/components/UserTable.vue
+33
-7
没有找到文件。
src/modules/user-study/components/UserTable.vue
浏览文件 @
a0de1d46
<
template
>
<
template
>
<div
class=
"user-table"
>
<div
class=
"user-table"
>
<el-table
:data=
"tableData"
stripe
size=
"medium"
height=
"calc(100% - 26px)"
style=
"width: 100%"
:header-row-style=
"
{background:'#ededed',color:'#4d4d4d'}" :header-cell-style="{background: 'transparent'}">
<el-table
:data=
"tableData"
stripe
size=
"medium"
height=
"calc(100% - 26px)"
style=
"width: 100%"
:header-row-style=
"
{background:'#ededed',color:'#4d4d4d'}" :header-cell-style="{background: 'transparent'}">
<el-table-column
prop=
"name"
label=
"客户姓名"
min-width=
"1
2
0"
/>
<el-table-column
prop=
"name"
label=
"客户姓名"
min-width=
"1
0
0"
/>
<el-table-column
prop=
"
id"
label=
"客户编号"
min-width=
"12
0"
/>
<el-table-column
prop=
"
no"
label=
"客户编号"
min-width=
"15
0"
/>
<el-table-column
prop=
"age"
label=
"年龄"
min-width=
"
10
0"
/>
<el-table-column
prop=
"age"
label=
"年龄"
min-width=
"
8
0"
/>
<el-table-column
prop=
"sex"
label=
"性别"
min-width=
"
10
0"
>
<el-table-column
prop=
"sex"
label=
"性别"
min-width=
"
8
0"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
sex
===
1
?
'男'
:
'女'
}}
</
template
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
sex
===
1
?
'男'
:
'女'
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"property"
label=
"可支配资产"
min-width=
"120"
>
<el-table-column
prop=
"property"
label=
"可支配资产"
min-width=
"120"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
disposable_assets
}}
万
</
template
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
disposable_assets
|
propertyFilter
}}
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"理财经验"
min-width=
"
12
0"
>
<el-table-column
label=
"理财经验"
min-width=
"
8
0"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
financial_experience
}}
年
</
template
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
financial_experience
|
experienceFilter
}}
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
<div
class=
"pagination"
>
<div
class=
"pagination"
>
...
@@ -21,6 +21,21 @@
...
@@ -21,6 +21,21 @@
</template>
</template>
<
script
>
<
script
>
import
{
getUserList
}
from
'../api'
import
{
getUserList
}
from
'../api'
const
propertyMap
=
{
1
:
'10万以下'
,
2
:
'10万-20万'
,
3
:
'20-50万'
,
4
:
'50-80万'
,
5
:
'80-100万'
,
6
:
'100万-300万'
,
7
:
'300万以上'
}
const
experienceMap
=
{
1
:
'没有经验'
,
2
:
'1-3年'
,
3
:
'3-5年'
,
4
:
'5年以上'
}
export
default
{
export
default
{
props
:
{
props
:
{
params
:
{
params
:
{
...
@@ -38,6 +53,14 @@ export default {
...
@@ -38,6 +53,14 @@ export default {
limit
:
10
limit
:
10
}
}
},
},
filters
:
{
propertyFilter
(
val
)
{
return
propertyMap
[
val
]
},
experienceFilter
(
val
)
{
return
experienceMap
[
val
]
}
},
watch
:
{
watch
:
{
params
:
{
params
:
{
handler
(
v
)
{
handler
(
v
)
{
...
@@ -65,6 +88,9 @@ export default {
...
@@ -65,6 +88,9 @@ export default {
box-sizing
:
border-box
;
box-sizing
:
border-box
;
height
:
484px
;
height
:
484px
;
}
}
.user-table
::v-deep
.el-table
.el-table__cell.gutter
{
background
:
#ededed
;
}
.pagination
{
.pagination
{
padding-top
:
7px
;
padding-top
:
7px
;
text-align
:
right
;
text-align
:
right
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论