Browse Source

11

shibei_master
jiangyy 3 years ago
parent
commit
900884aaf8
  1. 109
      src/assets/scss/modules/visual/fiveLayerMap.scss
  2. 213
      src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue

109
src/assets/scss/modules/visual/fiveLayerMap.scss

@ -49,7 +49,7 @@
} }
.div_data { .div_data {
flex: 0 0 622px; flex: 0 0 600px;
margin-left: 12px; margin-left: 12px;
.div_search { .div_search {
@ -115,7 +115,7 @@
background-size: 100% 100%; background-size: 100% 100%;
.div_coverage{ .div_coverage{
padding: 30px 20px 30px 20px; padding: 30px 10px 32px 10px;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
@ -143,92 +143,65 @@
.div_category { .div_category {
box-sizing: border-box; box-sizing: border-box;
width: 100%; height:238px;
padding:0 20px 20px;
.category_item {
.info_loading { margin-bottom: 15px;
margin-top: 50px;
}
.info_tip {
padding: 31px 0 0 19px;
display: flex; display: flex;
> img { justify-content: start;
height: 34px;
width: 46px;
}
.tip_title { // margin:auto;
line-height: 34px;
margin-left: 7px;
font-size: 22px;
font-family: PingFang SC;
font-weight: 800;
color: #ffffff;
}
}
.info_list {
margin-top: 9px;
.item {
.item_line {
margin-top: 13px;
margin-left: 24px;
width: 517px;
height: 0px;
border: 1px dotted #1797ff31;
border-width: 0.5px;
}
.last_line {
border: 1px dotted #1797ff00;
}
.list_item { .list_item {
display: flex;
padding: 18px 59px 0;
justify-content: space-between;
.list_item_col { // padding: 18px 59px 0;
flex: 0 0 240px; justify-content: start;
display: flex; flex:0 0 135px;
> img { > img {
height: 76px; height: 18px;
width: 76px; width: 18px;
} }
.item_content{ .item_content{
margin-left: 10px; width:100px;
height: 76px;
display: flex;
flex-direction: column;
justify-content: center;
.item_label { margin-left:8px;
font-size: 18px; font-size: 16px;
font-family: PingFang SC; font-family: PingFang SC;
font-weight: 400; font-weight: 400;
color: #ffffff; color: #D2E7FF;
}
.item_count {
margin-top: 10px;
font-size: 28px;
font-family: PingFang SC;
font-weight: bold;
color: #00fffc;
} }
.item_content_sel{
color: #99c7fb;
} }
} }
.list_item:hover{
cursor: pointer;
} }
::v-deep .el-popper { ::v-deep .el-popper {
padding: 0px; padding: 0px;
} }
// //
} }
}
.div_category {
/deep/ .el-scrollbar__wrap {
overflow-x: hidden !important;
} }
} }
} }
.div_info { .div_info {
@ -283,13 +256,9 @@
padding: 18px 59px 0; padding: 18px 59px 0;
justify-content: space-between; justify-content: space-between;
.list_item_col {
flex: 0 0 240px;
display: flex;
> img { > img {
height: 76px; height: 36px;
width: 76px; width: 36px;
} }
.item_content { .item_content {
@ -313,7 +282,7 @@
color: #00fffc; color: #00fffc;
} }
} }
}
} }
::v-deep .el-popper { ::v-deep .el-popper {
@ -324,11 +293,7 @@
} }
} }
.div_tips {
/deep/ .el-scrollbar__wrap {
overflow-x: hidden !important;
}
}
} }
} }

213
src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue

