fix: BUG修改
This commit is contained in:
parent
fc76daca2c
commit
b16b2e8cd2
@ -66,15 +66,16 @@
|
||||
<view class="type flex3">
|
||||
<view class="name">现场视频:</view>
|
||||
<view v-if="item.videoFileList && item.videoFileList.length>0">
|
||||
<view class="imgBox flex2 imgBoxVideo" v-for="(item,index) in item.videoFileList" :key="index">
|
||||
<view class="imgBox flex2 imgBoxVideo" v-for="(item,index) in item.videoFileList"
|
||||
:key="index">
|
||||
<view
|
||||
style="color: #4181FE;width: 100%;white-space: nowrap; overflow: hidden;text-overflow: ellipsis;"
|
||||
@click="playVideo(item.url,'video')">
|
||||
{{item.name}}
|
||||
<!-- url_config+'image/'+ -->
|
||||
</view>
|
||||
<view @click="deleteImg(item,2,eIndex,index)"
|
||||
style="margin: 5px;color: gray;" class="deleteImg">×
|
||||
<view @click="deleteImg(item,2,eIndex,index)" style="margin: 5px;color: gray;"
|
||||
class="deleteImg">×
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -95,7 +96,7 @@
|
||||
<view class="rescue-item_add" @click="addRescue()">
|
||||
<image src="/static/icon-add.png" class="icon-add"></image> 新增救援记录
|
||||
</view>
|
||||
<view class="addSaveBtn" @click="addSaveBtn">提交保存</view>
|
||||
<view class="addSaveBtn" @click="addSaveBtn" v-if="btnAuth">提交保存</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -145,9 +146,14 @@
|
||||
|
||||
id: "",
|
||||
emergencyDetail: {},
|
||||
btnAuth: true,
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
this.btnAuth = this.checkBtnPermission({
|
||||
key: 'emergencyDisposal_add',
|
||||
menuPath: '/project/emergencyDisposal/emergencyDisposal'
|
||||
})
|
||||
this.id = option.id;
|
||||
this.statusBarHeight = uni.getStorageSync('systemInfo').statusBarHeight
|
||||
this.pageTitle = option.type == 'add' ? '新增检查' : '编辑检查';
|
||||
|
||||
@ -163,7 +163,7 @@
|
||||
<text>{{item.disposalCompletionTime}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="addSaveBtn" v-if="emergencyDetail.incidentClosedStatus == 1 && btnAuth"
|
||||
<view class="addSaveBtn" v-if="emergencyDetail.incidentClosedStatus == 1"
|
||||
@click="getnavigateTo(`./ImmediateRescue?id=${emergencyDetail.id}`)">
|
||||
立即救援
|
||||
</view>
|
||||
@ -228,7 +228,6 @@
|
||||
emergencyTypeList: [],
|
||||
emergencyInfo: {},
|
||||
statusBarHeight: "",
|
||||
btnAuth: true,
|
||||
btnEditAuth: true
|
||||
}
|
||||
},
|
||||
@ -236,10 +235,6 @@
|
||||
|
||||
},
|
||||
onLoad(options) {
|
||||
this.btnAuth = this.checkBtnPermission({
|
||||
key: 'emergencyDisposal_add',
|
||||
menuPath: '/project/emergencyDisposal/emergencyDisposal'
|
||||
})
|
||||
this.btnEditAuth = this.checkBtnPermission({
|
||||
key: 'emergencyDisposal_edit',
|
||||
menuPath: '/project/emergencyDisposal/emergencyDisposal'
|
||||
|
||||
@ -172,7 +172,7 @@
|
||||
<view class="title">
|
||||
处置报告
|
||||
</view>
|
||||
<view v-if="this.imgList && this.imgList.length > 0"
|
||||
<view v-if="this.imgList && this.imgList.length > 0 && btnAuth"
|
||||
style="color: #5181f6; cursor: pointer; height: 88rpx; justify-content: center; align-items: center;display: flex;"
|
||||
@click="downloadReport(imgList)">
|
||||
下载处置报告
|
||||
@ -203,12 +203,17 @@
|
||||
imgList: [],
|
||||
emergencyTypeList: [],
|
||||
emergencyInfo: {},
|
||||
btnAuth: true
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
},
|
||||
onLoad(options) {
|
||||
this.btnAuth = this.checkBtnPermission({
|
||||
key: 'reliefApprove_download',
|
||||
menuPath: '/project/emergencyDisposal/reliefApprove'
|
||||
})
|
||||
this.id = options.id;
|
||||
this.statusBarHeight = uni.getStorageSync('systemInfo').statusBarHeight;
|
||||
this.projectSn = JSON.parse(uni.getStorageSync('projectDetail')).projectSn;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user