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;
|
|