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
7926fc02
Commit
7926fc02
authored
Dec 27, 2021
by
chenyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: update
parent
69bc53dc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
6 deletions
+36
-6
customerDetail.vue
src/components/allCustomers/customerDetail.vue
+6
-4
info.js
src/components/allCustomers/info.js
+30
-2
No files found.
src/components/allCustomers/customerDetail.vue
View file @
7926fc02
...
...
@@ -126,10 +126,12 @@
</el-tooltip>
</el-descriptions-item>
</el-descriptions>
<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
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>
<!-- 会员信息字段 -->
<
template
v-if=
"showFieldType===2&&extendInfo.fieldList"
>
...
...
src/components/allCustomers/info.js
View file @
7926fc02
...
...
@@ -42,6 +42,8 @@ export default {
// 开卡字段、扩展字段
openField
:
[],
fieldList
:
[],
openChildrenField
:
[],
babyConfigTemplate
:{}
},
babyStr
:
''
,
// 宝宝信息
// 标签备注
...
...
@@ -87,6 +89,7 @@ export default {
babyDialogVisible
:
false
,
// 宝宝信息弹窗
nationCodeList
:
[],
// 手机区号列表
gradeList
:
[],
// 等级列表
cliqueGradeList
:
[],
// 集团等级列表
count
:
0
,
// 模块列表
customerInfoItemList
:
[
...
...
@@ -238,6 +241,7 @@ export default {
this
.
getEnterpriseInfo
();
this
.
getcodeList
();
this
.
getGradeList
();
this
.
getCliqueGradeList
();
},
methods
:
{
initData
()
{
...
...
@@ -260,9 +264,14 @@ export default {
const
ret
=
res
.
data
.
result
;
if
(
api
===
'memberLoadBaseDetail'
)
{
this
.
member
=
Object
.
assign
({},
ret
.
member
);
const
extendInfo
=
{
babyConfigTemplate
:
ret
.
extendInfo
.
babyConfigTemplate
||
{},
fieldList
:
ret
.
extendInfo
.
fieldList
||
[],
openChildrenField
:
ret
.
extendInfo
.
openChildrenField
||
[],
openField
:
ret
.
extendInfo
.
openField
||
[]
}
const
babyArr
=
[];
Array
.
isArray
(
ret
.
extendInfo
.
openChildrenField
)
&&
ret
.
extendInfo
.
openChildrenField
.
forEach
(
el
=>
extendInfo
.
openChildrenField
.
forEach
(
el
=>
babyArr
.
push
(
el
.
sonFields
[
0
].
fieldValue
&&
el
.
sonFields
[
0
].
fieldName
===
'宝宝名称'
?
el
.
sonFields
[
0
].
fieldValue
...
...
@@ -407,6 +416,10 @@ export default {
checkStatus
(
err
);
});
},
showGradeDialog
(
type
){
this
.
isClique
=
type
this
.
gradeDialogVisible
=
true
;
},
// 等级列表
getGradeList
()
{
doFetch
(
url
.
gradeList
)
...
...
@@ -422,6 +435,21 @@ export default {
checkStatus
(
err
);
});
},
// 集团等级列表
getCliqueGradeList
()
{
doFetch
(
url
.
cliqueGradeList
)
.
then
(
res
=>
{
if
(
res
.
data
.
errorCode
===
0
)
{
this
.
cliqueGradeList
=
res
.
data
.
result
||
[];
}
else
{
checkFalse
(
res
.
data
.
message
);
return
false
;
}
})
.
catch
(
err
=>
{
checkStatus
(
err
);
});
},
},
components
:
{
'v-nav'
:
nav
,
...
...
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