Bläddra i källkod

fix: 场景列表

操作按钮
tangning 3 år sedan
förälder
incheckning
d9d08c8f00
2 ändrade filer med 4248 tillägg och 4691 borttagningar
  1. 27 31
      src/views/scenes/list.vue
  2. 4221 4660
      yarn.lock

+ 27 - 31
src/views/scenes/list.vue

@@ -19,37 +19,33 @@
       </template>
       <template #action="{ record }">
         <TableAction
-          :actions="
-            record.payStatus == 1
-              ? [
-                  {
-                    // icon: 'mdi:briefcase-download',
-                    label: t('routes.scenes.downloadScene'),
-                    popConfirm: {
-                      title: t('routes.scenes.downloadSceneConfirm'),
-                      confirm: handleDownloadScene.bind(null, record),
-                    },
-                  },
-                  {
-                    color: 'error',
-                    label: t('routes.scenes.editor'),
-                    onClick: openSceneEditor.bind(null, record),
-                  },
-                  {
-                    label: t('routes.scenes.editorScenes'),
-                    onClick: openSceneEditorModal.bind(null, record),
-                  },
-                  {
-                    color: 'error',
-                    label: t('routes.scenes.makeLiveCover'),
-                    ifShow:
-                      (record.lived !== true && getEquity([1, 2])) ||
-                      (record.lived !== true && getCheckRole(['super', 'plat_admin'])),
-                    onClick: generateDefaultLiveRoom.bind(null, record),
-                  },
-                ]
-              : []
-          "
+          :actions="[
+            {
+              // icon: 'mdi:briefcase-download',
+              label: t('routes.scenes.downloadScene'),
+              popConfirm: {
+                title: t('routes.scenes.downloadSceneConfirm'),
+                confirm: handleDownloadScene.bind(null, record),
+              },
+            },
+            {
+              color: 'error',
+              label: t('routes.scenes.editor'),
+              onClick: openSceneEditor.bind(null, record),
+            },
+            {
+              label: t('routes.scenes.editorScenes'),
+              onClick: openSceneEditorModal.bind(null, record),
+            },
+            {
+              color: 'error',
+              label: t('routes.scenes.makeLiveCover'),
+              ifShow:
+                record.lived !== true ||
+                (record.lived !== true && getCheckRole(['super', 'plat_admin'])),
+              onClick: generateDefaultLiveRoom.bind(null, record),
+            },
+          ]"
         />
       </template>
     </BasicTable>

Filskillnaden har hållts tillbaka eftersom den är för stor
+ 4221 - 4660
yarn.lock