Commit 957bca6d authored by xinzhedeai's avatar xinzhedeai

fix:首页统计提醒接口错误重新请求;检查单列表样式统一处理;培训演练一级tab字体调整;商户页面行业主管内容行高自适应。

parent ffa772bc
...@@ -20,10 +20,10 @@ window.onload = function() { ...@@ -20,10 +20,10 @@ window.onload = function() {
//显示的日期 //显示的日期
showDate: '', // currentDate, showDate: '', // currentDate,
// 日期选择的最小范围,这里设置为当前日期的前 10 年 // 日期选择的最小范围,这里设置为当前日期的前 10 年
minDate: new Date(new Date().getFullYear() - 10, 0), minDate: new Date('2025-01-01'),
// 日期选择的最大范围,这里设置为当前日期的后 10 年 // 日期选择的最大范围,这里设置为当前日期的后 10 年
// maxDate: new Date(new Date().getFullYear() + 10, 11), // maxDate: new Date(new Date().getFullYear() + 10, 11),
maxDate: new Date(), maxDate: new Date('2045-01-01'),
userInfo: { userInfo: {
userType: '', // 登录用户type userType: '', // 登录用户type
userId: '1', // 登录用户id userId: '1', // 登录用户id
...@@ -44,7 +44,8 @@ window.onload = function() { ...@@ -44,7 +44,8 @@ window.onload = function() {
accessType: 'manage', // 访问类型 shop商家 saoma 扫码 manage 管理 accessType: 'manage', // 访问类型 shop商家 saoma 扫码 manage 管理
// 修改默认菜单结构为最小化配置 // 修改默认菜单结构为最小化配置
menuList: [], menuList: [],
remindStatistic: [] remindStatistic: [],
errorReqCount: 0,
} }
}, },
mounted() { mounted() {
...@@ -69,9 +70,8 @@ window.onload = function() { ...@@ -69,9 +70,8 @@ window.onload = function() {
(res) => { (res) => {
if (!res) { if (!res) {
// 中台返回为undefined 重新请求 // 中台返回为undefined 重新请求
setTimeout(() => { console.log('getRemindStatistic方法返回null!!')
this.getRemindStatistic() this.getRemindStatistic()
}, 0)
return return
} }
if (res) { if (res) {
...@@ -149,10 +149,24 @@ window.onload = function() { ...@@ -149,10 +149,24 @@ window.onload = function() {
(res) => { (res) => {
if (res) { if (res) {
var result = JSON.parse(res) var result = JSON.parse(res)
if (result.code !== 200 && result.data == null) { if (result.code !== 200 && result.data == null) {
// 中台返回为undefined 重新请求
console.log('getUserInfo=>code200datanull') console.log('getUserInfo=>code200datanull')
setTimeout(() => {
// 如果加载成功后,就不在继续加载页面接口了。处理settimeout堆积问题
if(!this.isLoading){
return return
} }
if(this.errorReqCount <= 5){
this.errorReqCount++
this.init() // 请求错误后,重新发起请求
}
}, 0)
return
}
this.userInfo = { this.userInfo = {
userType: result.data.roleDeptNameVo userType: result.data.roleDeptNameVo
.userType, // 登录用户type .userType, // 登录用户type
...@@ -205,6 +219,21 @@ window.onload = function() { ...@@ -205,6 +219,21 @@ window.onload = function() {
}, },
}, },
(res) => { (res) => {
if (!res) {
// 中台返回为undefined 重新请求
console.log('getRemindStatistic方法返回null!!')
setTimeout(() => {
// 如果加载成功后,就不在继续加载页面接口了。处理settimeout堆积问题
if(!this.isLoading){
return
}
if(this.errorReqCount <= 5){
this.errorReqCount++
this.init() // 请求错误后,重新发起请求
}
}, 0)
return
}
if (res) { if (res) {
var result = JSON.parse(res) var result = JSON.parse(res)
console.log('用户Data', result) console.log('用户Data', result)
......
...@@ -108,7 +108,7 @@ body { ...@@ -108,7 +108,7 @@ body {
font-weight: bold; font-weight: bold;
} }
.tab1-row2{ .tab1-row2{
display: flex; justify-content: space-between; color: #666; font-size: 0.28rem; margin-bottom: 8px; display: flex; justify-content: space-between; color: #323233; font-size: 0.28rem; margin-bottom: 8px;
} }
.tab1-row2 span{ .tab1-row2 span{
display: inline-block; width: 50%; display: inline-block; width: 50%;
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
">九小场所消防安全检查清单</div> ">九小场所消防安全检查清单</div>
<div style="display: flex; justify-content: start; gap: .34rem; margin: 8px 0;"> <div style="display: flex; justify-content: start; gap: .34rem; margin: 8px 0;">
<span style="color: #737373; font-size: 0.28rem;">检查时间:{{ item.checkDate }}</span> <span style="color: #323233; font-size: 0.28rem;">检查时间:{{ item.checkDate }}</span>
</div> </div>
<div class="tab1-row1" v-if="activeTab=='1'"> <div class="tab1-row1" v-if="activeTab=='1'">
<span>检查单位:{{ item.checkUnit || '-' }}</span> <span>检查单位:{{ item.checkUnit || '-' }}</span>
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
<!-- 第二行:状态和时间 --> <!-- 第二行:状态和时间 -->
<div style="display: flex; justify-content: start; gap: .34rem; margin: 8px 0;"> <div style="display: flex; justify-content: start; gap: .34rem; margin: 8px 0;">
<span style="color: #737373; font-size: 0.28rem;">检查时间:{{ item.checkDate }}</span> <span style="color: #323233; font-size: 0.28rem;">检查时间:{{ item.checkDate }}</span>
</div> </div>
<div class="tab1-row1"> <div class="tab1-row1">
<span>检查单位:{{ item.checkUnit }}</span> <span>检查单位:{{ item.checkUnit }}</span>
......
...@@ -64,12 +64,17 @@ background-color: #f5f6fa; ...@@ -64,12 +64,17 @@ background-color: #f5f6fa;
color: #000; color: #000;
} }
.van-tab__text { .van-tab__text {
font-weight: bold; font-weight: bold;
font-size: 0.24rem; font-size: 0.3rem;
/* color: #000; */ /* color: #000; */
} }
.subNavWrapper .van-tab__text {
font-size: 0.24rem;
}
.van-tab--active { .van-tab--active {
color: #1081e3; color: #1081e3;
} }
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<!-- Tab栏 --> <!-- Tab栏 -->
<van-tabs v-model:active="activeTab" @click="clickTab" title-active-color="#1989fa" line-height="2px" <van-tabs v-model:active="activeTab" @click="clickTab" title-active-color="#1989fa" line-height="2px"
style="margin-bottom: 15px;"> style="margin-bottom: 15px;">
<van-tab :title="item.dictLabel" v-for="item in tabList4lv1"></van-tab> <van-tab :title="item.dictLabel" v-for="item in tabList4lv1" style="font-size:.3rem"></van-tab>
<!-- <van-tab title="安全培训" name="0"></van-tab> <!-- <van-tab title="安全培训" name="0"></van-tab>
<van-tab title="应急演练" name="1"></van-tab> --> <van-tab title="应急演练" name="1"></van-tab> -->
......
...@@ -205,10 +205,11 @@ ...@@ -205,10 +205,11 @@
<!-- 特殊处理:编辑没有详情有 --> <!-- 特殊处理:编辑没有详情有 -->
<div <div
class="form-item" class="form-item"
style="max-height: 1.4rem; height:auto;"
v-if="flag=='XQ'" v-if="flag=='XQ'"
> >
<span class="form-label">行业主管</span> <span class="form-label">行业主管</span>
<div class="form-input-wrap" style="color: #333;font-size: .3rem;"> <div class="form-input-wrap" style="color: #333;font-size: .3rem;padding-top:.2rem;padding-bottom: .2rem;">
{{ formData.industryDeptName }} {{ formData.industryDeptName }}
</div> </div>
</div> </div>
......
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