|
@@ -534,17 +534,19 @@ public class ExcelTabController extends BladeController {
|
|
|
String oncklickText = "'" + lastName + "'," + i + "," + j;
|
|
|
|
|
|
//字段正则表达式校验
|
|
|
- String regularExpression = "$event" + "," + "'" + RegularExpressionUtil.getRegularExpression(filedType) + "','" + (StringUtils.isNotEmpty(filedType) ? WbsElementUtil.getTypeTips(filedType) : null) + "'," + i + "," + j + ",'长度:" + filedLength + "'";
|
|
|
+ String regularExpression = "$event" + "," + "'" + RegularExpressionUtil.getRegularExpression(filedType) + "','" + (StringUtils.isNotEmpty(filedType) ? WbsElementUtil.getTypeTips(filedType) : null) + "'," + i + "," + j;
|
|
|
|
|
|
if (is_true) {
|
|
|
element.children().get(0).attr("placeholder", lastName)
|
|
|
.attr("weighing", maxScore + "").attr("id", attrInfo).attr("keyName", attrInfo)
|
|
|
.attr("@blur", "getRegularExpression(" + regularExpression + ")")
|
|
|
- .attr("v-model", "formData." + attrInfo);
|
|
|
+ .attr("v-model", "formData." + attrInfo)
|
|
|
+ .attr("maxlength", filedLength);
|
|
|
} else {
|
|
|
element.children().get(0).attr("placeholder", lastName)
|
|
|
.attr("weighing", maxScore + "").attr("id", attrInfo).attr("keyName", attrInfo)
|
|
|
- .attr("@blur", "getRegularExpression(" + regularExpression + ")");
|
|
|
+ .attr("@blur", "getRegularExpression(" + regularExpression + ")")
|
|
|
+ .attr("maxlength", filedLength);
|
|
|
}
|
|
|
element.attr("@click", "getInformation(" + oncklickText + ")");
|
|
|
}
|