From 8f744242ce9c650114de7414ec220cd8c0ee1203 Mon Sep 17 00:00:00 2001
From: Mr.Zhang <710666463@qq.com>
Date: 星期二, 22 八月 2023 10:54:43 +0800
Subject: [PATCH] 大屏请求
---
screen_standard/src/components/AppLayout.vue | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/screen_standard/src/components/AppLayout.vue b/screen_standard/src/components/AppLayout.vue
index 4fca14a..55e5471 100644
--- a/screen_standard/src/components/AppLayout.vue
+++ b/screen_standard/src/components/AppLayout.vue
@@ -53,6 +53,7 @@
<script setup>
import { getAssets } from '@/utils'
+import { getDepartmentList } from '@/utils/apis.js'
import { reactive, toRefs, onMounted } from 'vue';
import { RouterView } from 'vue-router'
@@ -75,12 +76,7 @@
let { tempCom, isFull, tempDate } = toRefs(data)
-const comList = [
- {name: '璞嗙背'},
- {name: '澶х背'},
- {name: '灏忕背'},
- {name: '榛勭背'},
-]
+const comList = reactive([])
const selectCom = (item, index) => {
@@ -116,7 +112,15 @@
}
onMounted(() => {
-
+ getDepartmentList(8)
+ .then(res => {
+ debugger
+ comList = res
+
+ data.tempCom = res[0]
+ console.log(data.tempCom);
+ })
+ .catch(err => {})
const week = ['鏄熸湡涓�', '鏄熸湡浜�', '鏄熸湡涓�', '鏄熸湡鍥�', '鏄熸湡浜�', '鏄熸湡鍏�', '鏄熸湡鏃�',]
setInterval(() => {
let date = new Date()
@@ -140,6 +144,7 @@
width: 100%;
height: 100%;
padding: 30px;
+ overflow-y: scroll;
box-sizing: border-box;
.header {
background-image: url('@/assets/img/bg_maintitle@2x.png');
@@ -214,6 +219,7 @@
}
.num-list {
margin-top: 24px;
+ margin-bottom: 27px;
display: flex;
justify-content: space-between;
height: 88px;
--
Gitblit v1.9.3