| | |
| | | <template slot-scope="{ row, $index }"> |
| | | <el-input type="textarea" autosize size="mini" v-model="row.proResult" :ref="`input-${$index}`" |
| | | @keydown.enter.native="keyInputConfirm($event, $index)" @focus="handleFocus(row)" |
| | | @blur="handleInputConfirm(row)" @input="vale"></el-input> |
| | | |
| | | @blur="handleInputConfirm(row)" ></el-input> |
| | | <!-- @input="vale" --> |
| | | <!-- <el-input type="textarea" autosize size="mini" v-model="scope.row.proResult" autocomplete="off" :ref="`input-${scope.$index}-${scope.row.proResult}`" |
| | | placeholder="请输入检测结果" @keyup=" |
| | | keyInputConfirm($event,scope.$index,'proResult') |
| | |
| | | methods: { |
| | | handleFocus(row) { |
| | | this.autorule = []; |
| | | |
| | | if (!row.resultType || row.resultType == 2) { |
| | | if (!row.resultType || row.resultType == 2 || !row.proResult ) { |
| | | return; |
| | | } else { |
| | | } else { |
| | | this.curindex = row; |
| | | this.$refs.bbb.title = "选择检测结果"; |
| | | // this.$refs.bbb.proId = row.proId; |
| | |
| | | } |
| | | }, |
| | | handleChangesZt(params) { |
| | | console.log(params) |
| | | this.curindex.proResult = params.map((item) => item.ruleStr).join(","); |
| | | console.log(this.curindex.proResult) |
| | | this.handleInputConfirm(this.curindex, params); |
| | | }, |
| | | tableRowClassName({ row }) { |
| | |
| | | }, |
| | | |
| | | changDesc(item) { |
| | | console.log(item) |
| | | if (item.exceptionDesc == true) { |
| | | item.conclusion = "异常" |
| | | } else { |
| | |
| | | |
| | | }, |
| | | handleInputConfirm(datas, params) { |
| | | |
| | | if (params && params.length === 0) { |
| | | // 如果没有选中任何项目,取消异常复选框的选中状态 |
| | | this.curindex.exceptionDesc = false; |