diff --git a/src/assets/img/shuju/measure/jgzs@2x.png b/src/assets/img/shuju/measure/jgzs.png similarity index 100% rename from src/assets/img/shuju/measure/jgzs@2x.png rename to src/assets/img/shuju/measure/jgzs.png diff --git a/src/assets/img/shuju/measure/ly@2x.png b/src/assets/img/shuju/measure/lxdj.png similarity index 100% rename from src/assets/img/shuju/measure/ly@2x.png rename to src/assets/img/shuju/measure/lxdj.png diff --git a/src/assets/img/shuju/measure/lxdj@2x.png b/src/assets/img/shuju/measure/lxzz.png similarity index 100% rename from src/assets/img/shuju/measure/lxdj@2x.png rename to src/assets/img/shuju/measure/lxzz.png diff --git a/src/assets/img/shuju/measure/xq@2x.png b/src/assets/img/shuju/measure/qydw.png similarity index 100% rename from src/assets/img/shuju/measure/xq@2x.png rename to src/assets/img/shuju/measure/qydw.png diff --git a/src/views/modules/visual/communityParty/community.vue b/src/views/modules/visual/communityParty/community.vue index 98ce1210..77342bb7 100644 --- a/src/views/modules/visual/communityParty/community.vue +++ b/src/views/modules/visual/communityParty/community.vue @@ -6,49 +6,49 @@ src="../../../../assets/img/shuju/title-tip.png" />
区域化党建   - + - +
- - - - -
-
- - -
+ + + + + +
+ + +
党建单位分类统计
- +
-
+
{{ item.label }}
{{ item.value }}
@@ -113,7 +113,8 @@
-
@@ -166,34 +167,7 @@ export default { selectAgency: '', unitList: [], propTree: [], - partyItem: [ - { - name: '楼宇党建', - value: 1, - color: 'rgba(250, 32, 10, 1)', - icon: require('../../../../assets/img/shuju/measure/ly@2x.png') - }, { - name: '机关直属部门', - value: 2, - color: 'rgba(65, 181, 104, 1)', - icon: require('../../../../assets/img/shuju/measure/jgzs@2x.png') - }, { - name: '两新党建', - value: 3, - color: 'rgba(251, 177, 4, 1)', - icon: require('../../../../assets/img/shuju/measure/lxdj@2x.png') - }, { - name: '辖区单位', - value: 4, - color: 'rgba(80, 194, 237, 1)', - icon: require('../../../../assets/img/shuju/measure/xq@2x.png') - }, { - name: '其他', - value: 5, - color: 'rgba(192, 21, 195, 1)', - icon: require('../../../../assets/img/shuju/measure/qita.png') - } - ], + partyItem: [], cateInfo: [], //地图相关数据 isfirstInit: true,//记录是否是首次加载地图 @@ -251,12 +225,12 @@ export default { this.getList(this.agencyId) this.getCateCount(this.agencyId) this.getCateType(this.agencyId) - + await this.getWorkUserInfo() await this.getMapUnitList(this.agencyId) }, watch: { - timeRange(val) { + timeRange (val) { console.log('val-www', val) this.getList(this.agencyId); } @@ -293,7 +267,7 @@ export default { } this.visibleLoading = false }, - async getAgencyList() { + async getAgencyList () { // const url = "/gov/org/customeragency/staffinagencylist"; // const url = '/gov/org/customeragency/agencygridtree' const url = '/gov/org/customeragency/staffinagencylist' @@ -314,25 +288,26 @@ export default { this.$message.error(msg) } }, - getTreeData(data){ + getTreeData (data) { if (!Array.isArray(data)) return [] let arr = data.map(item => { let _item = {} if (item.subAgencyList) { if (item.subAgencyList.length === 0) { - _item = { + _item = { label: item.agencyName, value: item.agencyId + '-' + item.level, level: item.level, - children: undefined + children: undefined } - } else _item = { + } else _item = { label: item.agencyName, value: item.agencyId + '-' + item.level, level: item.level, - children: this.getTreeData(item.subAgencyList)} + children: this.getTreeData(item.subAgencyList) + } } else { - _item = { + _item = { label: item.agencyName, value: item.agencyId + '-' + item.level, level: item.level, @@ -373,19 +348,19 @@ export default { const colorItem = { 0: { color: 'rgba(250, 32, 10, 1)', - icon: require('../../../../assets/img/shuju/measure/ly@2x.png') + icon: require('../../../../assets/img/shuju/measure/lxdj.png') }, 1: { color: 'rgba(251, 177, 4, 1)', - icon: require('../../../../assets/img/shuju/measure/lxdj@2x.png') + icon: require('../../../../assets/img/shuju/measure/lxzz.png') }, 2: { color: 'rgba(80, 194, 237, 1)', - icon: require('../../../../assets/img/shuju/measure/xq@2x.png') + icon: require('../../../../assets/img/shuju/measure/qydw.png') }, 3: { color: 'rgba(65, 181, 104, 1)', - icon: require('../../../../assets/img/shuju/measure/jgzs@2x.png') + icon: require('../../../../assets/img/shuju/measure/jgzs.png') }, 4: { color: 'rgba(192, 21, 195, 1)', @@ -417,26 +392,26 @@ export default { this.$message.error(msg) } }, - handleCascader(val) { + handleCascader (val) { console.log('val-vvv', val) if (val.length > 0) { const _arr = val[val.length - 1].split('-') - const orgType = _arr[1] !== 'grid' ? 'agency': 'grid' + const orgType = _arr[1] !== 'grid' ? 'agency' : 'grid' this.getList(_arr[0]) this.getMapUnitList(_arr[0]) this.getCateCount(_arr[0]) this.getCateType(_arr[0]) } - + }, - initTime() { + initTime () { const end = new Date(); const start = new Date(); start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); console.log('time-rtt', this.timeFormat(start), this.timeFormat(end)) this.timeRange = [this.timeFormat(start), this.timeFormat(end)] }, - timeFormat(date) { + timeFormat (date) { if (!date || typeof date === 'string') { return false } @@ -554,11 +529,11 @@ export default { this.iconUrlArray = [ - require('../../../../assets/img/shuju/measure/ly@2x.png'),//未处理 - require('../../../../assets/img/shuju/measure/jgzs@2x.png'),//已处理 - require('../../../../assets/img/shuju/measure/lxdj@2x.png'),//已处理 - require('../../../../assets/img/shuju/measure/xq@2x.png'),//已处理 - require('../../../../assets/img/shuju/measure/qita.png')//已处理 + require('../../../../assets/img/shuju/measure/lxdj.png'),//楼宇党建 + require('../../../../assets/img/shuju/measure/lxzz.png'),//两新组织 + require('../../../../assets/img/shuju/measure/qydw.png'),//区域单位党建 + require('../../../../assets/img/shuju/measure/jgzs.png'),//机关直属部门 + require('../../../../assets/img/shuju/measure/qita.png')//其他 ] @@ -589,8 +564,8 @@ export default { clickProject (feature) { console.log('标注信息', feature.values_.properties) }, - async handleLook(val) { - + async handleLook (val) { + this.detailId = val.id await this.getDetail(val.id) this.showedMoreInfo = true @@ -636,21 +611,22 @@ export default { &::-webkit-scrollbar-corner, /* 滚动条角落 */ &::-webkit-scrollbar-thumb, - &::-webkit-scrollbar-track { /*滚动条的轨道*/ + &::-webkit-scrollbar-track { + /*滚动条的轨道*/ border-radius: 4px; } &::-webkit-scrollbar-corner, &::-webkit-scrollbar-track { /* 滚动条轨道 */ - - background: rgba(12, 129, 254, .24); + + background: rgba(12, 129, 254, 0.24); // box-shadow: inset 0 0 1px rgba(180, 160, 120, 0.5); } &::-webkit-scrollbar-thumb { /* 滚动条手柄 */ - background: linear-gradient(270deg, #0063FE, #0095FF); + background: linear-gradient(270deg, #0063fe, #0095ff); } } } @@ -666,7 +642,6 @@ export default { margin-right: 6px; } .title-label { - font-size: 20px; font-weight: 800; ::v-deep .el-input { @@ -680,7 +655,7 @@ export default { border: 1px solid #1a64cc; } .el-icon-arrow-down::before { - content: "\e790"; + content: "\e790"; } } } @@ -713,55 +688,54 @@ export default { background: #2865fa; border-radius: 50%; } - } .second-select { - margin: 0 10px 0 10px; - ::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; + margin: 0 10px 0 10px; + ::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-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; - } } + + .el-icon-arrow-up:before { + content: "\e78f"; + } + // .el-select__caret:before { + // content: '\E790' + // } } - .second-select:last-child { - margin-left: 0; + ::v-deep .el-date-editor { + width: 360px; + position: relative; + background: #06186d; + border: 1px solid #1a64cc; + .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; + } } +} +.second-select:last-child { + margin-left: 0; +} .box-wr { display: flex; box-sizing: border-box; diff --git a/src/views/modules/visual/components/screen-map/index.vue b/src/views/modules/visual/components/screen-map/index.vue index d5800785..ffe2978f 100644 --- a/src/views/modules/visual/components/screen-map/index.vue +++ b/src/views/modules/visual/components/screen-map/index.vue @@ -1,5 +1,25 @@