| | |
| | | <view class="flex"> |
| | | <view class="flex-sub text-light bg-white padding-xs margin-xs radius">异常是否报修:</view> |
| | | <view class="flex-sub bg-white padding-xs text-right margin-xs radius"> |
| | | <uni-data-select :localdata="item.type" v-model="item.reportFlag" |
| | | :disabled="item.istrue" /> |
| | | <uni-data-select :localdata="item.type" @change="handleType($event, index)" v-model="item.reportFlag" |
| | | :disabled="item.istrue"/> |
| | | </view> |
| | | </view> |
| | | |
| | |
| | | taskId: '', |
| | | imageFilesList: [], |
| | | inspectionResult: '', |
| | | reportFlag:'', |
| | | upOption: { |
| | | page: { |
| | | num: 0, // 当前页码,默认0,回调之前会加1,即callback(page)会从1开始 |
| | |
| | | changeEquipmentList(e) { |
| | | this.formData.num = e; |
| | | }, |
| | | handleType(e, index) { |
| | | console.log(e); |
| | | }, |
| | | handleCode(e, index) { |
| | | console.log(index); |
| | | // 根据 e 的值来判断是否需要更新 isTrue 的状态 |
| | |
| | | ]; // 新字段,值为一个空数组 |
| | | item.type = [{ |
| | | text: "否", |
| | | value: 0 |
| | | value: "0" |
| | | }, |
| | | { |
| | | text: "是", |
| | | value: 1 |
| | | value: "1" |
| | | } |
| | | ]; // 新字段,值为一个空数组 |
| | | item.istrue = true; |
| | |
| | | } |
| | | |
| | | .popupView { |
| | | margin-top: 85px; |
| | | margin-top: 45px; |
| | | height: auto; |
| | | } |
| | | |