ソースを参照

李剑-假日信息维护-不能有效控制输入字符串长度问题解决。

lijian 4 年 前
コミット
efba1b0595

+ 1 - 1
src/main/resources/static/js/super/holiday/holiday_add.js

@@ -20,7 +20,7 @@ $(function () {
             },
             configName: {
                 minlength: 1,
-                maxlength: 40
+                maxlength: 20
             }
         },
         messages: {

+ 2 - 2
src/main/resources/templates/admin/super/holiday/holiday_add.html

@@ -14,7 +14,7 @@
 		<div class="row cl">
 			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>名称:</label>
 			<div class="formControls col-xs-8 col-sm-9">
-				<input type="text" class="input-text" maxlength="40" required value="" th:value="${configName}"  th:id="configName" th:name="configName"/>
+				<input type="text" class="input-text" maxlength="20" required value="" th:value="${configName}"  th:id="configName" th:name="configName"/>
 			</div>
 		</div>
 		<div class="row cl">
@@ -26,7 +26,7 @@
 		<div class="row cl">
 			<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>年份:</label>
 			<div class="formControls col-xs-8 col-sm-9">
-				<input type="text" class="input-text"  required value="" th:value="${configKey}?${configKey}:year_"  th:id="configKey" th:name="configKey"/>
+				<input type="text" class="input-text" maxlength="9"   required value="" th:value="${configKey}?${configKey}:year_"  th:id="configKey" th:name="configKey"/>
 			</div>
 		</div>