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 {
...
@@ -203,7 +203,7 @@ export default {
const
weekStart
=
cursor
.
subtract
(
weekday
===
0
?
6
:
weekday
-
1
,
"day"
).
startOf
(
"day"
);
const
weekStart
=
cursor
.
subtract
(
weekday
===
0
?
6
:
weekday
-
1
,
"day"
).
startOf
(
"day"
);
const
weekEnd
=
weekStart
.
add
(
6
,
"day"
).
startOf
(
"day"
);
const
weekEnd
=
weekStart
.
add
(
6
,
"day"
).
startOf
(
"day"
);
cols
.
push
({
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
),
startDate
:
weekStart
.
format
(
this
.
formate
),
endDate
:
weekEnd
.
format
(
this
.
formate
),
endDate
:
weekEnd
.
format
(
this
.
formate
),
index
:
cols
.
length
,
index
:
cols
.
length
,
...
@@ -253,7 +253,7 @@ export default {
...
@@ -253,7 +253,7 @@ export default {
this
.
currentWeek
=
target
;
this
.
currentWeek
=
target
;
this
.
defaultIndex
=
target
?
target
.
index
:
0
;
this
.
defaultIndex
=
target
?
target
.
index
:
0
;
if
(
target
)
{
if
(
target
)
{
this
.
date
=
`
${
target
.
startDate
}
-
${
target
.
endDate
}
`
;
this
.
date
=
`
${
target
.
startDate
}
/
${
target
.
endDate
}
`
;
this
.
currentDate
=
this
.
normalizeDayjs
(
target
.
startDate
).
toDate
();
this
.
currentDate
=
this
.
normalizeDayjs
(
target
.
startDate
).
toDate
();
this
.
rightCurrent
=
target
.
index
===
0
;
this
.
rightCurrent
=
target
.
index
===
0
;
this
.
leftCurrent
=
target
.
index
===
this
.
innerWeekColumns
.
length
-
1
;
this
.
leftCurrent
=
target
.
index
===
this
.
innerWeekColumns
.
length
-
1
;
...
@@ -274,7 +274,7 @@ export default {
...
@@ -274,7 +274,7 @@ export default {
this
.
currentWeek
=
null
;
this
.
currentWeek
=
null
;
this
.
currentDate
=
normalizedDate
.
toDate
();
this
.
currentDate
=
normalizedDate
.
toDate
();
this
.
date
=
type
===
"year-month"
this
.
date
=
type
===
"year-month"
?
normalizedDate
.
format
(
this
.
formate
)
?
normalizedDate
.
format
(
"YYYY-MM"
)
:
normalizedDate
.
format
(
this
.
formate
);
:
normalizedDate
.
format
(
this
.
formate
);
this
.
updateBoundaryStatusByDate
(
normalizedDate
);
this
.
updateBoundaryStatusByDate
(
normalizedDate
);
},
},
...
...
src/views/performance/components/statisticsItem/statisticsItem.vue
View file @
4ed5b96
...
@@ -220,7 +220,7 @@ export default {
...
@@ -220,7 +220,7 @@ export default {
}
}
}
}
.
title
-
info
-
wrapper
{
.
title
-
info
-
wrapper
{
max
-
width
:
calc
(
50
%
)
;
max
-
width
:
65
%
;
flex
-
shrink
:
0
;
flex
-
shrink
:
0
;
display
:
flex
;
display
:
flex
;
align
-
items
:
center
;
align
-
items
:
center
;
...
...
src/views/performance/components/supervisorTabItem/index.vue
View file @
4ed5b96
...
@@ -30,17 +30,21 @@
...
@@ -30,17 +30,21 @@
</div>
</div>
<div
:key=
"list.query.statDimension"
class=
"container-wrapper"
>
<div
:key=
"list.query.statDimension"
class=
"container-wrapper"
>
<template
v-if=
"list.data && list.data.length"
>
<template
v-if=
"list.data && list.data.length"
>
<StatisticsItem
v-for=
"(item, index) in list.data"
<van-list
v-model=
"list.loading"
:key=
"index"
finished-text=
"到底了~"
class=
"statistics-item"
:finished=
"listFinished"
:data=
"item"
:immediate-check=
"false"
:schema=
"list.query.statDimension === '1' ? options.supervisorSchemaList : options.supervisorCommonSchemaList"
:offset=
"120"
:sub-title=
"item.merchantName"
@
load=
"loadMoreList"
>
:title=
"item.supervisorName"
<StatisticsItem
v-for=
"(item, index) in list.data"
@
tap=
"handleTapItem(item)"
/>
:key=
"index"
<div
class=
"last-tips"
>
class=
"statistics-item"
到底了~
:data=
"item"
</div>
:schema=
"list.query.statDimension === '1' ? options.supervisorSchemaList : options.supervisorCommonSchemaList"
:sub-title=
"item.merchantName"
:title=
"item.supervisorName"
@
tap=
"handleTapItem(item)"
/>
</van-list>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<Empty
v-if=
"list.data.length === 0 && !list.loading && !list.refreshing"
<Empty
v-if=
"list.data.length === 0 && !list.loading && !list.refreshing"
...
@@ -104,9 +108,11 @@ export default {
...
@@ -104,9 +108,11 @@ export default {
list
:
{
list
:
{
loading
:
false
,
loading
:
false
,
refreshing
:
false
,
refreshing
:
false
,
finished
:
false
,
originData
:
[],
originData
:
[],
data
:
[],
data
:
[],
query
:
{
query
:
{
page
:
0
,
dateType
:
0
,
dateType
:
0
,
statDimension
:
"1"
,
statDimension
:
"1"
,
searchKeyword
:
""
,
searchKeyword
:
""
,
...
@@ -117,6 +123,11 @@ export default {
...
@@ -117,6 +123,11 @@ export default {
},
},
};
};
},
},
computed
:
{
listFinished
()
{
return
this
.
list
.
query
.
searchKeyword
||
this
.
list
.
finished
;
},
},
created
()
{
created
()
{
this
.
throttledFilterSearchKeyword
=
throttle
(()
=>
{
this
.
throttledFilterSearchKeyword
=
throttle
(()
=>
{
this
.
list
.
data
=
this
.
filterSearchKeyword
();
this
.
list
.
data
=
this
.
filterSearchKeyword
();
...
@@ -132,6 +143,12 @@ export default {
...
@@ -132,6 +143,12 @@ export default {
getItemSubTitle
(
rows
)
{
getItemSubTitle
(
rows
)
{
return
rows
?.
storeList
?.
map
(
i
=>
i
.
merchantName
).
join
(
"、"
);
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
()
{
getQuery
()
{
return
{
return
{
...
this
.
list
.
query
,
...
this
.
list
.
query
,
...
@@ -140,19 +157,30 @@ export default {
...
@@ -140,19 +157,30 @@ export default {
date
:
undefined
,
date
:
undefined
,
};
};
},
},
async
loadMoreList
()
{
this
.
list
.
query
.
page
+=
1
;
await
this
.
getData
();
},
async
getData
()
{
async
getData
()
{
if
(
!
this
.
getPageActive
())
{
if
(
!
this
.
getPageActive
())
{
return
;
return
;
}
}
if
(
this
.
list
.
refreshing
)
{
this
.
resetPageQuery
();
}
this
.
list
.
loading
=
true
;
this
.
list
.
loading
=
true
;
this
.
$loading
.
show
();
this
.
$loading
.
show
();
try
{
try
{
this
.
list
.
data
=
[];
this
.
list
.
originData
=
[];
await
this
.
$nextTick
();
await
this
.
$nextTick
();
const
list
=
await
getSupervisorPerformance
(
this
.
getQuery
());
const
query
=
this
.
getQuery
();
this
.
list
.
originData
=
cloneDeep
(
list
);
console
.
log
(
query
);
this
.
list
.
data
=
this
.
afterGetData
(
list
);
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
{
}
finally
{
this
.
$loading
.
hide
();
this
.
$loading
.
hide
();
this
.
list
.
loading
=
false
;
this
.
list
.
loading
=
false
;
...
@@ -170,11 +198,11 @@ export default {
...
@@ -170,11 +198,11 @@ export default {
return
this
.
list
.
originData
.
filter
(
item
=>
item
?.
supervisorName
?.
includes
(
keyword
));
return
this
.
list
.
originData
.
filter
(
item
=>
item
?.
supervisorName
?.
includes
(
keyword
));
},
},
async
handleDatePickerChange
(
e
)
{
async
handleDatePickerChange
(
e
)
{
console
.
log
(
"handleDatePickerChange"
,
e
);
this
.
resetPageQuery
(
);
await
this
.
getData
();
await
this
.
getData
();
},
},
async
handleBrandTabsChange
(
e
)
{
async
handleBrandTabsChange
(
e
)
{
console
.
log
(
"handleBrandTabsChange"
,
e
);
this
.
resetPageQuery
(
);
await
this
.
getData
();
await
this
.
getData
();
},
},
handleTapItem
(
row
)
{
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