Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GaoQuYingJiH5-ASD
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
xinzhedeai
GaoQuYingJiH5-ASD
Commits
3dd4588a
Commit
3dd4588a
authored
Jun 16, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 检查记录 最新提醒标记、布局调整
parent
8dc9bb9d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
28 deletions
+40
-28
_checkrecord-all.css
src/_checkrecord-all.css
+4
-1
_checkrecord-all.html
src/_checkrecord-all.html
+10
-7
_checkrecord-all.js
src/_checkrecord-all.js
+26
-20
No files found.
src/_checkrecord-all.css
View file @
3dd4588a
...
...
@@ -99,10 +99,13 @@ body {
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
margin-bottom
:
8px
;
}
.bold
{
color
:
#333
;
font-size
:
0.3rem
;
font-weight
:
bold
;
margin-bottom
:
8px
;
}
.tab1-row2
{
display
:
flex
;
justify-content
:
space-between
;
color
:
#666
;
font-size
:
0.28rem
;
margin-bottom
:
8px
;
...
...
src/_checkrecord-all.html
View file @
3dd4588a
...
...
@@ -26,24 +26,27 @@
</van-tabs>
</div>
<van-list>
<van-list
v-model:loading=
"loading"
:offset=
"10"
:finished=
"finished"
finished-text=
"没有更多了"
@
load=
"getList"
:immediate-check=
"false"
>
<van-cell
v-for=
"item in hazardList"
:key=
"item.id"
@
click=
"viewDetail(item.id)"
>
<div
style=
"width: 100%;position: relative;"
v-if=
"activeTab=='1'"
>
<div
class=
"reminder-badge"
>
新
</div>
<div
class=
"reminder-badge"
v-if=
"!item.msgFlag"
>
新
</div>
<!-- 第一行:商户名称 -->
<div
class=
"tab1-row1
"
>
{{ item.merchant
Name }}
</div>
<div
class=
"tab1-row1
bold"
>
{{ item.mer
Name }}
</div>
<!-- 第二行:场所类型 + 检查单位(两列) -->
<div
class=
"tab1-row2"
>
<span>
场所类型:{{ item.smallPlaceTypeName }}
</span>
<span>
检查单位:{{ item.checkUnit }}
</span>
<div
class=
"tab1-row1"
>
<span>
场所类型:{{ item.placeType }}
</span>
</div>
<!-- 第三行:监察人 + 检查日期(两列) -->
<div
class=
"tab1-row2"
>
<span>
检查人:{{ item.checkPeopleName }}
</span>
<span>
检查日期:{{ item.checkDate }}
</span>
<span>
检查日期:{{ item.checkDate
&&
item.checkDate.split(' ')[0]
}}
</span>
</div>
<div
class=
"tab1-row1"
>
<span>
检查单位:{{ item.checkUnit }}
</span>
</div>
<!-- 第四行:未整改数 + 隐患数(两列) -->
<div
class=
"tab1-row2"
>
...
...
src/_checkrecord-all.js
View file @
3dd4588a
...
...
@@ -4,7 +4,7 @@ window.addEventListener('load', function () {
el
:
'
#app
'
,
data
()
{
return
{
merName
:
''
,
merName
:
''
,
// 新增子Tab数据
activeTab
:
'
1
'
,
hazardList
:
[
...
...
@@ -57,8 +57,12 @@ window.addEventListener('load', function () {
hiddenCount
:
0
,
//隐患数
hiddenNoReCount
:
0
,
//未整改数
},
loading
:
false
,
finished
:
false
,
page
:
1
,
size
:
10
,
total
:
0
,
merId
:
null
,
// 商户id
unitName
:
''
,
// 单位名称
smallPlaceTypeName
:
''
,
// 场所类型
...
...
@@ -73,25 +77,25 @@ window.addEventListener('load', function () {
},
computed
:
{},
methods
:
{
reset
()
{
this
.
page
=
1
this
.
size
=
10
this
.
hazardList
=
[]
},
onSearch
()
{
console
.
log
(
'
xxxx
'
,
this
.
merName
)
this
.
reset
(
)
this
.
getMerchantSelfCheckData
()
},
reset
()
{
this
.
page
=
1
this
.
size
=
10
this
.
total
=
0
this
.
hazardList
=
[]
},
onSearch
()
{
console
.
log
(
'
xxxx
'
,
this
.
merName
)
this
.
init
()
},
//初始化页面
init
()
{
// this.getMerchantSelfCheckData()
this
.
reset
()
this
.
getList
()
},
tabChange
(){
this
.
reset
()
this
.
getMerchantSelfCheckData
()
},
getMerchantSelfCheckData
()
{
tabChange
()
{
this
.
init
()
},
getList
()
{
// 更多示例数据...
vant
.
Toast
.
loading
({
message
:
'
正在加载...
'
,
...
...
@@ -111,8 +115,8 @@ window.addEventListener('load', function () {
pageNum
:
this
.
page
++
,
// 每次请求增加下一页
pageSize
:
this
.
size
,
sort
:
'
lawId,desc
'
,
merName
:
this
.
merName
,
merName
:
this
.
merName
,
},
},
(
res
)
=>
{
...
...
@@ -121,16 +125,18 @@ window.addEventListener('load', function () {
vant
.
Toast
.
clear
()
this
.
page
=
this
.
page
-
1
// 重新请求后,分页数恢复上一次请求的值
setTimeout
(()
=>
{
this
.
get
MerchantSelfCheckData
()
this
.
get
List
()
},
0
)
return
}
if
(
res
)
{
var
result
=
JSON
.
parse
(
res
)
console
.
log
(
'
接口信息
'
,
result
)
if
(
result
.
code
!==
200
&&
result
.
data
==
null
)
{
return
}
this
.
hazardList
.
push
(...
result
.
rows
)
this
.
total
=
result
.
total
if
(
this
.
page
*
this
.
size
>=
this
.
total
)
{
this
.
finished
=
true
// 下滑不在刷新数据
}
...
...
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