Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
supervise-wecom
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4ed5b960
authored
Jun 10, 2026
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.8.2' of
http://192.168.3.233:8090/saas/supervise-wecom
into SAAS+V5.8.2
2 parents
0284abe4
23ddd24d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
22 deletions
src/components/datePicker/index.vue
src/views/performance/components/statisticsItem/statisticsItem.vue
src/views/performance/components/supervisorTabItem/index.vue
src/components/datePicker/index.vue
View file @
4ed5b96
...
...
@@ -203,7 +203,7 @@ export default {
const
weekStart
=
cursor
.
subtract
(
weekday
===
0
?
6
:
weekday
-
1
,
"day"
).
startOf
(
"day"
);
const
weekEnd
=
weekStart
.
add
(
6
,
"day"
).
startOf
(
"day"
);
cols
.
push
({
label
:
`
${
weekStart
.
format
(
this
.
formate
)}
-
${
weekEnd
.
format
(
this
.
formate
)}
`
,
label
:
`
${
weekStart
.
format
(
this
.
formate
)}
/
${
weekEnd
.
format
(
this
.
formate
)}
`
,
startDate
:
weekStart
.
format
(
this
.
formate
),
endDate
:
weekEnd
.
format
(
this
.
formate
),
index
:
cols
.
length
,
...
...
@@ -253,7 +253,7 @@ export default {
this
.
currentWeek
=
target
;
this
.
defaultIndex
=
target
?
target
.
index
:
0
;
if
(
target
)
{
this
.
date
=
`
${
target
.
startDate
}
-
${
target
.
endDate
}
`
;
this
.
date
=
`
${
target
.
startDate
}
/
${
target
.
endDate
}
`
;
this
.
currentDate
=
this
.
normalizeDayjs
(
target
.
startDate
).
toDate
();
this
.
rightCurrent
=
target
.
index
===
0
;
this
.
leftCurrent
=
target
.
index
===
this
.
innerWeekColumns
.
length
-
1
;
...
...
@@ -274,7 +274,7 @@ export default {
this
.
currentWeek
=
null
;
this
.
currentDate
=
normalizedDate
.
toDate
();
this
.
date
=
type
===
"year-month"
?
normalizedDate
.
format
(
this
.
formate
)
?
normalizedDate
.
format
(
"YYYY-MM"
)
:
normalizedDate
.
format
(
this
.
formate
);
this
.
updateBoundaryStatusByDate
(
normalizedDate
);
},
...
...
src/views/performance/components/statisticsItem/statisticsItem.vue
View file @
4ed5b96
...
...
@@ -220,7 +220,7 @@ export default {
}
}
.
title
-
info
-
wrapper
{
max
-
width
:
calc
(
50
%
)
;
max
-
width
:
65
%
;
flex
-
shrink
:
0
;
display
:
flex
;
align
-
items
:
center
;
...
...
src/views/performance/components/supervisorTabItem/index.vue
View file @
4ed5b96
...
...
@@ -30,17 +30,21 @@
</div>
<div
:key=
"list.query.statDimension"
class=
"container-wrapper"
>
<template
v-if=
"list.data && list.data.length"
>
<StatisticsItem
v-for=
"(item, index) in list.data"
:key=
"index"
class=
"statistics-item"
:data=
"item"
:schema=
"list.query.statDimension === '1' ? options.supervisorSchemaList : options.supervisorCommonSchemaList"
:sub-title=
"item.merchantName"
:title=
"item.supervisorName"
@
tap=
"handleTapItem(item)"
/>
<div
class=
"last-tips"
>
到底了~
</div>
<van-list
v-model=
"list.loading"
finished-text=
"到底了~"
:finished=
"listFinished"
:immediate-check=
"false"
:offset=
"120"
@
load=
"loadMoreList"
>
<StatisticsItem
v-for=
"(item, index) in list.data"
:key=
"index"
class=
"statistics-item"
:data=
"item"
:schema=
"list.query.statDimension === '1' ? options.supervisorSchemaList : options.supervisorCommonSchemaList"
:sub-title=
"item.merchantName"
:title=
"item.supervisorName"
@
tap=
"handleTapItem(item)"
/>
</van-list>
</
template
>
<
template
v-else
>
<Empty
v-if=
"list.data.length === 0 && !list.loading && !list.refreshing"
...
...
@@ -104,9 +108,11 @@ export default {
list
:
{
loading
:
false
,
refreshing
:
false
,
finished
:
false
,
originData
:
[],
data
:
[],
query
:
{
page
:
0
,
dateType
:
0
,
statDimension
:
"1"
,
searchKeyword
:
""
,
...
...
@@ -117,6 +123,11 @@ export default {
},
};
},
computed
:
{
listFinished
()
{
return
this
.
list
.
query
.
searchKeyword
||
this
.
list
.
finished
;
},
},
created
()
{
this
.
throttledFilterSearchKeyword
=
throttle
(()
=>
{
this
.
list
.
data
=
this
.
filterSearchKeyword
();
...
...
@@ -132,6 +143,12 @@ export default {
getItemSubTitle
(
rows
)
{
return
rows
?.
storeList
?.
map
(
i
=>
i
.
merchantName
).
join
(
"、"
);
},
resetPageQuery
()
{
this
.
list
.
data
=
[];
this
.
list
.
originData
=
[];
this
.
list
.
query
.
page
=
0
;
this
.
list
.
finished
=
false
;
},
getQuery
()
{
return
{
...
this
.
list
.
query
,
...
...
@@ -140,19 +157,30 @@ export default {
date
:
undefined
,
};
},
async
loadMoreList
()
{
this
.
list
.
query
.
page
+=
1
;
await
this
.
getData
();
},
async
getData
()
{
if
(
!
this
.
getPageActive
())
{
return
;
}
if
(
this
.
list
.
refreshing
)
{
this
.
resetPageQuery
();
}
this
.
list
.
loading
=
true
;
this
.
$loading
.
show
();
try
{
this
.
list
.
data
=
[];
this
.
list
.
originData
=
[];
await
this
.
$nextTick
();
const
list
=
await
getSupervisorPerformance
(
this
.
getQuery
());
this
.
list
.
originData
=
cloneDeep
(
list
);
this
.
list
.
data
=
this
.
afterGetData
(
list
);
const
query
=
this
.
getQuery
();
console
.
log
(
query
);
const
list
=
await
getSupervisorPerformance
(
query
);
this
.
list
.
originData
.
push
(...
list
.
supervisorList
);
this
.
list
.
data
=
cloneDeep
(
this
.
list
.
originData
);
if
(
list
.
currentPage
===
(
list
.
totalPages
-
1
))
{
this
.
list
.
finished
=
true
;
}
}
finally
{
this
.
$loading
.
hide
();
this
.
list
.
loading
=
false
;
...
...
@@ -170,11 +198,11 @@ export default {
return
this
.
list
.
originData
.
filter
(
item
=>
item
?.
supervisorName
?.
includes
(
keyword
));
},
async
handleDatePickerChange
(
e
)
{
console
.
log
(
"handleDatePickerChange"
,
e
);
this
.
resetPageQuery
(
);
await
this
.
getData
();
},
async
handleBrandTabsChange
(
e
)
{
console
.
log
(
"handleBrandTabsChange"
,
e
);
this
.
resetPageQuery
(
);
await
this
.
getData
();
},
handleTapItem
(
row
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment