Selaa lähdekoodia

feat(operate): 阶段2 监控页 XAML — 三块新列(活动/排气阀/借用让路)+ 受护栏停止按钮

舱行加 WorkingType/ValveState/CapturePausedText 显示;底部加'整体停止 control(受护栏)'按钮
(绑定 ShutdownControlCommand,二次确认+工程师口令)。页注从'纯只读'改为'经HTTP跨进程读+受护栏停止'。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
huangjie 2 päivää sitten
vanhempi
commit
389cfac7c9
1 muutettua tiedostoa jossa 16 lisäystä ja 2 poistoa
  1. 16 2
      ivf_tl_operate_2.0/ivf_tl_Operate/View/ServiceMonitorView.xaml

+ 16 - 2
ivf_tl_operate_2.0/ivf_tl_Operate/View/ServiceMonitorView.xaml

@@ -147,14 +147,28 @@
                                     <TextBlock Grid.Column="2" Text="{Binding StateText, StringFormat=舱室 {0}}" FontSize="34" Foreground="{Binding StateBrush}" VerticalAlignment="Center"/>
                                     <TextBlock Grid.Column="3" Text="{Binding ComText, StringFormat=通讯 {0}}" FontSize="34" Foreground="{Binding ComBrush}" VerticalAlignment="Center"/>
                                     <TextBlock Grid.Column="4" Text="{Binding CcdText, StringFormat=CCD {0}}" FontSize="34" Foreground="{Binding CcdBrush}" VerticalAlignment="Center"/>
-                                    <TextBlock Grid.Column="5" Text="{Binding RunState}" FontSize="30" Foreground="#959596" VerticalAlignment="Center" TextTrimming="CharacterEllipsis"/>
+                                    <StackPanel Grid.Column="5" VerticalAlignment="Center">
+                                        <TextBlock Text="{Binding WorkingType, StringFormat=活动 {0}}" FontSize="30" Foreground="#4D75AC"/>
+                                        <TextBlock Text="{Binding ValveState, StringFormat=排气阀 {0}}" FontSize="28" Foreground="#959596"/>
+                                        <TextBlock Text="{Binding CapturePausedText}" FontSize="28" Foreground="{Binding CapturePausedBrush}"/>
+                                    </StackPanel>
                                 </Grid>
                             </Border>
                         </DataTemplate>
                     </ItemsControl.ItemTemplate>
                 </ItemsControl>
 
-                <TextBlock Text="本页只读,仅展示后台服务运行状态,不提供任何控制/重启/写入操作。" FontSize="30" Foreground="#959596" Margin="0 30 0 40" TextWrapping="Wrap"/>
+                <!-- 阶段2 §5.4 受护栏停止:二次确认 + 工程师口令 → control 安全停机(唯一写操作) -->
+                <Border Margin="0 30 0 10" Padding="30 20" Background="#FBE9E7" CornerRadius="10">
+                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+                        <Button Content="整体停止 control(受护栏)" Command="{Binding ShutdownControlCommand}"
+                                FontSize="40" FontWeight="Bold" Foreground="White" Background="#D0322D"
+                                BorderThickness="0" Padding="40 18" Cursor="Hand"/>
+                        <TextBlock Text="需二次确认 + 工程师口令;停止后机器不再被驱动,重启 operate 才会重新拉起。"
+                                   FontSize="28" Foreground="#959596" VerticalAlignment="Center" Margin="30 0 0 0" TextWrapping="Wrap" Width="700"/>
+                    </StackPanel>
+                </Border>
+                <TextBlock Text="本页监控经本地 HTTP 跨进程读取独立 control 的 /status;除受护栏停止外不提供其它控制操作。" FontSize="30" Foreground="#959596" Margin="0 10 0 40" TextWrapping="Wrap"/>
             </StackPanel>
         </ScrollViewer>
     </Grid>