|
|
@ -36,7 +36,7 @@ |
|
|
|
<el-form> |
|
|
|
<el-form-item |
|
|
|
v-if="item.type == 'input'" |
|
|
|
:onkeyup="itemOnKeyUp(item,searchData[item.prop])" |
|
|
|
:onkeyup="itemOnKeyUp(item,item.prop,scope.$index)" |
|
|
|
:prop="'details.' + scope.$index + '.' + item.prop" |
|
|
|
:rules="item.rules" |
|
|
|
> |
|
|
@ -436,12 +436,12 @@ export default { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// type=input情况下,框实时校验 |
|
|
|
itemOnKeyUp(item,value){ |
|
|
|
itemOnKeyUp(item,value,index){ |
|
|
|
if(item.onkeyup){ |
|
|
|
return item.onkeyup() |
|
|
|
}else{ |
|
|
|
if(value && item.validType){ |
|
|
|
this.searchData[item.prop]=getMatchRegConformValue(item.validType,value,item.pointNumberFixed) |
|
|
|
if(this.tableData[index][value] && item.validType){ |
|
|
|
this.tableData[index][value]=getMatchRegConformValue(item.validType,this.tableData[index][value],item.pointNumberFixed) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|