|
|
@ -79,12 +79,14 @@ |
|
|
|
<el-col :span="6" class="text-right"> |
|
|
|
湿度: |
|
|
|
</el-col> |
|
|
|
<el-col :span="6" class="ml-[20px]"> |
|
|
|
<el-col :span="12" class="ml-[20px]"> |
|
|
|
<input placeholder='湿度' type="number" class="border-none outline-none h-[34px] bg-[#E8ECF7] text-primary font-medium rounded-md text-lg text-center w-[100px]" /> |
|
|
|
<div class="flex mt-[10px]"> |
|
|
|
<el-button type="primary">开始除湿</el-button> |
|
|
|
<el-button type="primary">结束除湿</el-button> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|
<el-col :span="4"> |
|
|
|
<el-button type="primary">确定</el-button> |
|
|
|
</el-col> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
<el-divider /> |
|
|
|
|
|
|
@ -160,16 +162,16 @@ |
|
|
|
<div> |
|
|
|
<div>气压阀</div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" @click="onControlValve('Cleaning')">打开清洗阀</el-button> |
|
|
|
<el-button @click="onStopWash()">关闭清洗阀</el-button> |
|
|
|
<el-button type="primary" @click="onControlValve('Cleaning',true)">打开清洗阀</el-button> |
|
|
|
<el-button @click="onControlValve('Cleaning',false)">关闭清洗阀</el-button> |
|
|
|
</div> |
|
|
|
<div class="mt-[10px]"> |
|
|
|
<el-button type="primary" @click="onControlValve('Nozzle')">打开喷嘴阀</el-button> |
|
|
|
<el-button @click="onStopWork">关闭喷嘴阀</el-button> |
|
|
|
<el-button type="primary" @click="onControlValve('Nozzle',true)">打开喷嘴阀</el-button> |
|
|
|
<el-button @click="onControlValve('Nozzle',false)">关闭喷嘴阀</el-button> |
|
|
|
</div> |
|
|
|
<div class="mt-[10px]"> |
|
|
|
<el-button type="primary" @click="onControlValve('Dehumidification')">打开除湿阀</el-button> |
|
|
|
<el-button @click="onStopDehumidify()">关闭除湿阀</el-button> |
|
|
|
<el-button type="primary" @click="onControlValve('Dehumidification',true)">打开除湿阀</el-button> |
|
|
|
<el-button @click="onControlValve('Dehumidification',false)">关闭除湿阀</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-divider /> |
|
|
@ -354,11 +356,11 @@ import { |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
const onControlValve = (type:ControlNitrogen) => { |
|
|
|
const onControlValve = (type:ControlNitrogen,open:boolean) => { |
|
|
|
const params = <ControlValueType>{ |
|
|
|
params:{ |
|
|
|
valveType:type, |
|
|
|
isOpen:true |
|
|
|
isOpen:open |
|
|
|
} |
|
|
|
} |
|
|
|
controlValve(params).then((res:any) => { |
|
|
|