Commit d457b69b authored by xinzhedeai's avatar xinzhedeai

fix:特种作业

parent 3b2223d0
......@@ -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
......@@ -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
......@@ -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
......
......@@ -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{
......
......@@ -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>
......
......@@ -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: '操作失败',
})
}
})
},
//获取商户信息
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment