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. 11
      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; position: relative;
height: 100%; height: 100%;
.tb { .tb {
height: calc(100% - 50px); height: calc(100% - 40px);
overflow-y: auto; overflow-y: auto;
@include scrollBar; @include scrollBar;
/deep/ .table-status { /deep/ .table-status {

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

@ -312,6 +312,7 @@ export default {
// //
keyWords: '', keyWords: '',
isFirst: true,//
// oss/file/uploadvariedfile // oss/file/uploadvariedfile
dialogImageUrl: 'oss/file/uploadvariedfile', dialogImageUrl: 'oss/file/uploadvariedfile',
@ -620,7 +621,7 @@ export default {
this.handleMoveCenter() this.handleMoveCenter()
}) })
this.handleMoveCenter() this.handleMoveCenter()
this.convert() // this.convert()
}, },
setMarker (lat, lng) { setMarker (lat, lng) {
@ -699,8 +700,14 @@ export default {
geocoder geocoder
.getAddress({ location: location }) // .getAddress({ location: location }) //
.then((result) => { .then((result) => {
if (!this.isFirst) {//
this.formData.address = result.result.address 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: ['序号', '组织列表', '操作'], header: ['序号', '组织列表', '操作'],
list: [], list: [],
pageSize: 10, pageSize: 5,
pageNo: 1, pageNo: 1,
total: 0, total: 0,
categoryCode: '' categoryCode: ''
@ -216,7 +216,7 @@ export default {
name: item.categoryName, name: item.categoryName,
code: item.categoryCode, code: item.categoryCode,
color: item.color, // colorArray[index] color: item.color, // colorArray[index]
selected: index == 0 ? true : false selected: false
} }
this.pieData.push(ob) this.pieData.push(ob)
}) })
@ -302,14 +302,21 @@ export default {
this.clickPie() // this.clickPie(maxIndex) this.clickPie() // this.clickPie(maxIndex)
let fun = function (params) { let fun = function (params) {
_that.clickPie(params.dataIndex) _that.clickPie(params)
} }
this.$refs.pieChart.handleClick(fun) 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) => { this.pieData.forEach((element, index) => {
if (index === seriesIndex) { if (index === dataIndex) {
element.label = { element.label = {
show: true, show: true,
} }
@ -320,9 +327,6 @@ export default {
} }
} }
this.categoryCode = element.code this.categoryCode = element.code
this.demand.pageNo = 1
this.getTable()
this.getMapData()
} else { } else {
element.label = { element.label = {
show: false, show: false,
@ -339,6 +343,9 @@ export default {
this.pieOption.series[1].data = this.pieData this.pieOption.series[1].data = this.pieData
// this.$refs.pieChart.hideLoading() // this.$refs.pieChart.hideLoading()
this.$refs.pieChart.setOption(this.pieOption) this.$refs.pieChart.setOption(this.pieOption)
this.demand.pageNo = 1
this.getTable()
this.getMapData()
}, },
toUserInfo (uid) { toUserInfo (uid) {
@ -738,11 +745,11 @@ export default {
.map-tips { .map-tips {
width: 100%; width: 100%;
display: flex; display: flex;
// justify-content: center; justify-content: center;
align-items: center; align-items: center;
flex-wrap: wrap; flex-wrap: wrap;
box-sizing: border-box; box-sizing: border-box;
padding: 6px 0 0 100px; // padding: 6px 0 0 100px;
// padding-top: 10px; // padding-top: 10px;
// padding-bottom: 10px; // padding-bottom: 10px;

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

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

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

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

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

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

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

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

Loading…
Cancel
Save