Просмотр исходного кода

feat: (dashboard) 更改字段

gemercheung 2 лет назад
Родитель
Сommit
bd6bff4d8c

+ 9 - 9
src/views/dashboard/analysis/enterprise.vue

@@ -46,37 +46,37 @@
   const columns: BasicColumn[] = [
     {
       title: '企业名称',
-      dataIndex: 'key1',
+      dataIndex: 'companyName',
       width: 120,
     },
     {
-      title: '房间管理',
-      dataIndex: 'key2',
+      title: '直播间名称',
+      dataIndex: 'userName',
       width: 120,
     },
     {
       title: '直播场景名称',
-      dataIndex: 'key3',
+      dataIndex: 'userName',
       width: 120,
     },
     {
       title: '主持人',
-      dataIndex: 'key4',
+      dataIndex: 'anchorName',
       width: 120,
     },
     {
       title: '总观看人数',
-      dataIndex: 'key5',
+      dataIndex: 'spectatorNum',
       width: 120,
     },
     {
       title: '总直播时长',
-      dataIndex: 'key6',
+      dataIndex: 'duration',
       width: 120,
     },
     {
       title: '总分享人数',
-      dataIndex: 'key6',
+      dataIndex: 'shareNum',
       width: 120,
     },
   ];
@@ -166,7 +166,7 @@
         },
       },
       {
-        field: '[startTime, endTime]',
+        field: 'time',
         label: '时间段',
         component: 'RangePicker',
         colProps: {

+ 6 - 6
src/views/dashboard/analysis/index.vue

@@ -63,32 +63,32 @@
   const columns: BasicColumn[] = [
     {
       title: '微信昵称',
-      dataIndex: 'key1',
+      dataIndex: 'nickName',
       width: 120,
     },
     {
       title: '手机号',
-      dataIndex: 'key2',
+      dataIndex: 'userName',
       width: 120,
     },
     {
       title: '房间名称',
-      dataIndex: 'key3',
+      dataIndex: 'liveRoomName',
       width: 120,
     },
     {
       title: '在线时长(min)',
-      dataIndex: 'key4',
+      dataIndex: 'duration',
       width: 120,
     },
     {
       title: '留言条数',
-      dataIndex: 'key5',
+      dataIndex: 'bulletChatAmount',
       width: 120,
     },
     {
       title: '留言内容',
-      dataIndex: 'key6',
+      dataIndex: 'bulletChatContents',
       width: 320,
     },
   ];