Browse Source

增加提示

nieyuge 1 month ago
parent
commit
7e45dc5986
1 changed files with 12 additions and 0 deletions
  1. 12 0
      src/views/account/dialog/config.tsx

+ 12 - 0
src/views/account/dialog/config.tsx

@@ -11,6 +11,8 @@ interface ChatRoomDataType {
   roomId: string;
   roomName: string;
   autoRemoveUserSwitch: number;
+  showTip: number;
+  tipInfo: string;
 }
 
 interface PaginationParams {
@@ -92,6 +94,16 @@ const ChatRoomConfig: React.FC<ChatRoomConfigProps> = ({ visible, onClose, uuid,
         );
       },
     },
+    {
+      title: '提示信息',
+      dataIndex: 'tipInfo',
+      key: 'tipInfo',
+      render: (value, record) => {
+        if (record.showTip === 1) {
+          return value;
+        }
+      },
+    }
   ];
 
   const fetchChatRoomList = async (params: PaginationParams) => {