Browse Source

分类滚动条

shibei_master
jiangyy 4 years ago
parent
commit
3975148520
  1. 12
      src/assets/scss/modules/visual/basicInfoMain.scss
  2. 8
      src/views/modules/base/category/addCategory.vue
  3. 18
      src/views/modules/base/category/main.vue
  4. 11
      src/views/modules/visual/basicinfo/basicInfoMain.vue

12
src/assets/scss/modules/visual/basicInfoMain.scss

@ -37,7 +37,7 @@
width: 100%; width: 100%;
// padding: 10px 5px 13px; // padding: 10px 5px 13px;
// margin-top: 8px; // margin-top: 8px;
height: calc(88vh - 5px); height: calc(88vh - 15px);
color: #fff; color: #fff;
// background: url('../../../img/modules/visual/warning-box.png') no-repeat // background: url('../../../img/modules/visual/warning-box.png') no-repeat
// center; // center;
@ -105,7 +105,7 @@
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
margin-top: 21px; margin-top: 21px;
height: calc(88vh - 77px); height: calc(88vh - 87px);
color: #fff; color: #fff;
background: url('../../../img/modules/visual/warning-box.png') no-repeat background: url('../../../img/modules/visual/warning-box.png') no-repeat
center; center;
@ -193,7 +193,7 @@
flex: 0 0 calc(100vw - 620px); flex: 0 0 calc(100vw - 620px);
// width: calc(100vw - 560px); // width: calc(100vw - 560px);
height: calc(88vh); height: calc(88vh - 10px);
color: #fff; color: #fff;
background: url('../../../img/modules/visual/warning-box.png') no-repeat background: url('../../../img/modules/visual/warning-box.png') no-repeat
center; center;
@ -246,9 +246,9 @@
justify-content: flex-start; justify-content: flex-start;
margin: 0 21px 0 21px; margin: 0 21px 0 21px;
// .item:hover { .item:hover {
// cursor: pointer; cursor: pointer;
// } }
.item_sel { .item_sel {
box-shadow: 0 0 10px inset #1a5afd; box-shadow: 0 0 10px inset #1a5afd;
} }

8
src/views/modules/base/category/addCategory.vue

@ -196,8 +196,10 @@ export default {
scoped scoped
></style> ></style>
<style lang=scss > <style lang="scss" scoped>
.el-scrollbar__wrap { .div_list {
overflow-x: hidden !important; /deep/ .el-scrollbar__wrap {
overflow-x: hidden !important;
}
} }
</style> </style>

18
src/views/modules/base/category/main.vue

@ -6,7 +6,8 @@
类别信息 类别信息
</div> </div>
<div class="div_list"> <div class="div_list">
<el-scrollbar style="height:100%"> <el-scrollbar class="scrollbar"
style="height:100%">
<div class="div_room"> <div class="div_room">
<div v-for="(item,index) in categoryList" <div v-for="(item,index) in categoryList"
@ -71,20 +72,21 @@ export default {
} }
}, },
async mounted () { async mounted () {
this.startLoading()
await this.getCategoryList() await this.getCategoryList()
this.endLoading()
}, },
methods: { methods: {
// //
async getCategoryList () { async getCategoryList () {
this.startLoading()
const url = "/oper/customize/icindividualcategorymanage/individualcategorylist" const url = "/oper/customize/icindividualcategorymanage/individualcategorylist"
let params = {} let params = {}
const { data, code, msg } = await requestPost(url, params) const { data, code, msg } = await requestPost(url, params)
this.endLoading()
if (code === 0) { if (code === 0) {
this.categoryList = data this.categoryList = data
let obj = { let obj = {
@ -173,8 +175,10 @@ export default {
scoped scoped
></style> ></style>
<style lang=scss > <style lang="scss" scoped>
.el-scrollbar__wrap { .div_list {
overflow-x: hidden !important; /deep/ .el-scrollbar__wrap {
overflow-x: hidden !important;
}
} }
</style> </style>

11
src/views/modules/visual/basicinfo/basicInfoMain.vue

@ -324,9 +324,7 @@ const vueGis = {
// type:polygon / search people // type:polygon / search people
async toSubAgency (type, e, searchName) { async toSubAgency (type, e, searchName) {
if (!e) {
return false
}
//neighborHood //neighborHood
if (type === 'people') { if (type === 'people') {
@ -342,8 +340,6 @@ const vueGis = {
} }
this.searchName = searchName this.searchName = searchName
} else if (type === 'search') { } else if (type === 'search') {
this.runNum++ this.runNum++
this.runAgencyArray.push(this.orgData) this.runAgencyArray.push(this.orgData)
@ -359,6 +355,9 @@ const vueGis = {
}); });
} else { } else {
if (!e) {
return false
}
if (!e.selected[0]) { if (!e.selected[0]) {
return false return false
} }
@ -929,7 +928,7 @@ export default vueGis;
} }
.el-scrollbar__wrap { .el-scrollbar__wrap {
overflow-x: hidden !important; // overflow-x: hidden !important;
} }
.info_loading { .info_loading {

Loading…
Cancel
Save