| | |
| | | </text> |
| | | <text class="textTop" v-else><b>发布单位:</b>{{detailData.publishingUnit}}</text> |
| | | <text class="textTop"><b>短信内容:</b><i style="background-color: rgb(240, 248, 255);">{{detailData.content}}发布单位:{{detailData.publishingUnit}}</i></text> |
| | | <view style="display: flex;"> |
| | | <view :style="{ height: directViewUrl ? '360px' : '' }" style="margin-top: 20px;"> |
| | | <text class="textTop" style="width: 76px;" ><b>附件内容:</b></text> |
| | | <view class="attache" v-if="isAllImg == 'no'"> |
| | | <view style="width: 100%; height: 350px;" v-if="directViewUrl"> |
| | | <iframe :src="directViewUrl" class="frameStyle"></iframe> |
| | | </view> |
| | | <!-- <view class="attache" v-if="isAllImg == 'no'"> |
| | | <view v-for="(item, index) in detailData.attachments" :key="index" > |
| | | <view style="display: flex;margin-top: 10px;" v-if="item.suffix == 'jpg'|| item.suffix =='jpeg' || item.suffix =='png'"> |
| | | <image @click="previewSqs(item,index)" :src="item.attachment" style="width: 100rpx; height: 100rpx;margin-left: 5rpx;border: 3px solid #ccc;margin-right: 3px;"></image> |
| | |
| | | <u-icon name="attach" color="#2979ff" size="20"></u-icon> {{item.attachementName}} |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <!-- <view style="width: 100%; height: 100px;"> |
| | | <iframe :src="" width="100%" height="100%"> </iframe> |
| | | </view> --> |
| | | |
| | | </view> |
| | | <text class="textTop" v-if="detailData.role == 'leader'"><b>信息提交人:</b>{{detailData.infoSubmitterRealName}}</text> |
| | | <view class="textTop" v-if="detailData.role == 'leader'"> |
| | |
| | | <text v-else class="responseStatus" |
| | | style='color: rgb(153, 148, 143);'>已驳回</text> |
| | | </view> |
| | | <view class="textTop" v-else> |
| | | <!-- <view class="textTop" v-else> |
| | | <text ><b>响应状态:</b></text> |
| | | <text v-if="detailData.responseStatus == 1" class="responseStatus" |
| | | style='background-color:rgb(247, 108, 125);color: white;'>待叫应</text> |
| | |
| | | style='background-color:limegreen'>已叫应</text> |
| | | <text v-else class="responseStatus" |
| | | style='background-color:rgb(247, 108, 125); color: white;'>超时未叫应</text> |
| | | </view> |
| | | </view> --> |
| | | <view v-if="detailData.role == 'leader' && detailData.reviewStatus == 1" class="btn"> |
| | | <u-button |
| | | style="background-color:rgb(6, 202, 23);color: white;width: 180px;" |
| | |
| | | reviewStatus: null |
| | | }, |
| | | role: '', |
| | | unitType: '' |
| | | unitType: '', |
| | | directViewUrl: '' |
| | | } |
| | | }, |
| | | onLoad:function(options){ |
| | |
| | | this.statusBarHeight = uni.getSystemInfoSync()['statusBarHeight']; |
| | | let test = options.data && JSON.parse(decodeURIComponent(options.data)); |
| | | this.detailData = test; |
| | | // if(this.detailData.forwardPath){ |
| | | // this.detailData.publishingUnit = this.detailData.forwardPath.map((item,index) => { |
| | | // if(index == this.detailData.forwardPath.length){ |
| | | // return item |
| | | // }else { |
| | | // return item + '>' |
| | | // } |
| | | |
| | | // }) |
| | | // } |
| | | this.directViewUrl = this.detailData.directViewUrl; |
| | | this.unitType = uni.getStorageSync('unittype'); |
| | | console.log("this.unitType",this.unitType); |
| | | if(this.detailData.role == 'leader' || this.detailData.role == 'infoPeople' ) { |
| | | this.detailData.attachments = this.detailData.attachment; |
| | | if (this.detailData.attachments){ |
| | |
| | | } |
| | | console.log("this.isAllImg",this.isAllImg) |
| | | console.log("detailData",this.detailData) |
| | | this.detailData.disaster = test.disasterType == 1 ? '地震': test.disasterType == 2 ? '洪涝' : test.disasterType == 3 ? '气象' : test.disasterType == 4 ? '泥石流': test.disasterType == 5 ? '水旱': '森林草原火灾'; |
| | | this.detailData.disaster = test.disasterType == 1 ? '地震': test.disasterType == 2 ? '洪涝' : test.disasterType == 3 ? '气象' : test.disasterType == 4 ? '地质灾害': test.disasterType == 5 ? '水旱': '森林草原火灾'; |
| | | }, |
| | | methods: { |
| | | goBack() { |
| | |
| | | goMeasures() { |
| | | getMeasureDetail({id: this.detailData.id}).then(res => { |
| | | if(res.code == 100){ |
| | | if(res.data.id){ |
| | | if(res.data.baseMeasures && res.data.baseMeasures.length>0 ){ |
| | | console.log('111111') |
| | | uni.navigateTo({ |
| | | url: `/pages/tabBar/responsivity/showMeasures?data=` + encodeURIComponent(JSON.stringify(res.data)) |
| | |
| | | box-shadow: 0 3px 12px rgba(33,148,239,0.4); |
| | | } |
| | | } |
| | | .frameStyle{ |
| | | width: 100%; |
| | | height: 350px; |
| | | border: 1px solid #dddddc; |
| | | margin-top: 5px; |
| | | } |
| | | |
| | | </style> |