更新sn显示异常

This commit is contained in:
moleier 2024-04-23 18:32:00 +08:00
parent 570432c388
commit 20d7674bca

View File

@ -12,7 +12,7 @@
自定义隐患 自定义隐患
</view> </view>
</view> --> </view> -->
<view class="dangerLibrary-content flex" id="scroll-panel"> <view class="dangerLibrary-content flex" id="scroll-panel">
<view class="dangerLibrary-nav"> <view class="dangerLibrary-nav">
<scroll-view class="smallHeight" :scroll-into-view="leftIntoView" scroll-y> <scroll-view class="smallHeight" :scroll-into-view="leftIntoView" scroll-y>
@ -43,7 +43,7 @@
<view class="pre-btn" @tap="previewRule(item)"> <view class="pre-btn" @tap="previewRule(item)">
检查依据 检查依据
</view> </view>
<uni-icons type="arrowdown" style="transition: all 0.3s linear;" :class="{'down': !item.isShow, 'up': item.isShow}" color="#6C7178" @tap="showCard(item)"/> <uni-icons type="arrowdown" style="transition: all 0.3s linear;" :class="{'down': !item.isShow, 'up': item.isShow}" color="#6C7178" @tap="showCard(item)"/>
</view> </view>
</view> </view>
@ -59,7 +59,7 @@
</view> </view>
</view> </view>
</view> </view>
<!-- <view class="others-list"> <!-- <view class="others-list">
<view class="others-item" :class="{'b-bottom': item !== 10}" v-for="item in 10" :key="item"> <view class="others-item" :class="{'b-bottom': item !== 10}" v-for="item in 10" :key="item">
<view class="others-detail flex"> <view class="others-detail flex">
@ -84,7 +84,7 @@
</view> </view>
</template> </template>
</dialogs> </dialogs>
<dialogs ref="dialogs2"> <dialogs ref="dialogs2">
<template v-slot:content> <template v-slot:content>
<view class="dialog-title"> <view class="dialog-title">
@ -178,9 +178,9 @@
this.moduleType = val.moduleType this.moduleType = val.moduleType
}, },
onShow(val){ onShow(val){
this.statusBarHeight=uni.getStorageSync('systemInfo').statusBarHeight; this.statusBarHeight=uni.getStorageSync('systemInfo').statusBarHeight;
this.headquartersSn = JSON.parse(uni.getStorageSync('userInfo')).headquartersSn this.headquartersSn = uni.getStorageSync('company').headquartersSn
this.initData() this.initData()
console.log(JSON.parse(uni.getStorageSync('userInfo'))) console.log(JSON.parse(uni.getStorageSync('userInfo')))
}, },
@ -230,11 +230,11 @@
checkNav(val){ checkNav(val){
console.log('点击事件触发了吗',val); console.log('点击事件触发了吗',val);
this.leftIndex = val this.leftIndex = val
if(this.navList[val].children && this.navList[val].children.length >= 1) { if(this.navList[val].children && this.navList[val].children.length >= 1) {
this.rightNavList = this.navList[val].children this.rightNavList = this.navList[val].children
console.log('列表数据',this.rightNavLis); console.log('列表数据',this.rightNavLis);
console.log(this.navList[val].children, '-----分类列表数据') console.log(this.navList[val].children, '-----分类列表数据')
this.navList[val].children.forEach(item=>{ this.navList[val].children.forEach(item=>{
item.isShow = false item.isShow = false
@ -243,7 +243,7 @@
this.rightNavList = [] this.rightNavList = []
} }
}, },
checkNavChildren(val) { checkNavChildren(val) {
console.log('子类调用参数',val); console.log('子类调用参数',val);
@ -253,7 +253,7 @@
url: './addExamine?type='+this.type+'&taskId=' + this.taskId + '&itemId=' + this.itemId + '&engineeringId=' + this.engineeringId + '&moduleType=' + this.moduleType url: './addExamine?type='+this.type+'&taskId=' + this.taskId + '&itemId=' + this.itemId + '&engineeringId=' + this.engineeringId + '&moduleType=' + this.moduleType
}) })
}, },
previewRule(e){ previewRule(e){
console.log('列表数据 点击数据:',e); console.log('列表数据 点击数据:',e);
this.sendRequest({ this.sendRequest({
url: 'xmgl/inspectHiddenDangerItemRecord/selectHiddenDangerItemRecordList', url: 'xmgl/inspectHiddenDangerItemRecord/selectHiddenDangerItemRecordList',
@ -267,7 +267,7 @@
console.log(res.result, '-----分类子项详情') console.log(res.result, '-----分类子项详情')
} }
}) })
}, },
addDanger(e){ addDanger(e){
this.$refs.dialogs2.showFn() this.$refs.dialogs2.showFn()
@ -417,7 +417,7 @@
width: 140rpx; width: 140rpx;
} }
} }
} }
} }
.others-list{ .others-list{
@ -445,7 +445,7 @@
line-height: 40px; line-height: 40px;
border-bottom: 1px solid #ccc; border-bottom: 1px solid #ccc;
} }
.add-form{ .add-form{
margin-bottom: 48rpx; margin-bottom: 48rpx;
.form-item{ .form-item{