update code

dev-login
haha 2023-09-17 17:01:50 +08:00
parent 4661b3c733
commit 88a552487f
2 changed files with 23 additions and 4 deletions

View File

@ -3,8 +3,18 @@
<div v-if="showMap" style="height: 100%;" v-loading="loading"> <div v-if="showMap" style="height: 100%;" v-loading="loading">
<div id="cesiumContainer" style="height: 100%;"></div> <div id="cesiumContainer" style="height: 100%;"></div>
</div> </div>
<template v-else>
<img v-else :src="'images/830.png'"> <template v-if="images && images.length>0">
<el-carousel height="500px">
<el-carousel-item v-for="item in images" :key="item">
<div style="width: 100%;display: flex;align-items: center;justify-content: center;height: 500px;">
<el-image :src="item" style="width:100%" :preview-src-list="images"></el-image>
</div>
</el-carousel-item>
</el-carousel>
</template>
<img v-else :src="'images/830.png'">
</template>
</div> </div>
</template> </template>
@ -12,7 +22,12 @@
export default { export default {
name: 'JhbigscreenMapModle', name: 'JhbigscreenMapModle',
props:{
images:{
type:Array,
default:()=>[]
}
},
data() { data() {
return { return {
loading:false, loading:false,

View File

@ -458,7 +458,7 @@
</div> </div>
<div class="aerial-view-max"> <div class="aerial-view-max">
<div class="aerial-view-min"> <div class="aerial-view-min">
<mapModle></mapModle> <mapModle :images="scheduleInfo?scheduleInfo.images:[]" ></mapModle>
</div> </div>
</div> </div>
<module-one-1-2 label="项目节点计划预警"> <module-one-1-2 label="项目节点计划预警">
@ -633,6 +633,7 @@ export default {
}, },
data() { data() {
return { return {
elScheduleInfo:0,
elCostOut: 0, elCostOut: 0,
prjs: [], prjs: [],
dept: null, dept: null,
@ -881,6 +882,7 @@ export default {
obj.images = []; obj.images = [];
} }
this.scheduleInfo = obj; this.scheduleInfo = obj;
this.elScheduleInfo++;
}); });
this.projectBuildNode = []; this.projectBuildNode = [];
this.getProjectBuildNode(); this.getProjectBuildNode();
@ -896,6 +898,8 @@ export default {
year: dt.$y, year: dt.$y,
month: dt.$M month: dt.$M
}).then(d => { }).then(d => {
d.totalMonth=d.totalMonth.toFixed(2);
d.totalYear=d.totalYear.toFixed(2);
this.costOut = d; this.costOut = d;
this.elCostOut++; this.elCostOut++;
}) })