fix:修改了工作台通话记录样式

This commit is contained in:
KindSeven
2024-09-17 23:36:49 +08:00
parent 4267612a5e
commit 4a1669941c

View File

@@ -1,9 +1,31 @@
<script setup> <script setup>
import LiveCall from '@/components/liveCall/index.vue' import LiveCallItem from '@/components/liveCall/liveCallItem.vue'
const dialogVisible = ref(false); const dialogVisible = ref(false);
const recordLeftRef = ref(null);
const open = (row) => { const open = (row) => {
dialogVisible.value = true; dialogVisible.value = true;
}; };
const leftHeadData = ref({
username: '张三',
phone: '13546812315',
orderName: '张三工单',
})
const recordLeftObj = ref({
content: []
});
const scrollToBottom = (scrollbarRef) => {
if (scrollbarRef) {
const container = scrollbarRef.$el.querySelector('.el-scrollbar__wrap');
container.style.scrollBehavior = 'smooth'; // 添加平滑滚动效果
container.scrollTop = container.scrollHeight;
}
};
scrollToBottom(recordLeftRef.value)
defineExpose({ defineExpose({
open, open,
}); });
@@ -11,8 +33,8 @@ defineExpose({
</script> </script>
<template> <template>
<el-dialog v-model="dialogVisible" title="历史通话记录" width="1000" :before-close="handleClose" class="box"> <el-dialog v-model="dialogVisible" title="历史通话记录" width="600" :before-close="handleClose" class="box">
<LiveCall /> <LiveCallItem ref="recordLeftRef" :recordObj="recordLeftObj" :headData="leftHeadData" style="width: 100%;" />
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">
<el-button type="primary" @click="dialogVisible = false"> <el-button type="primary" @click="dialogVisible = false">
@@ -24,7 +46,7 @@ defineExpose({
</template> </template>
<style> <style>
.box{ .box {
height: 68vh; height: 68vh;
} }
</style> </style>