| | |
| | | PLCTaskAction.boRefresh = context.BoRefresh.Value; |
| | | await _sysConfigService.UpdateConfigValue("sys_Refresh", context.BoRefresh.Value); |
| | | } |
| | | //演示模式 |
| | | if (context.BoDemo.HasValue) |
| | | { |
| | | PLCTaskAction.boDemo = context.BoDemo.Value; |
| | | await _sysConfigService.UpdateConfigValue("sys_demo", context.BoDemo.Value); |
| | | } |
| | | await _plcHubContext.Clients.All.UpdateService(new PLCServiceModel() { BoRunningState = PLCTaskAction.boRunningState, BoRefresh = PLCTaskAction.boRefresh, BoOffline = PLCTaskAction.boOffline, BoDemo = PLCTaskAction.boDemo}); |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | //服务状态 |
| | | var modService = new { PLCTaskAction.boRunningState, PLCTaskAction.boOffline, PLCTaskAction.boRefresh }; |
| | | var modService = new { PLCTaskAction.boRunningState, PLCTaskAction.boOffline, PLCTaskAction.boRefresh, PLCTaskAction.boDemo }; |
| | | return new { listPlc, modService }; |
| | | } |
| | | /// <summary> |
| | |
| | | <el-switch v-model="state.boRefresh" active-text="" inactive-text="自刷新" |
| | | @change="handleSwitchChange('boRefresh', $event)"></el-switch> |
| | | </el-card> |
| | | <el-card class="box-card" shadow="hover" style="margin-top: 3px;"> |
| | | <el-switch v-model="state.boDemo" active-text="" inactive-text="演示模式" |
| | | @change="handleSwitchChange('boDemo', $event)"></el-switch> |
| | | </el-card> |
| | | </el-collapse-item> |
| | | |
| | | <el-collapse-item title="堆垛机" name="2"> |