Bläddra i källkod

修改大屏展示样式错乱问题

Version1.0
YF-yuan 3 år sedan
förälder
incheckning
ee55134fd5
7 ändrade filer med 129 tillägg och 132 borttagningar
  1. Binär
      src/assets/img/gisdemo/top.png
  2. +6
    -1
      src/styles/global.scss
  3. +95
    -103
      src/views/Home.vue
  4. +2
    -2
      src/views/leftCompoents/landUse.vue
  5. +11
    -11
      src/views/leftCompoents/outletComponents.vue
  6. +6
    -6
      src/views/leftCompoents/placeComponent.vue
  7. +9
    -9
      src/views/leftCompoents/popupComponents.vue

Binär
src/assets/img/gisdemo/top.png Visa fil

Before After
Width: 1920  |  Height: 70  |  Size: 14KB Width: 1920  |  Height: 70  |  Size: 14KB

+ 6
- 1
src/styles/global.scss Visa fil

margin:0; margin:0;
box-sizing: border-box; box-sizing: border-box;
} }
html,body{
html {
height: 100%;
font-size: 100px;
}
body{
height:100%; height:100%;
font-size: 16px;
} }
ul,li { ul,li {
list-style: none; list-style: none;

+ 95
- 103
src/views/Home.vue Visa fil

.nav { .nav {
z-index: 99; z-index: 99;
width: 100%; width: 100%;
height: 88px;
height: 0.6rem;
background-image: url('../assets/img/gisdemo/top.png'); background-image: url('../assets/img/gisdemo/top.png');
background-size: cover; background-size: cover;
position: absolute; position: absolute;
/* 标志信息 */ /* 标志信息 */
.mark { .mark {
/* width: 120px; */ /* width: 120px; */
height: 30px;
margin-left: 10px;
height: 0.3rem;
margin-left: 0.1rem;
list-style: none; list-style: none;
font-size: 14px;
font-size: 0.14rem;
color: #fff; color: #fff;
background-color: rgba(51, 51, 51, 0.576); background-color: rgba(51, 51, 51, 0.576);
display: flex; display: flex;
} }
.markItem { .markItem {
width: 100%; width: 100%;
margin: 0 10px;
margin: 0 0.1rem;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.markImg { .markImg {
width: 20px;
height: 20px;
margin-left: 10px;
width: 0.18rem;
height: 0.18rem;
margin-left: 0.1rem;
} }
/* */ /* */
.markBox { .markBox {
position: absolute; position: absolute;
bottom: 10px;
left: 10px;
bottom: 0.1rem;
left: 0.1rem;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: flex-end; align-items: flex-end;
} }
/* 色带 */ /* 色带 */
.colorMark { .colorMark {
/* height: 50px; */
padding: 10px;
padding: 0.1rem;
color: #333; color: #333;
font-size: 12px;
font-size: 0.12rem;
background-color: rgb(249, 251, 253); background-color: rgb(249, 251, 253);
} }
.colorMain { .colorMain {
margin-top: 4px;
margin-top: 0.04rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-around; justify-content: space-around;
align-items: flex-start; align-items: flex-start;
} }
.colorMain .colorImg { .colorMain .colorImg {
height: 14px;
width: 180px;
height: 0.14rem;
width: 1.6rem;
background-image: url("../assets/img/gisdemo/color.png"); background-image: url("../assets/img/gisdemo/color.png");
background-size: contain; background-size: contain;
} }
.colorValue { .colorValue {
height: 20;
width: 180px;
height: 0.15rem;
width: 1.6rem;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
} }
/* 菜单 */ /* 菜单 */
#rightSide { #rightSide {
width: 200px;
width: 2rem;
position: absolute; position: absolute;
top: 120px;
right: 10px;
top: 1.2rem;
right: 0.1rem;
} }
.controlTitle { .controlTitle {
width: 200px;
height: 40px;
padding-left: 20px;
font-size: 16px;
width: 2rem;
height: 0.4rem;
padding-left: 0.2rem;
font-size: 0.16rem;
font-weight: 600; font-weight: 600;
color: #333; color: #333;
/* background-image: url('../assets/img/gisdemo/quality.png'); */
/* background-size: cover; */
background-color: #fff; background-color: #fff;
line-height: 40px;
line-height: 0.4rem;
text-align: start; text-align: start;
} }
.el-menu { .el-menu {
width: 200px;
width: 2rem;
overflow: hidden; overflow: hidden;
} }
/deep/ .el-menu-item-group { /deep/ .el-menu-item-group {
padding: 0; padding: 0;
background-color: #eeeeee; background-color: #eeeeee;
font-size: 10px;
font-size: 0.1rem;
color: #666666; color: #666666;
} }


/deep/ .el-menu-item { /deep/ .el-menu-item {
padding-left: 40px !important;
font-size: 12px;
padding-left: 0.4rem !important;
font-size: 0.12rem;
position: relative; position: relative;
} }
/deep/ .el-menu-item-group .el-submenu__title { /deep/ .el-menu-item-group .el-submenu__title {
font-weight: 400; font-weight: 400;
font-size: 12px;
padding-left: 40px !important;
font-size: 0.12rem;
padding-left: 0.4rem !important;
} }
/deep/.el-menu-item-group .el-submenu .el-menu .el-menu-item { /deep/.el-menu-item-group .el-submenu .el-menu .el-menu-item {
padding-left: 50px !important;
padding-left: 0.5rem !important;
} }
/deep/ .el-submenu__title { /deep/ .el-submenu__title {
height: 40px;
line-height: 40px;
padding: 20px !important;
height: 0.4rem;
line-height: 0.4rem;
padding: 0.2rem !important;
display: flex; display: flex;
align-items: center; align-items: center;
font-weight: 600; font-weight: 600;
} }
.el-menu-item:focus, .el-menu-item:hover {
outline: 0;
background-color: #e0e8f0;
}

/deep/.el-menu-item-group .el-menu-item-group__title { /deep/.el-menu-item-group .el-menu-item-group__title {
padding-left: 25px !important;
font-size: 13px;
padding-left: 0.25rem !important;
font-size: 0.13rem;
color: #333; color: #333;
} }
.el-menu-item.is-active { .el-menu-item.is-active {
} }
.refcheck { .refcheck {
height: 100%; height: 100%;
margin-left: 8px;
/* display: block; */
line-height: 50px;
margin-left: 0.08rem;
line-height: 0.5rem;
} }
/* 数据统计弹框 */ /* 数据统计弹框 */
.chart { .chart {
width: 380px;
padding: 10px;
width: 3.6rem;
position: absolute; position: absolute;
top: 80px;
left: 10px;
top: 0.8rem;
left: 0.1rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-around; justify-content: space-around;
align-items: flex-start; align-items: flex-start;
} }
.chartBtn { .chartBtn {
width: 80px;
height: 22px;
width: 0.8rem;
height: 0.22rem;
background-image: url('../assets/img/gisdemo/head-date.png'); background-image: url('../assets/img/gisdemo/head-date.png');
background-size: cover; background-size: cover;
} }
.chartBox { .chartBox {
width: 100%; width: 100%;
margin-top: 4px;
margin-top: 0.04rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-around; justify-content: space-around;
} }
.cancelChart { .cancelChart {
width: 100%; width: 100%;
padding: 10px 20px 0 0;
font-size: 16px;
padding: 0.1rem 0.2rem 0 0;
font-size: 0.16rem;
color: rgba(51, 51, 51, 0.822); color: rgba(51, 51, 51, 0.822);
text-align: end; text-align: end;
} }
.closeBtn { .closeBtn {
width: 14px;
height: 14px;
width: 0.14rem;
height: 0.14rem;
cursor: pointer; cursor: pointer;
} }
.chartContent { .chartContent {
} }
.pointChart { .pointChart {
position: relative; position: relative;
padding-bottom: 20px;
padding-bottom: 0.2rem;
} }
.chooseParams { .chooseParams {
width: 90%; width: 90%;
align-items: center; align-items: center;
} }
.parmasItem { .parmasItem {
width: 55px;
height: 23px;
margin-bottom: 10px;
width: 0.55rem;
height: 0.23rem;
margin-bottom: 0.1rem;
background-color: #eeeeee; background-color: #eeeeee;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
color: #000; color: #000;
font-size: 12px;
line-height: 23px;
font-size: 0.12rem;
line-height: 0.23rem;


} }
.utils { .utils {
font-size: 12px;
font-size: 0.12rem;
color: #666; color: #666;
text-align: start; text-align: start;
padding-left: 40px;
padding-left: 0.4rem;
} }
.pointId { .pointId {
font-size: 12px;
font-size: 0.12rem;
color: #666; color: #666;
position: absolute; position: absolute;
bottom: 20px;
right: 30px;
bottom: 0.2rem;
right: 0.3rem;
} }
.placeChart { .placeChart {
width: 100%; width: 100%;
.placeTitle { .placeTitle {
width: 100%; width: 100%;
text-align: start; text-align: start;
padding-left: 20px;
margin-bottom: 10px;
font-size: 14px;
padding-left: 0.2rem;
margin-bottom: 0.1rem;
font-size: 0.14rem;
font-weight: 600; font-weight: 600;
color: #000; color: #000;
} }


/* 弹出框 */ /* 弹出框 */
.showPopupPoint { .showPopupPoint {
width: 220px;
height: 160px;
padding: 10px;
width: 2.2rem;
height: 1.6rem;
padding: 0.1rem;
background-color: rgb(255, 255, 255); background-color: rgb(255, 255, 255);
} }
.showPopupPlace { .showPopupPlace {
width: 220px;
height: 140px;
padding: 10px;
width: 2.2rem;
height: 1.4rem;
padding: 0.1rem;
background-color: rgb(255, 255, 255); background-color: rgb(255, 255, 255);
} }
.showPopupOutlet { .showPopupOutlet {
width: 220px;
height: 230px;
padding: 10px;
width: 2.2rem;
height: 2.5rem;
padding: 0.1rem;
background-color: rgb(255, 255, 255); background-color: rgb(255, 255, 255);
} }
/* 底图 */ /* 底图 */
#changeMap { #changeMap {
width: 240px;
width: 2.4rem;
position: absolute; position: absolute;
bottom: 10px;
right: 10px;
bottom: 0.1rem;
right: 0rem;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
display: flex; display: flex;
} }
.mapText { .mapText {
width: 60px;
height: 24px;
width: 0.6rem;
height: 0.24rem;
color: #333333; color: #333333;
font-size: 12px;
font-size: 0.12rem;
font-weight: 600; font-weight: 600;
line-height: 24px;
line-height: 0.24rem;
background-color: #ffffff; background-color: #ffffff;
cursor: pointer; cursor: pointer;
} }
.unaMap { .unaMap {
width: 90px;
height: 24px;
width: 0.9rem;
height: 0.24rem;
color: #333333; color: #333333;
font-size: 12px;
font-size: 0.12rem;
font-weight: 600; font-weight: 600;
line-height: 24px;
line-height: 0.24rem;
background-color: #ffffff; background-color: #ffffff;
cursor: pointer; cursor: pointer;
} }
.google { .google {
margin-left: -16px;
margin-left: -0.16rem;
} }
#changeMap input { #changeMap input {
display: none; display: none;
} }
/* 土地占比图例信息 */ /* 土地占比图例信息 */
#landmark { #landmark {
max-width: 600px;
max-width: 5.5rem;
list-style: none; list-style: none;
position: absolute; position: absolute;
bottom: 10px;
bottom: 0.1rem;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
display: flex; display: flex;
align-content: flex-start; align-content: flex-start;
color: #000; color: #000;
background-color: #eeeeee; background-color: #eeeeee;
font-size: 12px;
font-size: 0.12rem;
} }
.landItem { .landItem {
margin: 10px;
margin: 0.1rem;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
} }
.landItem .landcolor { .landItem .landcolor {
width: 10px;
height: 10px;
margin-left: 10px;
width: 0.1rem;
height: 0.1rem;
margin-left: 0.1rem;
} }


