瀏覽代碼

fix(bugs): 修改房间部分规则和列表

tangning 3 年之前
父節點
當前提交
985e6e82c6
共有 1 個文件被更改,包括 10 次插入1 次删除
  1. 10 1
      src/views/scenes/room.vue

+ 10 - 1
src/views/scenes/room.vue

@@ -6,7 +6,7 @@
           type="primary"
           v-show="
             getCheckRole(['super', 'plat_admin']) ||
-            (!getCheckRole(['host', 'tourist', 'company_viewer']) && getEquity([1, 2]))
+            (getCheckRole(['company_admin', 'staff']) && getEquity([2]))
           "
           @click="handleAddLiveScene"
         >
@@ -94,6 +94,9 @@
           dataIndex: 'capacities',
           // slots: { customRender: 'houseType' },
           width: 100,
+          customRender: ({ record }) => {
+            return record.capacities || '-';
+          },
         },
         {
           title: '主持人',
@@ -104,11 +107,17 @@
           title: '助理',
           dataIndex: 'assistantUserName',
           width: 140,
+          customRender: ({ record }) => {
+            return record.assistantUserName || '-';
+          },
         },
         {
           title: '助理手机号',
           dataIndex: 'assistantPhone',
           width: 140,
+          customRender: ({ record }) => {
+            return record.assistantPhone || '-';
+          },
         },
         {
           title: '创建时间',