|
@@ -46,7 +46,7 @@
|
|
|
<view class="cell-content">
|
|
<view class="cell-content">
|
|
|
|
|
|
|
|
<textarea v-if="type !== 'view'" placeholder="请输入" v-model="item.result"
|
|
<textarea v-if="type !== 'view'" placeholder="请输入" v-model="item.result"
|
|
|
- @input="inputChange($event, item)" />
|
|
|
|
|
|
|
+ />
|
|
|
<view class="result-text" v-else>{{ item.result }}</view>
|
|
<view class="result-text" v-else>{{ item.result }}</view>
|
|
|
<view class="radio-wrapper" v-if="type !== 'view'">
|
|
<view class="radio-wrapper" v-if="type !== 'view'">
|
|
|
|
|
|
|
@@ -142,13 +142,13 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
- inputChange(obj, item) {
|
|
|
|
|
- if (obj.target.value.length > 0 && obj.target.value != '正常') {
|
|
|
|
|
- item.status = -1
|
|
|
|
|
- } else {
|
|
|
|
|
- item.status = 1
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ // inputChange(obj, item) {
|
|
|
|
|
+ // if (obj.target.value.length > 0 && obj.target.value != '正常') {
|
|
|
|
|
+ // item.status = -1
|
|
|
|
|
+ // } else {
|
|
|
|
|
+ // item.status = 1
|
|
|
|
|
+ // }
|
|
|
|
|
+ // },
|
|
|
statusChange() {
|
|
statusChange() {
|
|
|
if (this.item.status == 1) {
|
|
if (this.item.status == 1) {
|
|
|
this.item.result = '正常'
|
|
this.item.result = '正常'
|