/* 高亮显示 */ /* 高亮显示 */
} }
.mapActive { .mapActive {
color: #fff; color: #fff;
font-size: 12px;
font-size: 0.12rem;
background-color: #0091FF; background-color: #0091FF;
} }
.pointParamsActive { .pointParamsActive {
height: 23px;
height: 0.23rem;
color: #fff; color: #fff;
font-size: 12px;
font-size: 0.12rem;
background: #0091FF; background: #0091FF;
} }



+ 2
- 2
src/views/leftCompoents/landUse.vue Visa fil

container: "landUse", container: "landUse",
//   autoFit: true, //   autoFit: true,
width: 350, width: 350,
height: 230,
height: 250,
padding: [0, 40, 10, 40], padding: [0, 40, 10, 40],
}); });
chart.data(data); chart.data(data);
}); });
chart.coordinate("theta", { chart.coordinate("theta", {
radius: 0.55, radius: 0.55,
innerRadius: 0.7,
innerRadius: 0.6,
}); });
chart.tooltip({ chart.tooltip({
showTitle: false, showTitle: false,

+ 11
- 11
src/views/leftCompoents/outletComponents.vue Visa fil

justify-content: flex-start; justify-content: flex-start;
align-items: flex-start; align-items: flex-start;
color: #333; color: #333;
font-size: 14px;
font-size: 0.14rem;
} }
.popupNav { .popupNav {
width: 100%; width: 100%;
padding: 0 10px;
padding: 0 0.1rem;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
#outletComponents .title { #outletComponents .title {
text-align: start; text-align: start;
color: #000; color: #000;
font-size: 14px;
font-size: 0.14rem;
font-weight: 600; font-weight: 600;
} }
#outletComponents .paramsList { #outletComponents .paramsList {
width: 100%; width: 100%;
margin: 10 auto;
padding: 0 10px;
margin: 0.1rem auto;
padding: 0 0.1rem;
list-style: none; list-style: none;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.value { .value {
width: 100%; width: 100%;
margin-top: 8px;
margin-top: 0.08rem;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
text-align: start; text-align: start;
} }
.imgtitle { .imgtitle {
margin: 8px 0px;
font-size: 14px;
margin: 0.08rem 0px;
font-size: 0.14rem;
} }
.closePopup { .closePopup {
width: 12px;
height: 12px;
width: 0.12rem;
height: 0.12rem;
cursor: pointer; cursor: pointer;
} }
.outletImg { .outletImg {
height: auto; height: auto;
} }
.lon { .lon {
margin-bottom: 8px;
margin-bottom: 0.08rem;
} }
</style> </style>

+ 6
- 6
src/views/leftCompoents/placeComponent.vue Visa fil

justify-content: flex-start; justify-content: flex-start;
align-items: flex-start; align-items: flex-start;
color: #333; color: #333;
font-size: 14px;
font-size: 0.14rem;
} }
.popupNav { .popupNav {
width: 100%; width: 100%;
height: 30px;
padding: 0 10px;
height: 0.3rem;
padding: 0 0.1rem;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
#placeComponent .title { #placeComponent .title {
text-align: start; text-align: start;
color: #000; color: #000;
font-size: 14px;
font-size: 0.14rem;
font-weight: 600; font-weight: 600;
} }


