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
b18e611c
Commit
b18e611c
authored
Apr 21, 2022
by
aifen@azjy1.onexmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
体温统计1
parent
b69f6d0d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
165 additions
and
55 deletions
+165
-55
src/pages/TemperatureRecords/HighTemperature/HighTemperature.vue
...es/TemperatureRecords/HighTemperature/HighTemperature.vue
+42
-12
src/pages/TemperatureRecords/LowTemperature/LowTemperature.vue
...ages/TemperatureRecords/LowTemperature/LowTemperature.vue
+42
-12
src/pages/TemperatureRecords/NormalTemperatrue/NormalTemperatrue.vue
...emperatureRecords/NormalTemperatrue/NormalTemperatrue.vue
+43
-13
src/pages/TemperatureRecords/Undetected/Undetected.vue
src/pages/TemperatureRecords/Undetected/Undetected.vue
+38
-18
src/static/images/nodata.png
src/static/images/nodata.png
+0
-0
No files found.
src/pages/TemperatureRecords/HighTemperature/HighTemperature.vue
View file @
b18e611c
...
...
@@ -13,6 +13,7 @@
</view>
</view>
<view
class=
"cardBox"
>
<view
v-if=
"ifShow"
>
<view
class=
"card"
v-for=
"item of detailsList"
>
<view
class=
"temperatureResult"
>
<view
class=
"studentInfo"
>
...
...
@@ -32,6 +33,14 @@
</view>
</view>
</view>
<view
v-else
class=
"nodata"
>
<view
class=
"nodataImg"
>
</view>
<view
class=
"nodataTxt"
>
<text>
暂无数据~
</text>
</view>
</view>
</view>
</view>
</template>
...
...
@@ -47,10 +56,11 @@
searchValue
:
""
,
requestInfo
:
{},
detailsList
:
[],
ifShow
:
true
,
}
},
mounted
()
{
this
.
userTemperatureDetail
(
2
);
this
.
userTemperatureDetail
(
2
)
.
then
(()
=>
this
.
ifShow
=
this
.
detailsList
.
length
?
true
:
false
)
;
},
methods
:
{
// 搜索框
...
...
@@ -89,8 +99,10 @@
}
if
(
data
.
obj
&&
Array
.
isArray
(
data
.
obj
))
{
this
.
detailsList
=
data
.
obj
;
this
.
ifShow
=
true
;
}
else
{
this
.
detailsList
==
[];
this
.
ifShow
=
false
;
}
}
catch
(
e
)
{
...
...
@@ -209,6 +221,24 @@
color
:
#999999
;
}
}
.nodata
{
.nodataImg
{
width
:
228rpx
;
height
:
160rpx
;
margin
:
362rpx
auto
14rpx
;
background
:
url(../../../static/images/nodata.png)
center
/
100%
no-repeat
;
}
.nodataTxt
{
display
:
flex
;
justify-content
:
center
;
font-size
:
28rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#999999
;
}
}
}
}
</
style
>
src/pages/TemperatureRecords/LowTemperature/LowTemperature.vue
View file @
b18e611c
...
...
@@ -13,6 +13,7 @@
</view>
</view>
<view
class=
"cardBox"
>
<view
v-if=
"ifShow"
>
<view
class=
"card"
v-for=
"item of detailsList"
>
<view
class=
"temperatureResult"
>
<view
class=
"studentInfo"
>
...
...
@@ -32,6 +33,14 @@
</view>
</view>
</view>
<view
v-else
class=
"nodata"
>
<view
class=
"nodataImg"
>
</view>
<view
class=
"nodataTxt"
>
<text>
暂无数据~
</text>
</view>
</view>
</view>
</view>
</template>
...
...
@@ -47,10 +56,11 @@
searchValue
:
""
,
requestInfo
:
{},
detailsList
:
[],
ifShow
:
true
,
}
},
mounted
()
{
this
.
userTemperatureDetail
(
3
);
this
.
userTemperatureDetail
(
3
)
.
then
(()
=>
this
.
ifShow
=
this
.
detailsList
.
length
?
true
:
false
)
;
},
methods
:
{
// 搜索框
...
...
@@ -89,8 +99,10 @@
}
if
(
data
.
obj
&&
Array
.
isArray
(
data
.
obj
))
{
this
.
detailsList
=
data
.
obj
;
this
.
ifShow
=
true
;
}
else
{
this
.
detailsList
==
[];
this
.
ifShow
=
false
;
}
}
catch
(
e
)
{
...
...
@@ -209,6 +221,24 @@
color
:
#999999
;
}
}
.nodata
{
.nodataImg
{
width
:
228rpx
;
height
:
160rpx
;
margin
:
362rpx
auto
14rpx
;
background
:
url(../../../static/images/nodata.png)
center
/
100%
no-repeat
;
}
.nodataTxt
{
display
:
flex
;
justify-content
:
center
;
font-size
:
28rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#999999
;
}
}
}
}
</
style
>
src/pages/TemperatureRecords/NormalTemperatrue/NormalTemperatrue.vue
View file @
b18e611c
...
...
@@ -13,6 +13,7 @@
</view>
</view>
<view
class=
"cardBox"
>
<view
v-if=
"ifShow"
>
<view
class=
"card"
v-for=
"item of detailsList"
>
<view
class=
"temperatureResult"
>
<view
class=
"studentInfo"
>
...
...
@@ -32,6 +33,14 @@
</view>
</view>
</view>
<view
v-else
class=
"nodata"
>
<view
class=
"nodataImg"
>
</view>
<view
class=
"nodataTxt"
>
<text>
暂无数据~
</text>
</view>
</view>
</view>
</view>
</template>
...
...
@@ -47,10 +56,11 @@
searchValue
:
""
,
requestInfo
:
{},
detailsList
:
[],
ifShow
:
true
,
}
},
mounted
()
{
this
.
userTemperatureDetail
(
1
);
this
.
userTemperatureDetail
(
1
)
.
then
(()
=>
this
.
ifShow
=
this
.
detailsList
.
length
?
true
:
false
)
;
},
methods
:
{
// 搜索框
...
...
@@ -77,7 +87,7 @@
url
:
gHost
+
'
/ACAPI/applet/temperature-staits/userTemperatureDetail
'
},
Object
.
assign
(
this
.
requestInfo
,
{
temperatureStatus
,
userName
:
this
.
searchValue
userName
:
this
.
searchValue
}))
if
(
data
.
code
!=
200
)
{
uni
.
showToast
({
...
...
@@ -89,8 +99,10 @@
}
if
(
data
.
obj
&&
Array
.
isArray
(
data
.
obj
))
{
this
.
detailsList
=
data
.
obj
;
this
.
ifShow
=
true
;
}
else
{
this
.
detailsList
==
[];
this
.
ifShow
=
false
;
}
}
catch
(
e
)
{
...
...
@@ -209,6 +221,24 @@
color
:
#999999
;
}
}
.nodata
{
.nodataImg
{
width
:
228rpx
;
height
:
160rpx
;
margin
:
362rpx
auto
14rpx
;
background
:
url(../../../static/images/nodata.png)
center
/
100%
no-repeat
;
}
.nodataTxt
{
display
:
flex
;
justify-content
:
center
;
font-size
:
28rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#999999
;
}
}
}
}
</
style
>
src/pages/TemperatureRecords/Undetected/Undetected.vue
View file @
b18e611c
...
...
@@ -13,6 +13,7 @@
</view>
</view>
<view
class=
"cardBox"
>
<view
v-if=
"ifShow"
>
<view
class=
"card"
v-for=
"item of detailsList"
>
<view
class=
"temperatureResult"
>
<view
class=
"studentInfo"
>
...
...
@@ -27,8 +28,13 @@
<text>
{{item.temperature}}°C
</text>
</view>
</view>
<view
class=
"temperatureTime"
>
<text>
测量时间:{{item.temperatureTime}}
</text>
</view>
</view>
<view
v-else
class=
"nodata"
>
<view
class=
"nodataImg"
>
</view>
<view
class=
"nodataTxt"
>
<text>
暂无数据~
</text>
</view>
</view>
</view>
...
...
@@ -47,10 +53,11 @@
searchValue
:
""
,
requestInfo
:
{},
detailsList
:
[],
ifShow
:
true
,
}
},
mounted
()
{
this
.
userNoTemperatureDetail
();
this
.
userNoTemperatureDetail
()
.
then
(()
=>
this
.
ifShow
=
this
.
detailsList
.
length
?
true
:
false
)
;
},
methods
:
{
// 搜索框
...
...
@@ -88,8 +95,10 @@
}
if
(
data
.
obj
&&
Array
.
isArray
(
data
.
obj
))
{
this
.
detailsList
=
data
.
obj
;
this
.
ifShow
=
true
;
}
else
{
this
.
detailsList
==
[];
this
.
ifShow
=
false
;
}
}
catch
(
e
)
{
...
...
@@ -173,7 +182,7 @@
.studentInfo
{
display
:
flex
;
align-items
:
flex-end
;
flex-direction
:
column
;
.studentName
{
margin-right
:
32rpx
;
...
...
@@ -188,7 +197,6 @@
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#999999
;
margin-top
:
22rpx
;
}
}
...
...
@@ -197,12 +205,24 @@
font-family
:
PingFang
SC
;
font-weight
:
bold
;
color
:
#333333
;
line-height
:
72rpx
;
display
:
flex
;
align-items
:
center
;
}
}
}
.temperatureTime
{
font-size
:
24rpx
;
.nodata
{
.nodataImg
{
width
:
228rpx
;
height
:
160rpx
;
margin
:
362rpx
auto
14rpx
;
background
:
url(../../../static/images/nodata.png)
center
/
100%
no-repeat
;
}
.nodataTxt
{
display
:
flex
;
justify-content
:
center
;
font-size
:
28rpx
;
font-family
:
PingFang
SC
;
font-weight
:
500
;
color
:
#999999
;
...
...
src/static/images/nodata.png
0 → 100644
View file @
b18e611c
7.03 KB
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