|
@@ -213,9 +213,9 @@ export default {
|
|
|
defaultData.render = (h, { row, index, column }) => {
|
|
|
return this.editIndex == index ? (
|
|
|
<div class="redbordererr">
|
|
|
- <el-form-item prop={`tableData.${index}.normAmount`} rules={[{ required: true, message: '维修费结算比例不能为空', trigger: 'blur' }]}>
|
|
|
+ <el-form-item prop={`tableData.${index}.normAmount`} rules={[{ required: true, message: '维修费结算比例不能为空', trigger: 'blur' },{ pattern:/^[1-9]\d*$/, message: '请输入大于0的正整数', trigger: 'blur' }]}>
|
|
|
<div style="display:flex;">
|
|
|
- <el-input type="text" value={row.normAmount} placeholder="请输入"
|
|
|
+ <el-input type="text" value={row.normAmount} placeholder="请输入大于0的正整数"
|
|
|
onInput={(val) => {
|
|
|
row.normAmount = val
|
|
|
}}>
|