风险管控排查问题修复

pull/5/head
wangpeng 2024-02-19 23:28:44 +08:00
parent ea5511557e
commit e00f386f42
5 changed files with 83 additions and 84 deletions

View File

@ -19,30 +19,26 @@
<scroll-view class="dy-scroll" @scrolltolower="scrolltolower" scroll-y :style="'top:'+sTop+'px;height:calc(100vh - '+totalHeight+'px)'">
<view v-if="total>0" class="dy-list">
<!-- <view v-for="(item,index) of list" :key="index" :data-id="item.HIDDEN_ID" class="dy-list-item p201 arrow" @click="$noMultipleClicks(gotRectify,item.HIDDEN_ID)">-->
<view v-for="(item,index) of list" :key="index" :data-id="item.HIDDEN_ID" class="dy-list-item p201 arrow" @click="gotRectify(item)">
<view class="dy-subtitle-flex">
<text v-if="item.SOURCE=='1'"></text>
<text>{{ '隐患描述:' + (item.HIDDENDESCR ? (item.HIDDENDESCR.length > 15 ? item.HIDDENDESCR.substr(0, 15) + '...' : item.HIDDENDESCR) : '暂无') }}</text>
</view>
<view class="dy-subtitle">
<text>隐患级别</text>
<view v-for="(item,index) of list" :key="index" :data-id="item.HIDDEN_ID" class="dy-list-item p201 arrow" @click="$noMultipleClicks(gotRectify,item)">
<view class="dy-title-flex">
<text v-if="item.HIDDENDESCR">{{item.HIDDENDESCR.length>15?item.HIDDENDESCR.substr(0,15)+'...':item.HIDDENDESCR}}</text>
<text v-else></text>
<text v-if="item.HIDDENLEVEL=='hiddenLevel0001'" class="cu-tag radius bg-yellow light">{{item.HIDDENLEVELNAME}}</text>
<text v-else-if="item.HIDDENLEVEL=='hiddenLevel0002'" class="cu-tag radius bg-red light">{{item.HIDDENLEVELNAME}}</text>
<text v-if="item.HIDDENLEVEL=='hiddenLevel0002'&&item.ISCONFIRM=='0'" class="cu-tag radius bg-grey light"></text>
<text v-if="item.HIDDENLEVEL=='hiddenLevel0002'&&item.ISCONFIRM=='1'" class="cu-tag radius bg-green light"></text>
</view>
<view class="dy-subtitle">
<view class="dy-subtitle-flex">
<text v-if="item.SOURCE=='4' || item.SOURCE=='5'"></text>
<text v-else-if="item.HIDDEN_RISKSTANDARD=='1'">风险排查清单检查</text>
<text v-else-if="item.HIDDEN_RISKSTANDARD=='2'">隐患排查清单检查</text>
<text v-if="item.SOURCE=='1'"></text>
<text v-else-if="item.SOURCE=='2'">隐患来源隐患排查</text>
<text v-else-if="item.SOURCE=='3'">隐患来源隐患排查</text>
<text v-else-if="item.SOURCE=='4'">隐患来源安全环保检查</text>
<text v-else-if="item.SOURCE=='5'">隐患来源安全环保检查</text>
</view>
<view class="dy-subtitle-flex">
<text>整改人{{item.RECTIFICATIONORNAME?item.RECTIFICATIONORNAME:'暂无'}}</text>
</view>
<view class="dy-subtitle-flex">
<text>整改时间 {{item.RECTIFICATIONTIME}}</text>
<text class="text-gray f20">{{item.RECTIFICATIONTIME}}</text>
</view>
</view>
</view>
@ -189,7 +185,11 @@
},
//
gotRectify(e) {
if (e.HIDDEN_RISKSTANDARD === '1') {
if (e.SOURCE === '4' || e.SOURCE === '5') {
uni.navigateTo({
url: '/pages/application/hidden-danger-management/hidden-danger-check/hidden-danger-check-detail?id='+e.HIDDEN_ID,
});
} else if (e.HIDDEN_RISKSTANDARD === '1') {
uni.navigateTo({
url: '/pages/application/hidden-danger-management/hidden-danger-check/hidden-danger-check-risk-detail?id='+e.HIDDEN_ID,
});

View File

@ -19,35 +19,25 @@
<scroll-view class="dy-scroll" @scrolltolower="scrolltolower" scroll-y :style="'top:'+sTop+'px;height:calc(100vh - '+totalHeight+'px)'">
<view v-if="total>0" class="dy-list">
<!-- <view v-for="(item,index) of list" :key="index" :data-id="item.HIDDEN_ID" class="dy-list-item p201 arrow" @click="$noMultipleClicks(gotRectify,item.HIDDEN_ID)">-->
<view v-for="(item,index) of list" :key="index" :data-id="item.HIDDEN_ID" class="dy-list-item p201 arrow" @click="gotRectify(item)">
<view v-for="(item,index) of list" :key="index" :data-id="item.HIDDEN_ID" class="dy-list-item p201 arrow" @click="$noMultipleClicks(gotRectify,item)">
<view class="dy-title-flex">
<view class="dy-subtitle-flex">
<text>隐患描述</text>
<text v-if="item.HIDDENDESCR" class="hidden-desc-text">{{item.HIDDENDESCR.length>15?item.HIDDENDESCR.substr(0,15)+'...':item.HIDDENDESCR}}</text>
<text v-if="item.HIDDENDESCR">{{item.HIDDENDESCR.length>15?item.HIDDENDESCR.substr(0,15)+'...':item.HIDDENDESCR}}</text>
<text v-else></text>
<text v-if="item.HIDDENLEVEL=='hiddenLevel0001'" class="cu-tag radius bg-yellow light">{{item.HIDDENLEVELNAME}}</text>
<text v-else-if="item.HIDDENLEVEL=='hiddenLevel0002'" class="cu-tag radius bg-red light">{{item.HIDDENLEVELNAME}}</text>
</view>
</view>
<view class="dy-subtitle">
<view class="dy-subtitle-flex">
<text v-if="item.SOURCE=='4' || item.SOURCE=='5'"></text>
<text v-else-if="item.HIDDEN_RISKSTANDARD=='1'">风险排查清单检查</text>
<text v-else-if="item.HIDDEN_RISKSTANDARD=='2'">隐患排查清单检查</text>
<text v-if="item.SOURCE=='1'"></text>
<text v-else-if="item.SOURCE=='2'">隐患来源隐患排查</text>
<text v-else-if="item.SOURCE=='3'">隐患来源隐患排查</text>
<text v-else-if="item.SOURCE=='4'">隐患来源安全环保检查</text>
<text v-else-if="item.SOURCE=='5'">隐患来源安全环保检查</text>
</view>
<view class="dy-subtitle">
<text>隐患级别</text>
<text v-if="item.HIDDENLEVEL=='hiddenLevel0001'" class="cu-tag radius bg-yellow light">{{item.HIDDENLEVELNAME}}</text>
<text v-else-if="item.HIDDENLEVEL=='hiddenLevel0002'" class="cu-tag radius bg-red light">{{item.HIDDENLEVELNAME}}</text>
<text v-if="item.HIDDENLEVEL=='hiddenLevel0002'&&item.ISCONFIRM=='0'" class="cu-tag radius bg-grey light"></text>
<text v-if="item.HIDDENLEVEL=='hiddenLevel0002'&&item.ISCONFIRM=='1'" class="cu-tag radius bg-green light"></text>
</view>
<view class="dy-subtitle-flex">
<text>整改人{{item.RECTIFICATIONORNAME?item.RECTIFICATIONORNAME:'暂无'}}</text>
</view>
<view class="dy-subtitle-flex">
<text>整改时间 {{item.RECTIFICATIONTIME}}</text>
<text class="text-gray f20">{{item.RECTIFICATIONTIME}}</text>
</view>
</view>
</view>
@ -199,7 +189,11 @@
},
//
gotRectify(e) {
if (e.HIDDEN_RISKSTANDARD === '1') {
if (e.SOURCE === '4' || e.SOURCE === '5') {
uni.navigateTo({
url: '/pages/application/hidden-danger-management/hidden-danger-record/hidden-danger-record-detail?id='+e.HIDDEN_ID,
});
} else if (e.HIDDEN_RISKSTANDARD === '1') {
uni.navigateTo({
url: '/pages/application/hidden-danger-management/hidden-danger-record/hidden-danger-record-risk-detail?id='+e.HIDDEN_ID,
});

View File

@ -21,22 +21,23 @@
<view v-for="(item,index) of list" :key="index" :data-id="item.HIDDEN_ID" class="dy-list-item p201 arrow" @click="$noMultipleClicks(gotRectify,item)">
<view class="dy-title-flex">
<view>
<view class="dy-subtitle">
<text>{{ '隐患描述:' + (item.HIDDENDESCR ? (item.HIDDENDESCR.length > 15 ? item.HIDDENDESCR.substr(0, 15) + '...' : item.HIDDENDESCR) : '暂无') }}</text>
<text v-if="item.HIDDENDESCR">{{item.HIDDENDESCR.length>15?item.HIDDENDESCR.substr(0,15)+'...':item.HIDDENDESCR}}</text>
<text v-else></text>
</view>
</view>
</view>
<view class="dy-subtitle">
<text>隐患级别</text>
<view>
<text v-if="item.HIDDENLEVEL=='hiddenLevel0001'" class="cu-tag radius bg-yellow light">{{item.HIDDENLEVELNAME}}</text>
<text v-else-if="item.HIDDENLEVEL=='hiddenLevel0002'" class="cu-tag radius bg-red light">{{item.HIDDENLEVELNAME}}</text>
<text v-if="item.HIDDENLEVEL=='hiddenLevel0002'" class="cu-tag radius bg-red light">{{item.HIDDENLEVELNAME}}</text>
<text v-if="item.HIDDENLEVEL=='hiddenLevel0002'&&item.ISCONFIRM=='0'" class="cu-tag radius bg-grey light"></text>
<text v-if="item.HIDDENLEVEL=='hiddenLevel0002'&&item.ISCONFIRM=='1'" class="cu-tag radius bg-green light"></text>
</view>
<view class="dy-subtitle">
</view>
<view class="dy-subtitle-flex">
<text v-if="item.SOURCE=='4' || item.SOURCE=='5'"></text>
<text v-else-if="item.HIDDEN_RISKSTANDARD=='1'">风险排查清单检查</text>
<text v-else-if="item.HIDDEN_RISKSTANDARD=='2'">隐患排查清单检查</text>
<text v-if="item.SOURCE=='1'"></text>
<text v-else-if="item.SOURCE=='2'">隐患来源隐患排查</text>
<text v-else-if="item.SOURCE=='3'">隐患来源隐患排查</text>
<text v-else-if="item.SOURCE=='4'">隐患来源安全环保检查</text>
<text v-else-if="item.SOURCE=='5'">隐患来源安全环保检查</text>
</view>
<view class="dy-subtitle-flex">
<text>整改人{{item.RECTIFICATIONORNAME?item.RECTIFICATIONORNAME:'暂无'}}</text>
@ -198,7 +199,11 @@
icon:'none'
});
}else{
if (e.HIDDEN_RISKSTANDARD === '1') {
if (e.SOURCE === '4' || e.SOURCE === '5') {
uni.navigateTo({
url: '/pages/application/hidden-danger-management/hidden-danger-no-change/hidden-danger-no-change-detail?id='+e.HIDDEN_ID,
});
} else if (e.HIDDEN_RISKSTANDARD === '1') {
uni.navigateTo({
url: '/pages/application/hidden-danger-management/hidden-danger-no-change/hidden-danger-no-change-risk-detail?id='+e.HIDDEN_ID,
});

View File

@ -18,27 +18,26 @@
</view>
<scroll-view class="dy-scroll" @scrolltolower="scrolltolower" scroll-y :style="'top:'+sTop+'px;height:calc(100vh - '+totalHeight+'px)'">
<view v-if="total>0" class="dy-list">
<view v-for="(item,index) of list" :key="index" :data-id="item.HIDDEN_ID" class="dy-list-item p201 arrow" @click="$noMultipleClicks(gotRectify,item.HIDDEN_ID)">
<view v-for="(item,index) of list" :key="index" :data-id="item.HIDDEN_ID" class="dy-list-item p201 arrow" @click="$noMultipleClicks(gotRectify,item)">
<view class="dy-title-flex">
<view class="dy-subtitle-flex">
<text>隐患描述</text>
<text v-if="item.HIDDENDESCR" class="hidden-desc-text">{{item.HIDDENDESCR.length>15?item.HIDDENDESCR.substr(0,15)+'...':item.HIDDENDESCR}}</text>
<view>
<text v-if="item.HIDDENDESCR">{{item.HIDDENDESCR.length>15?item.HIDDENDESCR.substr(0,15)+'...':item.HIDDENDESCR}}</text>
<text v-else></text>
</view>
</view>
<view class="dy-subtitle">
<text>隐患级别</text>
<view>
<text v-if="item.HIDDENLEVEL=='hiddenLevel0001'" class="cu-tag radius bg-yellow light">{{item.HIDDENLEVELNAME}}</text>
<text v-else-if="item.HIDDENLEVEL=='hiddenLevel0002'" class="cu-tag radius bg-red light">{{item.HIDDENLEVELNAME}}</text>
<text v-if="item.HIDDENLEVEL=='hiddenLevel0002'" class="cu-tag radius bg-red light">{{item.HIDDENLEVELNAME}}</text>
<text v-if="item.HIDDENLEVEL=='hiddenLevel0002'&&item.ISCONFIRM=='0'" class="cu-tag radius bg-grey light"></text>
<text v-if="item.HIDDENLEVEL=='hiddenLevel0002'&&item.ISCONFIRM=='1'" class="cu-tag radius bg-green light"></text>
</view>
</view>
<view class="dy-subtitle">
<text v-if="item.SOURCE=='4' || item.SOURCE=='5'"></text>
<text v-else-if="item.HIDDEN_RISKSTANDARD=='1'">风险排查清单检查</text>
<text v-else-if="item.HIDDEN_RISKSTANDARD=='2'">隐患排查清单检查</text>
<text v-if="item.SOURCE=='1'"></text>
<text v-else-if="item.SOURCE=='2'">隐患来源隐患排查</text>
<text v-else-if="item.SOURCE=='3'">隐患来源隐患排查</text>
<text v-else-if="item.SOURCE=='4'">隐患来源安全环保检查</text>
<text v-else-if="item.SOURCE=='5'">隐患来源安全环保检查</text>
</view>
<view class="dy-subtitle-flex">
<text>整改人{{item.RECTIFICATIONORNAME?item.RECTIFICATIONORNAME:'暂无'}}</text>
@ -194,7 +193,11 @@
},
//
gotRectify(e) {
if (e.HIDDEN_RISKSTANDARD === '1') {
if (e.SOURCE === '4' || e.SOURCE === '5') {
uni.navigateTo({
url: '/pages/application/hidden-danger-management/hidden-danger-overdue/hidden-danger-overdue-detail?id='+e.HIDDEN_ID,
});
} else if (e.HIDDEN_RISKSTANDARD === '1') {
uni.navigateTo({
url: '/pages/application/hidden-danger-management/hidden-danger-overdue/hidden-danger-overdue-risk-detail?id='+e.HIDDEN_ID,
});

View File

@ -44,8 +44,8 @@
隐患级别
</view>
<view class="flex margin-top-xs sr-s">
<view class="cu-btn radiued margin-xs" :class="HIDDENLEVEL=='hiddenLevel0001'?'bg-blue':'line-blue'" @click="changeLevel('hiddenLevel0001')"></view>
<view class="cu-btn radiued margin-xs" :class="HIDDENLEVEL=='hiddenLevel0002'?'bg-blue':'line-blue'" @click="changeLevel('hiddenLevel0002')"></view>
<view class="cu-btn radiued margin-xs" :class="HIDDEN_RISKSTANDARD=='1'?'bg-blue':'line-blue'" @click="changeRiskStandard('1')"></view>
<view class="cu-btn radiued margin-xs" :class="HIDDEN_RISKSTANDARD=='2'?'bg-blue':'line-blue'" @click="changeRiskStandard('2')"></view>
</view>
<view class="padding-sm bb-default">
隐患级别
@ -110,31 +110,24 @@
<scroll-view class="dy-scroll" @scrolltolower="scrolltolower" scroll-y :style="'top:'+sTop+'px;height:calc(100vh - '+totalHeight+'px)'">
<view v-if="total>0" class="dy-list">
<!-- <view v-for="(item,index) of list" :key="index" :data-id="item.HIDDEN_ID" class="dy-list-item p201 arrow" @click="$noMultipleClicks(gotRectify,item.HIDDEN_ID)">-->
<view v-for="(item,index) of list" :key="index" :data-id="item.HIDDEN_ID" class="dy-list-item p201 arrow" @click="gotRectify(item)">
<view class="dy-item-flex">
<view class="dy-subtitle">
<text>隐患描述</text>
<view v-for="(item,index) of list" :key="index" :data-id="item.HIDDEN_ID" class="dy-list-item p201 arrow" @click="$noMultipleClicks(gotRectify, item)">
<view class="dy-title-flex">
<text v-if="item.HIDDENDESCR">{{item.HIDDENDESCR.length>15?item.HIDDENDESCR.substr(0,15)+'...':item.HIDDENDESCR}}</text>
<text v-else></text>
</view>
<view class="dy-subtitle">
<text>隐患级别</text>
<text v-if="item.HIDDENLEVEL=='hiddenLevel0001'" class="cu-tag radius bg-yellow light">{{item.HIDDENLEVELNAME}}</text>
<text v-else-if="item.HIDDENLEVEL=='hiddenLevel0002'" class="cu-tag radius bg-red light">{{item.HIDDENLEVELNAME}}</text>
<text v-else-if="item.HIDDENLEVEL=='hiddenLevel0002'" class="cu-tag radius bg-red light" >{{item.HIDDENLEVELNAME}}</text>
</view>
</view>
<view class="dy-subtitle">
<view class="dy-subtitle-flex">
<text v-if="item.SOURCE=='4' || item.SOURCE=='5'"></text>
<text v-else-if="item.HIDDEN_RISKSTANDARD=='1'">风险排查清单检查</text>
<text v-else-if="item.HIDDEN_RISKSTANDARD=='2'">隐患排查清单检查</text>
<text v-if="item.SOURCE=='1'"></text>
<text v-else-if="item.SOURCE=='2'">隐患来源隐患排查</text>
<text v-else-if="item.SOURCE=='3'">隐患来源隐患排查</text>
<text v-else-if="item.SOURCE=='4'">隐患来源安全环保检查</text>
<text v-else-if="item.SOURCE=='5'">隐患来源安全环保检查</text>
</view>
<view class="dy-subtitle-flex">
<text>整改人{{item.RECTIFICATIONORNAME?item.RECTIFICATIONORNAME:'暂无'}}</text>
</view>
<view class="dy-subtitle-flex">
<text>整改时间{{item.RECTIFICATIONTIME}}</text>
<text v-if="item.RECTIFICATIONTIME">{{item.RECTIFICATIONTIME}}</text>
</view>
</view>
</view>
@ -372,7 +365,11 @@
},
//
gotRectify(e) {
if (e.HIDDEN_RISKSTANDARD === '1') {
if (e.SOURCE === '4' || e.SOURCE === '5') {
uni.navigateTo({
url: '/pages/application/hidden-danger-management/hidden-danger-record/hidden-danger-record-detail?id='+e.HIDDEN_ID,
});
} else if (e.HIDDEN_RISKSTANDARD === '1') {
uni.navigateTo({
url: '/pages/application/hidden-danger-management/hidden-danger-record/hidden-danger-record-risk-detail?id='+e.HIDDEN_ID,
});