lsc преди 2 години
родител
ревизия
77f02e812a
променени са 1 файла, в които са добавени 19 реда и са изтрити 3 реда
  1. 19 3
      src/components/index.vue

+ 19 - 3
src/components/index.vue

@@ -108,6 +108,15 @@
                     {{ JSON.parse(item.chapters).length }}阶段
                   </div>
                 </div>
+                <el-tooltip
+                  effect="light"
+                  :content="item.school"
+                  placement="top"
+                >
+                  <div class="school">
+                    {{ item.school }}
+                  </div>
+                </el-tooltip>
                 <!-- <div class="people">
                   <div class="man">
                     <img src="../assets/people.png" alt="" />
@@ -129,7 +138,7 @@
                       userid +
                       '&oid=' +
                       oid +
-                      '&org='+
+                      '&org=' +
                       org +
                       '&cid=' +
                       classId +
@@ -417,11 +426,11 @@ export default {
     //获取banner
     getBanner() {
       var a = false;
-      if(this.org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d"){
+      if (this.org == "eb2af5e9-ac3d-46b6-9fe3-3c1c364f018d") {
         a = true;
       }
       let params = {
-        oid: a == false ? this.oid : this.org ,
+        oid: a == false ? this.oid : this.org,
       };
       this.ajax
         .get(this.$store.state.api + "selectBannerByOid", params)
@@ -819,4 +828,11 @@ export default {
   justify-content: flex-start;
   align-items: center;
 }
+.school {
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  max-width: 100%;
+  box-sizing: border-box;
+}
 </style>