| | |
| | | </el-col> |
| | | <el-col :span="19"> |
| | | <div class="card-page"> |
| | | <el-button type="primary" :plain="isPlain1" @click="floorTogglePlain(1)">一层平面</el-button> |
| | | <el-button type="primary" :plain="isPlain2" @click="floorTogglePlain(2)">二层平面</el-button> |
| | | <el-button type="primary" :plain="isPlain3" @click="floorTogglePlain(3)">三层平面</el-button> |
| | | <el-button type="primary" :plain="layer != 1" @click="floorTogglePlain(1)">一层平面</el-button> |
| | | <el-button type="primary" :plain="layer != 2" @click="floorTogglePlain(2)">二层平面</el-button> |
| | | <el-button type="primary" :plain="layer != 3" @click="floorTogglePlain(3)">三层平面</el-button> |
| | | </div> |
| | | <div style="margin: 40px; height: 50%;"> |
| | | <div class="grid-container-line"> |
| | |
| | | import 'splitpanes/dist/splitpanes.css'; |
| | | import { listWcsAlarmInfo, resetWcsAlarmInfo } from '/@/api/wcs/wcsAlarmInfo'; |
| | | import { signalR } from './signalR'; |
| | | import { ElMessageBox, ElMessage } from "element-plus"; |
| | | //连接signalR 监听变更 |
| | | onMounted(async () => { |
| | | signalR.off('PublicAlarm'); |
| | |
| | | |
| | | //复位报警 |
| | | const reset = async () => { |
| | | await resetWcsAlarmInfo(); |
| | | await resetWcsAlarmInfo({ layer: layer.value }); |
| | | ElMessage.success("复位成功"); |
| | | // await handleQuery(); |
| | | } |
| | | |
| | | |
| | | const isPlain1 = ref(false);//一层 |
| | | const isPlain2 = ref(true);//二层 |
| | | const isPlain3 = ref(true);//三层 |
| | | const layer = ref(1); |
| | | //切换层平面 |
| | | function floorTogglePlain(buttonNumber) { |
| | | layer.value = buttonNumber; |
| | | if (buttonNumber === 1) { |
| | | isPlain1.value = false; |
| | | isPlain2.value = true; |
| | | isPlain3.value = true; |
| | | //切换输送线数据 |
| | | cellsData.value = cellsDataOne.value; |
| | | } else if (buttonNumber === 2) { |
| | | isPlain2.value = false; |
| | | isPlain1.value = true; |
| | | isPlain3.value = true; |
| | | //切换输送线数据 |
| | | cellsData.value = cellsDataTwo.value; |
| | | } else if (buttonNumber === 3) { |
| | | isPlain3.value = false; |
| | | isPlain1.value = true; |
| | | isPlain2.value = true; |
| | | //切换输送线数据 |
| | | cellsData.value = cellsDataThree.value; |
| | | } |