diff --git a/src/assets/scss/modules/visual/duoyuanfenxi.scss b/src/assets/scss/modules/visual/duoyuanfenxi.scss
index 222a39cd4..12032815a 100644
--- a/src/assets/scss/modules/visual/duoyuanfenxi.scss
+++ b/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 {
diff --git a/src/views/modules/base/community/community.vue b/src/views/modules/base/community/community.vue
index 43a4c7bb8..c19f811cf 100644
--- a/src/views/modules/base/community/community.vue
+++ b/src/views/modules/base/community/community.vue
@@ -48,7 +48,7 @@
-
0) {
@@ -347,6 +347,8 @@ export default {
const { data, code, msg } = await requestPost(url, params)
if (code === 0) {
+ this.openNodes = []
+ this.openNodes.push(data[0].id)
this.treeData = data
if (!isRefresh && data.length > 0) {
diff --git a/src/views/modules/base/community/communityTable.vue b/src/views/modules/base/community/communityTable.vue
index bbdb0db2c..5f4a3c763 100644
--- a/src/views/modules/base/community/communityTable.vue
+++ b/src/views/modules/base/community/communityTable.vue
@@ -2,6 +2,12 @@
+ 补全一户一码信息
导出
+ @click="handleExportOpen">导出
批量删除
- 导出一户一档
+ @click="handleExportYihuyidang()">导出一户一档 -->
@@ -183,6 +189,31 @@
@dialogOk="addFormOk">
+
+
+ 导出房屋数据
+ 导出一户一档
+ 导出一户一码
+
+
+
+
@@ -208,6 +239,9 @@ export default {
tableLoading: true,
showImportBtn: false,//是否显示操作按钮,根据登录人所属组织判断
+ roleList: [],//角色列表
+ showYhymInfo: false, // 是否显示补全一户一码信息按钮
+ yhymLoading: false,
agencyObj: {},//树所选的组织对象
@@ -225,7 +259,9 @@ export default {
fileName: "",
uploadUlr: window.SITE_CONFIG['apiURL'] + '/gov/org/neighborhood/import',
yihuyidangDisabled: false,
-
+ yihuyimaDisabled: false,
+ exportBtn: false,
+ dialogVisible: false // 导出
}
},
components: {
@@ -246,7 +282,13 @@ export default {
async loadTable (fromTree, treeObj) {
console.log(111, this.staffAgencyId)
-
+ // 是否显示补全一户一码信息按钮
+ this.roleList = localStorage.getItem('roleList')
+ if (this.roleList.indexOf('root_manager') > -1 || this.roleList.indexOf('manager') > -1) {
+ this.showYhymInfo = true
+ } else {
+ this.showYhymInfo = false
+ }
this.tableLoading = true
if (fromTree) {
this.agencyObj = treeObj
@@ -330,6 +372,34 @@ export default {
})
},
+ // 补全一户一码点击事件
+ async handleYhymInfo () {
+ this.yhymLoading = true
+ const url = "/gov/org/house/createBatchHouseCodeAndUrl"
+
+ let params = {}
+
+ const { data, code, msg } = await requestPost(url, params)
+
+ if (code === 0) {
+ this.yhymLoading = false
+ this.$message({
+ type: "success",
+ message: "批量生成成功"
+ });
+ } else if (code > 8000) {
+ this.yhymLoading = false
+ this.$message({
+ showClose: true,
+ message: msg,
+ duration: 0
+ })
+ } else {
+ this.yhymLoading = false
+ this.$message.error(msg)
+ }
+ },
+
handleEdit (row) {
this.formTitle = '修改小区'
this.formShow = true
@@ -486,7 +556,11 @@ export default {
// this.download(res.data, '1.png')
})
},
- //导出表格
+ // 导出按钮点击事件
+ handleExportOpen () {
+ this.dialogVisible = true
+ },
+ //导出表格 以前是导出 现在改成导出房屋数据
async handleExport () {
let title = this.agencyObj.label
title = title + '—小区列表'
@@ -512,6 +586,10 @@ export default {
},
+ handleClose(done) {
+ this.dialogVisible = false
+ },
+
// 下载文件
download (data, downFileName) {
if (!data) {
@@ -613,6 +691,41 @@ export default {
},
+ // 导出一户一码
+
+ handleExportYihuyima () {
+ this.exportBtn = true
+ this.yihuyimaDisabled = true
+ let title = this.agencyObj.label
+ title = title + '-一户一码'
+ let url = "/gov/org/house/downloadZip"
+
+
+ let params = {
+ level: this.agencyObj.level,
+ id: this.agencyObj.id
+ }
+
+
+
+ app.ajax.exportFilePost(
+ url,
+ params,
+ (data, rspMsg) => {
+
+ this.download(data, title + '.Zip')
+ this.exportBtn = false
+ this.yihuyimaDisabled = false
+ },
+ (rspMsg, data) => {
+ this.exportBtn = false
+ this.yihuyimaDisabled = false
+ this.$message.error(rspMsg);
+ }
+ );
+ },
+
+
// 上传文件之前的钩子
beforeUpload (file, type) {
diff --git a/src/views/modules/base/community/roomForm.vue b/src/views/modules/base/community/roomForm.vue
index 0c1f73415..bc9194c8e 100644
--- a/src/views/modules/base/community/roomForm.vue
+++ b/src/views/modules/base/community/roomForm.vue
@@ -40,6 +40,25 @@
+
-
@@ -136,260 +155,260 @@
diff --git a/src/views/modules/base/community/roomTable.vue b/src/views/modules/base/community/roomTable.vue
index 4f87e3f31..7fd7efe6e 100644
--- a/src/views/modules/base/community/roomTable.vue
+++ b/src/views/modules/base/community/roomTable.vue
@@ -102,7 +102,7 @@
width="90">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('cancel') }}
+
+
+
+
+
+
diff --git a/src/views/modules/cabaseinfo/caloudong.vue b/src/views/modules/cabaseinfo/caloudong.vue
new file mode 100644
index 000000000..5a07d25f6
--- /dev/null
+++ b/src/views/modules/cabaseinfo/caloudong.vue
@@ -0,0 +1,155 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t("query") }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查看
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/cabaseinfo/capingfang-add-or-update.vue b/src/views/modules/cabaseinfo/capingfang-add-or-update.vue
new file mode 100644
index 000000000..754226597
--- /dev/null
+++ b/src/views/modules/cabaseinfo/capingfang-add-or-update.vue
@@ -0,0 +1,251 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('cancel') }}
+
+
+
+
+
+
diff --git a/src/views/modules/cabaseinfo/capingfang.vue b/src/views/modules/cabaseinfo/capingfang.vue
new file mode 100644
index 000000000..694043076
--- /dev/null
+++ b/src/views/modules/cabaseinfo/capingfang.vue
@@ -0,0 +1,155 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t("query") }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查看
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/cabaseinfo/carental-add-or-update.vue b/src/views/modules/cabaseinfo/carental-add-or-update.vue
new file mode 100644
index 000000000..793cbb8f4
--- /dev/null
+++ b/src/views/modules/cabaseinfo/carental-add-or-update.vue
@@ -0,0 +1,204 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('cancel') }}
+
+
+
+
+
+
diff --git a/src/views/modules/cabaseinfo/carental.vue b/src/views/modules/cabaseinfo/carental.vue
new file mode 100644
index 000000000..0980e8039
--- /dev/null
+++ b/src/views/modules/cabaseinfo/carental.vue
@@ -0,0 +1,156 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t("query") }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查看
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/cabaseinfo/caresident-add-or-update.vue b/src/views/modules/cabaseinfo/caresident-add-or-update.vue
new file mode 100644
index 000000000..4383f1d75
--- /dev/null
+++ b/src/views/modules/cabaseinfo/caresident-add-or-update.vue
@@ -0,0 +1,216 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('cancel') }}
+
+
+
+
+
+
diff --git a/src/views/modules/cabaseinfo/caresident.vue b/src/views/modules/cabaseinfo/caresident.vue
new file mode 100644
index 000000000..0cba7cd8b
--- /dev/null
+++ b/src/views/modules/cabaseinfo/caresident.vue
@@ -0,0 +1,147 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t("query") }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查看
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/cabaseinfo/carotators-add-or-update.vue b/src/views/modules/cabaseinfo/carotators-add-or-update.vue
new file mode 100644
index 000000000..eaf0bed8c
--- /dev/null
+++ b/src/views/modules/cabaseinfo/carotators-add-or-update.vue
@@ -0,0 +1,309 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('cancel') }}
+
+
+
+
+
+
diff --git a/src/views/modules/cabaseinfo/carotators.vue b/src/views/modules/cabaseinfo/carotators.vue
new file mode 100644
index 000000000..c171dad8d
--- /dev/null
+++ b/src/views/modules/cabaseinfo/carotators.vue
@@ -0,0 +1,141 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t("query") }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 查看
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/plugins/stats/factagencyuserhousedaily.vue b/src/views/modules/plugins/stats/factagencyuserhousedaily.vue
index b7a365607..5cabb481a 100644
--- a/src/views/modules/plugins/stats/factagencyuserhousedaily.vue
+++ b/src/views/modules/plugins/stats/factagencyuserhousedaily.vue
@@ -3,7 +3,7 @@
-
-
+
- {{ data.agencyName }}
- ({{ data.subAgencyList.length }})
+ {{ data.objectName }}
+ ({{ data.children.length }})
@@ -56,19 +56,19 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
{
if (res.code !== 0) {
return this.$message.error(res.msg)
} else {
console.log('获取查询详情成功', res.data)
// this.optionsA = res.data
+ // console.log(this.optionsA);
this.optionsA.push(res.data)
- this.dataForm.agencyId = res.data.agencyId
- this.dataForm.level = res.data.level
- this.getDataList()
+ this.dataForm.agencyId = res.data.objectId
+ this.dataForm.level = res.data.objectType
}
})
.catch(() => {
diff --git a/src/views/modules/shequzhili/event/cpts/add.vue b/src/views/modules/shequzhili/event/cpts/add.vue
index 3bc967854..b53caf480 100644
--- a/src/views/modules/shequzhili/event/cpts/add.vue
+++ b/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
+ }
});
},
diff --git a/src/views/modules/visual/communityGovern/duoyuanDialog.vue b/src/views/modules/visual/communityGovern/duoyuanDialog.vue
new file mode 100644
index 000000000..dfb584ae0
--- /dev/null
+++ b/src/views/modules/visual/communityGovern/duoyuanDialog.vue
@@ -0,0 +1,335 @@
+
+
+
+
+
+

