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 9d818c5e
authored
Aug 04, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
472e2dc5
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
167 additions
and
164 deletions
packageOutput/components/staff/staff.scss
packagesList/outDetail/components/OutputWork/components/OutputLine/OutputLine.scss
packagesList/outDetail/components/OutputWork/components/OutputLine/OutputLine.wxml
packagesList/outDetail/components/OutputWork/index.scss
packagesList/outDetail/components/echart/echart.js
packagesList/outDetail/components/line/line.js
packagesList/packageOutput/pages/monthReport/monthReport.scss
utils/request/environment.js
packageOutput/components/staff/staff.scss
View file @
9d818c5
...
@@ -109,14 +109,13 @@
...
@@ -109,14 +109,13 @@
}
}
.table_left_column
{
.table_left_column
{
min-width
:
1
0
0rpx
;
min-width
:
1
9
0rpx
;
height
:
auto
;
height
:
auto
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
}
}
.left_col_item
{
.left_col_item
{
width
:
100%
;
height
:
72rpx
;
height
:
72rpx
;
font-size
:
20rpx
;
font-size
:
20rpx
;
display
:
flex
;
display
:
flex
;
...
...
packagesList/outDetail/components/OutputWork/components/OutputLine/OutputLine.scss
View file @
9d818c5
...
@@ -92,7 +92,7 @@
...
@@ -92,7 +92,7 @@
color
:
#D3D3D3
;
color
:
#D3D3D3
;
font-size
:
20rpx
;
font-size
:
20rpx
;
text-align
:
center
;
text-align
:
center
;
margin-top
:
10
rpx
;
padding
:
24
rpx
;
}
}
.container
{
.container
{
...
...
packagesList/outDetail/components/OutputWork/components/OutputLine/OutputLine.wxml
View file @
9d818c5
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<view class="searchList">
<view class="searchList">
<block wx:for="{{opts.lineList}}" wx:for-item="item" wx:key="index">
<block wx:for="{{opts.lineList}}" wx:for-item="item" wx:key="index">
<view class="search-text {{dataType==item.type?'active':''}}" data-condition="dataType" data-type="{{item.type}}" bindtap="selectCondition">{{item.title}}</view></block>
<view class="search-text {{dataType==item.type?'active':''}}" data-condition="dataType" data-type="{{item.type}}" bindtap="selectCondition">{{item.title}}</view></block>
<view class="search-unit">单位:{{
dataType==1
?'元':'单'}}</view>
<view class="search-unit">单位:{{
(opts.lineList.length == 2 && dataType==1)||opts.lineList.length == 3 && dataType==3
?'元':'单'}}</view>
</view>
</view>
<view class="searchTime">
<view class="searchTime">
<block wx:for="{{dimension}}" wx:for-item="item" wx:key="index">
<block wx:for="{{dimension}}" wx:for-item="item" wx:key="index">
...
...
packagesList/outDetail/components/OutputWork/index.scss
View file @
9d818c5
...
@@ -119,19 +119,17 @@
...
@@ -119,19 +119,17 @@
}
}
.line-box
{
.line-box
{
width
:
7
1
0rpx
;
width
:
7
5
0rpx
;
height
:
58
4rpx
;
height
:
60
4rpx
;
background
:
#FFFFFF
;
background
:
#FFFFFF
;
box-shadow
:
0
2rpx
20rpx
0
#b4bacc
52
;
border-radius
:
20rpx
;
border-radius
:
20rpx
;
margin
:
24rpx
auto
0rpx
;
margin
:
24rpx
auto
0rpx
;
}
}
.bar-box
{
.bar-box
{
width
:
7
1
0rpx
;
width
:
7
5
0rpx
;
height
:
5
1
6rpx
;
height
:
5
3
6rpx
;
background
:
#FFFFFF
;
background
:
#FFFFFF
;
box-shadow
:
0
2rpx
20rpx
0
#b4bacc
52
;
border-radius
:
20rpx
;
border-radius
:
20rpx
;
margin
:
24rpx
auto
0rpx
;
margin
:
24rpx
auto
0rpx
;
}
}
...
...
packagesList/outDetail/components/echart/echart.js
View file @
9d818c5
...
@@ -128,11 +128,11 @@ Component({
...
@@ -128,11 +128,11 @@ Component({
label
:
{
label
:
{
show
:
true
,
show
:
true
,
position
:
'top'
,
position
:
'top'
,
color
:
this
.
data
.
color
,
color
:
'#3582EE'
,
},
},
color
:
this
.
data
.
color
,
color
:
'#3582EE'
,
itemStyle
:
{
itemStyle
:
{
borderRadius
:
[
50
,
50
,
0
,
0
],
//
borderRadius: [50, 50, 0, 0],
padding
:
[
50
,
50
,
0
,
0
]
padding
:
[
50
,
50
,
0
,
0
]
},
},
barWidth
:
24
barWidth
:
24
...
...
packagesList/outDetail/components/line/line.js
View file @
9d818c5
import
*
as
echarts
from
'../../../outDetail/ec-canvas/echarts'
;
import
*
as
echarts
from
'../../../outDetail/ec-canvas/echarts'
;
Component
({
Component
({
/**
/**
* 组件的属性列表
* 组件的属性列表
*/
*/
properties
:
{
properties
:
{
chartData
:
{
chartData
:
{
type
:
Array
,
type
:
Array
,
value
:
()
=>
[]
value
:
()
=>
[]
},
},
keys
:
{
keys
:
{
type
:
Array
,
type
:
Array
,
value
:
[
'year'
,
'sales'
]
value
:
[
'year'
,
'sales'
]
},
},
tickCount
:
{
tickCount
:
{
type
:
Number
,
type
:
Number
,
value
:
5
value
:
5
},
color
:
{
type
:
String
,
value
:
'#3975C6'
}
},
},
color
:
{
observers
:
{
type
:
String
,
'chartData'
:
function
(
data
)
{
value
:
'#3975C6'
this
.
initData
(
data
)
}
},
},
observers
:
{
'chartData'
:
function
(
data
)
{
this
.
initData
(
data
)
},
},
},
/**
/**
* 组件的初始数据
* 组件的初始数据
*/
*/
data
:
{
data
:
{
ec
:
{
ec
:
{
lazyLoad
:
true
lazyLoad
:
true
}
}
},
/**
* 组件的方法列表
*/
methods
:
{
onInitChart
(
xData
,
yData
)
{
this
.
ecComponent
&&
this
.
ecComponent
.
init
((
canvas
,
width
,
height
,
dpr
)
=>
{
const
chart
=
echarts
.
init
(
canvas
,
null
,
{
width
:
width
,
height
:
height
,
devicePixelRatio
:
dpr
// new
});
this
.
setOption
(
chart
,
xData
,
yData
);
return
chart
;
})
},
},
setOption
(
chart
,
xData
,
yData
)
{
let
maxSpan
=
xData
.
length
<
10
?
80
:
20
// let start= xData.length < 10 ? 50 : 80
var
option
=
{
grid
:
{
left
:
8
,
right
:
30
,
top
:
30
,
bottom
:
0
,
containLabel
:
true
},
tooltip
:
{
trigger
:
'axis'
,
triggerOn
:
"mousemove"
,
axisPointer
:
{
type
:
"none"
,
lineStyle
:
{
type
:
'solid'
}
},
padding
:
[
0
,
12
],
borderWidth
:
2
,
borderColor
:
'#6ED0BE'
,
borderRadius
:
10
,
textStyle
:
{
color
:
'#6ED0BE'
,
fontSize
:
10
},
// position: function(pt) {
// console.log(pt)
// return [pt[0], pt[1]+20];
// },
formatter
:
function
(
item
)
{
return
`
${
item
[
0
].
value
}
`
}
},
xAxis
:
{
type
:
'category'
,
boundaryGap
:
false
,
// min:1,
// max: 5,
axisLabel
:
{
/**
fontSize
:
11
,
* 组件的方法列表
color
:
'#A6A6A6'
*/
},
methods
:
{
axisLine
:
{
onInitChart
(
xData
,
yData
)
{
show
:
false
//坐标轴线线
this
.
ecComponent
&&
this
.
ecComponent
.
init
((
canvas
,
width
,
height
,
dpr
)
=>
{
},
const
chart
=
echarts
.
init
(
canvas
,
null
,
{
axisTick
:
{
width
:
width
,
show
:
false
//坐标轴刻度
height
:
height
,
},
devicePixelRatio
:
dpr
// new
data
:
xData
});
this
.
setOption
(
chart
,
xData
,
yData
);
return
chart
;
})
},
},
yAxis
:
{
setOption
(
chart
,
xData
,
yData
)
{
x
:
'center'
,
let
maxSpan
=
xData
.
length
<
10
?
80
:
20
type
:
'value'
,
// let start= xData.length < 10 ? 50 : 80
axisLabel
:
{
var
option
=
{
fontSize
:
11
,
grid
:
{
color
:
'#A6A6A6'
left
:
8
,
},
right
:
30
,
axisLine
:
{
top
:
30
,
show
:
false
//坐标轴线线
bottom
:
0
,
},
containLabel
:
true
axisTick
:
{
},
show
:
false
//坐标轴刻度
tooltip
:
{
},
trigger
:
'axis'
,
splitLine
:
{
triggerOn
:
"mousemove"
,
lineStyle
:
{
axisPointer
:
{
type
:
'dashed'
type
:
"shadow"
,
shadowStyle
:
{
shadowColor
:
'rgba(53, 195, 118, .1)'
,
color
:
'rgba(53, 195, 118, .1)'
,
},
lineStyle
:
{
color
:
'#35C376'
,
type
:
'shadow'
}
},
position
:
'top'
,
padding
:
[
0
,
12
],
borderWidth
:
2
,
borderColor
:
'#6ED0BE'
,
borderRadius
:
10
,
textStyle
:
{
color
:
'#6ED0BE'
,
fontSize
:
10
},
position
:
function
(
point
,
params
,
dom
,
rect
,
size
)
{
// 固定在顶部
return
[
point
[
0
]
-
20
,
'10%'
];
},
formatter
:
function
(
item
)
{
return
`
${
item
[
0
].
value
}
`
}
},
xAxis
:
{
type
:
'category'
,
boundaryGap
:
false
,
// min:1,
// max: 5,
axisLabel
:
{
fontSize
:
11
,
color
:
'#A6A6A6'
},
axisLine
:
{
show
:
false
//坐标轴线线
},
axisTick
:
{
show
:
false
//坐标轴刻度
},
data
:
xData
},
yAxis
:
{
x
:
'center'
,
type
:
'value'
,
axisLabel
:
{
fontSize
:
11
,
color
:
'#A6A6A6'
},
axisLine
:
{
show
:
false
//坐标轴线线
},
axisTick
:
{
show
:
false
//坐标轴刻度
},
splitLine
:
{
lineStyle
:
{
type
:
'dashed'
}
}
},
dataZoom
:
{
type
:
"inside"
,
maxSpan
:
maxSpan
,
// end: 100,
// // start: start,
},
series
:
[{
data
:
yData
,
type
:
'line'
,
// smooth: true,
color
:
this
.
data
.
color
}]
}
}
}
chart
.
setOption
(
option
)
},
},
dataZoom
:
{
//初始化数据
type
:
"inside"
,
initData
(
data
)
{
maxSpan
:
maxSpan
,
const
xData
=
[],
// end: 100,
yData
=
[];
// // start: start,
const
[
x
,
y
]
=
this
.
data
.
keys
data
.
forEach
(
item
=>
{
xData
.
push
(
item
[
x
])
yData
.
push
(
item
[
y
])
})
this
.
setData
({
xData
,
yData
})
this
.
onInitChart
(
xData
,
yData
)
},
},
series
:
[{
data
:
yData
,
type
:
'line'
,
smooth
:
true
,
color
:
this
.
data
.
color
}]
}
chart
.
setOption
(
option
)
},
//初始化数据
initData
(
data
)
{
const
xData
=
[],
yData
=
[];
const
[
x
,
y
]
=
this
.
data
.
keys
data
.
forEach
(
item
=>
{
xData
.
push
(
item
[
x
])
yData
.
push
(
item
[
y
])
})
this
.
setData
({
xData
,
yData
})
this
.
onInitChart
(
xData
,
yData
)
},
},
},
ready
()
{
ready
()
{
// 获取组件
// 获取组件
this
.
ecComponent
=
this
.
selectComponent
(
'#mychart-dom-line'
);
this
.
ecComponent
=
this
.
selectComponent
(
'#mychart-dom-line'
);
}
}
})
})
\ No newline at end of file
\ No newline at end of file
packagesList/packageOutput/pages/monthReport/monthReport.scss
View file @
9d818c5
...
@@ -179,7 +179,7 @@
...
@@ -179,7 +179,7 @@
.icon
{
.icon
{
width
:
56rpx
;
width
:
56rpx
;
height
:
48
rpx
;
height
:
56
rpx
;
// margin-left: 6rpx;
// margin-left: 6rpx;
}
}
}
}
...
...
utils/request/environment.js
View file @
9d818c5
...
@@ -21,7 +21,7 @@ const systemInfo = wx.getSystemInfoSync()
...
@@ -21,7 +21,7 @@ const systemInfo = wx.getSystemInfoSync()
const
manual
=
false
const
manual
=
false
const
release
=
false
const
release
=
false
let
index
=
2
let
index
=
3
// 判断小程序环境
// 判断小程序环境
// develop:开发版(正常开发工具,测试时)
// develop:开发版(正常开发工具,测试时)
...
...
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