update code
parent
7b78e1afea
commit
2c704a7d42
|
@ -170,8 +170,6 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created(){
|
created(){
|
||||||
debugger
|
|
||||||
window.xaap=this
|
|
||||||
let obj=localStorage.getItem("project_category");
|
let obj=localStorage.getItem("project_category");
|
||||||
let type=localStorage.getItem("proType");
|
let type=localStorage.getItem("proType");
|
||||||
if(obj &&obj.length>0){
|
if(obj &&obj.length>0){
|
||||||
|
|
|
@ -41,8 +41,7 @@
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
<module-one-2-1 class="center-image" label="集团项目区域分布">
|
<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" v-if="1==2"></iframe>
|
||||||
<iframe src="#/map" style="width:100%;height:100%;border:none"></iframe>
|
|
||||||
</module-one-2-1>
|
</module-one-2-1>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="12" style="position: relative;">
|
<el-col :span="12" style="position: relative;">
|
||||||
|
|
|
@ -119,7 +119,11 @@ export default {
|
||||||
if (!this.prjs || this.prjs.length == 0) {
|
if (!this.prjs || this.prjs.length == 0) {
|
||||||
setTimeout(func, 100);
|
setTimeout(func, 100);
|
||||||
} else {
|
} else {
|
||||||
|
if(this.prjs.length>1){
|
||||||
cb && cb(this.prjs[1].id);
|
cb && cb(this.prjs[1].id);
|
||||||
|
}else{
|
||||||
|
cb(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
cb && cb(prjId);
|
cb && cb(prjId);
|
||||||
|
|
|
@ -878,7 +878,11 @@ export default {
|
||||||
if (!this.prjs || this.prjs.length == 0) {
|
if (!this.prjs || this.prjs.length == 0) {
|
||||||
setTimeout(func, 100);
|
setTimeout(func, 100);
|
||||||
} else {
|
} else {
|
||||||
|
if(this.prjs.length>1){
|
||||||
cb && cb(this.prjs[1].id);
|
cb && cb(this.prjs[1].id);
|
||||||
|
}else{
|
||||||
|
cb(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
cb && cb(prjId);
|
cb && cb(prjId);
|
||||||
|
|
|
@ -205,7 +205,11 @@ export default {
|
||||||
if (!this.prjs||this.prjs.length == 0) {
|
if (!this.prjs||this.prjs.length == 0) {
|
||||||
setTimeout(func, 100);
|
setTimeout(func, 100);
|
||||||
} else {
|
} else {
|
||||||
|
if(this.prjs.length>1){
|
||||||
cb && cb(this.prjs[1].id);
|
cb && cb(this.prjs[1].id);
|
||||||
|
}else{
|
||||||
|
cb(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
cb && cb(prjId);
|
cb && cb(prjId);
|
||||||
|
|
|
@ -231,7 +231,11 @@ export default {
|
||||||
if (!this.prjs || this.prjs.length == 0) {
|
if (!this.prjs || this.prjs.length == 0) {
|
||||||
setTimeout(func, 100);
|
setTimeout(func, 100);
|
||||||
} else {
|
} else {
|
||||||
|
if(this.prjs.length>1){
|
||||||
cb && cb(this.prjs[1].id);
|
cb && cb(this.prjs[1].id);
|
||||||
|
}else{
|
||||||
|
cb(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
cb && cb(prjId);
|
cb && cb(prjId);
|
||||||
|
|
|
@ -599,7 +599,11 @@ export default {
|
||||||
if (this.projects.length == 0) {
|
if (this.projects.length == 0) {
|
||||||
setTimeout(func, 100);
|
setTimeout(func, 100);
|
||||||
} else {
|
} else {
|
||||||
|
if(this.projects.length>1){
|
||||||
cb && cb(this.projects[1].id);
|
cb && cb(this.projects[1].id);
|
||||||
|
}else{
|
||||||
|
cb(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
cb && cb(prjId);
|
cb && cb(prjId);
|
||||||
|
|
|
@ -628,7 +628,11 @@ export default {
|
||||||
if (!this.projects||this.projects.length == 0) {
|
if (!this.projects||this.projects.length == 0) {
|
||||||
setTimeout(func, 100);
|
setTimeout(func, 100);
|
||||||
} else {
|
} else {
|
||||||
|
if(this.projects.length>1){
|
||||||
cb && cb(this.projects[1].id);
|
cb && cb(this.projects[1].id);
|
||||||
|
}else{
|
||||||
|
cb(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
cb && cb(prjId);
|
cb && cb(prjId);
|
||||||
|
|
Loading…
Reference in New Issue