| | |
| | | <el-collapse-item title="堆垛机" name="2"> |
| | | <div style="overflow-x: auto;white-space: nowrap;"> |
| | | <el-card v-for="(stacker, index) in stackers" :key="index" class="box-card" shadow="hover"> |
| | | <el-switch v-model="stacker.isConn" :inactive-text="`${stacker.text}`"></el-switch> |
| | | <el-switch v-model="stacker.isConn" :inactive-text="`${stacker.text}`" disabled ></el-switch> |
| | | </el-card> |
| | | </div> |
| | | </el-collapse-item> |
| | | |
| | | <el-collapse-item title="输送线" name="3"> |
| | | <el-card v-for="(conveyor, index) in conveyors" :key="index" class="box-card" shadow="hover"> |
| | | <el-switch v-model="conveyor.isConn" :inactive-text="`${conveyor.text}`"></el-switch> |
| | | <el-switch v-model="conveyor.isConn" :inactive-text="`${conveyor.text}`" disabled ></el-switch> |
| | | </el-card> |
| | | </el-collapse-item> |
| | | </el-collapse> |
| | |
| | | |
| | | <script lang="ts" setup> |
| | | import { ref, reactive } from 'vue'; |
| | | import { Vue2 } from 'vue-demi'; |
| | | import { listStatus } from '/@/api/wcs/wcsPlc'; |
| | | |
| | | const state = ref<any>({}); |
| | |
| | | |
| | | |
| | | //输送线数据 |
| | | let cellsData = ref(cellsDataOne);; |
| | | let cellsData = ref(cellsDataOne); |
| | | |
| | | const isPlain1 = ref(false);//一层 |
| | | const isPlain2 = ref(true);//二层 |