tangning 1 rok pred
rodič
commit
c6cb467b8f

+ 5 - 1
src/views/account/product/index.vue

@@ -10,7 +10,7 @@
         <a-tab-pane :key="7" tab="深光Mesh场景" :disabled="loading" />
         <a-tab-pane :key="3" tab="四维双目Lite" :disabled="loading" />
         <a-tab-pane :key="4" tab="用户作品" :disabled="loading" />
-        <a-tab-pane :key="41" tab="看见全景VR" :disabled="loading" /> </a-tabs
+        <a-tab-pane :key="41" v-if="!isDev" tab="看见全景VR" :disabled="loading" /> </a-tabs
     ></template>
     <div class="desc-wrap-BasicTable">
       <BasicTable v-show="tableType == 4" @register="registerTableViewKankan">
@@ -200,6 +200,7 @@
   import { searchForm, cameraScene, cameraSearchForm, quanjSearchForm } from './data';
   import { useModal } from '/@/components/Modal';
   import { usePermissionStore } from '/@/store/modules/permission';
+  import { useUserStore } from '/@/store/modules/user';
   import { otherInfoStore } from '/@/store/modules/other';
   import {
     getquanjingSchemas,
@@ -241,6 +242,8 @@
       const otherInfo = otherInfoStore();
       const OverviewInfo = computed(() => otherInfo.getOverviewInfo);
       const { userName } = OverviewInfo.value;
+      const userStore = useUserStore();
+      const isDev = computed(() => userStore.getSystemEnv);
       const { createMessage, createConfirm } = useMessage();
       const timer = ref<NodeJS.Timeout | number | undefined | null>(null);
       const tableType = ref<number>(0); //0看看 、1看见、2深时
@@ -535,6 +538,7 @@
         operateSceneList,
         registerTableScene,
         rowSelection: { type: 'checkbox' },
+        isDev,
       };
     },
   });

+ 6 - 2
src/views/productOperation/viewKankan.vue

@@ -3,7 +3,7 @@
     <template #footer>
       <a-tabs v-model:activeKey="tableType">
         <a-tab-pane :key="0" tab="用户作品" />
-        <a-tab-pane :key="1" tab="看见全景VR" />
+        <a-tab-pane v-if="!isDev" :key="1" tab="看见全景VR" />
       </a-tabs>
     </template>
     <div class="desc-wrap-BasicTable">
@@ -129,7 +129,7 @@
   </PageWrapper>
 </template>
 <script lang="ts">
-  import { defineComponent, h, reactive, toRefs, ref } from 'vue';
+  import { defineComponent, h, reactive, toRefs, ref, computed } from 'vue';
   import {
     BasicTable,
     useTable,
@@ -151,6 +151,7 @@
   import MoveModal from './modal/MoveModal.vue';
   import priorityMoadl from './modal/priorityMoadl.vue';
   import { usePermissionStore } from '/@/store/modules/permission';
+  import { useUserStore } from '/@/store/modules/user';
   import { getquanjingSchemas, getVrColumns, getviewColumns, getviewSchemas } from './data';
   import {
     operateSceneList,
@@ -185,6 +186,8 @@
       const { getCheckPerm } = permissionStore;
       const tableType = ref<Number>(0); //0看看 、1看见、2深时
       const loading = ref(false);
+      const userStore = useUserStore();
+      const isDev = computed(() => userStore.getSystemEnv);
       const searchForm: Partial<FormProps> = {
         labelWidth: 100,
         autoSubmitOnEnter: true,
@@ -428,6 +431,7 @@
         handleColdStorage,
         handleCopy,
         clearSelectedRowKeys,
+        isDev,
       };
     },
   });