安琪酵母(西藏)益生菌信息采集中心智能实验室
longyvfengyun
2023-08-24 91a371d14923904bdf88dd22995f1470eac3f809
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import {ref} from "vue";
import air from "@/assets/js/const/air";
import {getAirParam} from "@/views/airConditioning/js/api";
const airControlModule = ()=>{
  const cmd = air.cmd;
  const airParam = ref({
    num: 0,
    devId: 0,
    opCmd: 0,
    stHumid: 0,
    stTemp: 0,
  });
 
  /**
   * 读取放电参数
   */
  const getParam = ()=>{
    getAirParam(210000001).then(res=>{
      console.log(res);
    }).catch(error=>{
      console.log(error);
    });
  }
 
  return {
    airParam,
    getParam,
  };
}
export default airControlModule;