Selaa lähdekoodia

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

tangning 3 vuotta sitten
vanhempi
commit
985e6e82c6
1 muutettua tiedostoa jossa 10 lisäystä ja 1 poistoa
  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: '创建时间',