diff --git a/src/assets/scss/modules/visual/distributionAnalyze.scss b/src/assets/scss/modules/visual/distributionAnalyze.scss index a5c3918e1..777315536 100644 --- a/src/assets/scss/modules/visual/distributionAnalyze.scss +++ b/src/assets/scss/modules/visual/distributionAnalyze.scss @@ -8,44 +8,94 @@ font-family: PingFang SC; font-weight: 800; color: #ffffff; - display: flex; - align-items: center; + position: relative; - img { - display: block; - margin-right: 5px; - } - span { - display: block; - } + .card-title { + display: flex; + align-items: center; - .second-select { - margin: 0 10px 0 40px; + img { + display: block; + margin-right: 5px; + } + span { + display: block; + } + } - ::v-deep .el-input { - width: 140px; - height: 36px; - .el-input__inner { - height: 100%; - padding: 0 10px; - color: #fff; - line-height: 36px; + .second-title { + display: block; + display: flex; + align-items: center; + margin-top: 20px; + .second-title-label { + position: relative; + padding-left: 40px; + font-size: 16px; + font-weight: 500; + color: #fff; + } + .second-title-label::after { + content: ''; + position: absolute; + top: 50%; + left: 20px; + width: 12px; + height: 12px; + box-sizing: border-box; + margin-top: -6px; + background: #2865fa; + border-radius: 50%; + } + .second-select { + margin: 0 10px 0 40px; + ::v-deep .el-input { + width: 180px; + height: 36px; + .el-input__inner { + height: 100%; + padding: 0 10px; + color: #fff; + line-height: 36px; + background: #06186d; + border: 1px solid #1a64cc; + } + + .el-icon-arrow-up:before { + content: '\e78f'; + } + // .el-select__caret:before { + // content: '\E790' + // } + } + ::v-deep .el-date-editor { + width: 360px; + position: relative; background: #06186d; border: 1px solid #1a64cc; - } - .el-icon-arrow-up:before { - content: '\e78f'; + .el-range-input { + color: #fff; + background: #06186d; + } + .el-range-separator { + color: #fff; + } + .el-range__icon { + position: absolute; + right: 5px; + // float: right; + } + .el-input__prefix { + left: unset; + right: 5px; + } } } - ::v-deep .el-date-editor { - .el-input__prefix { - left: unset; - right: 5px; - } + .second-select:last-child { + margin-left: 0; } } - .cascader { ::v-deep .el-input { width: 220px; @@ -66,70 +116,78 @@ flex-direction: row; // flex-wrap: wrap; // justify-content: center; - height: calc(100vh - 130px); + height: calc(100vh - 230px); .g-l { - flex-shrink: 0; - width: 600px; - height: calc(100vh - 190px); + width: 40%; + height: calc(100vh - 290px); + + .echart-line { + margin-left: 30px; + // margin-top: 100px; + text-align: center; + position: relative; + width: 100%; + height: 100%; + box-sizing: border-box; + .echart-org { + width: 100%; + height: 90%; + } + } } .g-r { - text-align: center; - margin: 40px 19px 20px; - width: calc(100vw - 60px - 600px); - height: calc(100vh - 140px - 20px); - } -} - -.g-r { - .tb { - position: relative; - height: calc(100vh - 220px); - overflow-y: auto; - @include scrollBar; - - .m-pagination { - position: absolute; - box-sizing: border-box; - right: 0; - bottom: 0; + width: 60%; + height: calc(100vh - 250px); + .r-map { + position: relative; + height: calc(100vh - 250px - 50px); width: 100%; - height: 40px; - display: flex; - justify-content: flex-end; - /deep/ .el-pagination.is-background .el-pager li:not(.disabled).active { - background: #0266d1; - color: #000d3f; - } - - /deep/ .el-pagination .el-pager li { - background: #002e74; - } - - /deep/ .el-pagination .btn-prev { - background: #002e74; + .map { + height: 100%; + width: 100%; } + } - /deep/ .el-pagination .btn-next { - background: #002e74; + .r-legend { + display: flex; + justify-content: center; + margin-top: 24px; + align-items: center; + + .legend_item { + margin-left: 40px; + display: flex; + align-items: center; + + > span { + margin-left: 11px; + font-size: 16px; + font-family: PingFang SC; + font-weight: 400; + color: #d2e7ff; + } + + .color { + width: 20px; + height: 10px; + + border-radius: 4px; + } + + .color0 { + background: #dd2719; + } + .color1 { + background: #edbe00; + } + .color2 { + background: #00e5ed; + } } } } } - -.echart-wr { - margin-left: 30px; - // margin-top: 100px; - text-align: center; - position: relative; - width: 500px; - height: 100%; - box-sizing: border-box; - .echart-org { - width: 100%; - height: 90%; - } -} diff --git a/src/assets/scss/modules/visual/processAnalyze.scss b/src/assets/scss/modules/visual/processAnalyze.scss index 2f228f2e5..0cd1f8227 100644 --- a/src/assets/scss/modules/visual/processAnalyze.scss +++ b/src/assets/scss/modules/visual/processAnalyze.scss @@ -77,6 +77,7 @@ width: 100px; } .g-pie { + position: relative; } } .l_bottom { @@ -209,6 +210,10 @@ background-color: #082586; } } + + .r-status:hover { + cursor: pointer; + } } .r-legend { @@ -231,9 +236,6 @@ color: #d2e7ff; } } - .r-legend:hover { - cursor: pointer; - } } .echart-wr { @@ -242,10 +244,52 @@ text-align: center; position: relative; width: 500px; - height: 100%; + // height: 100%; box-sizing: border-box; - .echart-org { - width: 100%; - height: 90%; +} + +.g-pie { + position: relative; + .pie-legend { + margin-left: 30px; + margin-top: -40px; + display: flex; + justify-content: center; + + .legend_item { + .item_name { + margin-left: 5px; + font-size: 10px; + font-family: PingFang SC; + font-weight: 500; + color: #eff0f1; + } + > img { + margin-top: -10px; + width: 80px; + height: 10px; + } + .item_num { + .item_count { + font-size: 17px; + font-family: PingFang SC; + font-weight: 500; + color: #ffffff; + } + + .item_percent { + margin-left: 12px; + font-size: 8px; + font-family: PingFang SC; + font-weight: 300; + color: #ffffff; + line-height: 18px; + } + } + } + + .item_last { + margin-left: 50px; + } } } diff --git a/src/router/index.js b/src/router/index.js index fff616d17..bc43c78a3 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -274,7 +274,7 @@ router.beforeEach((to, from, next) => { }, { url: "/visual/communityGovern/distributionAnalyze", - name: "事件分类分析", + name: "项目分布分析", id: "distributionAnalyze", }, ], diff --git a/src/views/modules/communityParty/regionalParty/activitys.vue b/src/views/modules/communityParty/regionalParty/activitys.vue index fac50601d..d8c88729a 100644 --- a/src/views/modules/communityParty/regionalParty/activitys.vue +++ b/src/views/modules/communityParty/regionalParty/activitys.vue @@ -78,10 +78,14 @@
- 新增 +
diff --git a/src/views/modules/communityParty/regionalParty/units.vue b/src/views/modules/communityParty/regionalParty/units.vue index f1cda8df9..a9ff9dc60 100644 --- a/src/views/modules/communityParty/regionalParty/units.vue +++ b/src/views/modules/communityParty/regionalParty/units.vue @@ -84,11 +84,11 @@
- 新增 - 导出 @@ -103,7 +103,7 @@ :http-request="uploadFile"> 导入 + type="red">导入 --> diff --git a/src/views/modules/communityService/ninePlaces/places/placesForm.vue b/src/views/modules/communityService/ninePlaces/places/placesForm.vue index 0a18ea448..44fa73cc7 100644 --- a/src/views/modules/communityService/ninePlaces/places/placesForm.vue +++ b/src/views/modules/communityService/ninePlaces/places/placesForm.vue @@ -196,15 +196,15 @@ export default { }, async addPlace () { - // const regPhone = /^1(3|4|5|6|7|8|9)\d{9}$/; //手机号码 - // if (regPhone.test(this.formData.mobile) === false) { - // this.btnDisable = false - // this.$message({ - // type: 'warning', - // message: '请输入正确的手机号码' - // }) - // return false; - // } + const regPhone = /^1(3|4|5|6|7|8|9)\d{9}$/; //手机号码 + if (regPhone.test(this.formData.mobile) === false) { + this.btnDisable = false + this.$message({ + type: 'warning', + message: '请输入正确的手机号码' + }) + return false; + } let url = '' diff --git a/src/views/modules/visual/communityGovern/distributionAnalyze.vue b/src/views/modules/visual/communityGovern/distributionAnalyze.vue index c4e04f5ca..965bd177b 100644 --- a/src/views/modules/visual/communityGovern/distributionAnalyze.vue +++ b/src/views/modules/visual/communityGovern/distributionAnalyze.vue @@ -1,59 +1,60 @@