Browse Source

Merge branch 'dev_shequzhili'

shibei_master
jiangyy 3 years ago
parent
commit
ed549abb2f
  1. 2
      src/assets/scss/modules/visual/duoyuanfenxi.scss
  2. 13
      src/views/modules/shequzhili/event/cpts/add.vue
  3. 27
      src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanfuwufenxi.vue
  4. 2
      src/views/modules/visual/communityGovern/duoyuanfuwu/pieOption.js
  5. 2
      src/views/modules/visual/communityGovern/shijianchuli/shijianchulifenxi.vue
  6. 8
      src/views/modules/visual/communityGovern/shijianfenlei/pieOption.js
  7. 34
      src/views/modules/visual/communityGovern/shijianfenlei/shijianfenleifenxi.vue

2
src/assets/scss/modules/visual/duoyuanfenxi.scss

@ -76,7 +76,7 @@
position: relative;
height: 100%;
.tb {
height: calc(100% - 50px);
height: calc(100% - 40px);
overflow-y: auto;
@include scrollBar;
/deep/ .table-status {

13
src/views/modules/shequzhili/event/cpts/add.vue

@ -312,6 +312,7 @@ export default {
//
keyWords: '',
isFirst: true,//
// oss/file/uploadvariedfile
dialogImageUrl: 'oss/file/uploadvariedfile',
@ -620,7 +621,7 @@ export default {
this.handleMoveCenter()
})
this.handleMoveCenter()
this.convert()
// this.convert()
},
setMarker (lat, lng) {
@ -699,8 +700,14 @@ export default {
geocoder
.getAddress({ location: location }) //
.then((result) => {
this.formData.address = result.result.address
//
if (!this.isFirst) {//
this.formData.address = result.result.address
}
if (this.isFirst) {
this.isFirst = false
}
});
},

27
src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanfuwufenxi.vue

@ -149,7 +149,7 @@ export default {
],
header: ['序号', '组织列表', '操作'],
list: [],
pageSize: 10,
pageSize: 5,
pageNo: 1,
total: 0,
categoryCode: ''
@ -216,7 +216,7 @@ export default {
name: item.categoryName,
code: item.categoryCode,
color: item.color, // colorArray[index]
selected: index == 0 ? true : false
selected: false
}
this.pieData.push(ob)
})
@ -302,14 +302,21 @@ export default {
this.clickPie() // this.clickPie(maxIndex)
let fun = function (params) {
_that.clickPie(params.dataIndex)
_that.clickPie(params)
}
this.$refs.pieChart.handleClick(fun)
},
clickPie (seriesIndex) {
clickPie (params) {
let dataIndex = params ? params.dataIndex : null
let componentIndex = params ? params.componentIndex : null
if (componentIndex === 2) { //
dataIndex = -1
this.categoryCode = ''
this.$refs.pieChart.clear()
}
this.pieData.forEach((element, index) => {
if (index === seriesIndex) {
if (index === dataIndex) {
element.label = {
show: true,
}
@ -320,9 +327,6 @@ export default {
}
}
this.categoryCode = element.code
this.demand.pageNo = 1
this.getTable()
this.getMapData()
} else {
element.label = {
show: false,
@ -339,6 +343,9 @@ export default {
this.pieOption.series[1].data = this.pieData
// this.$refs.pieChart.hideLoading()
this.$refs.pieChart.setOption(this.pieOption)
this.demand.pageNo = 1
this.getTable()
this.getMapData()
},
toUserInfo (uid) {
@ -738,11 +745,11 @@ export default {
.map-tips {
width: 100%;
display: flex;
// justify-content: center;
justify-content: center;
align-items: center;
flex-wrap: wrap;
box-sizing: border-box;
padding: 6px 0 0 100px;
// padding: 6px 0 0 100px;
// padding-top: 10px;
// padding-bottom: 10px;

2
src/views/modules/visual/communityGovern/duoyuanfuwu/pieOption.js

@ -74,7 +74,7 @@ export function pieOption (_charts) {
avoidLabelOverlap: false,
// top: top + '%',
// height: '80%',
// selectedMode: 'single',
selectedMode: 'single',
left: 'center',
width: 480,
label: {

2
src/views/modules/visual/communityGovern/shijianchuli/shijianchulifenxi.vue

@ -636,9 +636,9 @@ export default {
};
// element.selected = !element.selected
// isSelected = element.selected
} else {
element.selected = false
element.label = {
show: false,

8
src/views/modules/visual/communityGovern/shijianfenlei/pieOption.js

@ -1,10 +1,10 @@
export function pieOption (_charts) {
const center= ['50%', '120px']
const center= ['50%', '140px']
return {
title: {
text: '0',
top: 95,
top: 115,
left: 'center',
textStyle: {
width: '100%',
@ -94,7 +94,7 @@ export function pieOption (_charts) {
padding: [0, 6, 0, 6]
},
a: {
fontSize: 25,
fontSize: 18,
color: '#fff',
padding: [0, 6, 6, 6]
},
@ -110,7 +110,7 @@ export function pieOption (_charts) {
labelLine: {
show: false,
smooth: 0.2,
length: 40,
length: 20,
length2: 0,
maxSurfaceAngle: 80
},

34
src/views/modules/visual/communityGovern/shijianfenlei/shijianfenleifenxi.vue

@ -508,16 +508,22 @@ export default {
this.clickPie() // this.clickPie(maxIndex)
let fun = function (params) {
_that.clickPie(params.dataIndex)
_that.clickPie(params)
}
this.$refs.pieChart.handleClick(fun)
},
clickPie (seriesIndex) {
let isSelected = false
clickPie (params) {
let dataIndex = params ? params.dataIndex : null
let componentIndex = params ? params.componentIndex : null
if (componentIndex === 2) { //
dataIndex = -1
this.categoryCode = ''
this.$refs.pieChart.clear()
}
this.pieData.forEach((element, index) => {
if (index === seriesIndex) {
if (index === dataIndex) {
element.label = {
show: true,
}
@ -529,12 +535,6 @@ export default {
}
this.categoryCode = element.categoryCode
element.selected = !element.selected
isSelected = element.selected
// if (isSelected) {
// this.categoryCode = element.categoryCode
// } else {
// this.categoryCode = ''
// }
} else {
element.label = {
show: false,
@ -600,15 +600,23 @@ export default {
this.clickGridPie() // this.clickGridPie(maxIndex)
let fun = function (params) {
_that.clickGridPie(params.dataIndex)
_that.clickGridPie(params)
}
this.$refs.gridPieChart.handleClick(fun)
},
clickGridPie (seriesIndex) {
clickGridPie (params) {
let dataIndex = params ? params.dataIndex : null
let componentIndex = params ? params.componentIndex : null
if (componentIndex === 2) { //
dataIndex = -1
this.tableOrgId = ''
this.tableOrgType = ''
this.$refs.gridPieChart.clear()
}
this.gridPieData.forEach((element, index) => {
if (index === seriesIndex) {
if (index === dataIndex) {
element.label = {
show: true,
}

Loading…
Cancel
Save