Browse Source

巡查安检bug

v4.3.1_xiaowang_bug
是小王呀\24601 1 year ago
parent
commit
4069923c83
  1. 1
      subpages/InspectionReport/pages/InspectionReport/InspectionReport.js
  2. 14
      subpages/safetyinspection/pages/safetyinspection/safetyinspection.js
  3. 3
      subpages/safetyinspection/pages/safetyinspection/safetyinspection.json
  4. 5
      subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxml
  5. 4
      subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxss

1
subpages/InspectionReport/pages/InspectionReport/InspectionReport.js

@ -202,6 +202,7 @@ Page({
console.log(newArr)
this.setData({
addHiddenDangeList: newArr,
hazardDesc2:""
});
}
let form={

14
subpages/safetyinspection/pages/safetyinspection/safetyinspection.js

@ -11,6 +11,8 @@ Page({
* 页面的初始数据
*/
data: {
attachmentUrl:"",
imageshow:false,
orgid:'',
orgType:'',
pageNo:'1',
@ -105,6 +107,18 @@ Page({
*/
onShareAppMessage() {
},
onImage(e){
const attachmentUrls = e.currentTarget.dataset.item;
console.log(attachmentUrls.attachmentUrl);
this.setData({
imageshow: true,
attachmentUrl:attachmentUrls.attachmentUrl
});
},
onClose1() {
this.setData({ imageshow: false });
},
securityCheckk(){
securityCheckk({
pageNo: this.data.pageNo,

3
subpages/safetyinspection/pages/safetyinspection/safetyinspection.json

@ -8,7 +8,8 @@
"van-popup": "@vant/weapp/popup/index",
"van-picker": "@vant/weapp/picker/index",
"wux-actionsheet": "../../../../components/dist/actionsheet/index",
"van-datetime-picker": "@vant/weapp/datetime-picker/index"
"van-datetime-picker": "@vant/weapp/datetime-picker/index",
"van-image": "@vant/weapp/image/index"
},
"permissions": {

5
subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxml

@ -146,7 +146,7 @@
<view>
<text class="logs-content-title" wx:if="{{item.attachmentUrls}}">附件:</text>
<block wx:if="{{item.attachmentUrls.length > 0}}" >
<text class="logs-content-txt" wx:for="{{item.attachmentUrls}}">{{item.fileName}}</text>
<text class="logs-content-txt" data-item="{{item}}" wx:for="{{item.attachmentUrls}}" bindtap="onImage">{{item.fileName}}</text>
</block>
</view>
@ -186,4 +186,7 @@
bind:input="onInput"
bind:cancel="onCancel"
/>
</van-popup>
<van-popup show="{{ imageshow }}" bind:close="onClose1" custom-style="imageup">
<van-image width="300" height="300" src="{{attachmentUrl}}" />
</van-popup>

4
subpages/safetyinspection/pages/safetyinspection/safetyinspection.wxss

@ -7,6 +7,10 @@ page {
padding: 0 30rpx;
box-sizing: border-box;
}
imageup{
height: 500rpx;
width: 500rpx;
}
.form_add{
width: 100%;
height: 100%;

Loading…
Cancel
Save