Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant-assemble
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 c6395c24
authored
Apr 28, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v3.9.0' of
http://192.168.3.233:8090/saas_plus/store-assistant-assemble
into v3.9.0
2 parents
06bbdbcf
865d525a
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
82 additions
and
28 deletions
packageOutput/components/staff/staff.js
packageOutput/components/staff/staff.scss
packageOutput/components/staff/staff.wxml
packagesList/outDetail/components/OutputWork/index.js
packagesList/outDetail/components/OutputWork/index.wxml
packagesList/outDetail/components/echart/echart.js
packagesList/outDetail/components/line/line.js
packagesList/packageOutput/pages/monthReport/monthReport.js
packagesList/packageOutput/pages/monthReport/monthReport.scss
packagesList/packageOutput/pages/monthReport/monthReport.wxml
packageOutput/components/staff/staff.js
View file @
c6395c2
...
@@ -11,7 +11,6 @@ Component({
...
@@ -11,7 +11,6 @@ Component({
sfaffList
:
{
sfaffList
:
{
type
:
Object
,
type
:
Object
,
observer
(
val
)
{
observer
(
val
)
{
console
.
log
(
val
,
'sfaffList'
)
this
.
getDetail
(
val
)
this
.
getDetail
(
val
)
this
.
filterStaff
=
val
this
.
filterStaff
=
val
this
.
setData
({
this
.
setData
({
...
@@ -160,7 +159,6 @@ Component({
...
@@ -160,7 +159,6 @@ Component({
return
item
[
k
]
return
item
[
k
]
},
},
transferName
:
(
item
)
=>
{
transferName
:
(
item
)
=>
{
console
.
log
(
item
)
let
arr
=
[]
let
arr
=
[]
item
.
avatar
&&
item
.
avatar
.
forEach
((
val
,
index
)
=>
{
item
.
avatar
&&
item
.
avatar
.
forEach
((
val
,
index
)
=>
{
arr
.
push
({
arr
.
push
({
...
...
packageOutput/components/staff/staff.scss
View file @
c6395c2
...
@@ -153,3 +153,22 @@
...
@@ -153,3 +153,22 @@
background
:
#ffffff
;
background
:
#ffffff
;
}
}
}
}
.empty
{
margin
:
20rpx
auto
0
;
text-align
:
center
;
.empty-icon
{
width
:
400rpx
;
height
:
400rpx
;
display
:
inline-block
;
}
.empty-text
{
font-weight
:
400
;
font-size
:
28rpx
;
color
:
#7A8299
;
text-align
:
center
;
margin
:
32rpx
106rpx
;
}
}
\ No newline at end of file
\ No newline at end of file
packageOutput/components/staff/staff.wxml
View file @
c6395c2
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
<input placeholder="输入员工名称" value="{{empName}}" bind:blur="hanldBlur"/>
<input placeholder="输入员工名称" value="{{empName}}" bind:blur="hanldBlur"/>
<icon class="icon-small" type="search" size="14"></icon>
<icon class="icon-small" type="search" size="14"></icon>
</view>
</view>
<blokc wx:if="{{sfaff[0].list.length}}">
<view class='table'>
<view class='table'>
<!-- 左侧固定 -->
<!-- 左侧固定 -->
<view class='table_left_column'>
<view class='table_left_column'>
...
@@ -37,4 +38,10 @@
...
@@ -37,4 +38,10 @@
</view>
</view>
</view>
</view>
</view>
</view>
</blokc>
<view wx:else class="empty">
<glsx-image webp custom-class="empty-icon" src="store-assistant-assemble/output/empty.png"></glsx-image>
<view class="empty-text">暂无排行榜数据</view>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
packagesList/outDetail/components/OutputWork/index.js
View file @
c6395c2
...
@@ -17,6 +17,7 @@ Component({
...
@@ -17,6 +17,7 @@ Component({
* 组件的初始数据
* 组件的初始数据
*/
*/
data
:
{
data
:
{
minDate
:
new
Date
(
2020
,
0
,
1
).
getTime
(),
maxDate
:
new
Date
().
getTime
(),
maxDate
:
new
Date
().
getTime
(),
outputView
:
{
outputView
:
{
outputValue
:
[{
outputValue
:
[{
...
...
packagesList/outDetail/components/OutputWork/index.wxml
View file @
c6395c2
...
@@ -28,4 +28,4 @@
...
@@ -28,4 +28,4 @@
</view>
</view>
</scroll-view >
</scroll-view >
<van-calendar max-range="{{ 30 }}" show="{{ isShow }}" type="range" color="#4466F0" bind:confirm="onConfirm" bind:close="onClose"/>
\ No newline at end of file
\ No newline at end of file
<van-calendar max-range="{{ 30 }}" show="{{ isShow }}" type="range" color="#4466F0" bind:confirm="onConfirm" bind:close="onClose" min-date="{{ minDate }}" max-date="{{ maxDate }}"/>
\ No newline at end of file
\ No newline at end of file
packagesList/outDetail/components/echart/echart.js
View file @
c6395c2
...
@@ -64,31 +64,31 @@ Component({
...
@@ -64,31 +64,31 @@ Component({
bottom
:
0
,
bottom
:
0
,
containLabel
:
true
containLabel
:
true
},
},
tooltip
:
{
// tooltip: {
trigger
:
'axis'
,
// trigger: 'axis',
triggerOn
:
"mousemove"
,
// triggerOn: "mousemove",
axisPointer
:
{
// axisPointer: {
lineStyle
:
{
// type: "none",
type
:
'solid'
// lineStyle: {
}
// type: 'solid'
},
// }
padding
:
[
0
,
12
],
// },
borderWidth
:
2
,
// padding: [0, 12],
borderColor
:
this
.
data
.
color
,
// borderWidth: 2,
borderRadius
:
10
,
// borderColor: this.data.color,
textStyle
:
{
// borderRadius: 10,
color
:
this
.
data
.
color
,
// textStyle: {
fontSize
:
10
// color: this.data.color,
},
// fontSize: 10
// },
// position: function(pt) {
// position: function(pt) {
// console.log(pt)
// console.log(pt)
// return [pt[0], pt[1]+20];
// return [pt[0], pt[1]];
// },
// formatter: function (item) {
// return `${item[0].value}`
// }
// },
// },
formatter
:
function
(
item
)
{
console
.
log
(
item
)
return
`
${
item
[
0
].
value
}
`
}
},
xAxis
:
{
xAxis
:
{
type
:
'category'
,
type
:
'category'
,
axisLabel
:
{
axisLabel
:
{
...
@@ -125,6 +125,11 @@ Component({
...
@@ -125,6 +125,11 @@ Component({
series
:
[{
series
:
[{
data
:
yData
,
data
:
yData
,
type
:
'bar'
,
type
:
'bar'
,
label
:
{
show
:
true
,
position
:
'top'
,
color
:
this
.
data
.
color
,
},
color
:
this
.
data
.
color
,
color
:
this
.
data
.
color
,
itemStyle
:
{
itemStyle
:
{
borderRadius
:
[
50
,
50
,
0
,
0
],
borderRadius
:
[
50
,
50
,
0
,
0
],
...
...
packagesList/outDetail/components/line/line.js
View file @
c6395c2
...
@@ -66,6 +66,7 @@ Component({
...
@@ -66,6 +66,7 @@ Component({
trigger
:
'axis'
,
trigger
:
'axis'
,
triggerOn
:
"mousemove"
,
triggerOn
:
"mousemove"
,
axisPointer
:
{
axisPointer
:
{
type
:
"none"
,
lineStyle
:
{
lineStyle
:
{
type
:
'solid'
type
:
'solid'
}
}
...
@@ -83,7 +84,6 @@ Component({
...
@@ -83,7 +84,6 @@ Component({
// return [pt[0], pt[1]+20];
// return [pt[0], pt[1]+20];
// },
// },
formatter
:
function
(
item
)
{
formatter
:
function
(
item
)
{
console
.
log
(
item
)
return
`
${
item
[
0
].
value
}
`
return
`
${
item
[
0
].
value
}
`
}
}
},
},
...
...
packagesList/packageOutput/pages/monthReport/monthReport.js
View file @
c6395c2
...
@@ -107,7 +107,7 @@ Page({
...
@@ -107,7 +107,7 @@ Page({
dataT
[
type
][
timeType
]()
dataT
[
type
][
timeType
]()
ActivityApi
[
apiName
](
params
).
then
(
res
=>
{
ActivityApi
[
apiName
](
params
).
then
(
res
=>
{
const
list
=
res
.
employeeOutputList
||
res
.
staffList
const
list
=
res
.
employeeOutputList
||
res
.
staffList
const
arr
=
new
Array
(
3
).
fill
(
1
)
const
arr
=
[]
const
staffList
=
list
.
length
?
Object
.
assign
(
arr
,
list
.
splice
(
0
,
3
)):
arr
const
staffList
=
list
.
length
?
Object
.
assign
(
arr
,
list
.
splice
(
0
,
3
)):
arr
const
billboard
=
staffList
.
map
((
item
,
idx
)
=>
{
const
billboard
=
staffList
.
map
((
item
,
idx
)
=>
{
return
{
return
{
...
...
packagesList/packageOutput/pages/monthReport/monthReport.scss
View file @
c6395c2
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
.output-num
{
.output-num
{
font-weight
:
600
;
font-weight
:
600
;
font-size
:
44
rpx
;
font-size
:
30
rpx
;
color
:
#1B233D
;
color
:
#1B233D
;
line-height
:
64rpx
;
line-height
:
64rpx
;
._unit
{
._unit
{
...
@@ -209,3 +209,21 @@
...
@@ -209,3 +209,21 @@
.van-picker__toolbar
{
.van-picker__toolbar
{
display
:
none
!
important
;
display
:
none
!
important
;
}
}
.empty
{
margin
:
20rpx
auto
0
;
text-align
:
center
;
.empty-icon
{
width
:
400rpx
;
height
:
400rpx
;
display
:
inline-block
;
}
.empty-text
{
font-weight
:
400
;
font-size
:
28rpx
;
color
:
#7A8299
;
text-align
:
center
;
margin
:
32rpx
106rpx
;
}
}
\ No newline at end of file
\ No newline at end of file
packagesList/packageOutput/pages/monthReport/monthReport.wxml
View file @
c6395c2
...
@@ -41,6 +41,7 @@
...
@@ -41,6 +41,7 @@
<view class="billboard-box">
<view class="billboard-box">
<view class="billboard-title">当{{timeType=='day'?'日':'月'}}员工龙虎榜</view>
<view class="billboard-title">当{{timeType=='day'?'日':'月'}}员工龙虎榜</view>
<view class="billboard-border">
<view class="billboard-border">
<block wx:if="{{billboard.length}}">
<view class="billboard-item" wx:for="{{billboard}}" wx:key="index">
<view class="billboard-item" wx:for="{{billboard}}" wx:key="index">
<view class="billboard-item-bar">
<view class="billboard-item-bar">
<view class="bill-border">
<view class="bill-border">
...
@@ -50,6 +51,11 @@
...
@@ -50,6 +51,11 @@
<glsx-image webp custom-class="bill-bg" src="store-assistant-assemble/output/bill_{{item.sort}}.png"></glsx-image>
<glsx-image webp custom-class="bill-bg" src="store-assistant-assemble/output/bill_{{item.sort}}.png"></glsx-image>
</view>
</view>
</view>
</view>
</block>
<view wx:if="{{billboard.length==0}}" class="empty">
<glsx-image webp custom-class="empty-icon" src="store-assistant-assemble/output/empty.png"></glsx-image>
<view class="empty-text">暂无排行榜数据</view>
</view>
</view>
</view>
</view>
</view>
...
...
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