+
详情
+
+
+
+

+
+
+
+
+
+
+
{{item.reportTime || '2022-05-18'}}
+
{{item.content || '本周加班本周加班本周加班本周加班本周加班本周加班'}}
+
+
+
+
+
+
+
+
+
+ 所属网格:
+ {{ info.gridName }}
+
+
+ 需求类型:
+ {{ info.categoryName }}
+
+
+
+ 上报类型:
+ {{ info.reportTypeName }}
+
+
+ 上报人:
+ {{ info.reportUserName }}
+
+
+ 上报人联系方式 :
+ {{ info.reportUserMobile }}
+
+
+ 上报时间 :
+ {{ info.reportTime }}
+
+
+ 需求人 :
+ {{ info.demandUserName }}
+
+
+ 服务时间 :
+ {{ info.wantServiceTime }}
+
+
+
需求内容:
+
{{ info.content }}
+
+
+ 服务方 :
+ {{ info.serviceShowName }}
+
+
+ 实际服务时间 :
+ {{ info.serviceStartTime }} 至 {{ info.serviceEndTime }}
+
+
+
+ 评价 :
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanDialog.vue b/src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanDialog.vue
index eef1de189..dfb584ae0 100644
--- a/src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanDialog.vue
+++ b/src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanDialog.vue
@@ -21,6 +21,7 @@
+
@@ -290,6 +291,12 @@ export default {
.list-wr {
display: flex;
padding: 0 20px;
+ .dashed-line {
+ width: 1px;
+ height: 600px;
+ margin: 0 15px;
+ border: 1px dashed #1257c9;
+ }
.left-list {
width: 280px !important;
height: 600px;
@@ -322,7 +329,7 @@ export default {
}
}
.right-list {
- padding: 0 25px !important;
+ padding: 0 15px !important;
}
}
diff --git a/src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanfuwufenxi.vue b/src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanfuwufenxi.vue
index 54da7f0ff..285956979 100644
--- a/src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanfuwufenxi.vue
+++ b/src/views/modules/visual/communityGovern/duoyuanfuwu/duoyuanfuwufenxi.vue
@@ -62,6 +62,8 @@
@clickFeature="clickMap"
:showIconLayer="true"
:showPolygonLayer="true"
+ :showPolIconLayer="true"
+ :areaScale="0.1"
:clickType="'popup'"
:isAddOpenlay="true">
@@ -149,7 +151,7 @@ export default {
],
header: ['序号', '组织列表', '操作'],
list: [],
- pageSize: 10,
+ pageSize: 5,
pageNo: 1,
total: 0,
categoryCode: ''
@@ -216,7 +218,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 +304,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 +329,6 @@ export default {
}
}
this.categoryCode = element.code
- this.demand.pageNo = 1
- this.getTable()
- this.getMapData()
} else {
element.label = {
show: false,
@@ -339,6 +345,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) {
@@ -362,8 +371,9 @@ export default {
if (item.coordinates && item.coordinates.length > 0) {
if (!this.isRepeatItem(item.name)) {
let colorIndex = index < polygonColorArray.length ? index : 0
- item.fillColor = transparent,
- item.color = polygonColorArray[colorIndex]
+ item.fillColor = 'rgba(0, 229, 237, 0.16)'
+ item.color = '#00E5ED'
+ // item.color = polygonColorArray[colorIndex]
subPolygonList.push(item)
}
}
@@ -449,7 +459,10 @@ export default {
if (this.isfirstInit) {
// this.agencyInfo.level = 'agency'
//mapInfo, polygonArray, polIconUrlArray, iconArrays, iconUrlArray
- this.$refs.map.loadMap(this.agencyInfo, this.polygonList, null, this.distributionsList, this.iconUrlArray, null)
+ const polygonIconArray = [
+ 'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20211116/a219130b6bc74b0b80b5ddb0fce0892a.png',
+ ]
+ this.$refs.map.loadMap(this.agencyInfo, this.polygonList, polygonIconArray, this.distributionsList, this.iconUrlArray, null)
} else {
this.$refs.map.refreshMap(this.agencyInfo, this.polygonList, this.distributionsList, false)
}
@@ -457,10 +470,11 @@ export default {
// 点击项目
async clickMap (feature) {
- if (feature.values_.coordinates && feature.values_.coordinates.length > 0) {
- await this.loadOrgData(feature.values_.level, feature.values_.id)
- this.loadMap()
- }
+ // 点击显示下级区域
+ // if (feature.values_.coordinates && feature.values_.coordinates.length > 0) {
+ // await this.loadOrgData(feature.values_.level, feature.values_.id)
+ // this.loadMap()
+ // }
console.log('标注信息', feature.values_.properties)
if (!feature.values_.properties) {
return
@@ -738,11 +752,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;
diff --git a/src/views/modules/visual/communityGovern/duoyuanfuwu/pieOption.js b/src/views/modules/visual/communityGovern/duoyuanfuwu/pieOption.js
index 15d6e9666..ae6ffd8ce 100644
--- a/src/views/modules/visual/communityGovern/duoyuanfuwu/pieOption.js
+++ b/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: {
diff --git a/src/views/modules/visual/communityGovern/shijianchuli/shijianchulifenxi.vue b/src/views/modules/visual/communityGovern/shijianchuli/shijianchulifenxi.vue
index f95871aca..301a60a96 100644
--- a/src/views/modules/visual/communityGovern/shijianchuli/shijianchulifenxi.vue
+++ b/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,
diff --git a/src/views/modules/visual/communityGovern/shijianfenlei/pieOption.js b/src/views/modules/visual/communityGovern/shijianfenlei/pieOption.js
index aef4afaed..942be5dc4 100644
--- a/src/views/modules/visual/communityGovern/shijianfenlei/pieOption.js
+++ b/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
},
diff --git a/src/views/modules/visual/communityGovern/shijianfenlei/shijianfenleifenxi.vue b/src/views/modules/visual/communityGovern/shijianfenlei/shijianfenleifenxi.vue
index 2516ca073..f3af070c8 100644
--- a/src/views/modules/visual/communityGovern/shijianfenlei/shijianfenleifenxi.vue
+++ b/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,
}