nieyuge 1 月之前
父节点
当前提交
02c28cb2cb
共有 3 个文件被更改,包括 17 次插入4 次删除
  1. 14 3
      src/views/account/dialog/config.tsx
  2. 1 1
      src/views/account/dialog/qrcode.tsx
  3. 2 0
      src/views/account/list/index.tsx

+ 14 - 3
src/views/account/dialog/config.tsx

@@ -37,9 +37,11 @@ interface ChatRoomConfigProps {
   visible: boolean;
   onClose: () => void;
   uuid: string;
+  userName?: string; // 企微实名
+  corpName?: string; // 企微主体
 }
 
-const ChatRoomConfig: React.FC<ChatRoomConfigProps> = ({ visible, onClose, uuid }) => {
+const ChatRoomConfig: React.FC<ChatRoomConfigProps> = ({ visible, onClose, uuid, userName, corpName }) => {
   const [loading, setLoading] = useState(false);
   const [tableData, setTableData] = useState<ChatRoomDataType[]>([]);
   const [pagination, setPagination] = useState<{
@@ -107,7 +109,7 @@ const ChatRoomConfig: React.FC<ChatRoomConfigProps> = ({ visible, onClose, uuid
           total: res.data.totalSize
         });
       } else {
-				setTableData([]);
+        setTableData([]);
         message.error(res.msg || '获取群聊列表失败');
       }
     } catch {
@@ -176,7 +178,16 @@ const ChatRoomConfig: React.FC<ChatRoomConfigProps> = ({ visible, onClose, uuid
 
   return (
     <Drawer
-      title="群聊配置"
+      title={
+        <div>
+          <div className="text-lg font-medium">群聊配置</div>
+          {userName && corpName && (
+            <div className="text-sm text-gray-500 mt-1">
+              企微实名:{userName} | 企微主体:{corpName}
+            </div>
+          )}
+        </div>
+      }
       placement="right"
       onClose={onClose}
       open={visible}

+ 1 - 1
src/views/account/dialog/qrcode.tsx

@@ -5,7 +5,7 @@ import { qwGetQrCode, qwCheckLogin, qwCheckQRCode } from '@src/http/api';
 
 interface QrCodeData {
   qrcode: string;
-	qrcode_data: string;
+  qrcode_data: string;
   uuid: string;
   ttl: number;
   key: string;

+ 2 - 0
src/views/account/list/index.tsx

@@ -243,6 +243,8 @@ const Gzh: React.FC = () => {
         visible={configVisible} 
         onClose={handleConfigClose} 
         uuid={currentUuid} 
+        userName={tableData.find(item => item.uuid === currentUuid)?.name}
+        corpName={tableData.find(item => item.uuid === currentUuid)?.corpName}
       />
 
       <QrCodeModal