#placeComponent .paramsList { #placeComponent .paramsList {
width: 100%; width: 100%;
margin-left: 10px;
margin-left: 0.1rem;
list-style: none; list-style: none;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
#placeComponent .placeValue { #placeComponent .placeValue {
width: 100%; width: 100%;
margin-top: 8px;
margin-top: 0.08rem;
text-align: start; text-align: start;
} }
.closePopup { .closePopup {

+ 9
- 9
src/views/leftCompoents/popupComponents.vue Visa fil

justify-content: flex-start; justify-content: flex-start;
align-items: flex-start; align-items: flex-start;
color: #333; color: #333;
font-size: 14px;
font-size: 0.14rem;
} }
.popupNav { .popupNav {
width: 100%; width: 100%;
padding: 0 10px;
padding: 0 0.1rem;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
} }
#popupComponents .title { #popupComponents .title {
color: #000; color: #000;
font-size: 14px;
font-size: 0.14rem;
font-weight: 600; font-weight: 600;
} }
#popupComponents .paramsList { #popupComponents .paramsList {
width: 100%; width: 100%;
margin-left: 10px;
margin-left: 0.1rem;
list-style: none; list-style: none;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.value { .value {
width: 80%; width: 80%;
margin-top: 8px;
margin-top: 0.08rem;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: flex-start; align-items: flex-start;
text-align: start; text-align: start;
} }
.upImg { .upImg {
width: 10px;
height: 14px;
width: 0.1rem;
height: 0.14rem;
background-image: url('../../assets/img/gisdemo/up.png'); background-image: url('../../assets/img/gisdemo/up.png');
background-size: cover; background-size: cover;
} }
.closePopup { .closePopup {
width: 12px;
height: 12px;
width: 0.12rem;
height: 0.12rem;
cursor: pointer; cursor: pointer;
} }
</style> </style>

Laddar…
Avbryt
Spara