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
f746960d
Commit
f746960d
authored
Feb 23, 2022
by
liuchenxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 营销记录修改
parent
e4b11283
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
9 deletions
+32
-9
customerDetail.vue
src/components/allCustomers/customerDetail.vue
+10
-4
info.js
src/components/allCustomers/info.js
+15
-0
url.js
src/components/axios/url.js
+2
-1
datePickRuleMixin.js
...ts/marketingRecord/components/mixins/datePickRuleMixin.js
+4
-3
index.vue
src/components/marketingRecord/index.vue
+1
-1
No files found.
src/components/allCustomers/customerDetail.vue
View file @
f746960d
...
...
@@ -320,14 +320,20 @@
<div
class=
"middle"
>
<div
class=
"label"
>
{{ item.label }}
<el-tooltip
v-if=
"item.key == 'numOfMarket'"
content=
"只统计近
一
年的数据"
placement=
"top"
>
<el-tooltip
v-if=
"item.key == 'numOfMarket'"
content=
"只统计近
半
年的数据"
placement=
"top"
>
<i
class=
"iconfont icon-QuestionCircleOutlined"
style=
"color: #909399"
/>
</el-tooltip>
</div>
<div
class=
"num"
>
{{ memberInfo[item.key]
?(item.key==='storedValue'?(memberInfo[item.key]|storedValue):(memberInfo[item.key]))
:0 }}
{{
memberInfo[item.key]
? item.key === "storedValue"
? memberInfo[item.key] || storedValue
: item.key == "numOfMarket"
? marketingRecordNum
: memberInfo[item.key]
: 0
}}
</div>
</div>
</div>
...
...
src/components/allCustomers/info.js
View file @
f746960d
...
...
@@ -198,6 +198,7 @@ export default {
},
{
title
:
'客户日志'
,
name
:
'log'
,
class
:
'log-info-contain'
},
],
marketingRecordNum
:
0
};
},
watch
:
{
...
...
@@ -240,6 +241,7 @@ export default {
created
()
{
this
.
$store
.
commit
(
'mutations-slide'
,
true
);
this
.
memberId
=
this
.
$route
.
query
.
memberId
;
this
.
getMarketingRecordNum
();
},
mounted
()
{
const
rightWrap
=
document
.
querySelector
(
'.right-maincontainer'
);
...
...
@@ -456,6 +458,19 @@ export default {
checkStatus
(
err
);
});
},
async
getMarketingRecordNum
()
{
try
{
const
res
=
await
doFetch
(
url
.
getMarketingRecordNum
);
if
(
res
.
data
.
errorCode
==
0
)
{
this
.
marketingRecordNum
=
res
.
data
.
result
||
0
;
console
.
log
(
this
.
marketingRecordNum
);
}
else
{
checkFalse
(
res
.
data
.
message
);
}
}
catch
(
err
)
{
checkStatus
(
err
);
}
}
},
components
:
{
'v-nav'
:
nav
,
...
...
src/components/axios/url.js
View file @
f746960d
...
...
@@ -93,7 +93,8 @@ const urlConfig = {
ecmLogPage
:
'/api-marketing/member/ecm-log-page'
,
cardLogPage
:
'/api-marketing/member/card-log-page'
,
messageLogPage
:
'/api-marketing/member/sms-log-page'
,
wechatLogPage
:
'/api-marketing/member/wechat-log-page'
wechatLogPage
:
'/api-marketing/member/wechat-log-page'
,
getMarketingRecordNum
:
'/api-marketing/member/marketing-count'
}
const
defaultUrl
=
Object
.
assign
({},
urlConfig
);
...
...
src/components/marketingRecord/components/mixins/datePickRuleMixin.js
View file @
f746960d
...
...
@@ -5,9 +5,10 @@ export default {
// 四个页面选择器的禁用规则
pickerOptions
:
{
disabledDate
:
val
=>
{
// 只能筛选一年之内得数据,并且最大跨度为六个月
const
yearBefore
=
Date
.
now
()
-
12
*
30
*
24
*
60
*
60
*
1000
;
const
threeMonths
=
3
*
30
*
24
*
60
*
60
*
1000
;
const
curMonth
=
new
Date
().
getMonth
()
+
1
;
// 只能筛选半年之内得数据,并且最大跨度为六个月
const
yearBefore
=
new
Date
().
setMonth
(
curMonth
-
(
6
+
1
));
const
threeMonths
=
new
Date
().
setMonth
(
curMonth
-
(
6
+
1
));
if
(
this
.
minDate
)
{
const
curTime
=
this
.
minDate
.
getTime
();
const
min
=
curTime
-
threeMonths
>
yearBefore
?
curTime
-
threeMonths
:
yearBefore
;
...
...
src/components/marketingRecord/index.vue
View file @
f746960d
...
...
@@ -47,7 +47,7 @@ export default {
return
{
navpath
:
[
{
name
:
"首页"
,
path
:
""
},
{
name
:
"客户列表"
,
path
:
""
},
{
name
:
"客户列表"
,
path
:
"
/allCustomers
"
},
{
name
:
"客户详情"
,
path
:
'/customerDetail?memberId='
+
this
.
$route
.
query
.
memberId
||
''
},
{
name
:
"营销记录"
,
path
:
""
}
],
...
...
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