zhaoke 1 жил өмнө
parent
commit
73a6b8a6c3

+ 3 - 3
src/views/systemSettings/securityPolicy/index.vue

@@ -88,7 +88,7 @@
                     </el-date-picker>
                   </el-form-item>
                   <el-form-item prop="enddate" :rules="formRules.isNotNull" size="default">
-                    <el-date-picker style="margin-left: 40px" format="YYYY-MM-DD" value-format="YYYY-MM-DD" v-model="tableForm.enddate" type="date" placeholder="选择日期">
+                    <el-date-picker format="YYYY-MM-DD" value-format="YYYY-MM-DD" v-model="tableForm.enddate" type="date" placeholder="选择日期">
                     </el-date-picker>
                   </el-form-item>
                 </div>
@@ -118,7 +118,7 @@
                       <i class="span_close" @click="removeTag(index, item)"></i>
                     </div> -->
                     <!-- 输入框 -->
-                    <el-input style="width: 100%; border: none" placeholder="请输入黑名单" v-model="tableForm.black" @keyup.enter="addTags" @keyup.delete="deleteTags" class="inputTag" ref="inputTag" type="text" />
+                    <el-input style="width: 100%; border: none;font-size: 14px;" placeholder="请输入IP,多个IP用;间隔,例:192.168.1.1;192.168.1.2;" v-model="tableForm.black" @keyup.enter="addTags" @keyup.delete="deleteTags" class="inputTag" ref="inputTag" type="text" />
                   </div>
                 </el-form-item>
               </el-col>
@@ -131,7 +131,7 @@
                       <i class="span_close" @click="removeTags(index, item)"></i>
                     </div> -->
                     <!-- 输入框 -->
-                    <el-input style="width: 100%" placeholder="请输入白名单" v-model="tableForm.white" @keyup.enter="addTagss" @keyup.delete="deleteTagss" class="inputTag" ref="inputTag" type="text" />
+                    <el-input style="width: 100%;font-size: 14px;" placeholder="请输入IP,多个IP用;间隔,例:192.168.1.1;192.168.1.2;" v-model="tableForm.white" @keyup.enter="addTagss" @keyup.delete="deleteTagss" class="inputTag" ref="inputTag" type="text" />
                   </div>
                 </el-form-item>
               </el-col>

+ 4 - 4
src/views/systemSettings/securityPolicy/securityPolicyedit.vue

@@ -62,8 +62,8 @@
             </Minheader>
             <el-row :gutter="24">
               <el-col :span="12">
-                <el-form-item label="密码长度" prop="pwd_cons" label-width="100px">
-                  <el-input v-model="formData.pwd_cons" placeholder="请输入密码长度" clearable />
+                <el-form-item label="密码最大长度" prop="pwd_cons" label-width="100px">
+                  <el-input v-model="formData.pwd_cons" placeholder="请输入密码最大长度" clearable />
                 </el-form-item>
               </el-col>
               <el-col :span="12">
@@ -134,9 +134,9 @@ const verificationCodeEnable = computed(() =>
 );
 const validatePass = (rule: any, value: any, callback: any) => {
   if (!value || Number(value) < 6) {
-    callback(new Error("密码长度不能小于6"));
+    callback(new Error("密码最大长度不能小于6"));
   } else if (!value || Number(value) > 32) {
-    callback(new Error("密码长度不能大于32"));
+    callback(new Error("密码最大长度不能大于32"));
   } else {
     callback();
   }