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
d457b69b
Commit
d457b69b
authored
Jul 25, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:特种作业
parent
3b2223d0
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
75 additions
and
6 deletions
+75
-6
_tezhongzuoye.css
src/_tezhongzuoye.css
+23
-0
_tezhongzuoye.html
src/_tezhongzuoye.html
+5
-0
_tezhongzuoye.js
src/_tezhongzuoye.js
+21
-0
_tezhongzuoye_detail.css
src/_tezhongzuoye_detail.css
+5
-0
_tezhongzuoye_detail.html
src/_tezhongzuoye_detail.html
+2
-2
_tezhongzuoye_detail.js
src/_tezhongzuoye_detail.js
+19
-4
No files found.
src/_tezhongzuoye.css
View file @
d457b69b
...
...
@@ -176,3 +176,26 @@ body {
background-size
:
contain
;
background-repeat
:
no-repeat
;
}
/* 在现有样式中添加以下CSS */
.float-read-btn
{
position
:
fixed
;
/* 固定定位 */
right
:
0.3rem
;
/* 右侧距离 */
bottom
:
0.3rem
;
/* 底部距离 */
width
:
1.07rem
;
/* 宽度 */
height
:
1.07rem
;
/* 高度 */
background
:
#40A6FF
;
/* 背景色 */
border-radius
:
50%
;
/* 圆角 */
display
:
flex
;
/* 弹性布局 */
flex-direction
:
column
;
/* 垂直排列 */
justify-content
:
center
;
/* 垂直居中 */
align-items
:
center
;
/* 水平居中 */
z-index
:
999
;
/* 层级保证不被遮挡 */
cursor
:
pointer
;
/* 手型光标 */
}
.float-read-btn
.btn-text
{
font-size
:
0.28rem
;
/* 文字大小 */
color
:
#FFFFFF
;
/* 文字颜色 */
line-height
:
1.2
;
/* 行高 */
}
\ No newline at end of file
src/_tezhongzuoye.html
View file @
d457b69b
...
...
@@ -57,6 +57,11 @@
</van-cell>
</van-list>
</div>
<!-- 新增悬浮按钮 -->
<div
class=
"float-read-btn"
@
click=
"markAllAsRead"
>
<span
class=
"btn-text"
>
全部
</span>
<span
class=
"btn-text"
>
已读
</span>
</div>
</div>
</body>
</html>
\ No newline at end of file
src/_tezhongzuoye.js
View file @
d457b69b
...
...
@@ -29,6 +29,27 @@ window.addEventListener("load", function() {
this
.
init
()
// 获取隐患记录
},
methods
:
{
markAllAsRead
()
{
// 全部标记为已读
http2
.
post
(
{
serviceId
:
API_KEY_MAP
[
'
submit
'
][
'
id
'
],
interfacePublicKey
:
API_KEY_MAP
[
'
submit
'
][
'
publicKey
'
],
interfacePrivateKey
:
API_KEY_MAP
[
'
submit
'
][
'
privateKey
'
],
reqParams
:
{
sign
:
25
,
// post 设置已读
merId
:
this
.
merId
,
},
},
(
res
)
=>
{
var
result
=
JSON
.
parse
(
res
)
if
(
result
&&
result
.
code
==
200
)
{
vant
.
Toast
({
message
:
'
操作成功
'
,
})
}
}
)
},
reset
()
{
this
.
page
=
1
this
.
size
=
10
...
...
src/_tezhongzuoye_detail.css
View file @
d457b69b
...
...
@@ -313,6 +313,10 @@ body {
top
:
50%
;
transform
:
translateY
(
-50%
);
}
.title_requirediv
::before
{
left
:
1px
}
.selector
{
width
:
4rem
;
...
...
@@ -355,6 +359,7 @@ select:disabled {
gap
:
.16rem
;
margin-top
:
0.25rem
;
margin-bottom
:
0.15rem
;
flex-wrap
:
wrap
;
}
iframe
{
...
...
src/_tezhongzuoye_detail.html
View file @
d457b69b
...
...
@@ -65,12 +65,12 @@
</div>
<!-- 详情模式 -->
<div
class=
"form-label form-label-div"
style=
"width: 4rem;"
>
上传作业证件(最多6张)
</div>
<div
class=
"form-label form-label-div
title_require title_requirediv
"
style=
"width: 4rem;"
>
上传作业证件(最多6张)
</div>
<div
class=
"img-wrapper"
>
<div
style=
"position: relative;"
v-for=
"(imgItem, index) in formData.attachmentFile"
>
<img
:src=
"previewUrl + imgItem"
style=
"width: 1.6rem; height: 1.6rem;"
@
click=
"showImage(formData.attachmentFile, index)"
/>
<div
v-if=
"flag=='
XG
'"
class=
"van-uploader__preview-delete"
<div
v-if=
"flag=='
ADD
'"
class=
"van-uploader__preview-delete"
@
click=
"handleDeleteFloorPlan(index, 'floorPlan')"
><i
class=
"van-icon van-icon-cross van-uploader__preview-delete-icon"
></i></div>
</div>
...
...
src/_tezhongzuoye_detail.js
View file @
d457b69b
...
...
@@ -273,6 +273,12 @@ window.addEventListener("load", function() {
})
return
;
}
if
(
!
this
.
formData
.
check
)
{
vant
.
Dialog
.
alert
({
message
:
'
还未阅读提醒事项
'
,
})
return
;
}
vant
.
Toast
.
loading
({
message
:
'
正在处理...
'
,
...
...
@@ -288,10 +294,19 @@ window.addEventListener("load", function() {
http3
.
post
(
'
/gq/special
'
,
reqParam
).
then
((
res
)
=>
{
console
.
log
(
'
添加结果
'
,
res
)
if
(
res
.
code
===
200
){
vant
.
Toast
({
message
:
res
.
code
===
200
?
'
操作成功
'
:
'
操作失败
'
,
message
:
'
操作成功
'
,
})
location
.
reload
()
setTimeout
(
function
(){
history
.
back
()
},
300
)
}
else
{
vant
.
Toast
({
message
:
'
操作失败
'
,
})
}
})
},
//获取商户信息
...
...
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