From b64a0deae5b5d33f9e20671a68936b27f0b9b00b Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 21 七月 2026 18:03:03 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev_pro2.0' into dev_pro2.0
---
src/views/im/manager/rtc/data.ts | 144 ++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 144 insertions(+), 0 deletions(-)
diff --git a/src/views/im/manager/rtc/data.ts b/src/views/im/manager/rtc/data.ts
new file mode 100644
index 0000000..ab9dc53
--- /dev/null
+++ b/src/views/im/manager/rtc/data.ts
@@ -0,0 +1,144 @@
+import type { VbenFormSchema } from '#/adapter/form';
+import type { VxeTableGridOptions } from '#/adapter/vxe-table';
+
+import { markRaw } from 'vue';
+
+import { DICT_TYPE } from '#/packages/constants/src';
+import { getDictOptions } from '#/packages/effects/hooks/src';
+
+import { getRangePickerDefaultProps } from '#/utils';
+import { UserSelect } from '#/views/system/user/components';
+
+/** 閫氳瘽璁板綍鎼滅储琛ㄥ崟 */
+export function useRtcGridFormSchema(): VbenFormSchema[] {
+ return [
+ {
+ fieldName: 'inviterUserId',
+ label: '鍙戣捣浜�',
+ component: markRaw(UserSelect),
+ componentProps: {
+ placeholder: '璇烽�夋嫨鍙戣捣浜�',
+ },
+ },
+ {
+ fieldName: 'conversationType',
+ label: '浼氳瘽绫诲瀷',
+ component: 'Select',
+ componentProps: {
+ allowClear: true,
+ options: getDictOptions(DICT_TYPE.IM_RTC_CALL_CONVERSATION_TYPE, 'number'),
+ placeholder: '璇烽�夋嫨浼氳瘽绫诲瀷',
+ },
+ },
+ {
+ fieldName: 'mediaType',
+ label: '濯掍綋绫诲瀷',
+ component: 'Select',
+ componentProps: {
+ allowClear: true,
+ options: getDictOptions(DICT_TYPE.IM_RTC_CALL_MEDIA_TYPE, 'number'),
+ placeholder: '璇烽�夋嫨濯掍綋绫诲瀷',
+ },
+ },
+ {
+ fieldName: 'status',
+ label: '閫氳瘽鐘舵��',
+ component: 'Select',
+ componentProps: {
+ allowClear: true,
+ options: getDictOptions(DICT_TYPE.IM_RTC_CALL_STATUS, 'number'),
+ placeholder: '璇烽�夋嫨閫氳瘽鐘舵��',
+ },
+ },
+ {
+ fieldName: 'endReason',
+ label: '缁撴潫鍘熷洜',
+ component: 'Select',
+ componentProps: {
+ allowClear: true,
+ options: getDictOptions(DICT_TYPE.IM_RTC_CALL_END_REASON, 'number'),
+ placeholder: '璇烽�夋嫨缁撴潫鍘熷洜',
+ },
+ },
+ {
+ fieldName: 'startTime',
+ label: '鍙戣捣鏃堕棿',
+ component: 'RangePicker',
+ componentProps: {
+ ...getRangePickerDefaultProps(),
+ allowClear: true,
+ },
+ },
+ ];
+}
+
+/** 閫氳瘽璁板綍瀛楁 */
+export function useRtcGridColumns(): VxeTableGridOptions['columns'] {
+ return [
+ {
+ field: 'id',
+ title: '缂栧彿',
+ width: 100,
+ },
+ {
+ title: '鍙戣捣浜�',
+ minWidth: 160,
+ slots: { default: 'inviter' },
+ },
+ {
+ field: 'conversationType',
+ title: '浼氳瘽绫诲瀷',
+ width: 110,
+ cellRender: {
+ name: 'CellDict',
+ props: { type: DICT_TYPE.IM_RTC_CALL_CONVERSATION_TYPE },
+ },
+ },
+ {
+ title: '缇�',
+ minWidth: 160,
+ slots: { default: 'group' },
+ },
+ {
+ field: 'mediaType',
+ title: '濯掍綋绫诲瀷',
+ width: 110,
+ cellRender: {
+ name: 'CellDict',
+ props: { type: DICT_TYPE.IM_RTC_CALL_MEDIA_TYPE },
+ },
+ },
+ {
+ field: 'status',
+ title: '閫氳瘽鐘舵��',
+ width: 110,
+ cellRender: {
+ name: 'CellDict',
+ props: { type: DICT_TYPE.IM_RTC_CALL_STATUS },
+ },
+ },
+ {
+ field: 'endReason',
+ title: '缁撴潫鍘熷洜',
+ width: 120,
+ slots: { default: 'endReason' },
+ },
+ {
+ title: '閫氳瘽鏃堕暱',
+ width: 120,
+ slots: { default: 'duration' },
+ },
+ {
+ field: 'startTime',
+ title: '鍙戣捣鏃堕棿',
+ minWidth: 180,
+ formatter: 'formatDateTime',
+ },
+ {
+ title: '鎿嶄綔',
+ width: 100,
+ fixed: 'right',
+ slots: { default: 'actions' },
+ },
+ ];
+}
--
Gitblit v1.9.3