Explorar el Código

[Feat 0000] CADviewer接口改动

houzekong hace 9 meses
padre
commit
4a9e8fe5b3

+ 15 - 0
src/views/vent/home/billboard/index.vue

@@ -23,6 +23,21 @@
   </div>
 </template>
 <script lang="ts" setup>
+  /**
+   * 本文件夹下的内容是公司端看板页的内容:
+   *
+   * 看板有多种类型,包含了监测、跳转矿端的功能。常规的菜单配置好后,左上角会出现看板切换按钮,但当带url query的菜单配置好后则不会出现。
+   *
+   * 菜单配置相关信息:使用vent/home/billboard/index组件配置。配置时根据需要在路径后添加url query
+   *
+   * 例如:
+   * /billboard/dust?type=DustStatus(粉尘看板)
+   * /gasMonitor/home?type=GasStatus(瓦斯看板)
+   * /home(综合看板)
+   *
+   * 支持的看板类型如下:'DustStatus'、'FireStatus'、'FileOverview'、'VentilationStatus'、'GasStatus'
+   *
+   */
   import { computed, onMounted, ref } from 'vue';
   import BaseCard from './components/BaseCard.vue';
   import ArrowButton from './components/ArrowButton.vue';

+ 1 - 1
src/views/vent/performance/fileDetail/fileDetail.api.ts

@@ -53,7 +53,7 @@ export const downLoad = (params) => defHttp.post({ url: Api.downLoad, params, re
  * 下载文件接口,通过id下载
  * @param params
  */
-export const downloadById = (params) => defHttp.post({ url: Api.downloadById, params, responseType: 'blob' });
+export const downloadById = (params) => defHttp.get({ url: Api.downloadById, params, responseType: 'blob' });
 
 /**
  * 删除文件/文件夹