瀏覽代碼

[Mod 0000] 公司端看板api revert

houzekong 10 月之前
父節點
當前提交
320a33e773
共有 1 個文件被更改,包括 5 次插入71 次删除
  1. 5 71
      src/views/vent/home/billboard/billboard.api.ts

+ 5 - 71
src/views/vent/home/billboard/billboard.api.ts

@@ -13,75 +13,9 @@ enum Api {
  * @param params
  */
 export const getSummary: () => Promise<BillboardType[]> = () =>
-  Promise.resolve([
-    {
-      dustInfo: {
-        totalNum: 12,
-        dustTypeList: [
-          {
-            deviceType: 'dusting_auto',
-            warnLevel: 0,
-            num: 12,
-            typeName: '粉尘设备',
-          },
-        ],
-        dustWarnLevel: 0,
-      },
-      fileServerInfo: {
-        totalNum: 64,
-        approvalNum: 0,
-      },
-      fireInfo: {
-        tempMax: 28.8,
-        fireWarnLevel: 1001,
-        bundletubeInfo: 1001,
-        smokeSensorInfo: 0,
-        tempSensorInfo: 0,
-      },
-      orgname: '神东煤炭集团布尔台煤矿',
-      orgcode: 'sdmtjtbet',
-      ip: '10.246.95.4',
-      gasInfo: {
-        gasWarnLevel: 0,
-        gasTypeList: [
-          {
-            warnLevel: 0,
-            num: 4,
-            typeName: '瓦斯抽采泵站',
-          },
-          {
-            warnLevel: 0,
-            num: 4,
-            typeName: '瓦斯巡检',
-          },
-        ],
-      },
-      ventInfo: {
-        totallength: 220743.43,
-        zonghuifeng: '32205.36',
-        fanMainList: [
-          {
-            strname: '明安木独主要通风机',
-            strinstallpos: '明安木独',
-            Fan1m3: '0.0',
-            Fan2m3: '15499.0',
-          },
-          {
-            strname: '立风井主要通风机',
-            strinstallpos: '松定霍洛',
-            Fan1m3: '15652.0',
-            Fan2m3: '14072.0',
-          },
-        ],
-        xufengliang: 28558,
-        zongjinfeng: '31196.32',
-      },
-      netStatus: 1,
+  defHttp.post({
+    url: Api.getSummary,
+    params: {
+      userName: store.userInfo?.username,
     },
-  ]);
-// defHttp.post({
-//   url: Api.getSummary,
-//   params: {
-//     userName: store.userInfo?.username,
-//   },
-// });
+  });