Browse Source

基础信息

shibei_master
jiangyy 4 years ago
parent
commit
8531e41ee6
  1. BIN
      src/assets/img/modules/visual/sousuo.png
  2. BIN
      src/assets/img/shuju/category_default.png
  3. BIN
      src/assets/img/shuju/info_icon.png
  4. 96
      src/assets/scss/modules/visual/basicInfoMain.scss
  5. 106
      src/views/modules/visual/basicinfo/basicInfoMain.vue

BIN
src/assets/img/modules/visual/sousuo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 679 B

BIN
src/assets/img/shuju/category_default.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
src/assets/img/shuju/info_icon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

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

@ -0,0 +1,96 @@
.div_top {
height: 35px;
.router_line {
width: 212px;
height: 1px;
border: 1px solid #ffffff;
opacity: 0.09;
/* opacity: 0.09; */
}
.div_router {
margin-top: 5px;
font-size: 16px;
.router_parents {
color: #a0c3d9;
.arrow {
padding: 0 5px;
}
}
.router_child {
color: #ffffff;
}
}
}
.div_content {
display: flex;
.div_map {
width: 100%;
}
.div_data {
flex: 0 0 562px;
margin-left: 12px;
.div_search {
width: 100%;
height: 56px;
background: #011168;
border-radius: 4px;
text-align: center;
display: flex;
justify-content: flex-end;
.icon {
display: flex;
align-items: center;
margin-left: 29px;
margin-top: 16px;
> img {
width: 24px;
height: 24px;
}
}
.btn {
text-align: center;
flex: 0 0 113px;
height: 56px;
background: linear-gradient(90deg, #1a5afd, #26c4ff);
font-size: 20px;
font-family: PingFang SC;
font-weight: 400;
color: #ffffff;
line-height: 56px;
border-radius: 0 4px 4px 0;
}
}
.div_infolist {
box-sizing: border-box;
width: 100%;
margin-top: 21px;
height: calc(88vh - 77px);
color: #fff;
background: url('../../../img/modules/visual/warning-box.png') no-repeat
center;
background-size: 100% 100%;
// padding: 45px 21px 35px 24px;
}
}
}
.warning-box {
box-sizing: border-box;
width: 1881px;
height: 914px;
margin: auto;
color: #fff;
background: url('../../../img/modules/visual/warning-box.png') no-repeat
center;
background-size: 100% 100%;
padding: 45px 21px 35px 24px;
}

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

@ -1,9 +1,8 @@
<template> <template>
<div calss="div_main" <div style="position: relative">
style="position: relative">
<!-- 组织路由 --> <!-- 组织路由 -->
<div> <div class="div_top">
<div class="router_line"></div> <div class="router_line"></div>
<div class="div_router"> <div class="div_router">
<span class="router_parents" <span class="router_parents"
@ -22,16 +21,22 @@
<div class="div_data"> <div class="div_data">
<div class="div_search"> <div class="div_search">
<el-input style="width:200px" <el-input size="mini"
v-model="name" WarningColor='warning'
placeholder="请输入姓名"></el-input> placeholder="请输入姓名"
v-model="name">
<el-button style="margin-left:10px" <i slot="prefix"
type="primary" class="icon">
icon="el-icon-plus" <img src="../../../../assets/img/modules/visual/sousuo.png"
@click="handleSearch">搜索</el-button> alt />
</i>
</el-input>
<div class="btn"
@click="handleSearch">搜索</div>
</div> </div>
<div class="div_infolist"></div>
</div> </div>
</div> </div>
@ -146,7 +151,6 @@ const vueGis = {
}, },
// //
async refreshMap (isRefreshView) { async refreshMap (isRefreshView) {
// //
@ -163,10 +167,8 @@ const vueGis = {
} }
}, },
// //
handleBack () { handleBack () {
this.runNum-- this.runNum--
this.runAgency.pop() this.runAgency.pop()
if (this.runNum === 0) { if (this.runNum === 0) {
@ -184,7 +186,6 @@ const vueGis = {
// //
async loadOrgData () { async loadOrgData () {
const url = "/gov/org/agency/maporg" const url = "/gov/org/agency/maporg"
// const url = "http://yapi.elinkservice.cn/mock/245/gov/org/agency/maporg"
let params = { let params = {
orgId: this.orgId, orgId: this.orgId,
level: this.orgLevel level: this.orgLevel
@ -194,11 +195,9 @@ const vueGis = {
if (code === 0) { if (code === 0) {
this.orgData = data this.orgData = data
this.runAgency.push(data)
if (data.children && data.children.length > 0) { if (data.children && data.children.length > 0) {
this.subAgencyArray = data.children this.subAgencyArray = data.children
} }
} else { } else {
@ -270,7 +269,6 @@ const vueGis = {
toSubAgency (e) { toSubAgency (e) {
console.log(e) console.log(e)
//
this.subAgencyArray.forEach(item => { this.subAgencyArray.forEach(item => {
if (item.id === e.selected[0].id_) { if (item.id === e.selected[0].id_) {
this.selPolygonId = item.id this.selPolygonId = item.id
@ -286,7 +284,6 @@ const vueGis = {
this.refreshMap(true) this.refreshMap(true)
}, },
// //
@ -466,60 +463,27 @@ const vueGis = {
export default vueGis; export default vueGis;
</script> </script>
<style lang="scss"> <style
.div_main { lang="scss"
background-color: #12a3ff; src="@/assets/scss/modules/visual/basicInfoMain.scss"
} scoped
.router_line { ></style>
width: 106px;
height: 1px;
border: 1px solid #000000;
/* opacity: 0.09; */
}
.div_router {
margin-top: 5px;
.router_parents {
color: #a0c3d9;
font-size: 8px;
.arrow {
padding: 0 5px;
}
}
.router_child {
color: #ffffff;
font-size: 8px;
}
}
.div_search {
text-align: center;
margin-top: 20px;
width: 100%;
display: flex;
justify-content: center;
}
.div_content { <style lang=scss>
margin-top: 10px;
padding: 10px 10px;
display: flex;
}
.div_map {
width: 100%;
}
.div_data {
flex: 0 0 400px;
margin-left: 20px;
background-color: rgb(233, 235, 235);
border-radius: 5px;
}
</style>
<style>
.ol-overlaycontainer-stopevent { .ol-overlaycontainer-stopevent {
display: none; display: none;
} }
.el-input__inner[WarningColor="warning"] {
background-color: #011168;
border-radius: 4px 0 0 4px;
height: 56px;
border: none;
box-shadow: 0 0 10px inset #1a5afd;
padding-left: 70px;
font-size: 18px;
font-family: PingFang SC;
font-weight: 400;
color: #ffffff;
opacity: 0.7;
}
</style> </style>
Loading…
Cancel
Save