gemercheung hai 1 ano
pai
achega
4744b9648e
Modificáronse 1 ficheiros con 22 adicións e 16 borrados
  1. 22 16
      src/views/scenes/list.vue

+ 22 - 16
src/views/scenes/list.vue

@@ -1,5 +1,5 @@
 <template>
-  <PageWrapper contentBackground>
+  <PageWrapper contentBackground fixed-height>
     <template #footer>
       <a-tabs v-model:activeKey="tableType" @change="changeTable">
         <a-tab-pane :key="0" :tab="t('routes.scenes.4dkk')" :disabled="loading" />
@@ -12,6 +12,7 @@
     <div class="desc-wrap-BasicTable">
       <BasicTable
         @register="registerTable"
+        :scroll="{ x: 1500, y: 500 }"
         :rowSelection="{ type: 'checkbox', getCheckboxProps: getCheckboxProps }"
         @fetch-success="handleFetchSuccess"
       >
@@ -64,16 +65,7 @@
                 disabled: record.status != -2,
                 onClick: handleUpgrade.bind(null, record),
               },
-              {
-                tooltip: t('routes.scenes.downloadScene'),
-                disabled: record.status != -2,
-                ifShow: record.isDownload,
-                icon: 'entypo:download',
-                popConfirm: {
-                  title: t('routes.scenes.downloadSceneConfirm'),
-                  confirm: handleDownloadScene.bind(null, record),
-                },
-              },
+
               {
                 icon: 'ic:round-assistant-direction',
                 tooltip: t('routes.scenes.assistant'),
@@ -88,6 +80,13 @@
                 onClick: handleCopy.bind(null, record),
               },
               {
+                tooltip: t('routes.scenes.creatobj'),
+                icon: 'carbon:chart-3d',
+                ifShow:
+                  record.status == -2 && tableType == 2 && record.isMain && !record.coldStorage,
+                onClick: handleGenerate.bind(null, record),
+              },
+              {
                 color: 'error',
                 icon: 'material-symbols:delete',
                 tooltip: t('routes.scenes.delete'),
@@ -99,11 +98,14 @@
                 },
               },
               {
-                tooltip: t('routes.scenes.creatobj'),
-                icon: 'carbon:chart-3d',
-                ifShow:
-                  record.status == -2 && tableType == 2 && record.isMain && !record.coldStorage,
-                onClick: handleGenerate.bind(null, record),
+                tooltip: t('routes.scenes.downloadScene'),
+                disabled: record.status != -2,
+                ifShow: record.isDownload,
+                icon: 'entypo:download',
+                popConfirm: {
+                  title: t('routes.scenes.downloadSceneConfirm'),
+                  confirm: handleDownloadScene.bind(null, record),
+                },
               },
             ]"
           />
@@ -165,6 +167,8 @@
   console.log('localeStore', localeStore);
   const userStore = useUserStore();
 
+  const tableHeight = ref(() => 300);
+
   export default defineComponent({
     components: {
       BasicTable,
@@ -332,6 +336,7 @@
         searchInfo: { type: tableType },
         tableSetting: { fullScreen: true },
         // canResize: false,
+
         clickToRowSelect: false,
         showIndexColumn: false,
         rowKey: 'num',
@@ -512,6 +517,7 @@
         getCheckboxProps,
         isPatchAuth,
         handleFetchSuccess,
+        tableHeight,
       };
     },
   });