seimin 1 年之前
父節點
當前提交
d61f9eeb0b
共有 1 個文件被更改,包括 17 次插入4 次删除
  1. 17 4
      src/views/AppIndex.vue

+ 17 - 4
src/views/AppIndex.vue

@@ -5,11 +5,10 @@
5 5
       <div class="specimen-header">
6 6
         <div class="specimen-logo">
7 7
           <img
8
-            src="./../assets/images/login_logo.png"
8
+            :src="logoUrl"
9 9
             class="pharmacy-logo__img"
10
-            alt=""
11 10
           />
12
-          <h1 class="pharmacy-logo__name">大势医院输送保障管理平台</h1>
11
+          <h1 class="pharmacy-logo__name">{{ logoTitle }}</h1>
13 12
         </div>
14 13
         <div class="specimen-menu">
15 14
           <div
@@ -771,6 +770,8 @@ export default {
771 770
   },
772 771
   data() {
773 772
     return {
773
+      logoUrl: '',
774
+      logoTitle: '',
774 775
       loading1: false, //科室标本视图列表加载
775 776
       loading2: false, //人员信息列表加载
776 777
       loading3: false,
@@ -1476,8 +1477,17 @@ export default {
1476 1477
       this.loading1 = true;
1477 1478
       let loginUser = JSON.parse(localStorage.getItem("user"));
1478 1479
       this.userData = loginUser ? loginUser.user : [];
1480
+      
1479 1481
       this.getWorkType();
1482
+      this.getSysNameAndLogo();
1480 1483
     },
1484
+    getSysNameAndLogo(){
1485
+      get("/auth/getSysNameAndLogo")
1486
+        .then((result) => {
1487
+          this.logoTitle = result.sysName || '';
1488
+          this.logoUrl = result.logo || '';
1489
+        })
1490
+    }
1481 1491
   },
1482 1492
   created() {
1483 1493
     this.login();
@@ -1806,15 +1816,18 @@ export default {
1806 1816
       width: 221px;
1807 1817
       background-color: #0f2e3b;
1808 1818
       display: flex;
1819
+      flex-direction: column;
1809 1820
       justify-content: center;
1810 1821
       align-items: center;
1811 1822
       .pharmacy-logo__img {
1812
-        width: 32px;
1823
+        max-width: 100%;
1824
+        max-height: 100%;
1813 1825
       }
1814 1826
       .pharmacy-logo__name {
1815 1827
         font-size: 14px;
1816 1828
         color: #fff;
1817 1829
         margin-bottom: 0;
1830
+        margin-top: 8px;
1818 1831
       }
1819 1832
     }
1820 1833
     .specimen-menu {