|
@@ -127,7 +127,7 @@
|
127
|
127
|
<template #dropdown>
|
128
|
128
|
<el-dropdown-menu>
|
129
|
129
|
<el-dropdown-item :command="item.leaf" v-for="(item, index) in leafs" :key="index">{{ item.leaf_name
|
130
|
|
- }}</el-dropdown-item>
|
|
130
|
+ }}</el-dropdown-item>
|
131
|
131
|
</el-dropdown-menu>
|
132
|
132
|
</template>
|
133
|
133
|
</el-dropdown>
|
|
@@ -157,10 +157,10 @@
|
157
|
157
|
height: scrollContainerHeight + 'px',
|
158
|
158
|
overflow: 'hidden',
|
159
|
159
|
paddingTop: '10px',
|
160
|
|
- }" v-if="classRoomList.length > 0">
|
161
|
|
- <scroll :content="classRoomList" class="vue3-seamless-scroll" :hover="true" :wheel="true" direction="top"
|
162
|
|
- ref="scrollRef" :mask="false">
|
163
|
|
- <template #default="{ item }">
|
|
160
|
+ }" v-if="classRoomList.length > 0 && isShhow">
|
|
161
|
+ <vue-auto-scroll :data="classRoomList" :steep="0.5" scrollDirection="top" :isRoller="true"
|
|
162
|
+ :rollerScrollDistance="50">
|
|
163
|
+ <div class="li" v-for="(item, index) in classRoomList" :key="index">
|
164
|
164
|
<div class="list-item">
|
165
|
165
|
<div class="class-status-btn-container">
|
166
|
166
|
<div class="left-class-status">
|
|
@@ -197,8 +197,11 @@
|
197
|
197
|
</div>
|
198
|
198
|
</div>
|
199
|
199
|
</div>
|
200
|
|
- </template>
|
201
|
|
- </scroll>
|
|
200
|
+ </div>
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+ </vue-auto-scroll>
|
202
|
205
|
</div>
|
203
|
206
|
|
204
|
207
|
<div v-else class="empty-container">
|
|
@@ -285,6 +288,7 @@ import Scroll from "./ScrollView.vue";
|
285
|
288
|
// import { callUIInteraction } from "../webrtcVideo";
|
286
|
289
|
import Tag from "./Tag.vue";
|
287
|
290
|
|
|
291
|
+
|
288
|
292
|
export default {
|
289
|
293
|
name: "Histogram",
|
290
|
294
|
components: {
|
|
@@ -295,6 +299,7 @@ export default {
|
295
|
299
|
ElCarouselItem,
|
296
|
300
|
CircleProgress,
|
297
|
301
|
Tag,
|
|
302
|
+
|
298
|
303
|
Vue3SeamlessScroll,
|
299
|
304
|
VerticalScroll,
|
300
|
305
|
Scroll,
|
|
@@ -303,6 +308,8 @@ export default {
|
303
|
308
|
setup(_, { emit }) {
|
304
|
309
|
// 教室分类统计
|
305
|
310
|
const classRoomCount = ref([]);
|
|
311
|
+
|
|
312
|
+ const isShhow = ref(true)
|
306
|
313
|
const generateData = (totalNum, bigvalue, smallvalue, color) => {
|
307
|
314
|
let dataArr = [];
|
308
|
315
|
for (var i = 0; i < totalNum; i++) {
|
|
@@ -752,6 +759,7 @@ export default {
|
752
|
759
|
};
|
753
|
760
|
let classRoomList = ref([]);
|
754
|
761
|
const getClassRoomList = async () => {
|
|
762
|
+ isShhow.value = false;
|
755
|
763
|
let res = await queryClassroom({
|
756
|
764
|
classRoomName: searchData.value,
|
757
|
765
|
category: category.value,
|
|
@@ -762,6 +770,7 @@ export default {
|
762
|
770
|
classRoomList.value = [];
|
763
|
771
|
// setTimeout(() => {
|
764
|
772
|
classRoomList.value = res.data;
|
|
773
|
+ isShhow.value = true;
|
765
|
774
|
// scrollRef.value.reset()
|
766
|
775
|
// }, 0);
|
767
|
776
|
};
|
|
@@ -820,7 +829,8 @@ export default {
|
820
|
829
|
offset,
|
821
|
830
|
scrollContainerHeight,
|
822
|
831
|
scrollContainerRef,
|
823
|
|
- noData
|
|
832
|
+ noData,
|
|
833
|
+ isShhow
|
824
|
834
|
};
|
825
|
835
|
},
|
826
|
836
|
};
|