Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
member
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
member
member
Commits
b5c8910d
Commit
b5c8910d
authored
Jan 05, 2022
by
chenyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: update
parent
f101a5c4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
16 deletions
+19
-16
customerDetail.less
src/components/allCustomers/customerDetail.less
+1
-1
customerDetail.vue
src/components/allCustomers/customerDetail.vue
+11
-15
info.js
src/components/allCustomers/info.js
+7
-0
No files found.
src/components/allCustomers/customerDetail.less
View file @
b5c8910d
...
...
@@ -176,7 +176,7 @@
display: flex;
padding: 20px 0 0;
transition: height 1s;
&
.shrink{
.shrink{
height: 47px;
overflow: hidden;
box-sizing: border-box;
...
...
src/components/allCustomers/customerDetail.vue
View file @
b5c8910d
...
...
@@ -122,9 +122,9 @@
</div>
-->
</div>
<div
class=
"max1600"
>
<div
:class=
"['extend-description'
,toggleTag?'':'shrink'
]"
>
<div
:class=
"['extend-description']"
>
<!-- 开卡拓展字段 -->
<
template
<
div
:class=
"[toggleTag?'':'shrink']"
v-if=
"showFieldType===1&&(extendInfo.openField||extendInfo.openChildrenField)"
>
<el-descriptions
:column=
"3"
labelClassName=
"info-lebel"
contentClassName=
"info-content"
>
...
...
@@ -150,15 +150,10 @@
</el-tooltip>
</el-descriptions-item>
</el-descriptions>
<template
v-if=
"extendInfo&&extendInfo.openField"
>
<div
class=
"toggleTag"
@
click=
"toggleTag=!toggleTag"
v-if=
"babyStr?extendInfo.openField.length>2:extendInfo.openField.length>3"
>
{{
toggleTag
?
'收起'
:
'展开更多'
}}
<i
:class=
"toggleTag ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"
/>
</div>
</
template
>
</template>
</div>
<!-- 会员信息字段 -->
<
template
v-if=
"showFieldType===2&&extendInfo.fieldList"
>
<
div
:class=
"[toggleTag?'':'shrink']"
v-if=
"showFieldType===2&&extendInfo.fieldList"
>
<el-descriptions
:column=
"3"
labelClassName=
"info-lebel"
...
...
@@ -172,11 +167,8 @@
{{
item
.
fieldValue
}}
</el-descriptions-item>
</el-descriptions>
<div
class=
"toggleTag"
@
click=
"toggleTag=!toggleTag"
v-if=
"extendInfo.fieldList.length>3"
>
{{
toggleTag
?
'收起'
:
'展开更多'
}}
<i
:class=
"toggleTag ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"
/>
</div>
</
template
>
</div>
<div
class=
"empty-block"
v-if=
"(showFieldType===1&&!extendInfo.openField&&!extendInfo.openChildrenField)||(showFieldType===2&&!extendInfo.fieldList)"
...
...
@@ -184,6 +176,10 @@
<img
:src=
"require('../../../static/img/no-data_icon.png')"
alt=
""
>
<p>
暂无数据
</p>
</div>
<div
class=
"toggleTag"
@
click=
"toggleTag=!toggleTag"
v-if=
"toggleShow"
>
{{
toggleTag
?
'收起'
:
'展开更多'
}}
<i
:class=
"toggleTag ? 'el-icon-arrow-up' : 'el-icon-arrow-down'"
/>
</div>
</div>
</div>
</div>
...
...
src/components/allCustomers/info.js
View file @
b5c8910d
...
...
@@ -228,6 +228,13 @@ export default {
},
},
computed
:
{
toggleShow
:
function
()
{
if
(
this
.
showFieldType
===
2
&&
this
.
extendInfo
&&
this
.
extendInfo
.
fieldList
&&
this
.
extendInfo
.
fieldList
.
length
>
3
)
return
true
;
if
(
this
.
showFieldType
===
1
&&
this
.
extendInfo
&&
this
.
extendInfo
.
openField
)
{
return
this
.
babyStr
?
this
.
extendInfo
.
openField
.
length
>
2
:
this
.
extendInfo
.
openField
.
length
>
3
}
return
false
},
...
mapState
([
'showEditClique'
]),
},
created
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment