hsy hace 3 semanas
padre
commit
3c136f632d
Se han modificado 2 ficheros con 8 adiciones y 5 borrados
  1. 7 4
      src/views/largeScreen/index.vue
  2. 1 1
      src/views/login/login.vue

+ 7 - 4
src/views/largeScreen/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div id="largeDataScreen" class="h-screen w-screen flex flex-col">
-    <Header :title="profile?.nickname || ''"></Header>
+    <Header :title="screenName || ''"></Header>
     <!-- <el-row style="height: calc(100vh - 210px)" :gutter="10"> -->
     <el-row class="flex-1">
       <el-col :span="8" class="p-2">
@@ -108,10 +108,13 @@ const abnormalIndicatorGroupList = computed(() => {
   });
   return list;
 });
-const profile = shallowRef();
+const screenName = shallowRef();
 const getInfo = async () => {
-  const { data } = await request.get("/archivesService/agency/profile");
-  profile.value = data.profile;
+  const { data } = await request.post("/archivesService/agency/agencySetting/get", {
+    keys: ['screenName']
+  });
+
+  screenName.value = data.list[0]?.value || ''
 };
 onMounted(() => {
   getInfo();

+ 1 - 1
src/views/login/login.vue

@@ -7,7 +7,7 @@
       <div class=""></div>
       <div class="loginbox boxall">
         <div class="logo">
-          <h1>第三方数据大屏</h1>
+          <h1>数据大屏</h1>
           <!-- <h2>da du kou da ping</h2> -->
         </div>
         <div class="logintit">用户登录</div>