xiatian %!s(int64=3) %!d(string=hai) anos
pai
achega
c779707b2a

+ 1 - 0
src/modules/questions/views/data_previllege.vue

@@ -256,6 +256,7 @@ export default {
         // console.log(promiseAll);
         this.form.defaultStatusCourse = promiseAll[0].data;
         this.tableDataCourse = promiseAll[1].data.content;
+        this.currentPageCourse = promiseAll[1].data.number + 1;
         this.totalCourse = promiseAll[1].data.totalElements;
       } finally {
         this.loading = false;

+ 16 - 1
src/modules/questions/views/user.vue

@@ -63,6 +63,7 @@
             <el-input
               v-model="searchForm.loginName"
               placeholder="请输入登录名"
+              maxlength="20"
               class="input_width"
             />
           </el-form-item>
@@ -70,6 +71,7 @@
             <el-input
               v-model="searchForm.name"
               placeholder="请输入姓名"
+              maxlength="20"
               class="input_width"
             />
           </el-form-item>
@@ -158,6 +160,7 @@
                   class="input_width_lg"
                   auto-complete="off"
                   placeholder="请输入姓名"
+                  maxlength="20"
                 />
               </el-form-item>
             </el-row>
@@ -168,6 +171,7 @@
                   class="input_width_lg"
                   auto-complete="off"
                   placeholder="请输入登录名"
+                  maxlength="20"
                 />
               </el-form-item>
             </el-row>
@@ -261,6 +265,7 @@
                   class="input_width_lg"
                   auto-complete="off"
                   placeholder="请输入姓名"
+                  maxlength="20"
                 />
               </el-form-item>
             </el-row>
@@ -271,6 +276,7 @@
                   class="input_width_lg"
                   auto-complete="off"
                   placeholder="请输入登录名"
+                  maxlength="20"
                 />
               </el-form-item>
             </el-row>
@@ -570,6 +576,15 @@ import { mapState } from "vuex";
 export default {
   name: "User",
   data() {
+    var validatePassword = (rule, value, callback) => {
+      if (!value || value == "") {
+        callback(new Error("请输入密码"));
+      } else if (value.length < 6 || value.length > 15) {
+        callback(new Error("密码长度6-15"));
+      } else {
+        callback();
+      }
+    };
     var validateRootOrg = (rule, value, callback) => {
       if (0 != value && !value) {
         callback(new Error("请选择学校"));
@@ -655,7 +670,7 @@ export default {
         password: [
           {
             required: true,
-            message: "请输入密码",
+            validator: validatePassword,
             trigger: "blur",
           },
         ],