|  | @@ -60,7 +60,7 @@
 | 
	
		
			
				|  |  |                      </el-table-column>
 | 
	
		
			
				|  |  |                      <el-table-column type="index" label="序号" width="70" />
 | 
	
		
			
				|  |  |                      <el-table-column prop="name" label="名称" />
 | 
	
		
			
				|  |  | -                    <el-table-column prop="name" label="来源" />
 | 
	
		
			
				|  |  | +                    <!-- <el-table-column prop="name" label="来源" /> -->
 | 
	
		
			
				|  |  |                      <el-table-column prop="time" label="时间" width="150" />
 | 
	
		
			
				|  |  |                  </el-table>
 | 
	
		
			
				|  |  |                  <div class="demo-pagination-block pagination">
 | 
	
	
		
			
				|  | @@ -451,6 +451,8 @@ import closeimg from "@/assets/img/colse.png";
 | 
	
		
			
				|  |  |  import { timestampToTime } from '@/js/lindex.js'
 | 
	
		
			
				|  |  |  import { vtkmodel } from "@/control/vtkModel.js";
 | 
	
		
			
				|  |  |  import emitter from "@/utils/emitter";
 | 
	
		
			
				|  |  | +import { useRoute } from 'vue-router';
 | 
	
		
			
				|  |  | +const route = useRoute();
 | 
	
		
			
				|  |  |  const changeModel= ()=>  {
 | 
	
		
			
				|  |  |    vtkmodel.clearJgAddMode();
 | 
	
		
			
				|  |  |    vtkmodel.renderWindow.render();
 | 
	
	
		
			
				|  | @@ -459,7 +461,7 @@ let txt=ref('更多设置');
 | 
	
		
			
				|  |  |  let iskeynum=ref(false);
 | 
	
		
			
				|  |  |  let currentrow=ref(false);
 | 
	
		
			
				|  |  |  let placeholder=ref('某次某事件火灾事故');
 | 
	
		
			
				|  |  | -let emit = defineEmits(['headerclick', 'childfun', 'imgonclock','moxingclick','handleSelect','leftsimulation','resulysucss','websockfrist','funcfirst'])
 | 
	
		
			
				|  |  | +let emit = defineEmits(['headerclick', 'childfun', 'imgonclock','moxingclick','handleSelect','leftsimulation','resulysucss','websockfrist','funcfirst','showfun'])
 | 
	
		
			
				|  |  |  const props = defineProps({
 | 
	
		
			
				|  |  |      addselect: {
 | 
	
		
			
				|  |  |          type: Function,
 | 
	
	
		
			
				|  | @@ -737,20 +739,22 @@ const accident = () => {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          }else{
 | 
	
		
			
				|  |  |          // setTimeout(function(){
 | 
	
		
			
				|  |  | -        
 | 
	
		
			
				|  |  | +          
 | 
	
		
			
				|  |  |           initWebSocket();
 | 
	
		
			
				|  |  |          rizhi.value.logs='';
 | 
	
		
			
				|  |  |          rizhi.value.flogs= rizhi.value.logs;
 | 
	
		
			
				|  |  |          rizhi.value.wlogs= rizhi.value.logs;
 | 
	
		
			
				|  |  |          newlog.value =''; 
 | 
	
		
			
				|  |  | -      
 | 
	
		
			
				|  |  | +           // console.log(sgdata.value);
 | 
	
		
			
				|  |  |          emit('headerclick', sgdata.value);
 | 
	
		
			
				|  |  |          emit('childfun');
 | 
	
		
			
				|  |  | +       
 | 
	
		
			
				|  |  |          emit('moxingclick', true);
 | 
	
		
			
				|  |  |          pollute();
 | 
	
		
			
				|  |  |          //  emit('handleSelect', '1');
 | 
	
		
			
				|  |  |          fetchFileContent();
 | 
	
		
			
				|  |  | -        accident2(props.activeIndex)
 | 
	
		
			
				|  |  | +        console.log(props.activeIndex);
 | 
	
		
			
				|  |  | +       // accident2(props.activeIndex)
 | 
	
		
			
				|  |  |          rewu();
 | 
	
		
			
				|  |  |          // if(state.value=="1"){
 | 
	
		
			
				|  |  |          //      emit('websockfrist');
 | 
	
	
		
			
				|  | @@ -817,6 +821,7 @@ const sgadd = () => {
 | 
	
		
			
				|  |  |  // 事故列表的选择
 | 
	
		
			
				|  |  |  const getRadioRow = (val) => {
 | 
	
		
			
				|  |  |      // currentrow.value=true;
 | 
	
		
			
				|  |  | +    console.log(val);
 | 
	
		
			
				|  |  |      sgdata.value = (val);
 | 
	
		
			
				|  |  |      formull.value.name = val.name;
 | 
	
		
			
				|  |  |      aid.value = val.aid;
 | 
	
	
		
			
				|  | @@ -1218,14 +1223,76 @@ onBeforeUnmount(() => {
 | 
	
		
			
				|  |  |      rizhi.logs='';
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  });
 | 
	
		
			
				|  |  | +//查询
 | 
	
		
			
				|  |  | +const getmoun=()=>{
 | 
	
		
			
				|  |  | +       emit('showfun');
 | 
	
		
			
				|  |  | +    const params = {
 | 
	
		
			
				|  |  | +        transCode: 'D00003',
 | 
	
		
			
				|  |  | +        count: pageSize4.value,
 | 
	
		
			
				|  |  | +        page: currentPage4.value,
 | 
	
		
			
				|  |  | +        aid: aid.value,
 | 
	
		
			
				|  |  | +        stype: '',
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +    request(params)
 | 
	
		
			
				|  |  | +        .then((res) => {
 | 
	
		
			
				|  |  | +        
 | 
	
		
			
				|  |  | +            sgdata.value=res.rows[0];
 | 
	
		
			
				|  |  | +            console.log( sgdata.value);
 | 
	
		
			
				|  |  | +        aid.value=sgdata.value.aid;
 | 
	
		
			
				|  |  | +         classradio.value=sgdata.value.stype;
 | 
	
		
			
				|  |  | +        classclick(classradio.value);
 | 
	
		
			
				|  |  | +        idobj.value.name=sgdata.value.name;
 | 
	
		
			
				|  |  | +           console.log( idobj.value.name); 
 | 
	
		
			
				|  |  | +           accident();
 | 
	
		
			
				|  |  | +            if( sgdata.value.stype=="Water"){
 | 
	
		
			
				|  |  | +                emitter.emit('handleSelect4', '1');
 | 
	
		
			
				|  |  | +            }else if( sgdata.value.stype=="Fire"){
 | 
	
		
			
				|  |  | +                emitter.emit('handleSelect4', '2');
 | 
	
		
			
				|  |  | +            }else if( sgdata.value.stype=="Gass"){
 | 
	
		
			
				|  |  | +                emitter.emit('handleSelect4', '3');
 | 
	
		
			
				|  |  | +            }else if( sgdata.value.stype=="4"){
 | 
	
		
			
				|  |  | +                emitter.emit('handleSelect4', '4');
 | 
	
		
			
				|  |  | +            }else if( sgdata.value.stype=="Gass1"){
 | 
	
		
			
				|  |  | +                emitter.emit('handleSelect4', '5');
 | 
	
		
			
				|  |  | +            }else{
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            
 | 
	
		
			
				|  |  | +           
 | 
	
		
			
				|  |  | +        })
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  |  onMounted(() => {
 | 
	
		
			
				|  |  | +    //const paramValue =window.location.href;//.paramNamehttp://localhost:5173/#/
 | 
	
		
			
				|  |  | +    const paramValue ='http://localhost:5173/#/aid=7';
 | 
	
		
			
				|  |  | +    const parts = paramValue.split('=');
 | 
	
		
			
				|  |  | +    console.log(parts);
 | 
	
		
			
				|  |  | +    aid.value=parts[1];
 | 
	
		
			
				|  |  | +    if( aid.value==null||aid.value==''){
 | 
	
		
			
				|  |  | +        
 | 
	
		
			
				|  |  | +    }else{
 | 
	
		
			
				|  |  | +        getmoun();
 | 
	
		
			
				|  |  | +                  
 | 
	
		
			
				|  |  | +    // emitter.on('accident',(data)=>{
 | 
	
		
			
				|  |  | +    //     getmoun();
 | 
	
		
			
				|  |  | +   
 | 
	
		
			
				|  |  | +    // });
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +  
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -   // dialogVisible.value=true;
 | 
	
		
			
				|  |  |  });
 | 
	
		
			
				|  |  |  const change2=(val)=>{
 | 
	
		
			
				|  |  |      formull.value.name.forceUpdate();
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  | +onUnmounted(() =>{
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +emitter.off('accident')
 | 
	
		
			
				|  |  | +})
 | 
	
		
			
				|  |  |  defineExpose({ monitor, accident2, leftcoll, classradio, aid, dialogVisible ,changeModel,classclick,state,dialog});
 | 
	
		
			
				|  |  |  </script>
 | 
	
		
			
				|  |  |  <style scoped>
 |