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
f0c11e3f
Commit
f0c11e3f
authored
Aug 15, 2022
by
huaying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 积分明细,客户日志时间选择器清空后回显
parent
68e01fa3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
2 deletions
+38
-2
customerLog.vue
src/components/allCustomers/components/customerLog.vue
+19
-1
integralDataPage.vue
src/components/wechatmembers/integralDataPage.vue
+19
-1
No files found.
src/components/allCustomers/components/customerLog.vue
View file @
f0c11e3f
...
...
@@ -66,6 +66,7 @@
import
mixin
from
'../../wechatmembers/cardMixin'
;
import
url
from
'../../axios/url'
;
import
{
doFetch
,
doFetchGet
}
from
'../../axios/api'
;
import
{
formatYMD
}
from
'@/common/filters/custom.js'
;
export
default
{
name
:
'customerLog'
,
mixins
:
[
mixin
],
...
...
@@ -171,7 +172,24 @@ export default {
if
(
v
)
this
.
$router
.
push
({
path
:
v
,
query
:
{
memberId
:
referLogId
}
});
// if (v) this.$router.push({ path: v, query: { memberId: this.memberId } });
},
}
},
watch
:
{
'dateDefault'
:
{
handler
:
function
(
selectTime
)
{
if
(
!
selectTime
){
let
start
=
new
Date
();
start
.
setFullYear
(
start
.
getFullYear
()
-
2
);
start
.
setDate
(
start
.
getDate
()
+
1
);
start
=
`
${
start
.
getFullYear
()}
-
${
start
.
getMonth
()
+
1
}
-
${
start
.
getDate
()}
`
;
let
end
=
new
Date
();
end
=
`
${
end
.
getFullYear
()}
-
${
end
.
getMonth
()
+
1
}
-
${
end
.
getDate
()}
`
;
selectTime
=
[
formatYMD
(
new
Date
(
start
).
getTime
()),
formatYMD
(
new
Date
(
end
).
getTime
())]
this
.
dateDefault
=
[
formatYMD
(
new
Date
(
start
).
getTime
()),
formatYMD
(
new
Date
(
end
).
getTime
())]
}
},
immediate
:
true
}
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
src/components/wechatmembers/integralDataPage.vue
View file @
f0c11e3f
...
...
@@ -239,6 +239,7 @@
<
script
>
import
mixin
from
'./integralMixin'
;
import
{
formatYMD
}
from
'@/common/filters/custom.js'
;
import
enterpriseIntergralWithhold
from
'./enterpriseIntergralWithhold.vue'
;
import
nav
from
"../../common/navbar/navbar.vue"
;
import
{
doFetch
}
from
"../../components/axios/api"
;
...
...
@@ -418,7 +419,24 @@ export default {
"v-nav"
:
nav
,
searchinput
,
enterpriseIntergralWithhold
}
},
watch
:
{
'dateDefault'
:
{
handler
:
function
(
selectTime
)
{
if
(
!
selectTime
){
let
start
=
new
Date
();
start
.
setFullYear
(
start
.
getFullYear
()
-
2
);
start
.
setDate
(
start
.
getDate
()
+
1
);
start
=
`
${
start
.
getFullYear
()}
-
${
start
.
getMonth
()
+
1
}
-
${
start
.
getDate
()}
`
;
let
end
=
new
Date
();
end
=
`
${
end
.
getFullYear
()}
-
${
end
.
getMonth
()
+
1
}
-
${
end
.
getDate
()}
`
;
selectTime
=
[
formatYMD
(
new
Date
(
start
).
getTime
()),
formatYMD
(
new
Date
(
end
).
getTime
())]
this
.
dateDefault
=
[
formatYMD
(
new
Date
(
start
).
getTime
()),
formatYMD
(
new
Date
(
end
).
getTime
())]
}
},
immediate
:
true
}
},
};
</
script
>
...
...
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