Browse Source

fix: 手动控制

chenzhen2 2 years ago
parent
commit
b663a3185f
3 changed files with 458 additions and 702 deletions
  1. 6 0
      src/apis/envmonitor.ts
  2. 2 1
      src/utils/https.ts
  3. 450 701
      src/views/envmonitor/components/Air/manualIndex.vue

+ 6 - 0
src/apis/envmonitor.ts

@@ -261,6 +261,12 @@ export const getPadImg = (params:any) => {
   return https().request<any>(`${setupService}padImage/queryImageByFuncType?${params}`,Method.GET, undefined, ContentType.json)
 }
 
+/**
+ * 设备手动控制
+ */
+export const querySpaceConditioners=(params:any)=>{
+  return https().request<any>(`${duoduoenvService}ctrl/querySpaceConditioners?${params}`, Method.GET, undefined, ContentType.json)
+}
 
 
 

+ 2 - 1
src/utils/https.ts

@@ -22,7 +22,8 @@ export const https = (configobj: any = { timeout: '' }) => {
   }
   const https = new HttpClient(config)
   https.httpClient.interceptors.request.use(function (request) {
-    const comInfo = getUserInfo()
+    let comInfo = getUserInfo()
+    comInfo.projectId="Pj1101080255"
     const comParams: string = setQueryConfig(comInfo)
     let url: any = request.url
     if (url.indexOf("?") != -1) {

File diff suppressed because it is too large
+ 450 - 701
src/views/envmonitor/components/Air/manualIndex.vue