lsc 2 yıl önce
ebeveyn
işleme
3a8d17c61a
4 değiştirilmiş dosya ile 14560 ekleme ve 59 silme
  1. 14550 1
      package-lock.json
  2. 2 8
      src/App.vue
  3. 5 5
      src/components/login.vue
  4. 3 45
      src/components/tools/leftBar.vue

Dosya farkı çok büyük olduğundan ihmal edildi
+ 14550 - 1
package-lock.json


+ 2 - 8
src/App.vue

@@ -3,7 +3,7 @@
     <div class="app_head" :class="{ userWidth: $route.path == '/userManage' }">
       <div class="logo"></div>
       <span style="margin-left: 10px; color: #fff; font-weight: 600"
-        >PBL教育平台-后台管理</span
+        >PBL教育平台-后台管理</span
       >
       <div class="user_head" v-if="!this.$store.state.isLogin">
         <div>
@@ -13,13 +13,7 @@
         </div>
       </div>
       <div class="user_head" v-else>
-        <!-- <div class="noticeBox">
-          <i class="noticeI" @click="goTo('/userManage?cclass=1')"></i>
-          <span v-if="this.$store.state.nCount != 0">{{
-            this.$store.state.nCount > 99 ? "99+" : this.$store.state.nCount
-          }}</span>
-        </div> -->
-        <span class="user_name">管理员</span>
+        <span class="user_name">{{this.$store.state.userInfo.username ? this.$store.state.userInfo.username : "管理员"}}</span>
         <div>
           <i></i>
           <el-button type="text" style="color: white" @click="exit"

+ 5 - 5
src/components/login.vue

@@ -4,18 +4,18 @@
     <div class="login_box" v-show="islogin">
       <div style="padding: 0px 20px">
         <div class="login_title">
-          <span>劳动教育管理端平台</span>
+          <span>管理端平台</span>
         </div>
         <el-form
           label-position="right"
           label-width="80px"
           style="margin-top: 30px"
         >
-          <el-form-item label="手机号码">
+          <el-form-item label="账号">
             <el-input
               v-model="phoneNum"
               auto-complete="off"
-              placeholder="请输入手机号码"
+              placeholder="请输入账号"
               style="width: 100%"
               @keyup.enter.native="findPhone"
             ></el-input>
@@ -127,7 +127,7 @@ export default {
               _this.$store.commit("update", ["isLogin", true]);
               _this.$store.commit("update", ["userInfo", _this.userInfo]);
               // console.log(_this.$store.state);
-              this.$router.push("/");
+              this.$router.push("/organization");
             } else {
               _this.$message.error("密码错误");
             }
@@ -148,7 +148,7 @@ export default {
   display: flex;
   align-items: center;
   justify-content: center;
-  height: calc(100% - (67.5px * 2));
+  height: 100%;
   /* position: absolute; */
   width: 100%;
 }

+ 3 - 45
src/components/tools/leftBar.vue

@@ -1,20 +1,5 @@
 <template>
   <div class="bottom">
-    <!-- <div
-      class="item"
-      @click="clickItem('/')"
-      :class="{ active: $route.path === '/' }"
-    >
-      <p>首页</p>
-    </div>
-    <div
-      class="item"
-      @click="clickItem('/b')"
-      :class="{ active: $route.path === '/b' }"
-    >
-      <p>学习中心</p>
-    </div> -->
-
     <el-aside style="width: 180px; font-size: 16px">
       <el-row class="tac">
         <el-col :span="12">
@@ -26,34 +11,7 @@
             router
             style="text-align: left"
           >
-            <el-menu-item index="/">
-              <div class="img" style="padding-bottom: 5px" v-if="path == '/'">
-                <img src="../../assets/icon/home-active.png" alt="" />
-              </div>
-              <div class="img" style="padding-bottom: 5px" v-else>
-                <img src="../../assets/icon/home.png" alt="" />
-              </div>
-              <span>首页管理</span>
-            </el-menu-item>
-            <el-menu-item index="/curriculum">
-              <div class="img" v-if="path == '/curriculum'">
-                <img src="../../assets/icon/course-active.png" alt="" />
-              </div>
-              <div class="img" v-else>
-                <img src="../../assets/icon/course.png" alt="" />
-              </div>
-              <span slot="title">课程管理</span>
-            </el-menu-item>
-            <el-menu-item index="/template">
-              <div class="img" v-if="path == '/template'">
-                <img src="../../assets/icon/works-active.png" alt="" />
-              </div>
-              <div class="img" v-else>
-                <img src="../../assets/icon/works.png" alt="" />
-              </div>
-              <span slot="title">模板管理</span>
-            </el-menu-item>
-            <el-menu-item index="/notice">
+            <!-- <el-menu-item index="/notice">
               <div class="img" v-if="path == '/notice'">
                 <img src="../../assets/icon/notice-active.png" alt="" />
               </div>
@@ -61,7 +19,7 @@
                 <img src="../../assets/icon/notice.png" alt="" />
               </div>
               <span slot="title">通知公告</span>
-            </el-menu-item>
+            </el-menu-item> -->
             <!-- <el-menu-item index="/grouping">
               <div class="img" v-if="path == '/grouping'">
                 <img src="../../assets/icon/group-active.png" alt="" />
@@ -78,7 +36,7 @@
               <div class="img" v-else>
                 <img src="../../assets/icon/class.png" alt="" />
               </div>
-              <span slot="title">组织管理</span>
+              <span slot="title">学校管理</span>
             </el-menu-item>
             <el-menu-item index="/class">
               <div class="img" v-if="path == '/class'">

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor