update code

prv
haha 2024-04-06 17:21:58 +08:00
parent 7b78e1afea
commit 2c704a7d42
8 changed files with 32 additions and 11 deletions

View File

@ -170,8 +170,6 @@ export default {
}
},
created(){
debugger
window.xaap=this
let obj=localStorage.getItem("project_category");
let type=localStorage.getItem("proType");
if(obj &&obj.length>0){

View File

@ -40,9 +40,8 @@
</module-one-1-1>
</el-col>
<el-col :span="12">
<module-one-2-1 class="center-image" label="集团项目区域分布">
<map-index v-if="1==2"></map-index>
<iframe src="#/map" style="width:100%;height:100%;border:none"></iframe>
<module-one-2-1 class="center-image" label="集团项目区域分布">
<iframe src="#/map" style="width:100%;height:100%;border:none" v-if="1==2"></iframe>
</module-one-2-1>
<el-row>
<el-col :span="12" style="position: relative;">

View File

@ -119,7 +119,11 @@ export default {
if (!this.prjs || this.prjs.length == 0) {
setTimeout(func, 100);
} else {
cb && cb(this.prjs[1].id);
if(this.prjs.length>1){
cb && cb(this.prjs[1].id);
}else{
cb(0);
}
}
} else {
cb && cb(prjId);

View File

@ -878,7 +878,11 @@ export default {
if (!this.prjs || this.prjs.length == 0) {
setTimeout(func, 100);
} else {
cb && cb(this.prjs[1].id);
if(this.prjs.length>1){
cb && cb(this.prjs[1].id);
}else{
cb(0);
}
}
} else {
cb && cb(prjId);

View File

@ -205,7 +205,11 @@ export default {
if (!this.prjs||this.prjs.length == 0) {
setTimeout(func, 100);
} else {
cb && cb(this.prjs[1].id);
if(this.prjs.length>1){
cb && cb(this.prjs[1].id);
}else{
cb(0);
}
}
} else {
cb && cb(prjId);

View File

@ -231,7 +231,11 @@ export default {
if (!this.prjs || this.prjs.length == 0) {
setTimeout(func, 100);
} else {
cb && cb(this.prjs[1].id);
if(this.prjs.length>1){
cb && cb(this.prjs[1].id);
}else{
cb(0);
}
}
} else {
cb && cb(prjId);

View File

@ -599,7 +599,11 @@ export default {
if (this.projects.length == 0) {
setTimeout(func, 100);
} else {
cb && cb(this.projects[1].id);
if(this.projects.length>1){
cb && cb(this.projects[1].id);
}else{
cb(0);
}
}
} else {
cb && cb(prjId);

View File

@ -628,7 +628,11 @@ export default {
if (!this.projects||this.projects.length == 0) {
setTimeout(func, 100);
} else {
cb && cb(this.projects[1].id);
if(this.projects.length>1){
cb && cb(this.projects[1].id);
}else{
cb(0);
}
}
} else {
cb && cb(prjId);