Browse Source

fix 小程序-维修时显示对应巡检记录信息错误

master
巴林闲侠 2 years ago
parent
commit
ce7a6d9149
  1. 2
      weapp/package/troubleshooting/index.js
  2. 8
      weapp/package/troubleshooting/index.wxml
  3. 4
      weapp/package/troubleshooting/shootingForm/index.wxml

2
weapp/package/troubleshooting/index.js

@ -106,7 +106,7 @@ Page({
pointToggle (event) {
const { index, id } = event.currentTarget.dataset;
const checkbox = this.selectComponent(`.checkboxes-point-${id}`);
// const checkbox = this.selectComponent(`.checkboxes-point-${id}`);
// checkbox.toggle();
const { pointList } = this.data
let pointList_ = JSON.parse(JSON.stringify(pointList))

8
weapp/package/troubleshooting/index.wxml

@ -25,12 +25,18 @@
<van-dropdown-item title="{{ '点位' }}" bind:close="onDropDownClose">
<view style="max-height:888rpx">
<!-- <van-checkbox-group value="{{ pointResult }}" bind:change="onPointChange"> -->
<view>
<van-cell-group>
<van-cell wx:for="{{ pointList }}" wx:key="index" title="{{ item.name }}" value-class="value-class" clickable data-index="{{ index }}"
data-id="{{ item.id }}" bind:click="pointToggle">
<van-checkbox catch:tap="noop" class="checkboxes-point-{{ item.id }}" name="{{ item.id }}" value="{{item.selected}}"/>
<van-checkbox catch:tap="pointToggle"
data-index="{{ index }}"
data-id="{{ item.id }}"
class="checkboxes-point-{{ item.id }}" name="{{ item.id }}" value="{{item.selected}}"/>
</van-cell>
</van-cell-group>
</view>
<!-- </van-checkbox-group> -->
</view>
</van-dropdown-item>

4
weapp/package/troubleshooting/shootingForm/index.wxml

@ -19,8 +19,8 @@
<van-field value="{{item.itemName}}" label="检查项" readonly border="{{ false }}" />
</view>
<view slot="">
<van-field value="1" label="异常等级" readonly border="{{ false }}" />
<van-field value="2" label="问题描述" readonly border="{{ false }}" />
<van-field value="{{item.level}}" label="异常等级" readonly border="{{ false }}" />
<van-field value="{{item.msgInp||''}}" label="问题描述" readonly border="{{ false }}" />
<van-cell border="{{false}}">
<view style="display:flex">
<view class="fs-cell-title" style="">现场照片</view>

Loading…
Cancel
Save