Browse Source

fix portal style

Michael Wang 6 years ago
parent
commit
085454fc61

+ 17 - 5
src/modules/portal/views/home/Home.vue

@@ -30,7 +30,12 @@
             {{ user.displayName }}
           </span>
         </el-menu-item>
-        <el-menu-item index="2" style="float: right;" title="机构名称">
+        <el-menu-item
+          index="2"
+          class="navbar-group-item"
+          style="float: right;"
+          title="机构名称"
+        >
           <v-icon name="users" /> {{ user.rootOrgName }}
         </el-menu-item>
       </el-menu>
@@ -270,10 +275,17 @@ export default {
   color: white !important;
 }
 
-/* .el-menu >>> .el-menu--horizontal > .el-menu-item:not(.is-disabled):focus, */
-/* .el-menu >>> .el-menu--horizontal > .el-menu-item:not(.is-disabled):hover {
-  background-color: #000 !important;
-} */
+.el-menu >>> .navbar-group-item.is-active.el-menu-item:focus {
+  color: none !important;
+}
+
+.el-menu >>> .navbar-group-item.el-menu-item:hover,
+.el-menu >>> .navbar-group-item.el-menu-item:focus {
+  color: white !important;
+  background-color: transparent !important;
+  cursor: unset;
+  border-bottom: none;
+}
 
 body > .el-container {
   margin-bottom: 40px;

+ 1 - 1
src/modules/portal/views/home/HomeSide.vue

@@ -162,7 +162,7 @@ export default {
         part = this.menuList.find(v => v.id === part.parentId);
         currentPaths.unshift(part.name);
       }
-      console.log(currentPaths);
+      // console.log(currentPaths);
       this.UPDATE_CURRENT_PATHS(currentPaths);
     }
   },

+ 1 - 29
src/modules/portal/views/home/main/HomeMain.vue

@@ -1,16 +1,5 @@
 <template>
   <el-main style="display: flex; align-items: center; margin-bottom: 20px;">
-    <!-- <div class="main-content">
-      <div
-        class="module-card"
-        v-for="menu in menuList.filter(m => m.parentId === null)"
-        :key="menu.id"
-        @click="() => $router.push('/' + menu.ext4 + '/tips')"
-      >
-        {{ menu.name }}
-      </div>
-    </div> -->
-
     <el-row width="100vw">
       <el-col
         :span="11"
@@ -57,7 +46,7 @@ const moduleDesc = {
     detail: "包括评卷进度查询、评卷员工作量核算、评卷结果检查"
   },
   print: {
-    detail: "试卷印刷管理"
+    detail: "记录线下纸笔考试数码印刷准确数量与实施过程"
   }
 };
 
@@ -110,36 +99,19 @@ export default {
   justify-content: center;
   align-items: center;
   justify-items: center;
-
-  /* min-width: 100%; */
-
-  /* height: 100%; */
 }
 
 .module-card {
-  /* width: 350px; */
   height: 120px;
   margin-bottom: 50px;
   margin-right: 20px;
   cursor: pointer;
-  /* background-color: white; */
   display: flex;
-  /* justify-items: center; */
   align-items: center;
   justify-content: space-around;
 
-  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24); */
   transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
 }
-
-/* .module-card:hover { */
-/* box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22); */
-
-/* font-size: 30px; */
-/* color: #fff; */
-/* text-align: center; */
-/* animation: glow 1s ease-in-out infinite alternate; */
-/* } */
 </style>
 
 <style scoped>