|
@@ -0,0 +1,32 @@
|
|
|
+<script setup lang="ts">
|
|
|
+const imgSrc = (await request({
|
|
|
+ url: '/dyaw/xlfw_hbgl/index',
|
|
|
+ data: {
|
|
|
+ limit: 1
|
|
|
+ }
|
|
|
+})).data?.page_data?.[0]?.dxh_path
|
|
|
+const teacherList = (await request({
|
|
|
+ url: '/dyaw/xlfw_pbgl_pb/index',
|
|
|
+ data: {
|
|
|
+ dxpp_date: (new Date('2023-4-2')).getTime()
|
|
|
+ }
|
|
|
+})).data?.page_data
|
|
|
+
|
|
|
+</script>
|
|
|
+
|
|
|
+<template>
|
|
|
+ <div class="h-640px bg-hex-f2f2f295 flex justify-center">
|
|
|
+ <div class="w-1000px h-full overflow-hidden">
|
|
|
+ <img v-show="imgSrc" :src="imgSrc" class="w-full h-full max-h-640px object-contain">
|
|
|
+ </div>
|
|
|
+ <div
|
|
|
+ class="w-400px h-full overflow-y-auto flex flex-col items-center space-y-4 py-4 scrollbar scrollbar-thin scrollbar-thumb-rounded-md scrollbar-thumb-gray-200 scrollbar-track-transparent">
|
|
|
+ <el-empty v-if="!teacherList?.length" description="今天暂无排班老师"></el-empty>
|
|
|
+ <teacher-card v-for="item in teacherList" class="flex-none" :d="item">
|
|
|
+ <el-tag :type="item.online ? 'success' : 'danger'" >
|
|
|
+ {{ item.online ? '在 线' : '离 线' }}
|
|
|
+ </el-tag>
|
|
|
+ </teacher-card>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|