fix: opl详情显示图片
This commit is contained in:
parent
5749845e38
commit
f788fdac3f
|
@ -74,6 +74,18 @@
|
|||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">现场照片</view>
|
||||
<view class="content">
|
||||
<u-upload :custom-btn="true" :file-list="create_imgs_list" :show-progress="false" :auto-upload="false" :deletable="false"></u-upload>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">关闭照片</view>
|
||||
<view class="content">
|
||||
<u-upload :custom-btn="true" :file-list="close_imgs_list" :show-progress="false" :auto-upload="false" :deletable="false"></u-upload>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="title">监控状态</view>
|
||||
<view class="content contentFlex">
|
||||
|
@ -173,6 +185,8 @@
|
|||
measures_checked_:{},
|
||||
mtask_uid:null
|
||||
},
|
||||
create_imgs_list: [],
|
||||
close_imgs_list: [],
|
||||
msOptions:{
|
||||
"REVOKED": "已停止",
|
||||
"STARTED": "进行中",
|
||||
|
@ -197,11 +211,11 @@
|
|||
onLoad(params) {
|
||||
this.oplId = params.oplId;
|
||||
this.getOpl();
|
||||
},
|
||||
onShow() {
|
||||
this.getworkerList();//工作人员
|
||||
this.getgasList();//气体检测记录
|
||||
},
|
||||
onShow() {
|
||||
},
|
||||
methods: {
|
||||
cancelPreImg(){
|
||||
this.preImg = false;
|
||||
|
@ -212,6 +226,18 @@
|
|||
let that = this;
|
||||
that.$u.api.oplItem(that.oplId).then((res) => {
|
||||
that.formData ={...res} ;
|
||||
res.create_imgs_.forEach(item=>{
|
||||
that.create_imgs_list.push({
|
||||
url: that.vuex_host+item.path,
|
||||
id:item.id,
|
||||
})
|
||||
})
|
||||
res.close_imgs_.forEach(item=>{
|
||||
that.close_imgs_list.push({
|
||||
url: that.vuex_host+item.path,
|
||||
id:item.id,
|
||||
})
|
||||
})
|
||||
});
|
||||
},
|
||||
//
|
||||
|
@ -293,6 +319,12 @@
|
|||
},
|
||||
preView(srcImg){
|
||||
this.preImg = true;
|
||||
if(srcImg=='' || srcImg == null){
|
||||
uni.showToast({
|
||||
title: '未上传证件照片',
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
this.preImgSrc = this.vuex_host+srcImg;
|
||||
console.log(this.preImgSrc)
|
||||
// this.$refs.imgPreView.open();
|
||||
|
|
Loading…
Reference in New Issue