Explorar o código

[Mod 0000] 暂时屏蔽导出功能

houzekong hai 3 días
pai
achega
3c94f5c72d

+ 3 - 3
src/views/dashboard/basicInfo/minesInfo/index.vue

@@ -1,9 +1,9 @@
 <!-- eslint-disable vue/multi-word-component-names -->
 <template>
   <BasicTable @register="registerRealtimeTable">
-    <template #resetBefore>
+    <!-- <template #resetBefore>
       <a-button type="default" class="ml-8px" preIcon="mdi:download" @click="onExportXls"> 导出 </a-button>
-    </template>
+    </template> -->
     <template #action="{ record }">
       <button @click="handleGoToPageQuery(record, `/sealed/${record.parentId}`)" class="action-btn" title="隐蔽工作面监测数据">
         <SvgIcon name="database" />
@@ -35,7 +35,7 @@
   const route = useRoute();
 
   // ========== 表格注册 ==========
-  const { tableContext: ctxRealtime, onExportXls } = useListPage({
+  const { tableContext: ctxRealtime } = useListPage({
     tableProps: {
       immediate: false,
       api: getMineData, // 数据统计接口

+ 6 - 6
src/views/monitor/sealedMonitor/index.vue

@@ -15,18 +15,18 @@
           </button> -->
           </div>
         </template>
-        <template #resetBefore>
+        <!-- <template #resetBefore>
           <a-button type="default" class="ml-8px" preIcon="mdi:download" @click="onExportXlsTime"> 导出 </a-button>
-        </template>
+        </template> -->
       </BasicTable>
     </TabPane>
 
     <TabPane tab="历史数据监测" key="history">
       <!-- 历史数据表格 -->
       <BasicTable style="padding: 0" @register="registerHistoryTable">
-        <template #resetBefore>
+        <!-- <template #resetBefore>
           <a-button type="default" class="ml-8px" preIcon="mdi:download" @click="onExportXls"> 导出 </a-button>
-        </template>
+        </template> -->
         <template #form-goaf-select>
           <a-select v-model:value="goafId" :options="goafOptions" placeholder="请选择" @change="reloadHistory" />
         </template>
@@ -77,7 +77,7 @@
     return getGoafData(params);
   };
   // 注册实时数据表格
-  const { tableContext: ctxRealtime, onExportXls: onExportXlsTime } = useListPage({
+  const { tableContext: ctxRealtime } = useListPage({
     tableProps: {
       immediate: false,
       api: wrappedGetMineData,
@@ -119,7 +119,7 @@
   const { pause, resume } = useIntervalFn(() => realtimeTable.reload({ silence: true }), 60000);
 
   // 注册历史数据表格
-  const { tableContext: ctxHistory, onExportXls } = useListPage({
+  const { tableContext: ctxHistory } = useListPage({
     tableProps: {
       immediate: false,
       api: async (params) => {

+ 6 - 6
src/views/monitor/sensorMonitor/index.vue

@@ -25,9 +25,9 @@
               </button>
             </div>
           </template> -->
-          <template #resetBefore>
+          <!-- <template #resetBefore>
             <a-button type="default" class="ml-8px" preIcon="mdi:download" @click="onExportXlsTime"> 导出 </a-button>
-          </template>
+          </template> -->
           <template #empty>
             <span class="empty-placeholder">-</span>
           </template>
@@ -43,9 +43,9 @@
               </button>
             </div>
           </template>
-          <template #resetBefore>
+          <!-- <template #resetBefore>
             <a-button type="default" class="ml-8px" preIcon="mdi:download" @click="onExportXls"> 导出 </a-button>
-          </template>
+          </template> -->
         </BasicTable>
       </TabPane>
     </Tabs>
@@ -93,7 +93,7 @@
     return Promise.all([loadBoardData(params), getWindrectData(params)]).then(([__, res]) => res);
   };
 
-  const { tableContext: ctxRealtime, onExportXls: onExportXlsTime } = useListPage({
+  const { tableContext: ctxRealtime } = useListPage({
     tableProps: {
       immediate: false,
       columns,
@@ -142,7 +142,7 @@
   const [registerRealtimeTable] = ctxRealtime;
 
   // ====== 历史数据表格(getWindrectHistory)======
-  const { tableContext, onExportXls } = useListPage({
+  const { tableContext } = useListPage({
     tableProps: {
       immediate: false,
       columns: historyColumns,