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
1ea7ac28
Commit
1ea7ac28
authored
Jul 01, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 商户首页添加应急演练tab模块
parent
2f6b9aa2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
64 additions
and
2 deletions
+64
-2
_shanghu_home.css
src/_shanghu_home.css
+10
-0
_shanghu_home.html
src/_shanghu_home.html
+45
-2
_shanghu_home.js
src/_shanghu_home.js
+9
-0
No files found.
src/_shanghu_home.css
View file @
1ea7ac28
...
@@ -204,3 +204,13 @@ body {
...
@@ -204,3 +204,13 @@ body {
position
:
absolute
;
position
:
absolute
;
right
:
0
;
right
:
0
;
}
}
/* 应急演练提示内容样式 */
.msgTip
{
background
:
rgb
(
251
,
231
,
231
);
border-radius
:
0.04rem
;
font-weight
:
500
;
font-size
:
0.28rem
;
color
:
rgb
(
255
,
0
,
0
);
padding
:
.2rem
.3rem
;
}
\ No newline at end of file
src/_shanghu_home.html
View file @
1ea7ac28
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
<van-tab
title=
"隐患整改"
></van-tab>
<van-tab
title=
"隐患整改"
></van-tab>
<van-tab
title=
"检查记录"
></van-tab>
<van-tab
title=
"检查记录"
></van-tab>
<van-tab
title=
"自查记录"
></van-tab>
<van-tab
title=
"自查记录"
></van-tab>
<
!-- <van-tab title="培训演练"></van-tab> --
>
<
van-tab
title=
"培训演练"
></van-tab
>
</van-tabs>
</van-tabs>
<div
v-show=
"activeTab===0"
class=
"subNavWrapper"
>
<div
v-show=
"activeTab===0"
class=
"subNavWrapper"
>
...
@@ -97,7 +97,7 @@
...
@@ -97,7 +97,7 @@
</div>
</div>
<!-- 检查记录 -->
<!-- 检查记录 -->
<div
v-show=
"activeTab>0"
class=
"subNavWrapper"
>
<div
v-show=
"activeTab>0
&& activeTab<=2
"
class=
"subNavWrapper"
>
<van-list>
<van-list>
<van-cell
v-for=
"item in jcLisk"
:key=
"item.id"
@
click=
"viewDetail(item,'JC_XQ')"
>
<van-cell
v-for=
"item in jcLisk"
:key=
"item.id"
@
click=
"viewDetail(item,'JC_XQ')"
>
...
@@ -132,6 +132,49 @@
...
@@ -132,6 +132,49 @@
</van-list>
</van-list>
</div>
</div>
<!-- 培训演练 -->
<div
v-show=
"activeTab==3"
class=
"subNavWrapper"
>
<van-list>
<div
class=
"msgTip"
>
该商家4/5/6月份未进行特种作业培训 5月份未进行培训演练
</div>
<van-cell
v-for=
"item in 10"
:key=
"item.id"
@
click=
"viewDetail(item,'YH_XQ')"
>
<div
style=
"width: 100%;"
>
<!-- 第一行:隐患描述 -->
<div
style=
"
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #333;
font-size: 0.3rem;
font-weight: bold;
font-family: PingFang SC;
"
>
{{ item.description || '消防安全培训演练' }}
</div>
<!-- 第二行:状态和时间 -->
<div
style=
"display: flex; justify-content: start; gap: .34rem; margin: 8px 0;"
>
<van-tag
type=
"primary"
>
{{ '培训演练' }}
</van-tag>
<span
style=
"color: #737373; font-size: 0.28rem;"
>
日期:{{ item.checkDate }}
</span>
<van-icon
name=
"arrow"
class=
"navToBtn"
@
click=
"viewDetail(item,'YH_XQ')"
/>
</div>
<!-- 第三行:商家和箭头 -->
<div
style=
"display: flex; justify-content: space-between; align-items: center;"
>
<span
style=
"color: #666; font-size: 0.28rem;"
>
培训人数(人):{{ item.merName }}
</span>
</div>
<div
style=
"display: flex; justify-content: space-between; align-items: center;"
>
<span
style=
"color: #666; font-size: 0.28rem;"
>
培训人:{{ item.merName }}
</span>
</div>
</div>
</van-cell>
</van-list>
</div>
</div>
</div>
</body>
</body>
...
...
src/_shanghu_home.js
View file @
1ea7ac28
...
@@ -107,6 +107,15 @@ window.addEventListener("load", function () {
...
@@ -107,6 +107,15 @@ window.addEventListener("load", function () {
};
};
return
types
[
status
]
||
''
;
return
types
[
status
]
||
''
;
},
},
statusTagType4yl
(
status
)
{
const
types
=
{
'
培训演练
'
:
'
warning
'
,
'
特种作业培训演练
'
:
'
primary
'
,
'
已整改
'
:
'
success
'
,
'
整改逾期
'
:
'
danger
'
,
};
return
types
[
status
]
||
''
;
},
viewDetail
(
item
,
type
)
{
viewDetail
(
item
,
type
)
{
let
params
=
{
let
params
=
{
id
:
item
.
id
,
id
:
item
.
id
,
...
...
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