|
@@ -1,14 +1,12 @@
|
|
|
<script setup lang="ts">
|
|
|
-import AgoraRTC from "agora-rtc-sdk-ng"
|
|
|
-import type { IAgoraRTCClient, IMicrophoneAudioTrack, ICameraVideoTrack } from "agora-rtc-sdk-ng"
|
|
|
-import type { type_dyaw_xlfw_zxhd, type_dyaw_xlfw_zxhd_log, type_archives_item } from '~/types';
|
|
|
-import { Search } from '@element-plus/icons-vue'
|
|
|
-import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
+import { Search } from '@element-plus/icons-vue';
|
|
|
+import { ElMessage, ElMessageBox } from 'element-plus';
|
|
|
import user from '~/store/user';
|
|
|
-import { createSocket, socketSend } from '~/utils/ws';
|
|
|
-import type { TSocketRes } from '~/utils/ws';
|
|
|
+import type { type_archives_item, type_dyaw_xlfw_zxhd, type_dyaw_xlfw_zxhd_log } from '~/types';
|
|
|
+import { CHAT_OPERATION } from '~/types';
|
|
|
import { formatTimestamp2Date } from '~/utils/time';
|
|
|
-import { CHAT_STATUS, CHAT_OPERATION } from '~/types';
|
|
|
+import type { TSocketRes } from '~/utils/ws';
|
|
|
+import { createSocket, socketSend } from '~/utils/ws';
|
|
|
let dyaw_xlfw_zxhd = $ref<type_dyaw_xlfw_zxhd | undefined>()
|
|
|
let dyaw_xlfw_zxhd_list = $ref<type_dyaw_xlfw_zxhd[] | undefined>()
|
|
|
|
|
@@ -178,12 +176,13 @@ function handleClickStuCard(stu: type_dyaw_xlfw_zxhd) {
|
|
|
|
|
|
let ifScroll = $ref(true)
|
|
|
function handleLoadMoreInfo() {
|
|
|
+ if(infoList.length === 0) return ElMessage.info('暂无更多消息');
|
|
|
request({
|
|
|
url: '/dyaw/xlfw_zxhd_log/index',
|
|
|
data: {
|
|
|
dxzl_stu_user_id: dyaw_xlfw_zxhd?.dxz_stu_user_id,
|
|
|
dxzl_tea_user_id: dyaw_xlfw_zxhd!.dxz_tea_user_id,
|
|
|
- zxhd_log_id: infoList[0].dxzl_id
|
|
|
+ zxhd_log_id: infoList[0]?.dxzl_id
|
|
|
}
|
|
|
}).then(res => {
|
|
|
if (res.code === '1') {
|