| | |
| | | <el-button style="margin-left: 10px;">自动</el-button> |
| | | </div> |
| | | <div> |
| | | <div :class="['lineStatus', stationValue.status ? 'device-status-0' : 'device-status-1']"></div> |
| | | <div :class="['lineStatus', stationValue.status ? 'device-status-0' : 'device-status-1']"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | </el-row> |
| | | </el-form> |
| | | <div style="text-align: center;margin: 10px;"> |
| | | <el-button class="button" size="large">写入数据</el-button> |
| | | <el-button class="button" size="large" @click="write(stationValue)">写入数据</el-button> |
| | | </div> |
| | | </div> |
| | | <template #footer> |
| | |
| | | |
| | | <script lang="ts" setup> |
| | | import { ref, defineModel } from 'vue'; |
| | | import { writeValue } from '/@/api/wcs/wcsDevice'; |
| | | import { ElMessageBox,ElMessage } from 'element-plus'; |
| | | const listStationsData = defineModel<any>("listStationsData") |
| | | const stationValue = defineModel<any>("stationValue") |
| | | |
| | |
| | | // emit('update:listStationsData', listStationsData.value); |
| | | // emit('update:stationValue', stationValue); |
| | | // }; |
| | | |
| | | const write = async (row: any) => { |
| | | await writeValue(row); |
| | | ElMessage.success('写入成功!'); |
| | | } |
| | | const isShowDialog = ref(false); |
| | | |
| | | const openDialog = async (row: any) => { |