更新页面

This commit is contained in:
2025-12-12 15:19:45 +08:00
parent 3fbb4f9d4b
commit d85214bc62
40 changed files with 226 additions and 1310 deletions

View File

@ -0,0 +1,27 @@
import { h } from 'vue';
import { ElNotification} from "element-plus";
import { IconClose } from "element-plus"
import Content from '@/components/Consultation/components/content.vue';
import Footer from '@/components/Consultation/components/footer.vue';
import { formatShowNameFin } from '@/components/Consultation/utils/format-show-name';
export default function handleCallingNotification(propsObj) {
const { callInfo, text } = propsObj;
const { calling, answer = 'answer', hangUp = 'hang up' } = text;
ElNotification.info({
id: callInfo.call_id,
position: 'bottom-left',
closable: true,
closeIconElement: () => {
return h(IconClose);
},
title: () =>h(Content, {
callInfo,
calling,
getName: formatShowNameFin( callInfo.caller_alias, callInfo.caller_number),
}),
message: () =>h(Footer, { callInfo, answer, hangUp }),
duration: 0,
style: { width: '260px' },
});
}