@ -35,33 +35,30 @@
<span>{{item.label}}</span> <span>{{item.label}}</span>
</div> </div>
</div> </div>
<div class="div_category">
<el-scrollbar style="height:98%"> <el-scrollbar style="height:98%">
<div class="div_category">
<div v-for="(item,index) in categoryListshow" <div v-for="(item,index) in categoryListshow"
:key="index" :key="index"
class="category_item"> class="category_item">
<div class="list_item">
<div v-for="(colItem,colIndex) in item" <div v-for="(colItem,colIndex) in item"
:key="colIndex" :key="colIndex"
class="list_item_col" class="list_item"
@click="handleTo(colItem)"> @click="handleClickCategory(index,colIndex)">
<img :src="colItem.dataIcon" <img :src="colItem.dataIcon"
alt /> alt />
<div class="item_content"> <span :class="['item_content',colItem.sel?'item_content_sel':'']">{{colItem.categoryName}}
<div class="item_label">{{colItem.categoryName}}</div>
</div> </span>
</div> </div>
</div>
<div :class="['item_line',{'last_line':index==(categoryListshow.length-1)}]"></div>
</div>
</div> </div>
</el-scrollbar> </el-scrollbar>
</div> </div>
</div>
<div class="div_info"> <div class="div_info">
<!-- <el-scrollbar style="height:98%"> <!-- <el-scrollbar style="height:98%">
<div class="info_tip"> <div class="info_tip">
@ -231,7 +228,6 @@ const vueGis = {
name: 'HomeMap', name: 'HomeMap',
data () { data () {
return { return {
centerPoint: [],// centerPoint: [],//
zoom: 14,//14 zoom: 14,//14
minZoom: 1,// minZoom: 1,//
@ -345,8 +341,20 @@ const vueGis = {
}, },
// //
handleClickCategory (index) { handleClickCategory (index, colIndex) {
this.categoryListshow[index][colIndex].sel = !this.coverageTypesList[index].sel
this.categoryList[index].sel = !this.coverageTypesList[index].sel
let item = this.coverageTypesList[index]
this.$set(this.coverageTypesList, index, item)
this.coverageTypes = []
this.coverageTypesList.forEach(element => {
if (element.select) {
this.coverageTypes.push(element.value)
}
});
}, },
async loadCategoryList () { async loadCategoryList () {
@ -360,26 +368,189 @@ const vueGis = {
const { data, code, msg } = await requestPost(url, params) const { data, code, msg } = await requestPost(url, params)
if (code === 0) { if (code === 0) {
this.categoryList = data // this.categoryList = data
this.categoryList = [
{
categoryKey: "0",
categoryName: "deserunt"
},
{
categoryKey: "1",
categoryName: "deserunt"
},
{
categoryKey: "2",
categoryName: "deserunt"
},
{
categoryKey: "3",
categoryName: "deserunt"
},
{
categoryKey: "4",
categoryName: "deserunt"
},
{
categoryKey: "0",
categoryName: "deserunt"
},
{
categoryKey: "1",
categoryName: "deserunt"
},
{
categoryKey: "2",
categoryName: "deserunt"
},
{
categoryKey: "3",
categoryName: "deserunt"
},
{
categoryKey: "4",
categoryName: "deserunt"
},
{
categoryKey: "0",
categoryName: "deserunt"
},
{
categoryKey: "1",
categoryName: "deserunt"
},
{
categoryKey: "2",
categoryName: "deserunt"
},
{
categoryKey: "3",
categoryName: "deserunt"
},
{
categoryKey: "4",
categoryName: "deserunt"
},
{
categoryKey: "0",
categoryName: "deserunt"
},
{
categoryKey: "1",
categoryName: "deserunt"
},
{
categoryKey: "2",
categoryName: "deserunt"
},
{
categoryKey: "3",
categoryName: "deserunt"
},
{
categoryKey: "4",
categoryName: "deserunt"
},
{
categoryKey: "0",
categoryName: "deserunt"
},
{
categoryKey: "1",
categoryName: "deserunt"
},
{
categoryKey: "2",
categoryName: "deserunt"
},
{
categoryKey: "3",
categoryName: "deserunt"
},
{
categoryKey: "4",
categoryName: "deserunt"
},
{
categoryKey: "0",
categoryName: "deserunt"
},
{
categoryKey: "1",
categoryName: "deserunt"
},
{
categoryKey: "2",
categoryName: "deserunt"
},
{
categoryKey: "3",
categoryName: "deserunt"
},
{
categoryKey: "4",
categoryName: "deserunt"
},
{
categoryKey: "0",
categoryName: "deserunt"
},
{
categoryKey: "1",
categoryName: "deserunt"
},
{
categoryKey: "2",
categoryName: "deserunt"
},
{
categoryKey: "3",
categoryName: "deserunt"
},
{
categoryKey: "4",
categoryName: "机关直属部门"
},
{
categoryKey: "0",
categoryName: "deserunt"
},
{
categoryKey: "1",
categoryName: "deserunt"
},
{
categoryKey: "2",
categoryName: "deserunt"
},
{
categoryKey: "3",
categoryName: "deserunt"
},
{
categoryKey: "4",
categoryName: "deserunt"
},
]
this.categoryListshow = [] this.categoryListshow = []
let itemArray = [] let itemArray = []
this.categoryList.forEach((item, index) => { this.categoryList.forEach((item, index) => {
if (!item.dataIcon) { if (!item.dataIcon) {
item.dataIcon = require('../../../../../assets/img/shuju/volunteer3.png') item.dataIcon = require('../../../../../assets/img/shuju/volunteer3.png')
} }
if (index % 4 === 0) {// item.sel = true
itemArray.push(item)
} else {
itemArray.push(item)
this.categoryListshow.push(itemArray)
itemArray = []
}
}); });
let chunk = 4
for (let i = 0, j = this.categoryList.length; i < j; i += chunk) {
this.categoryListshow.push(this.categoryList.slice(i, i + chunk))
}
console.log(this.categoryListshow)
} else { } else {
this.$message.error(msg) this.$message.error(msg)

Loading…
Cancel
Save