Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
X
xzf_uniapp-wechat-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
李智书
xzf_uniapp-wechat-web
Commits
1308dc7d
Commit
1308dc7d
authored
May 13, 2022
by
aifen@azjy1.onexmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
校园报告—门禁报告1
parent
aad06253
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
21 deletions
+68
-21
src/pages/SchoolReport/SchoolReport.vue
src/pages/SchoolReport/SchoolReport.vue
+68
-21
No files found.
src/pages/SchoolReport/SchoolReport.vue
View file @
1308dc7d
...
@@ -366,7 +366,7 @@
...
@@ -366,7 +366,7 @@
<view
class=
"summary-item"
>
<view
class=
"summary-item"
>
<text>
{{
[
'
月度消费报告
'
,
'
实时推送
'
,
'
音视频通话
'
][
tabIndex
-
1
]
}}
</text>
<text>
{{
[
'
月度消费报告
'
,
'
实时推送
'
,
'
音视频通话
'
][
tabIndex
-
1
]
}}
</text>
</view>
</view>
<view
class=
"summary-item-icon"
>
<view
class=
"summary-item-icon"
:class=
"['consumer-report-icon','attendance-report-icon','pubTalk-report-icon'][tabIndex-1]"
>
<text>
+
</text>
<text>
+
</text>
</view>
</view>
<view
class=
"summary-item"
>
<view
class=
"summary-item"
>
...
@@ -470,7 +470,7 @@
...
@@ -470,7 +470,7 @@
<text>
通话次数分析
</text>
<text>
通话次数分析
</text>
</view>
</view>
</view>
</view>
<
!--
<
view
class=
"open-results-items-details-item"
>
<view
class=
"open-results-items-details-item"
>
<view
class=
"leave-word-img"
>
<view
class=
"leave-word-img"
>
</view>
</view>
<view
class=
"open-results-items-details-item-txt"
>
<view
class=
"open-results-items-details-item-txt"
>
...
@@ -493,7 +493,7 @@
...
@@ -493,7 +493,7 @@
<view
class=
"open-results-items-details-item-txt"
>
<view
class=
"open-results-items-details-item-txt"
>
<text>
家庭留言分析
</text>
<text>
家庭留言分析
</text>
</view>
</view>
</view>
-->
</view>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -572,7 +572,6 @@
...
@@ -572,7 +572,6 @@
lineDatas
:
[],
lineDatas
:
[],
// 会员信息
// 会员信息
isOpen
:
false
,
isOpen
:
false
,
isOpen
:
true
,
memberInfo
:
{
memberInfo
:
{
leastAmount
:
''
,
leastAmount
:
''
,
invalidDateStr
:
''
,
invalidDateStr
:
''
,
...
@@ -582,7 +581,14 @@
...
@@ -582,7 +581,14 @@
}
}
},
},
mounted
()
{
mounted
()
{
this
.
queryIsDredgeMember
();
if
(
new
Date
().
getTime
()
<=
new
Date
(
'
2022/06/30
'
).
getTime
())
{
this
.
isOpen
=
true
;
this
.
memberInfo
.
invalidDateStr
=
'
2022年6月30日
'
;
this
.
memberInfo
.
differDay
=
dayjs
(
'
2022/06/30
'
).
diff
(
dayjs
(),
'
day
'
);
this
.
containerHeight
=
4200
;
}
else
{
this
.
queryIsDredgeMember
();
}
let
tmpArr
=
[]
let
tmpArr
=
[]
// 获取时间
// 获取时间
for
(
let
i
=
0
;
i
<=
11
;
i
++
)
{
for
(
let
i
=
0
;
i
<=
11
;
i
++
)
{
...
@@ -601,12 +607,6 @@
...
@@ -601,12 +607,6 @@
this
.
maxDate
=
new
Date
(
this
.
dataRangeArr
[
this
.
dataRangeIndex
].
endDate
);
this
.
maxDate
=
new
Date
(
this
.
dataRangeArr
[
this
.
dataRangeIndex
].
endDate
);
this
.
diningSituations
.
diningSituationsRequestDate
=
this
.
dataRangeArr
[
this
.
dataRangeIndex
].
startDate
;
this
.
diningSituations
.
diningSituationsRequestDate
=
this
.
dataRangeArr
[
this
.
dataRangeIndex
].
startDate
;
this
.
diningSituations
.
diningSituationsDate
=
this
.
formatDate
(
this
.
minDate
);
this
.
diningSituations
.
diningSituationsDate
=
this
.
formatDate
(
this
.
minDate
);
this
.
queryCampusStudentInfo
();
this
.
queryNotRepastDetails
(
this
.
diningSituations
.
diningSituationsRequestDate
,
this
.
diningSituations
.
diningSituationsRequestDate
,
1
);
this
.
queryNotRepastDetails
(
this
.
dataRangeArr
[
this
.
dataRangeIndex
].
startDate
,
this
.
dataRangeArr
[
this
.
dataRangeIndex
].
endDate
,
2
);
this
.
queryConsumerTrend
();
if
(
this
.
isOpen
)
{
if
(
this
.
isOpen
)
{
this
.
queryStudentConsumerPreference
(
1
).
then
(
e
=>
this
.
piechart
());
this
.
queryStudentConsumerPreference
(
1
).
then
(
e
=>
this
.
piechart
());
this
.
queryDayConsumerTrend
(
1
).
then
(
e
=>
this
.
linechart
(
this
.
reportTypeIndex
));
this
.
queryDayConsumerTrend
(
1
).
then
(
e
=>
this
.
linechart
(
this
.
reportTypeIndex
));
...
@@ -614,6 +614,12 @@
...
@@ -614,6 +614,12 @@
this
.
queryStudentConsumerPreference
();
this
.
queryStudentConsumerPreference
();
this
.
queryDayConsumerTrend
();
this
.
queryDayConsumerTrend
();
}
}
this
.
queryCampusStudentInfo
();
this
.
queryNotRepastDetails
(
this
.
diningSituations
.
diningSituationsRequestDate
,
this
.
diningSituations
.
diningSituationsRequestDate
,
1
);
this
.
queryNotRepastDetails
(
this
.
dataRangeArr
[
this
.
dataRangeIndex
].
startDate
,
this
.
dataRangeArr
[
this
.
dataRangeIndex
].
endDate
,
2
);
this
.
queryConsumerTrend
();
},
},
methods
:
{
methods
:
{
tabTap
:
function
(
num
)
{
tabTap
:
function
(
num
)
{
...
@@ -804,7 +810,7 @@
...
@@ -804,7 +810,7 @@
linechart
:
function
(
num
)
{
linechart
:
function
(
num
)
{
var
mySize
=
document
.
getElementById
(
'
consumer-trend-line
'
);
var
mySize
=
document
.
getElementById
(
'
consumer-trend-line
'
);
mySize
.
style
.
width
=
window
.
innerWidth
-
20
+
'
px
'
;
mySize
.
style
.
width
=
window
.
innerWidth
-
20
+
'
px
'
;
mySize
.
style
.
height
=
window
.
innerHeight
-
5
8
0
+
'
px
'
;
mySize
.
style
.
height
=
window
.
innerHeight
-
5
0
0
+
'
px
'
;
var
myChart
=
echarts
.
init
(
mySize
);
var
myChart
=
echarts
.
init
(
mySize
);
var
xdata
=
this
.
lineDatas
.
map
(
v
=>
v
.
name
);
var
xdata
=
this
.
lineDatas
.
map
(
v
=>
v
.
name
);
var
year
=
this
.
dataRangeArr
[
this
.
dataRangeIndex
].
startDate
.
slice
(
0
,
4
);
var
year
=
this
.
dataRangeArr
[
this
.
dataRangeIndex
].
startDate
.
slice
(
0
,
4
);
...
@@ -1022,7 +1028,7 @@
...
@@ -1022,7 +1028,7 @@
return
return
}
}
const
tmpObj
=
data
.
obj
;
const
tmpObj
=
data
.
obj
;
this
.
isEatLow
=
tmpObj
.
canteenAmount
/
tmpObj
.
grossAmount
>
0.5
?
true
:
false
;
this
.
isEatLow
=
tmpObj
.
canteenAmount
/
tmpObj
.
grossAmount
<
0.5
?
true
:
false
;
if
(
num
)
{
if
(
num
)
{
this
.
pieDatas
=
[
this
.
pieDatas
=
[
[{
[{
...
@@ -1791,6 +1797,7 @@
...
@@ -1791,6 +1797,7 @@
#consumer-preferences-pie
{
#consumer-preferences-pie
{
height
:
385rpx
;
height
:
385rpx
;
top
:
-60rpx
;
top
:
-60rpx
;
z-index
:
100
;
}
}
}
}
...
@@ -1927,8 +1934,9 @@
...
@@ -1927,8 +1934,9 @@
#consumer-trend-line
{
#consumer-trend-line
{
position
:
absolute
;
position
:
absolute
;
top
:
1
3
0rpx
;
top
:
1
2
0rpx
;
left
:
10rpx
;
left
:
10rpx
;
z-index
:
100
;
}
}
.consumer-trend-line-icon
{
.consumer-trend-line-icon
{
...
@@ -2104,8 +2112,19 @@
...
@@ -2104,8 +2112,19 @@
.summary-item-icon
{
.summary-item-icon
{
font-size
:
40rpx
;
font-size
:
40rpx
;
line-height
:
45rpx
;
line-height
:
45rpx
;
}
.consumer-report-icon
{
margin
:
0
45rpx
0
70rpx
;
margin
:
0
45rpx
0
70rpx
;
}
}
.attendance-report-icon
{
margin
:
0
35rpx
0
134rpx
;
}
.pubTalk-report-icon
{
margin
:
0
35rpx
0
102rpx
;
}
}
}
.open-results-items-details
{
.open-results-items-details
{
...
@@ -2178,7 +2197,7 @@
...
@@ -2178,7 +2197,7 @@
width
:
30rpx
;
width
:
30rpx
;
height
:
32rpx
;
height
:
32rpx
;
background
:
no-repeat
center
/
100%
url(../../static/images/admissionAnalysis.png)
;
background
:
no-repeat
center
/
100%
url(../../static/images/admissionAnalysis.png)
;
margin
:
0
25rpx
0
1
12
rpx
;
margin
:
0
25rpx
0
1
35
rpx
;
}
}
.admission-record-img
{
.admission-record-img
{
...
@@ -2207,21 +2226,49 @@
...
@@ -2207,21 +2226,49 @@
width
:
38rpx
;
width
:
38rpx
;
height
:
31rpx
;
height
:
31rpx
;
background
:
no-repeat
center
/
100%
url(../../static/images/communicationAdvice.png)
;
background
:
no-repeat
center
/
100%
url(../../static/images/communicationAdvice.png)
;
margin
:
0
24rpx
0
1
12
rpx
;
margin
:
0
24rpx
0
1
65
rpx
;
}
}
.voice-call-img
{
.voice-call-img
{
width
:
25rpx
;
width
:
25rpx
;
height
:
34rpx
;
height
:
34rpx
;
background
:
no-repeat
center
/
100%
url(../../static/images/voiceCall.png)
;
background
:
no-repeat
center
/
100%
url(../../static/images/voiceCall.png)
;
margin-right
:
26rpx
;
margin-right
:
26rpx
;
}
}
.call-count-img
{
.call-count-img
{
width
:
30rpx
;
width
:
30rpx
;
height
:
30rpx
;
height
:
30rpx
;
background
:
no-repeat
center
/
100%
url(../../static/images/callCount.png)
;
background
:
no-repeat
center
/
100%
url(../../static/images/callCount.png)
;
margin
:
0
31rpx
0
112rpx
;
margin
:
0
31rpx
0
165rpx
;
}
.leave-word-img
{
width
:
30rpx
;
height
:
28rpx
;
background
:
no-repeat
center
/
100%
url(../../static/images/leaveWord.png)
;
margin-right
:
22rpx
;
}
.call-duration-img
{
width
:
31rpx
;
height
:
35rpx
;
background
:
no-repeat
center
/
100%
url(../../static/images/callDuration.png)
;
margin
:
0
23rpx
0
165rpx
;
}
.face-call-img
{
width
:
32rpx
;
height
:
31rpx
;
background
:
no-repeat
center
/
100%
url(../../static/images/faceCall.png)
;
margin-right
:
21rpx
;
}
.leave-word-analysis-img
{
width
:
31rpx
;
height
:
31rpx
;
background
:
no-repeat
center
/
100%
url(../../static/images/leaveWordAnalysis.png)
;
margin
:
0
23rpx
0
165rpx
;
}
}
}
}
}
}
...
...
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