|
|
@ -11,26 +11,26 @@ |
|
|
|
<div class="axis"> |
|
|
|
<div class="w-[3rem]">X轴:</div> |
|
|
|
<input v-model="machineryForm.X" type="number" class="border-none outline-none h-[34px] bg-[#E8ECF7] text-primary font-medium rounded-md text-lg text-center w-[80px]" /> |
|
|
|
<div class="ml-[10px] w-[3rem]">毫米</div> |
|
|
|
<div class="flex ml-[10px]"> |
|
|
|
<div class="w-[3rem]">毫米</div> |
|
|
|
<div class="flex"> |
|
|
|
<el-button type="primary" @click="onMoveMachinery('X')">移动</el-button> |
|
|
|
<el-button type="primary" @click="onStopRotate('X')">停止</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="axis ml-[15px]"> |
|
|
|
<div class="w-[3rem]">Y轴:</div> |
|
|
|
<div class="axis"> |
|
|
|
<div class="w-[4rem]">Y轴:</div> |
|
|
|
<input v-model="machineryForm.Y" type="number" class="border-none outline-none h-[34px] bg-[#E8ECF7] text-primary font-medium rounded-md text-lg text-center w-[80px]" /> |
|
|
|
<div class="ml-[10px]">毫米</div> |
|
|
|
<div class="flex ml-[10px]"> |
|
|
|
<div class=" w-[2.5rem]">毫米</div> |
|
|
|
<div class="flex"> |
|
|
|
<el-button type="primary" @click="onMoveMachinery('Y')">移动</el-button> |
|
|
|
<el-button type="primary" @click="onStopRotate('Y')">停止</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="axis ml-[15px]"> |
|
|
|
Z轴: |
|
|
|
<div class="axis"> |
|
|
|
<div class="w-[3rem]">Z轴:</div> |
|
|
|
<input v-model="machineryForm.Z" type="number" class="border-none outline-none h-[34px] bg-[#E8ECF7] text-primary font-medium rounded-md text-lg text-center w-[80px]" /> |
|
|
|
<div class="ml-[10px]">毫米</div> |
|
|
|
<div class="flex ml-[10px]"> |
|
|
|
<div class="w-[2.5rem]">毫米</div> |
|
|
|
<div class="flex"> |
|
|
|
<el-button type="primary" @click="onMoveMachinery('Z')">移动</el-button> |
|
|
|
<el-button type="primary" @click="onStopRotate('Z')">停止</el-button> |
|
|
|
</div> |
|
|
@ -59,7 +59,7 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="20"> |
|
|
|
<div class="ml-[20px]"> |
|
|
|
<input v-model="syringeForm.rotationSpeed" placeholder='转速' type="number" class="border-none outline-none h-[34px] bg-[#E8ECF7] text-primary font-medium rounded-md text-lg text-center w-[100px]" />毫米/秒杀 |
|
|
|
<input v-model="syringeForm.rotationSpeed" 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> |
|
|
|
<div class="mt-[10px] ml-[20px]"> |
|
|
|
<input v-model="syringeForm.time" placeholder='时间' type="number" class="border-none outline-none h-[34px] bg-[#E8ECF7] text-primary font-medium rounded-md text-lg text-center w-[100px]" />秒 |
|
|
@ -68,8 +68,9 @@ |
|
|
|
方向: |
|
|
|
<el-radio v-model="syringeForm.direction" value="0">后退</el-radio> |
|
|
|
<el-radio v-model="syringeForm.direction" value="1">前进</el-radio> |
|
|
|
<el-button type="primary" class="ml-[20px]" @click="onTurnOnSyringePump">开始</el-button> |
|
|
|
<el-button type="primary" class="ml-[20px]" @click="onTurnOffSyringePump">关闭</el-button> |
|
|
|
<br/> |
|
|
|
<el-button type="primary" @click="onTurnOnSyringePump">开始</el-button> |
|
|
|
<el-button type="primary" class="ml-[20px]" @click="onTurnOffSyringePump">停止</el-button> |
|
|
|
</div> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
@ -147,7 +148,7 @@ |
|
|
|
<div> |
|
|
|
<el-button type="primary">急停</el-button> |
|
|
|
<el-button type="primary" @click="onTurnOnLightPanel">开启照明灯</el-button> |
|
|
|
<el-button type="primary" @click="onTurnOffLightPanel">关闭照明灯</el-button> |
|
|
|
<el-button @click="onTurnOffLightPanel">关闭照明灯</el-button> |
|
|
|
</div> |
|
|
|
<el-divider /> |
|
|
|
<div> |
|
|
@ -158,19 +159,28 @@ |
|
|
|
<el-divider /> |
|
|
|
<div> |
|
|
|
<div>气压阀</div> |
|
|
|
<div> |
|
|
|
<el-button type="primary" @click="onControlValve('Cleaning')">打开清洗阀</el-button> |
|
|
|
<el-button @click="onStopWash()">关闭清洗阀</el-button> |
|
|
|
</div> |
|
|
|
<div class="mt-[10px]"> |
|
|
|
<el-button type="primary" @click="onControlValve('Nozzle')">打开喷嘴阀</el-button> |
|
|
|
<el-button type="primary" @click="onControlValve('Dehumidification')">打开除湿阀</el-button> |
|
|
|
<el-button @click="onStopWork">关闭喷嘴阀</el-button> |
|
|
|
</div> |
|
|
|
<el-divider /> |
|
|
|
<div class="mt-[10px]"> |
|
|
|
<el-button type="primary">关闭电压控制器</el-button> |
|
|
|
<el-button type="primary" @click="onControlValve('Dehumidification')">打开除湿阀</el-button> |
|
|
|
<el-button @click="onStopDehumidify()">关闭除湿阀</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-divider /> |
|
|
|
<!-- <div class="mt-[10px]"> |
|
|
|
<el-button type="primary">关闭电压控制器</el-button> |
|
|
|
</div> --> |
|
|
|
<!-- <el-divider /> |
|
|
|
<div class="h-[13rem] bg-[#f4f4f4] p-[10px]"> |
|
|
|
<div>状态反馈区</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> --> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -282,6 +292,8 @@ import { |
|
|
|
stopMotor, |
|
|
|
turnOffLightPanel, |
|
|
|
turnOnLightPanel, |
|
|
|
stopWash, |
|
|
|
stopDehumidify |
|
|
|
} from "@/services/globalCmd/globalCmd"; |
|
|
|
const activeName = ref('debug') |
|
|
|
const voltageValue = ref() |
|
|
@ -355,6 +367,18 @@ import { |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
const onStopDehumidify = () =>{ |
|
|
|
stopDehumidify().then((res:any)=>{ |
|
|
|
success(res) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
const onStopWash = () => { |
|
|
|
stopWash({}).then((res:any) => { |
|
|
|
success(res) |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
//电压控制 开启 |
|
|
|
const onTurnOnHighVoltage = () => { |
|
|
|
const params = <VoltageType>{ |
|
|
@ -491,8 +515,6 @@ import { |
|
|
|
margin-left: 3.5rem; |
|
|
|
margin-right: 3.5rem; |
|
|
|
border-radius: 6px; |
|
|
|
padding-left: 3.125rem; |
|
|
|
padding-right: 3.125rem; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
|
|
|
|