|  | @@ -50,6 +50,7 @@
 | 
	
		
			
				|  |  |            <div v-if="hasPermission('window:showAngleArea')" class="button-box" @click="setAngle(1)">设定风窗面积</div>
 | 
	
		
			
				|  |  |          </div>
 | 
	
		
			
				|  |  |          <div v-if="hasPermission('window:sameSet')" class="button-box" @click="setControl('sameSetValue', '风窗面积设置')">设定风窗面积</div>
 | 
	
		
			
				|  |  | +        <div v-if="hasPermission('window:COTest')" class="button-box" @click="setControl('COTest', 'CO调控预测')">CO调控预测</div>
 | 
	
		
			
				|  |  |        </div>
 | 
	
		
			
				|  |  |        <div class="top-right row">
 | 
	
		
			
				|  |  |          <div v-if="hasPermission('window:zhldkz')" class="button-box" @click="setControl('autoRun', '开启自主调控')">开启自主调控</div>
 | 
	
	
		
			
				|  | @@ -241,6 +242,7 @@
 | 
	
		
			
				|  |  |    import { useModal } from '/@/components/Modal';
 | 
	
		
			
				|  |  |    import { useCamera } from '/@/hooks/system/useCamera';
 | 
	
		
			
				|  |  |    import { usePermission } from '/@/hooks/web/usePermission';
 | 
	
		
			
				|  |  | +  import { useMessage } from '/@/hooks/web/useMessage';
 | 
	
		
			
				|  |  |    const { hasPermission } = usePermission();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    const globalConfig = inject('globalConfig');
 | 
	
	
		
			
				|  | @@ -248,6 +250,7 @@
 | 
	
		
			
				|  |  |    const { currentRoute } = useRouter();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    const MonitorDataTable = ref();
 | 
	
		
			
				|  |  | +  const { createConfirm } = useMessage();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    const playerRef = ref();
 | 
	
		
			
				|  |  |    const scroll = reactive({
 | 
	
	
		
			
				|  | @@ -557,6 +560,20 @@
 | 
	
		
			
				|  |  |        } else if (handlerState.startsWith('frontSetValue')) {
 | 
	
		
			
				|  |  |          data.paramcode = handlerState;
 | 
	
		
			
				|  |  |          data.value = value;
 | 
	
		
			
				|  |  | +      } else if (handlerState == 'COTest') {
 | 
	
		
			
				|  |  | +        if (value > 50) {
 | 
	
		
			
				|  |  | +          // message.warning(`一氧化碳超限,可能存在火灾隐患,是否开启${selectData.value.strinstallpos},使有毒烟气短路?`, 3000);
 | 
	
		
			
				|  |  | +          createConfirm({
 | 
	
		
			
				|  |  | +            iconType: 'warning',
 | 
	
		
			
				|  |  | +            title: '控制',
 | 
	
		
			
				|  |  | +            content: `一氧化碳超限,可能存在火灾隐患,是否开启${selectData.value.strinstallpos},使有毒烟气短路?`,
 | 
	
		
			
				|  |  | +            onOk: () => {
 | 
	
		
			
				|  |  | +              message.success('指令已下发成功!');
 | 
	
		
			
				|  |  | +            },
 | 
	
		
			
				|  |  | +            onCancel: () => handleCancel(),
 | 
	
		
			
				|  |  | +          });
 | 
	
		
			
				|  |  | +          return;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |        } else {
 | 
	
		
			
				|  |  |          data.paramcode = handlerState;
 | 
	
		
			
				|  |  |          if (handlerState == 'autoRun' || handlerState == 'autoStop') {
 |