|
@@ -1391,7 +1391,7 @@ const getmoun=()=>{
|
|
classradio.value=sgdata.value.stype;
|
|
classradio.value=sgdata.value.stype;
|
|
classclick(classradio.value);
|
|
classclick(classradio.value);
|
|
idobj.value.name=sgdata.value.name;
|
|
idobj.value.name=sgdata.value.name;
|
|
- console.log( idobj.value.name);
|
|
|
|
|
|
+ console.log( idobj.value.name);
|
|
accident();
|
|
accident();
|
|
if( sgdata.value.stype=="Water"){
|
|
if( sgdata.value.stype=="Water"){
|
|
emitter.emit('handleSelect4', '1');
|
|
emitter.emit('handleSelect4', '1');
|
|
@@ -1412,6 +1412,31 @@ const getmoun=()=>{
|
|
}
|
|
}
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
//const paramValue =window.location.href;//.paramNamehttp://localhost:5173/#/
|
|
//const paramValue =window.location.href;//.paramNamehttp://localhost:5173/#/
|
|
|
|
+ // if( window.location.href.indexOf("aid")>0){
|
|
|
|
+ // const paramValue =window.location.href;
|
|
|
|
+ // // const paramValue ='http://localhost:5173/#/aid=7';
|
|
|
|
+ // const parts = paramValue.split('=');
|
|
|
|
+ // console.log(parts);
|
|
|
|
+ // aid.value=parts[1].replace("#/","");
|
|
|
|
+ // if( aid.value==null||aid.value==''){
|
|
|
|
+
|
|
|
|
+ // }else{
|
|
|
|
+ // getmoun();
|
|
|
|
+
|
|
|
|
+ // // emitter.on('accident',(data)=>{
|
|
|
|
+ // // getmoun();
|
|
|
|
+
|
|
|
|
+ // // });
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
+ emitter.on('AccessProjectByAid', acessAidInit);
|
|
|
|
+});
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+// 初始化aid直接进入项目的情况
|
|
|
|
+const acessAidInit = () => {
|
|
|
|
+ //const paramValue =window.location.href;//.paramNamehttp://localhost:5173/#/
|
|
if( window.location.href.indexOf("aid")>0){
|
|
if( window.location.href.indexOf("aid")>0){
|
|
const paramValue =window.location.href;
|
|
const paramValue =window.location.href;
|
|
// const paramValue ='http://localhost:5173/#/aid=7';
|
|
// const paramValue ='http://localhost:5173/#/aid=7';
|
|
@@ -1429,14 +1454,19 @@ onMounted(() => {
|
|
// });
|
|
// });
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-});
|
|
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
const change2=(val)=>{
|
|
const change2=(val)=>{
|
|
formull.value.name.forceUpdate();
|
|
formull.value.name.forceUpdate();
|
|
}
|
|
}
|
|
onUnmounted(() =>{
|
|
onUnmounted(() =>{
|
|
|
|
|
|
-emitter.off('accident');
|
|
|
|
-emitter.off('handleSelect')
|
|
|
|
|
|
+ emitter.off('AccessProjectByAid', acessAidInit);
|
|
|
|
+ emitter.off('accident');
|
|
|
|
+ emitter.off('handleSelect')
|
|
})
|
|
})
|
|
defineExpose({ monitor, accident2, leftcoll, classradio, aid, dialogVisible ,changeModel,classclick,state,dialog});
|
|
defineExpose({ monitor, accident2, leftcoll, classradio, aid, dialogVisible ,changeModel,classclick,state,dialog});
|
|
</script>
|
|
</script>
|