فهرست منبع

新增admin账号

zengyicheng 2 سال پیش
والد
کامیت
9fff3de4b5
3فایلهای تغییر یافته به همراه10 افزوده شده و 6 حذف شده
  1. 6 4
      src/components/login.vue
  2. 2 1
      src/components/pages/race/eventCenter.vue
  3. 2 1
      src/components/pages/race/eventCenter/myAnli.vue

+ 6 - 4
src/components/login.vue

@@ -262,10 +262,10 @@ export default {
         .get(this.$store.state.api + "findUsername", params)
         .then((res) => {
           if (res.data[0].length > 0) {
-            if (res.data[0][0].type == 0) {
-              this.$message.error("此账号已被屏蔽登录,请咨询管理员");
-              return;
-            }
+            // if (res.data[0][0].type == 0) {
+            //   this.$message.error("此账号已被屏蔽登录,请咨询管理员");
+            //   return;
+            // }
             this.isU = res.data[0][0].type;
             this.login();
           } else {
@@ -316,6 +316,8 @@ export default {
                 this.$router.push("/anliList1");
               } else if (isU == 3) {
                 this.$router.push("/anliList2");
+              } else if (isU == 0) {
+                this.$router.push("/eventCenter?steps=" + "1");
               }
               // console.log(_this.$store.state);
             } else {

+ 2 - 1
src/components/pages/race/eventCenter.vue

@@ -18,7 +18,7 @@
     </div>
     <div :class="steps == 1 ? 'center_body' : 'center_body1'" >
       <EventMessage v-if="steps == 1"></EventMessage>
-      <MyAnli :userid="userid" :oid="oid" v-if="steps == 2"></MyAnli>
+      <MyAnli :userid="userid" :oid="oid" :type="tType" v-if="steps == 2"></MyAnli>
       <!-- <ProjectJd v-if="steps == 3"></ProjectJd> -->
     </div>
     <div class="center_btn" v-if="steps == 1">
@@ -53,6 +53,7 @@ export default {
       steps: this.$route.query.steps ? this.$route.query.steps : 1,
       userid: this.$store.state.userInfo.userid,
       oid: this.$store.state.userInfo.school,
+      tType: this.$store.state.userInfo.type,
       bannerList: [
         "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_202212121018311670811529640.png",
       ],

+ 2 - 1
src/components/pages/race/eventCenter/myAnli.vue

@@ -155,7 +155,7 @@
 
 <script>
 export default {
-  props: ["userid", "oid"],
+  props: ["userid", "oid", "type"],
   data() {
     return {
       anliBox: [],
@@ -169,6 +169,7 @@ export default {
     selectAnLi() {
       let params = {
         uid: this.userid,
+        t: this.type,
       };
       this.ajax
         .get(this.$store.state.api + "selectRaceList", params)