From 70139efd3e593f18bef2bcb9b1de5942e5fe13ea Mon Sep 17 00:00:00 2001 From: tianq Date: Mon, 10 Apr 2023 16:16:32 +0800 Subject: [PATCH 01/19] =?UTF-8?q?=E4=B9=9D=E5=B0=8F=E5=9C=BA=E6=89=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/census/census-houseList.vue | 12 +- src/views/modules/census/census-nineList.vue | 622 ++++++++++++++- .../modules/census/census-residentList.vue | 743 +++++++++++++++++- 3 files changed, 1358 insertions(+), 19 deletions(-) diff --git a/src/views/modules/census/census-houseList.vue b/src/views/modules/census/census-houseList.vue index aa1c0d227..2fb5edebe 100644 --- a/src/views/modules/census/census-houseList.vue +++ b/src/views/modules/census/census-houseList.vue @@ -107,14 +107,19 @@ + +
+
+ 导出 +
@@ -685,8 +690,8 @@ export default { justify-content: space-between; align-items: flex-end; - margin-bottom: 20px; - margin-top: 20px; + margin-bottom:0px; + margin-top: 0px; .census_searchcensus_box { align-items: flex-end; display: flex; @@ -725,6 +730,7 @@ export default { .diy-button--output { width: 100px; height: 38px; + background: #feb349; box-shadow: 0px 2px 6px 0px rgba(198, 122, 16, 0.31); border-radius: 6px; diff --git a/src/views/modules/census/census-nineList.vue b/src/views/modules/census/census-nineList.vue index 3763ac739..9969c056f 100644 --- a/src/views/modules/census/census-nineList.vue +++ b/src/views/modules/census/census-nineList.vue @@ -1,12 +1,618 @@ - + + + + background: #feb349; + box-shadow: 0px 2px 6px 0px rgba(198, 122, 16, 0.31); + border-radius: 6px; + color: #fff; +} + diff --git a/src/views/modules/census/census-residentList.vue b/src/views/modules/census/census-residentList.vue index 3763ac739..2fb5edebe 100644 --- a/src/views/modules/census/census-residentList.vue +++ b/src/views/modules/census/census-residentList.vue @@ -1,12 +1,739 @@ - + + + + background: #feb349; + box-shadow: 0px 2px 6px 0px rgba(198, 122, 16, 0.31); + border-radius: 6px; + color: #fff; +} + From fad93205eba84ecdce7989e67df2b31f4d79bedb Mon Sep 17 00:00:00 2001 From: tianq Date: Mon, 10 Apr 2023 16:35:40 +0800 Subject: [PATCH 02/19] bug --- .../census/census-accountActiveList.vue | 2 +- .../modules/census/census-accountList.vue | 30 +++-- .../modules/census/census-orgStatusList.vue | 106 +++++++++++------- 3 files changed, 86 insertions(+), 52 deletions(-) diff --git a/src/views/modules/census/census-accountActiveList.vue b/src/views/modules/census/census-accountActiveList.vue index 89bd2d260..a85ee01d9 100644 --- a/src/views/modules/census/census-accountActiveList.vue +++ b/src/views/modules/census/census-accountActiveList.vue @@ -89,7 +89,7 @@ 导出 { - return { - ...item, - subAgencyList: item.subAgencyList.length > 0 && this.deepTree(item.subAgencyList) || null - } - }) - } + if (Array.isArray(arr)) { + return arr.map(item => { + return { + ...item, + subAgencyList: (item.subAgencyList.length > 0 && this.deepTree(item.subAgencyList)) || null + }; + }); + } }, pieInitOk() { this.pieInitState = true; @@ -493,7 +493,19 @@ export default { }, xAxis: { type: 'category', - data: chartData.name + data: chartData.name, + axisLabel: { + interval: 0, + interval: 0, //设置横坐标为斜 + rotate: 30, //文字倾斜角度 + formatter: function(value) { + if (value.length > 10) { + value = value.substring(0, 9) + '..'; + } + return value; + } + }, + triggerEvent: true }, yAxis: { type: 'value', diff --git a/src/views/modules/census/census-orgStatusList.vue b/src/views/modules/census/census-orgStatusList.vue index 3d54778be..1733974a9 100644 --- a/src/views/modules/census/census-orgStatusList.vue +++ b/src/views/modules/census/census-orgStatusList.vue @@ -17,35 +17,12 @@ @change="handleChangeAgency" > - - - - - + 查询
- -
+
@@ -54,7 +31,7 @@
-
+
@@ -64,7 +41,7 @@
-
+
@@ -74,7 +51,7 @@
-
+
@@ -97,7 +74,39 @@
-
下级社区数量统计
+
下级社区数量统计 + +
+ + + + + +
+
+ + +
{ //这个关键属性我们一定要写在data的里面并且return的外面,这是动态改变区间的关键 let nowData = Date.now(); - if (this.formData.startDate) { - let startDate = new Date(this.formData.startDate); + if (this.formData2.startDate) { + let startDate = new Date(this.formData2.startDate); return time.getTime() > nowData || time.getTime() < startDate || time.getTime() === startDate; } else { return time.getTime() > nowData; @@ -187,7 +196,9 @@ export default { censusData: { district: '', street: '', community: '', grid: '', staff: '' }, formData: { orgId: '', - level: '', + level: '' + }, + formData2: { startDate: '', endDate: '' }, @@ -219,7 +230,7 @@ export default { }, computed: { maxTableHeight() { - this.TableHeight = this.$store.state.inIframe ? this.clientHeight - 420 + this.iframeHeigh : this.clientHeight - 420; + this.TableHeight = this.$store.state.inIframe ? this.clientHeight - 450 + this.iframeHeigh : this.clientHeight - 450; console.log('this.TableHeight', this.TableHeight); return this.TableHeight; }, @@ -227,10 +238,10 @@ export default { ...mapGetters(['clientHeight', 'iframeHeight']) }, watch: { - 'formData.endDate': function(val) { + 'formData2.endDate': function(val) { if (val && val != '') { let arrayTemp = val.split(' '); - this.formData.endDate = arrayTemp[0] + ' 23:59:59'; + this.formData2.endDate = arrayTemp[0] + ' 23:59:59'; } } }, @@ -238,7 +249,7 @@ export default { console.log(this.$store.state); this.user = this.$store.state.user; this.agencyId = this.user.agencyId; - console.log(this.user) + console.log(this.user); this.getOrgTreeList(); this.getTableData(); @@ -271,8 +282,8 @@ export default { url = '/gov/org/customeragency/getCommunityList'; param = { agencyId: this.orgId, - timeStart: this.formData.startDate, - timeEnd: this.formData.endDate, + timeStart: this.formData2.startDate, + timeEnd: this.formData2.endDate, pageNum: this.pageNo, pageSize: this.pageSize }; @@ -342,10 +353,10 @@ export default { let agencyId = ''; if (this.formData.orgId == '') { agencyId = this.agencyId; - this.level=this.user.level + this.level = this.user.level; } else { agencyId = this.formData.orgId; - this.level=this.formData.level + this.level = this.formData.level; } const url = '/gov/org/customeragency/getAgencyCountList'; let params = { agencyId: agencyId }; @@ -394,7 +405,7 @@ export default { } else { agencyId = this.formData.orgId; } - const { data, code, msg } = await requestPost(url, { agencyId: agencyId }); + const { data, code, msg } = await requestPost(url, { agencyId: agencyId, timeStart: this.formData2.startDate, timeEnd: this.formData2.endDate }); this.$refs.pieChart.hideLoading(); @@ -458,7 +469,18 @@ export default { }, xAxis: { type: 'category', - data: chartData.name + data: chartData.name, + axisLabel: { + interval: 0, + interval: 0, //设置横坐标为斜 + rotate: 30, //文字倾斜角度 + formatter: function(value) { + if (value.length > 10) { + value = value.substring(0, 9) + '..'; + } + return value; + } + } }, yAxis: { type: 'value', From 2d2b5301508e4dda9a4ad06784c072ff1778c43f Mon Sep 17 00:00:00 2001 From: tianq Date: Mon, 10 Apr 2023 17:13:46 +0800 Subject: [PATCH 03/19] =?UTF-8?q?=E4=B9=9D=E5=B0=8F=E5=9C=BA=E6=89=80?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=EF=BC=8C=E5=A4=87=E4=B8=AA=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/census/census-nineList.vue | 29 +- src/views/modules/census/record.vue | 503 +++++++++++++++++++ 2 files changed, 529 insertions(+), 3 deletions(-) create mode 100644 src/views/modules/census/record.vue diff --git a/src/views/modules/census/census-nineList.vue b/src/views/modules/census/census-nineList.vue index 9969c056f..7a4bc1f8a 100644 --- a/src/views/modules/census/census-nineList.vue +++ b/src/views/modules/census/census-nineList.vue @@ -97,7 +97,9 @@ - 查看 + @@ -114,6 +116,13 @@
+ + + + 取 消 + 确 定 + +
@@ -123,11 +132,12 @@ import screenEchartsFrame2 from './chart'; import { requestPost } from '@/js/dai/request'; import nextTick from 'dai-js/tools/nextTick'; import { mapGetters } from 'vuex'; +import record from './record'; import axios from 'axios'; export default { - components: { screenEchartsFrame, screenEchartsFrame2 }, + components: { screenEchartsFrame, screenEchartsFrame2, record }, data() { let endDisabledDate = time => { //这个关键属性我们一定要写在data的里面并且return的外面,这是动态改变区间的关键 @@ -145,6 +155,10 @@ export default { return time.getTime() > nowData; }; return { + dialogVisible: false, + enterpriseId: '', + enterpriseInfo: {}, + formType: '', tableLoading: false, user: {}, gridList: [], //所属网格list--场所区域 @@ -208,10 +222,19 @@ export default { this.getPie(); }, methods: { + show(row) { + this.dialogVisible = true; + this.formType = 'view'; + this.enterpriseId = row.enterpriseId; + this.enterpriseInfo = row; + }, + handleClose() { + this.dialogVisible = false; + }, handleSearch(val) { console.log(this.formData); this.pageNo = 1; - this.placeType=""; + this.placeType = ''; this.getTableData(); this.getsubData(); this.getPie(); diff --git a/src/views/modules/census/record.vue b/src/views/modules/census/record.vue new file mode 100644 index 000000000..b57b75796 --- /dev/null +++ b/src/views/modules/census/record.vue @@ -0,0 +1,503 @@ + + + + + From 5bbf14ff630f15526b02c4253c46ee3525256ebb Mon Sep 17 00:00:00 2001 From: tianq Date: Tue, 11 Apr 2023 09:14:50 +0800 Subject: [PATCH 04/19] =?UTF-8?q?=E4=B9=9D=E5=B0=8F=E5=9C=BA=E6=89=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/scss/modules/management/form.scss | 63 ++ src/views/modules/census/addForm.vue | 462 ++++++++++ src/views/modules/census/census-nineList.vue | 38 +- src/views/modules/census/record.vue | 897 +++++++++---------- src/views/modules/census/record1.vue | 503 +++++++++++ 5 files changed, 1456 insertions(+), 507 deletions(-) create mode 100644 src/assets/scss/modules/management/form.scss create mode 100644 src/views/modules/census/addForm.vue create mode 100644 src/views/modules/census/record1.vue diff --git a/src/assets/scss/modules/management/form.scss b/src/assets/scss/modules/management/form.scss new file mode 100644 index 000000000..18d1ed075 --- /dev/null +++ b/src/assets/scss/modules/management/form.scss @@ -0,0 +1,63 @@ +/deep/ .el-input.is-disabled .el-input__inner, +/deep/ .el-textarea.is-disabled textarea.el-textarea__inner { + // border:none;background-color: transparent; +} +.div_btn { + text-align: right; +} +.div_map { + width: 100%; + height: 320px; + margin-left: 0px; +} +/deep/.el-dialog__body { + padding: 30px 80px; +} +/deep/.el-dialog__footer { + padding: 10px 80px 20px; +} +.form-item::v-deep .el-form-item__label { + color: #fff; +} +.form-item { + .el-radio { + color: #fff; + } + + .el-checkbox { + color: #fff; + } +} +.verifyRed::before { + content: '*'; + color: #f56c6c; + margin-right: 4px; +} +.form_label_box { + width: 150px; + display: inline-block; + text-align: right; + padding-right: 12px; +} + +/deep/.m-record { + h3 { + &::before { + display: inline-block; + width: 4px; + height: 12px; + background: #0056D6; + content: ''; + /** + 这个指为正的话 小方块就往上, 为负的话,小方块就往下 + */ + vertical-align: 1px; + margin-right: 5px; + } + } +} +/deep/.recordBox .m-table-item{ + margin-top:0px; + max-height:200px; + overflow: auto; +} \ No newline at end of file diff --git a/src/views/modules/census/addForm.vue b/src/views/modules/census/addForm.vue new file mode 100644 index 000000000..293eb3649 --- /dev/null +++ b/src/views/modules/census/addForm.vue @@ -0,0 +1,462 @@ + + + + + diff --git a/src/views/modules/census/census-nineList.vue b/src/views/modules/census/census-nineList.vue index 7a4bc1f8a..d88520994 100644 --- a/src/views/modules/census/census-nineList.vue +++ b/src/views/modules/census/census-nineList.vue @@ -116,13 +116,18 @@
- - - - 取 消 - 确 定 - - +
+ +
@@ -132,12 +137,12 @@ import screenEchartsFrame2 from './chart'; import { requestPost } from '@/js/dai/request'; import nextTick from 'dai-js/tools/nextTick'; import { mapGetters } from 'vuex'; -import record from './record'; +import addForm from './addForm'; import axios from 'axios'; export default { - components: { screenEchartsFrame, screenEchartsFrame2, record }, + components: { screenEchartsFrame, screenEchartsFrame2, addForm }, data() { let endDisabledDate = time => { //这个关键属性我们一定要写在data的里面并且return的外面,这是动态改变区间的关键 @@ -156,9 +161,9 @@ export default { }; return { dialogVisible: false, - enterpriseId: '', - enterpriseInfo: {}, - formType: '', + detailId: '', + detailData: {}, + pageType: '', tableLoading: false, user: {}, gridList: [], //所属网格list--场所区域 @@ -224,12 +229,15 @@ export default { methods: { show(row) { this.dialogVisible = true; - this.formType = 'view'; - this.enterpriseId = row.enterpriseId; - this.enterpriseInfo = row; + this.pageType = 'view'; + this.detailId = row.enterpriseId; + this.detailData = row; }, handleClose() { this.dialogVisible = false; + this.pageType = 'list'; + this.detailId = ''; + this.getTableData(); }, handleSearch(val) { console.log(this.formData); diff --git a/src/views/modules/census/record.vue b/src/views/modules/census/record.vue index b57b75796..07cde7c06 100644 --- a/src/views/modules/census/record.vue +++ b/src/views/modules/census/record.vue @@ -1,503 +1,416 @@ diff --git a/src/views/modules/census/record1.vue b/src/views/modules/census/record1.vue new file mode 100644 index 000000000..b57b75796 --- /dev/null +++ b/src/views/modules/census/record1.vue @@ -0,0 +1,503 @@ + + + + + From 4bbf60852c74671c2de2dd63bd2cdcb65508f74f Mon Sep 17 00:00:00 2001 From: tianq Date: Tue, 11 Apr 2023 10:35:23 +0800 Subject: [PATCH 05/19] bug --- src/views/modules/census/census-nineList.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/modules/census/census-nineList.vue b/src/views/modules/census/census-nineList.vue index d88520994..007e85fb8 100644 --- a/src/views/modules/census/census-nineList.vue +++ b/src/views/modules/census/census-nineList.vue @@ -160,6 +160,7 @@ export default { return time.getTime() > nowData; }; return { + orgType:"agency", dialogVisible: false, detailId: '', detailData: {}, @@ -283,6 +284,7 @@ export default { this.getTableData(); }, async getsubData() { + console.log("this.orgType",this.orgType) this.$refs.pieChart.showLoading(); let url = '/gov/org/enterprise/count-type'; let param = { @@ -488,7 +490,7 @@ export default { if (obj.level == 'grid') { this.orgType = 'grid'; } else { - this.orgType = obj.agency; + this.orgType = "agency"; } }, deepTree(arr) { From 86eb9cf0dda792d31bbb06d1399427f7532b4a6a Mon Sep 17 00:00:00 2001 From: tianq Date: Tue, 11 Apr 2023 10:41:37 +0800 Subject: [PATCH 06/19] bug --- src/views/modules/census/census-nineList.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/modules/census/census-nineList.vue b/src/views/modules/census/census-nineList.vue index 007e85fb8..7a0c2280e 100644 --- a/src/views/modules/census/census-nineList.vue +++ b/src/views/modules/census/census-nineList.vue @@ -241,6 +241,10 @@ export default { this.getTableData(); }, handleSearch(val) { + console.log("val",val); + if(this.formData.orgId.length==0){ + this.formData.orgId=""; + } console.log(this.formData); this.pageNo = 1; this.placeType = ''; From 7efdfe151b0c5ca5518f8c15bc024a13b530e3c6 Mon Sep 17 00:00:00 2001 From: tianq Date: Tue, 11 Apr 2023 13:38:18 +0800 Subject: [PATCH 07/19] =?UTF-8?q?=E7=BA=A7=E8=81=94bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../census/census-accountActiveList.vue | 18 ++++--- .../modules/census/census-accountList.vue | 12 ++--- src/views/modules/census/census-nineList.vue | 47 +++++++++++-------- 3 files changed, 45 insertions(+), 32 deletions(-) diff --git a/src/views/modules/census/census-accountActiveList.vue b/src/views/modules/census/census-accountActiveList.vue index a85ee01d9..53800b18b 100644 --- a/src/views/modules/census/census-accountActiveList.vue +++ b/src/views/modules/census/census-accountActiveList.vue @@ -6,16 +6,15 @@
+ />
- + + :show-all-levels="false" + /> nowData; }; return { + optionsA: [], pieChart: '', pieOption: {}, pieInitState: false, @@ -202,6 +202,7 @@ export default { orgOptionProps: { multiple: false, value: 'agencyId', + emitPath: false, label: 'agencyName', children: 'subAgencyList', checkStrictly: true @@ -341,7 +342,6 @@ export default { handleChangeAgency(val) { let obj = this.$refs['myCascader'].getCheckedNodes()[0].data; console.log(obj); - this.formData.orgId = obj.agencyId; this.formData.level = obj.level; }, getOrgTreeList() { diff --git a/src/views/modules/census/census-nineList.vue b/src/views/modules/census/census-nineList.vue index 7a0c2280e..aea5cb4f9 100644 --- a/src/views/modules/census/census-nineList.vue +++ b/src/views/modules/census/census-nineList.vue @@ -4,11 +4,10 @@
@@ -125,7 +124,6 @@ :detailId="detailId" :detailData="detailData" @handleClose="handleClose" - />
@@ -160,7 +158,8 @@ export default { return time.getTime() > nowData; }; return { - orgType:"agency", + orgId: '', + orgType: 'agency', dialogVisible: false, detailId: '', detailData: {}, @@ -169,7 +168,9 @@ export default { user: {}, gridList: [], //所属网格list--场所区域 tableData: [], - formData: {}, + formData: { + orgId: '' + }, pageNo: 1, pageSize: window.localStorage.getItem('pageSize') || 20, total: 1, @@ -190,6 +191,7 @@ export default { value: 'agencyId', label: 'agencyName', children: 'subAgencyList', + emitPath: false, checkStrictly: true }, TableHeight: '', @@ -241,11 +243,11 @@ export default { this.getTableData(); }, handleSearch(val) { - console.log("val",val); - if(this.formData.orgId.length==0){ - this.formData.orgId=""; + let tmp = this.formData.orgId; + if (!tmp && typeof tmp != 'undefined' && tmp != 0) { + this.formData.orgId = ''; } - console.log(this.formData); + this.pageNo = 1; this.placeType = ''; this.getTableData(); @@ -288,7 +290,7 @@ export default { this.getTableData(); }, async getsubData() { - console.log("this.orgType",this.orgType) + console.log('this.orgType', this.orgType); this.$refs.pieChart.showLoading(); let url = '/gov/org/enterprise/count-type'; let param = { @@ -327,7 +329,14 @@ export default { let data = [...this.pieData.list]; this.chartData.name = data.map(item => item.placeTypeName); this.chartData.data = data.map(item => { - return { value: item.total, id: item.agencyId, placeType: item.placeType, name: item.placeTypeName }; + return { + value: item.total, + id: item.agencyId, + placeType: item.placeType, + name: item.placeTypeName, + radio: item.total == 0 ? '0' : ((item.total / this.pieData.total) * 100).toFixed(2) + }; + console.log(item, this.pieData.total); }); console.log('chartData', this.chartData); @@ -444,7 +453,9 @@ export default { data: { pageSize, pageNo, - ...formData + orgId: this.formData.orgId, + orgType: this.orgType, + placeType: this.placeType }, responseType: 'blob' }) @@ -475,7 +486,7 @@ export default { if (res.code !== 0) { return this.$message.error(res.msg); } else { - // console.log('获取组织树成功', res.data); + console.log('获取组织树成功', res.data); // let { agencyList, subAgencyList } = res.data; // const _arr = [{ ...agencyList, subAgencyList: [...subAgencyList] }]; // this.orgOptions = this.deepTree(_arr); @@ -489,12 +500,10 @@ export default { }, handleChangeAgency(val) { let obj = this.$refs['myCascader'].getCheckedNodes()[0].data; - console.log(obj); - this.formData.orgId = obj.agencyId; - if (obj.level == 'grid') { - this.orgType = 'grid'; + if (obj) { + this.orgType = obj.level === 'grid' ? 'grid' : 'agency'; } else { - this.orgType = "agency"; + this.orgType = ''; } }, deepTree(arr) { From dbf76938221ed002f13a0ac5bbd8d1f51b98678c Mon Sep 17 00:00:00 2001 From: tianq Date: Tue, 11 Apr 2023 14:34:20 +0800 Subject: [PATCH 08/19] =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../census/census-accountActiveList.vue | 5 ++ .../modules/census/census-accountList.vue | 6 ++ src/views/modules/census/census-nineList.vue | 12 +++- .../modules/census/census-orgStatusList.vue | 62 +++++++------------ 4 files changed, 43 insertions(+), 42 deletions(-) diff --git a/src/views/modules/census/census-accountActiveList.vue b/src/views/modules/census/census-accountActiveList.vue index 53800b18b..e3c8373b4 100644 --- a/src/views/modules/census/census-accountActiveList.vue +++ b/src/views/modules/census/census-accountActiveList.vue @@ -207,6 +207,11 @@ export default { }, handleSearch(val) { + let tmp = this.formData.orgId; + if (!tmp && typeof tmp != 'undefined' && tmp != 0) { + this.formData.orgId = ''; + this.formData.level = ''; + } console.log(this.formData); this.pageNo = 1; this.getTableData(); diff --git a/src/views/modules/census/census-accountList.vue b/src/views/modules/census/census-accountList.vue index 309faf8cb..262bbc96f 100644 --- a/src/views/modules/census/census-accountList.vue +++ b/src/views/modules/census/census-accountList.vue @@ -271,6 +271,12 @@ export default { }, methods: { handleSearch(val) { + let tmp = this.formData.orgId; + if (!tmp && typeof tmp != 'undefined' && tmp != 0) { + this.formData.orgId = ''; + this.formData.level = ''; + } + this.getCountLevel(); this.getTableData(); this.getsubData(); diff --git a/src/views/modules/census/census-nineList.vue b/src/views/modules/census/census-nineList.vue index aea5cb4f9..aa924ccaf 100644 --- a/src/views/modules/census/census-nineList.vue +++ b/src/views/modules/census/census-nineList.vue @@ -90,8 +90,8 @@ :height="maxTableHeight" > - + @@ -246,6 +246,7 @@ export default { let tmp = this.formData.orgId; if (!tmp && typeof tmp != 'undefined' && tmp != 0) { this.formData.orgId = ''; + this.orgType = ''; } this.pageNo = 1; @@ -348,6 +349,15 @@ export default { this.$refs.pieChart.clear(); // 获取pieChart配置 this.pieOption = { + tooltip: { + trigger: 'item', + formatter: '总数 : {c}
占比 : {d}%', + backgroundColor: 'rgb(134,134,134)', + borderColor: 'rgb(134,134,134)', + textStyle: { + color: '#fff' + } + }, color: this.color, title: { text: this.pieData.total, diff --git a/src/views/modules/census/census-orgStatusList.vue b/src/views/modules/census/census-orgStatusList.vue index 1733974a9..45561ded8 100644 --- a/src/views/modules/census/census-orgStatusList.vue +++ b/src/views/modules/census/census-orgStatusList.vue @@ -4,7 +4,7 @@