Browse Source

地图高度调整,noData

master
mk 2 years ago
parent
commit
92c4b98314
  1. 39
      src/views/screenCenter/screenCenter.vue
  2. 3
      src/views/screenLeft/left1.vue
  3. 2
      src/views/screenRight/right1.vue
  4. 12
      src/views/screenRight/right3.vue
  5. 2
      vue.config.js

39
src/views/screenCenter/screenCenter.vue

@ -349,7 +349,15 @@ export default {
},
watch: {
shibeiAId(value) {
}
},
srcGridData(val, oldValue) {
if (oldValue == null) {
this.iniMap();
} else {
this.updateGrid();
}
this.zoomInABit();
},
},
methods: {
handleClickTabs(val){
@ -732,7 +740,7 @@ export default {
logoVisible: false,
map: myMap,
});
scene.on("loaded", async () => {
scene.on("loaded", () => {
this.iniMapGrid(shibeiJson);
});
},
@ -742,24 +750,6 @@ export default {
if (this.mapStyleType == "light") {
styleConfig = lightStyle;
}
// lineLayerBig = new LineLayer({
// zIndex: 6,
// name: "line2",
// })
// .source(shibeiJson1)
// .shape("wall")
// .size(50)
// .color('rgb(163, 255, 245)')
// .style({
// opacity: 1,
// raisingHeight: 600,
// sourceColor: 'rgb(0, 153, 188,0.5)',
// targetColor: 'rgb(0, 153, 188)',
// linearDir: 'algin',
// })
// scene.addLayer(lineLayerBig);
//
polygonLayer = new PolygonLayer({
autoFit: true,
@ -776,7 +766,7 @@ export default {
},
opacity: 0.8,
heightfixed: true,
raisingHeight: 300,
// raisingHeight: 300,
sourceColor: '#4ee8fc',
targetColor: '#00284e',
});
@ -794,7 +784,7 @@ export default {
.color("name", styleConfig.lineColor)
.style({
opacity: 1,
raisingHeight: 600,
raisingHeight: 300,
})
.animate({
interval: 1, //
@ -932,7 +922,10 @@ export default {
delete f.subId
delete f.subName
})
this.iniMapGrid(obj)
this.iniMapGrid(obj)
if(this.level == 'community'){
}
}).catch(f => {
console.log(f);
})

3
src/views/screenLeft/left1.vue

@ -83,8 +83,7 @@
</screen-custom-table>
</div>
<el-dialog :visible.sync="ifShowDlzz" width="90%" :modal="false">
<el-dialog :visible.sync="ifShowDlzz" width="70%" :modal="false">
<screen-org-tree :list="treeList" @onClickNode="onClickNode"></screen-org-tree>
<!-- <div style="color: #fff;display: flex; align-items: center;
justify-content: center;flex-direction: column;">

2
src/views/screenRight/right1.vue

@ -25,7 +25,7 @@
<screen-title :titleName="'党员风采'"></screen-title>
<div class="b-dyfc-scroll"
v-on:mouseover="onHover($event)"
v-on:mouseout="onHover" v-if="dyfcList">
v-on:mouseout="onHover" v-if="dyfcList.length > 0">
<div style="overflow: hidden">
<screen-popup bottom="80px"
left="4200px"

12
src/views/screenRight/right3.vue

@ -63,7 +63,7 @@
</div>
<div b-dxal>
<screen-title :titleName="'典型案例'" style="width:310px" :type="'short'"></screen-title>
<div @mouseenter="tableMouseEnter" @mouseleave="tableMouseLeave" class="ytal-list">
<div @mouseenter="tableMouseEnter" @mouseleave="tableMouseLeave" class="ytal-list" v-if="ytalList.length >0">
<div class="ytal-list-tran" :style="{ top: top, transition: transition }">
<div class="ytal-item" v-for="(item, index) in ytalList" :key="index" @click="handleClickEvent(item)">
<div class="ytal-item-detail">{{ item.itemContent }}</div>
@ -71,6 +71,9 @@
</div>
</div>
</div>
<div v-else class="no-data">
暂无数据~
</div>
</div>
</div>
<div class='b-hztj'>
@ -627,4 +630,11 @@ export default {
height: 327px;
display: flex;
}
.no-data{
width: 297px;
height: 269px;
line-height: 269px;
text-align: center;
color: #fff;
}
</style>

2
vue.config.js

@ -33,7 +33,7 @@ module.exports = defineConfig({
publicPath: diffPublicPath(), //部署应用包时的基本URL, 用法和webpack本身的output.publicPath一致.
// 打包根路径
// outputDir: diffOutputDir(), // npm run build 打包构建后存放的目录
outputDir: 'ring-screen', // npm run build 打包构建后存放的目录
// 静态资源文件夹名
assetsDir: 'static',

Loading…
Cancel
Save