diff --git a/src/router/index.js b/src/router/index.js
index 4dc035767..b6c827ce0 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -239,6 +239,16 @@ export const dataBoardRoutes = {
keepAlive: false,
},
},
+ {
+ path: "renfang/resident",
+ props: true,
+ component: () => import("@/views/dataBoard/renfang/resident/index"),
+ name: "dataBoard-renfang-resident",
+ meta: {
+ title: "居民画像",
+ isTab: false,
+ },
+ },
{
path: "renfang/warn-building",
props: true,
diff --git a/src/views/dataBoard/cpts/personnel/index.vue b/src/views/dataBoard/cpts/personnel/index.vue
index 504e80b74..9be66fe65 100644
--- a/src/views/dataBoard/cpts/personnel/index.vue
+++ b/src/views/dataBoard/cpts/personnel/index.vue
@@ -2,53 +2,67 @@
- 事项详情
+
+
+
-
- 家庭关系
+
- 居民各项业务记录
+
- 享受服务次数统计
+
- 积分记录
+
+
@@ -66,4 +80,7 @@ export default {
.breadcrumb {
margin-bottom: 25px;
}
+a:hover {
+ cursor: pointer;
+}
diff --git a/src/views/dataBoard/cpts/personnel/modules/BusinessRecords.vue b/src/views/dataBoard/cpts/personnel/modules/BusinessRecords.vue
index 38c6201bf..92eb8db3b 100644
--- a/src/views/dataBoard/cpts/personnel/modules/BusinessRecords.vue
+++ b/src/views/dataBoard/cpts/personnel/modules/BusinessRecords.vue
@@ -104,6 +104,7 @@ export default {
diff --git a/src/views/dataBoard/cpts/personnel/modules/PointsRecord.vue b/src/views/dataBoard/cpts/personnel/modules/PointsRecord.vue
index e64cade4f..c671a394a 100644
--- a/src/views/dataBoard/cpts/personnel/modules/PointsRecord.vue
+++ b/src/views/dataBoard/cpts/personnel/modules/PointsRecord.vue
@@ -38,6 +38,7 @@ export default {
diff --git a/src/views/dataBoard/renfang/visualizing/components/dataTitle.vue b/src/views/dataBoard/renfang/visualizing/components/dataTitle.vue
index 8201a13ba..a11809a02 100644
--- a/src/views/dataBoard/renfang/visualizing/components/dataTitle.vue
+++ b/src/views/dataBoard/renfang/visualizing/components/dataTitle.vue
@@ -3,6 +3,7 @@
{{ title }}
+
@@ -70,12 +82,14 @@ export default {
text-align: center;
letter-spacing: 5px;
}
+
.current {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 60px 15px 50px;
}
+
.cur-month {
font-size: 18px;
font-weight: 400;
@@ -96,8 +110,10 @@ export default {
.cur-month-list {
display: flex;
+
.cur-month-item {
margin-left: 71px;
+
.txt {
font-size: 16px;
font-weight: 400;
@@ -130,6 +146,7 @@ export default {
background: linear-gradient(-90deg, rgba(14, 121, 213, 0.10) 0%, rgba(17, 124, 213, 0) 100%);
padding: 20px;
margin-bottom: 28px;
+
.his-month-item {
flex: 1;
position: relative;
@@ -147,9 +164,11 @@ export default {
}
+
&:last-child:after {
display: none;
}
+
.month {
font-size: 14px;
font-weight: 400;
diff --git a/src/views/dataBoard/satisfactionEval/modules/EventStatistics/index.vue b/src/views/dataBoard/satisfactionEval/modules/EventStatistics/index.vue
index efb5493ed..92a60bae3 100644
--- a/src/views/dataBoard/satisfactionEval/modules/EventStatistics/index.vue
+++ b/src/views/dataBoard/satisfactionEval/modules/EventStatistics/index.vue
@@ -14,19 +14,88 @@ export default {
}
},
+
+ watch: {
+ "$store.state.chooseArea.chooseName"(val) {
+ if (val.orgId) {
+ this.getData();
+ }
+ }
+ },
mounted() {
- this.initCharts()
+ if (this.$store.state.chooseArea.chooseName.orgId) {
+ this.getData();
+ }
},
methods: {
- initCharts() {
+ getData() {
+ let params = {
+ level: this.$store.state.chooseArea.chooseName.level,
+ orgId: this.$store.state.chooseArea.chooseName.orgId,
+ }
+ params = this.$paramsFormat(params)
+ this.$http.get('/governance/satisfactionOverview/childSatisfactionGroup?' + params).then(({data: {data}}) => {
+ this.initCharts(data)
+ })
+ },
+ initCharts({orgList,series}) {
let div = document.getElementById('eventStatisticsChart');
this.myChart = echarts.init(div);
- let xData = ['XX社区第一网格','XX社区第二网格','XX社区第三网格','XX社区第四网格',];
- let tq1 = [12, 20, 30, 60];
- let tq2 = [10, 50, 50, 27];
- let tq3 = [300, 90, 48, 39];
- const max = Math.max(...tq1, ...tq2, ...tq3)
+ let xData = orgList;
+ let color = [[
+ {
+ offset: 0,
+ color: 'rgba(152, 72, 255, 0)'
+ },
+ {
+ offset: 1,
+ color: '#A962FF'
+ }
+ ], [
+ {
+ offset: 0,
+ color: 'rgba(255, 228, 102, 0)' // 0% 处的颜色
+ },
+ {
+ offset: 1,
+ color: 'rgba(255, 228, 102, 1)' // 100% 处的颜色
+ }
+ ], [
+ {
+ offset: 0,
+ color: 'rgba(0, 84, 255, 0)' // 0% 处的颜色
+ },
+ {
+ offset: 1,
+ color: 'rgba(38, 244, 248, 1)' // 100% 处的颜色
+ }
+ ]]
+ let seriesArray = series.map((item, index) => {
+ return {
+ name: item.name,
+ type: 'bar',
+ barWidth: 14,
+ itemStyle: {
+ opacity: 1,
+ color: new echarts.graphic.LinearGradient(
+ 0,
+ 1,
+ 0,
+ 0,
+ color[index],
+ false
+ )
+ },
+ data: item.data,
+ }
+ })
+ console.log(seriesArray)
+ let num = []
+ series.forEach(item => {
+ num.push(...item.data)
+ })
+ const max = Math.max(...num)
let barArray = new Array(xData.length).fill((parseInt(max / 100) + 1) * 100)
var option = {
@@ -43,8 +112,8 @@ export default {
},
tooltip: {
trigger: 'axis',
- backgroundColor: 'rgba(13, 64, 71, 0.50)',
- borderColor: 'rgba(143, 225, 252, 0.60)',
+ backgroundColor: 'rgba(13,33,71,0.5)',
+ borderColor: 'rgba(143,174,252,0.6)',
padding: 8,
textStyle: {
color: '#fff',
@@ -62,7 +131,7 @@ export default {
},
legend: {
// icon: 'circle',
- data: ['12345投诉', '省满意度调查', '社区满意度自查'],
+ data: series.map(item => item.name),
itemGap: 20,
itemWidth: 6,
itemHeight: 6,
@@ -148,86 +217,7 @@ export default {
}
],
series: [
- {
- name: '12345投诉',
- type: 'bar',
- barWidth: 14,
- itemStyle: {
- opacity: 1,
- color: new echarts.graphic.LinearGradient(
- 0,
- 1,
- 0,
- 0,
- [
- {
- offset: 0,
- color: 'rgba(152, 72, 255, 0)' // 0% 处的颜色
- },
- {
- offset: 1,
- color: '#A962FF' // 100% 处的颜色
- }
- ],
- false
- )
- },
- data: tq1,
- },
- {
- name: '省满意度调查',
- type: 'bar',
- barWidth: 14,
- itemStyle: {
- // lenged文本
- opacity: 1, // 这个是 透明度
- color: new echarts.graphic.LinearGradient(
- 0,
- 1,
- 0,
- 0,
- [
- {
- offset: 0,
- color: 'rgba(255, 228, 102, 0)' // 0% 处的颜色
- },
- {
- offset: 1,
- color: 'rgba(255, 228, 102, 1)' // 100% 处的颜色
- }
- ],
- false
- )
- },
- data: tq2, //data.values
- },
- {
- name: '社区满意度自查',
- type: 'bar',
- barWidth: 14,
- itemStyle: {
- // lenged文本
- opacity: 1, // 这个是 透明度
- color: new echarts.graphic.LinearGradient(
- 0,
- 1,
- 0,
- 0,
- [
- {
- offset: 0,
- color: 'rgba(0, 84, 255, 0)' // 0% 处的颜色
- },
- {
- offset: 1,
- color: 'rgba(38, 244, 248, 1)' // 100% 处的颜色
- }
- ],
- false
- )
- },
- data: tq3, //data.values
- },
+ ...seriesArray,
{
name: '',
type: 'bar',
diff --git a/src/views/dataBoard/satisfactionEval/modules/PersonnelPortrait/index.vue b/src/views/dataBoard/satisfactionEval/modules/PersonnelPortrait/index.vue
index 37a8a6960..6ffd06d18 100644
--- a/src/views/dataBoard/satisfactionEval/modules/PersonnelPortrait/index.vue
+++ b/src/views/dataBoard/satisfactionEval/modules/PersonnelPortrait/index.vue
@@ -3,7 +3,7 @@
不满意人员画像
-
+
-
-
-
-
-
-
-
+
+
+
{{ ageClassification }}
+
+
+
{{ residentTagName }}
+
+
+
{{ monthIncomeLevel }}
+
+
+
+
+
{{ gender==='1'?'男':gender==='2'?'女':gender==='0'?'未知':'' }}
+
-
按画像匹配到同类: 372人
+
按画像匹配到同类: {{matchPeopleNum?matchPeopleNum:0}}人
@@ -38,47 +52,68 @@ export default {
components: {Tabs},
data() {
return {
- resultType: 1,
+ resultType: 'provinceAndSelf',
resultTypeList: [{
label: ' 按省调查/社区自查结果',
- value: 1
+ value: 'provinceAndSelf'
}, {
label: '按12345热线投诉结果',
- value: 2
+ value: '12345'
}],
typeCondition: 1,
- typeConditionList: [
- {
- label: '基础教育',
- value: 1
- }, {
- label: '病有所医',
- value: 2
- }, {
- label: '老有所养',
- value: 3
- }, {
- label: '文化设施',
- value: 4
- }, {
- label: '生态环境',
- value: 5
- }, {
- label: '体育设施',
- value: 6
- }, {
- label: '社会救助',
- value: 7
- },
- ],
+ typeConditionList: [],
+ gender: "",
+ marriageName: "",
+ ageClassification: "",
+ cultureLevel: "",
+ gridName: "",
+ monthIncomeLevel: "",
+ residentTagName: "",
+ matchPeopleNum: 0
+ }
+ },
+ watch: {
+ "$store.state.chooseArea.chooseName"(val) {
+ if (val.orgId) {
+ this.getDisKey()
+ }
}
},
mounted() {
+ if (this.$store.state.chooseArea.chooseName.orgId) {
+ this.getDisKey()
+ }
},
methods: {
- resultTypeChange() {
-
+ resultTypeChange(val) {
+ this.resultType = val
+ this.getData()
+ },
+ getDisKey() {
+ this.$http.post('/sys/dict/data/dictlist', {'dictType': 'satisfaction_category'}).then(({data: {data}}) => {
+ this.typeCondition = data[0].value
+ this.typeConditionList = data
+ this.getData();
+ })
+ },
+ getData() {
+ let params = {
+ level: this.$store.state.chooseArea.chooseName.level,
+ orgId: this.$store.state.chooseArea.chooseName.orgId,
+ queryType: this.resultType,
+ category: this.typeCondition,
+ }
+ this.$http.get('/governance/satisfactionOverview/satisfactionCrowdPortrait?' + this.$paramsFormat(params)).then(({data: {data}}) => {
+ this.gender = data.gender;
+ this.marriageName = data.marriageName;
+ this.ageClassification = data.ageClassification;
+ this.cultureLevel = data.cultureLevel;
+ this.gridName = data.gridName;
+ this.monthIncomeLevel = data.monthIncomeLevel;
+ this.residentTagName = data.residentTagName;
+ this.matchPeopleNum = data.matchPeopleNum;
+ })
}
}
}
@@ -131,6 +166,7 @@ $purple: #6642fd;
background: url("@/assets/images/manyidu/hx_bg.png") no-repeat center;
margin: 0 auto;
cursor: pointer;
+
.tag {
position: absolute;
width: 76px;
@@ -138,6 +174,7 @@ $purple: #6642fd;
display: flex;
align-items: center;
justify-content: center;
+
.text {
width: 60px;
height: 60px;
@@ -149,6 +186,7 @@ $purple: #6642fd;
justify-content: center;
border-radius: 50%;
}
+
&:after {
content: "";
opacity: .3;
@@ -159,92 +197,114 @@ $purple: #6642fd;
border-radius: 50%;
}
+
&:nth-of-type(1) {
left: 162px;
top: 0;
}
+
&:nth-of-type(2) {
left: 297px;
top: 73px;
}
+
&:nth-of-type(3) {
left: 316px;
top: 203px;
}
+
&:nth-of-type(4) {
left: 228px;
top: 269px;
}
+
&:nth-of-type(5) {
left: 77px;
top: 257px;
}
+
&:nth-of-type(6) {
left: 0px;
top: 158px;
}
+
&:nth-of-type(7) {
left: 48px;
top: 57px;
}
}
+
.yellow {
.text {
- background: $yellow;
+ background: $yellow;
}
+
&:after {
background: $yellow;
}
}
+
.blue {
.text {
- background: $blue;
+ background: $blue;
}
+
&:after {
background: $blue;
}
}
+
.red {
.text {
- background: $red;
+ background: $red;
}
+
&:after {
background: $red;
}
}
+
.light {
.text {
- background: $light;
+ background: $light;
}
+
&:after {
background: $light;
}
}
+
.green {
.text {
- background: $green;
+ background: $green;
}
+
&:after {
background: $green;
}
}
+
.orange {
.text {
- background: $orange;
+ background: $orange;
}
+
&:after {
background: $orange;
}
}
+
.purple {
.text {
- background: $purple;
+ background: $purple;
}
+
&:after {
background: $purple;
}
}
}
+
.btn {
width: 240px;
height: 46px;
@@ -260,6 +320,7 @@ $purple: #6642fd;
padding: 0 20px;
margin: 33px auto 0;
cursor: pointer;
+
span {
font-size: 18px;
}
diff --git a/src/views/dataBoard/satisfactionEval/modules/PotentialPeople/index.vue b/src/views/dataBoard/satisfactionEval/modules/PotentialPeople/index.vue
index b2d785622..abe79d71c 100644
--- a/src/views/dataBoard/satisfactionEval/modules/PotentialPeople/index.vue
+++ b/src/views/dataBoard/satisfactionEval/modules/PotentialPeople/index.vue
@@ -8,7 +8,7 @@
事件未解决
上报人数
- 78人
+ {{ unSolvedNum ? unSolvedNum : 0 }}人
@@ -18,7 +18,7 @@
需求未满足
人数
-
128人
+
{{ unFinishNum ? unFinishNum : 0 }}人
@@ -28,14 +28,47 @@
应享未享
服务人数
-
527人
+
{{ noServiceNum ? noServiceNum : 0 }}人
@@ -51,8 +84,9 @@ export default {
text-align: center;
flex: 1;
border: 1px solid rgba(28, 67, 111, 0.22);
- background: linear-gradient(0deg, rgba(31, 121, 255, 0.22) 0%, rgba(31,121,255,0) 100%);
+ background: linear-gradient(0deg, rgba(31, 121, 255, 0.22) 0%, rgba(31, 121, 255, 0) 100%);
padding: 26px 0 31px;
+
.icon {
width: 86px;
height: 86px;
diff --git a/src/views/dataBoard/satisfactionEval/modules/RiskStatistics/index.vue b/src/views/dataBoard/satisfactionEval/modules/RiskStatistics/index.vue
index 526e08dd2..99b09ecd4 100644
--- a/src/views/dataBoard/satisfactionEval/modules/RiskStatistics/index.vue
+++ b/src/views/dataBoard/satisfactionEval/modules/RiskStatistics/index.vue
@@ -10,7 +10,7 @@
12345热线
投诉人数
- 7 人
+ {{event12345Num?event12345Num:0}} 人
@@ -23,7 +23,7 @@
省满意度调查
不满意人数
- 7 人
+ {{provinceSatisfactionNum?provinceSatisfactionNum:0}} 人
@@ -36,7 +36,7 @@
社区满意度自评
不满意人数
- 7 人
+ {{selfInspectNum?selfInspectNum:0}} 人
@@ -46,28 +46,28 @@
本月回访
次数
- 112 人
+ {{followMonthNum?followMonthNum:0}} 人
本月回访消除
风险人员数
-
112 人
+
{{followMonthNotRiskyNum?followMonthNotRiskyNum:0}} 人
累计回访
次数
-
112 人
+
{{followSumNum?followSumNum:0}} 人
累计回访消除
风险人员数
-
112 人
+
{{followNotRiskyNum?followNotRiskyNum:0}} 人
@@ -76,7 +76,48 @@
diff --git a/src/views/dataBoard/satisfactionEval/modules/SelfTrend/index.vue b/src/views/dataBoard/satisfactionEval/modules/SelfTrend/index.vue
index b7c81fb1f..9cb614f1d 100644
--- a/src/views/dataBoard/satisfactionEval/modules/SelfTrend/index.vue
+++ b/src/views/dataBoard/satisfactionEval/modules/SelfTrend/index.vue
@@ -28,25 +28,82 @@ export default {
}],
}
},
+ watch: {
+ "$store.state.chooseArea.chooseName"(val) {
+ if (val.orgId) {
+ this.getData();
+ }
+ }
+ },
mounted() {
- this.initCharts()
+ if (this.$store.state.chooseArea.chooseName.orgId) {
+ this.getData();
+ }
},
methods: {
- trendTypeChange(data) {
-
+ trendTypeChange(val) {
+ if (val !== this.trendType) {
+ this.trendType = val
+ this.getData()
+ }
},
- initCharts() {
+ getData() {
+ let params = {
+ level: this.$store.state.chooseArea.chooseName.level,
+ orgId: this.$store.state.chooseArea.chooseName.orgId,
+ }
+ let url = '/governance/satisfactionOverview/notSatisfactionTrend'
+ if (this.trendType === 2) {
+ url = '/governance/satisfactionOverview/selfInspectMonthTrend'
+ }
+ params = this.$paramsFormat(params)
+ this.$http.get(url + '?' + params).then(({data: {data}}) => {
+ this.initCharts(data)
+ })
+ },
+ initCharts({monthTimes, series}) {
let div = document.getElementById('selfTrendChart');
this.myChart = echarts.init(div);
- let xData = ['2022-10', '2022-11', '2022-12', '2023-01', '2023-02', '2023-03', '2023-04', '2023-05', '2023-06', '2023-07', '2023-08', '2023-09'];
- let tq1 = [12, 20, 30, 60, 49, 18, 90, 48, 39, 30, 27, 40, 48, 39, 27, 49];
- let tq2 = [10, 50, 50, 27, 49, 58, 80, 80, 19, 60, 30, 30, 49, 18, 90, 20];
- let tq3 = [300, 90, 48, 39, 30, 27, 49, 18, 90, 39, 27, 49, 30, 100, 49, 100];
- const max = Math.max(...tq1, ...tq2, ...tq3)
+ let xData = monthTimes;
+ let color = ['#F95619', '#F9E066', '#25F0F6']
+ let seriesArray = series.map((item, index) => {
+ return {
+ name: item.name,
+ type: 'line',
+ showAllSymbol: true,
+ symbol: 'circle',
+ symbolSize: 6,
+ lineStyle: {
+ normal: {
+ color: color[index],
+ },
+ },
+ label: {
+ show: false,
+ position: 'top',
+ textStyle: {
+ color: color[index],
+ },
+ },
+ itemStyle: {
+ color: color[index],
+ borderColor: color[index],
+ borderWidth: 2,
+ },
+ data: item.data,
+ }
+ })
+ console.log(seriesArray)
+ let num = []
+ series.forEach(item => {
+ num.push(...item.data)
+ })
+ const max = Math.max(...num)
let barArray = new Array(xData.length).fill((parseInt(max / 100) + 1) * 100)
var option = {
+
title: {
show: false,
text: '',
@@ -58,10 +115,28 @@ export default {
fontSize: 18,
},
},
-
+ tooltip: {
+ trigger: 'axis',
+ backgroundColor: 'rgba(13,33,71,0.5)',
+ borderColor: 'rgba(143,174,252,0.6)',
+ padding: 8,
+ textStyle: {
+ color: '#fff',
+ },
+ formatter: function (params) {
+ console.log(params)
+ var res = ''
+ for (var i = 0; i < params.length; i++) {
+ if (params[i].seriesName != "") {
+ res += '' + params[i].seriesName + ':' + params[i].data + '
'
+ }
+ }
+ return res;
+ },
+ },
legend: {
// icon: 'circle',
- data: ['12345投诉事件数', '省调查不满意数', '社区自查不满意数'],
+ data: series.map(item => item.name),
itemGap: 20,
itemWidth: 16,
itemHeight: 6,
@@ -142,84 +217,9 @@ export default {
],
series: [
+ ...seriesArray,
{
- name: '12345投诉事件数',
- type: 'line',
- showAllSymbol: true,
- symbol: 'circle',
- symbolSize: 6,
- lineStyle: {
- normal: {
- color: '#F95619',
- },
- },
- label: {
- show: false,
- position: 'top',
- textStyle: {
- color: '#F95619',
- },
- },
- itemStyle: {
- color: '#F95619',
- borderColor: '#F95619',
- borderWidth: 2,
- },
- data: tq1,
- },
- {
- name: '省调查不满意数',
- type: 'line',
- showAllSymbol: true,
- symbol: 'circle',
- symbolSize: 6,
- lineStyle: {
- normal: {
- color: '#F9E066',
- },
- },
- label: {
- show: false,
- position: 'top',
- textStyle: {
- color: '#F9E066',
- },
- },
- itemStyle: {
- color: '#F9E066',
- borderColor: '#F9E066',
- borderWidth: 2,
- },
- data: tq2, //data.values
- },
- {
- name: '社区自查不满意数',
- type: 'line',
- yIndex: 0,
- showAllSymbol: true,
- symbol: 'circle',
- symbolSize: 6,
- lineStyle: {
- normal: {
- color: '#25F0F6',
- },
- },
- label: {
- show: false,
- position: 'top',
- textStyle: {
- color: '#25F0F6',
- },
- },
- itemStyle: {
- color: '#25F0F6',
- borderColor: '#25F0F6',
- borderWidth: 2,
- },
- data: tq3, //data.values
- },
- {
- // name: '占位背景',
+ name: '',
type: 'bar',
itemStyle: {
normal: {
@@ -235,7 +235,7 @@ export default {
},
],
};
- this.myChart.setOption(option);
+ this.myChart.setOption(option, true);
window.addEventListener("resize", () => this.myChart.resize());
},
}
diff --git a/src/views/dataBoard/satisfactionEval/modules/TypesOfDissatisfaction/index.vue b/src/views/dataBoard/satisfactionEval/modules/TypesOfDissatisfaction/index.vue
index 145a5f068..57d90f0d6 100644
--- a/src/views/dataBoard/satisfactionEval/modules/TypesOfDissatisfaction/index.vue
+++ b/src/views/dataBoard/satisfactionEval/modules/TypesOfDissatisfaction/index.vue
@@ -1,15 +1,19 @@
@@ -56,27 +60,134 @@ export default {
}
},
+ watch: {
+ "$store.state.chooseArea.chooseName"(val) {
+ if (val.orgId) {
+ this.getData();
+ }
+ }
+ },
mounted() {
- this.initCharts()
+ if (this.$store.state.chooseArea.chooseName.orgId) {
+ this.getData();
+ }
},
methods: {
- resultTypeChange(data) {
+ resultTypeChange(val) {
+ if (val !== this.resultType) {
+ this.resultType = val
+ this.getData()
+ }
+ },
+ getData() {
+ let params = {
+ level: this.$store.state.chooseArea.chooseName.level,
+ orgId: this.$store.state.chooseArea.chooseName.orgId,
+ startTime: '',
+ endTime: ''
+ }
+ if (this.typeCondition === 1) {
+ params.startTime = this.$moment().startOf('month').format('YYYY-MM-DD')
+ }
+ if (this.typeCondition === 2) {
+ params.startTime = this.$moment().subtract(1, 'months').startOf('month').format('YYYY-MM-DD')
+ }
+ if (this.typeCondition === 3) {
+ params.startTime = this.$moment().subtract(2, 'months').startOf('month').format('YYYY-MM-DD')
+ }
+ if (this.typeCondition === 4) {
+ params.startTime = this.$moment().subtract(5, 'months').startOf('month').format('YYYY-MM-DD')
+ }
+ if (this.typeCondition === 5) {
+ params.startTime = this.$moment().subtract(11, 'months').startOf('month').format('YYYY-MM-DD')
+ }
+
+ if (this.typeCondition === 2) {
+ params.endTime = this.$moment().subtract(1, 'months').endOf('month').format('YYYY-MM-DD')
+ } else {
+ params.endTime = this.$moment().endOf('month').format('YYYY-MM-DD')
+ }
+
+ params = this.$paramsFormat(params)
+ let url = '/governance/satisfactionOverview/satisfactionGroup'
+
+ if (this.resultType === 2) {
+ url = '/governance/satisfactionOverview/event12345Group'
+ }
+
+ this.$http.get(url + '?' + params).then(({data: {data}}) => {
+ this.initCharts(data)
+ })
},
- initCharts() {
+ initCharts(data) {
let div = document.getElementById('typeConditionChart');
this.myChart = echarts.init(div);
- var dataname = ['老有所养', '社会治安', '生态环境', '体育设施', '社会救助', '文化设施', '基础教育', '病有所医']
- var datamax = [20, 20, 20, 20, 20, 20, 20, 20]
- var datavaule = [10, 16, 18, 15, 12, 18, 18, 18]
- var datavaule2 = [12, 17, 20, 16, 13, 19, 19, 19]
+ var dataname = data.map(item => item.name)
+ var datavaule = data.map(item => item.blueNum ? item.blueNum : 0)
+ var datavaule2 = data.map(item => item.yellowNum ? item.yellowNum : 0)
var indicator = []
+ let max = Math.max(...datavaule, ...datavaule2)
+ console.log(max)
+ var datamax = new Array(datavaule.length).fill(max)
for (var i = 0; i < dataname.length; i++) {
indicator.push({
name: dataname[i],
max: datamax[i],
})
}
+ let legendName = ['省满意度调查\n各项不满意人数', '社区满意度自查\n各项不满意人数']
+ let series = [{
+ name: "省满意度调查\n各项不满意人数",
+ type: "radar",
+ symbol: "circle",
+ symbolSize: 7,
+ areaStyle: {
+ normal: {
+ color: 'rgba(58,128,231,0.36)',
+ }
+ },
+ itemStyle: {
+ color: '#3A80E7',
+ borderColor: '#3AB7FF',
+ borderWidth: 1,
+ },
+ lineStyle: {
+ normal: {
+ color: "#3AB7FF",
+ width: 2
+ }
+ },
+ data: [datavaule]
+ }]
+ if (this.resultType === 2) {
+ legendName = ['省满意度调查\n各项不满意人数']
+ } else {
+ series.push({
+ name: "社区满意度自查\n各项不满意人数",
+ type: "radar",
+ symbol: "circle",
+ symbolSize: 7,
+ areaStyle: {
+ normal: {
+ color: 'rgba(170, 216, 255, 0)',
+ }
+ },
+ itemStyle: {
+ color: '#EB8E16',
+ borderColor: '#EF9700',
+ borderWidth: 1,
+ },
+ lineStyle: {
+ normal: {
+ color: "#EF9700",
+ width: 2
+ }
+ },
+ data: [datavaule2]
+ })
+ }
+ console.log(this.resultType, series)
var option = {
tooltip: {
show: false,
@@ -101,22 +212,13 @@ export default {
formatter: name => {
return `{name|${name}}`
},
- data: ['省满意度调查\n各项不满意人数', '社区满意度自查\n各项不满意人数'],
+ data: legendName,
},
radar: {
center: ["50%", "60%"],
radius: "50%",
startAngle: 90,
splitNumber: 5,
- /* splitArea: {
- areaStyle: {
- color: [
- 'rgba(0,96,208, 0.1)', 'rgba(0,96,208, 0.2)',
- 'rgba(0,96,208, 0.4)', 'rgba(0,96,208, 0.6)',
- 'rgba(0,96,208, 0.8)', 'rgba(0,96,208, 1)'
- ].reverse()
- }
- },*/
splitArea: {
areaStyle: {
color: 'transparent'
@@ -147,54 +249,9 @@ export default {
},
indicator: indicator
},
-
- series: [{
- name: "省满意度调查\n各项不满意人数",
- type: "radar",
- symbol: "circle",
- symbolSize: 7,
- areaStyle: {
- normal: {
- color: 'rgba(58,128,231,0.36)',
- }
- },
- itemStyle: {
- color: '#3A80E7',
- borderColor: '#3AB7FF',
- borderWidth: 1,
- },
- lineStyle: {
- normal: {
- color: "#3AB7FF",
- width: 2
- }
- },
- data: [datavaule]
- }, {
- name: "社区满意度自查\n各项不满意人数",
- type: "radar",
- symbol: "circle",
- symbolSize: 7,
- areaStyle: {
- normal: {
- color: 'rgba(170, 216, 255, 0)',
- }
- },
- itemStyle: {
- color: '#EB8E16',
- borderColor: '#EF9700',
- borderWidth: 1,
- },
- lineStyle: {
- normal: {
- color: "#EF9700",
- width: 2
- }
- },
- data: [datavaule2]
- }]
+ series
};
- this.myChart.setOption(option);
+ this.myChart.setOption(option, true);
window.addEventListener("resize", () => this.myChart.resize());
},
}
@@ -205,19 +262,22 @@ export default {
.types-dissatisfaction {
padding: 16px 32px;
}
+
.screen {
display: flex;
justify-content: space-between;
+
/deep/ .el-input__inner {
- width: 90px!important;
- height: 24px!important;
- background: #021C49!important;
- border: 1px solid #125AAA!important;
- border-radius: 12px!important;
+ width: 90px !important;
+ height: 24px !important;
+ background: #021C49 !important;
+ border: 1px solid #125AAA !important;
+ border-radius: 12px !important;
color: #A0CDFF;
}
+
/deep/ .el-input__icon {
- line-height: 24px!important;
+ line-height: 24px !important;
color: #A0CDFF;
}
}
diff --git a/src/views/modules/base/organization/organization.vue b/src/views/modules/base/organization/organization.vue
index 5509b4def..bbba16494 100644
--- a/src/views/modules/base/organization/organization.vue
+++ b/src/views/modules/base/organization/organization.vue
@@ -1131,7 +1131,7 @@ export default {
contacts: "",
mobile: "",
agencyId: "",
- departmentDuty: "123",
+ departmentDuty: "",
},
// 网格添加表单项
GridForm: {
diff --git a/src/views/modules/home/index.vue b/src/views/modules/home/index.vue
index a73cf35aa..796364687 100644
--- a/src/views/modules/home/index.vue
+++ b/src/views/modules/home/index.vue
@@ -1,4 +1,3 @@
-
@@ -27,12 +26,12 @@
:placeholder="typePlaceholder[searchData.type]
"
v-model="searchData.searchKey"
- @keyup.enter="handleClickSearchBtn" />
+ @keyup.enter="handleClickSearchBtn"/>
-

+
-

+
组织简介
{{ pandectData.deptName }},划分为{{
- pandectData.underCount }}个{{
- pandectData.underName
- }}, 现有房屋{{ pandectData.homeCount }}间,自住房屋{{
- pandectData.selfStay
- }}间、出租房屋{{
- pandectData.rentOut
- }}间、闲置房屋{{
- pandectData.vacantHouse
- }}间,现有居民{{pandectData.resiCount}}户、{{pandectData.totalResidents}}人,其中常住人口{{pandectData.permanentResiCount}}人,流动人口{{pandectData.floatingResiCount}}人,各类群体分布如下:
+ pandectData.underCount
+ }}个{{
+ pandectData.underName
+ }}, 现有房屋{{ pandectData.homeCount }}间,自住房屋{{
+ pandectData.selfStay
+ }}间、出租房屋{{
+ pandectData.rentOut
+ }}间、闲置房屋{{
+ pandectData.vacantHouse
+ }}间,现有居民{{ pandectData.resiCount }}户、{{
+ pandectData.totalResidents
+ }}人,其中常住人口{{ pandectData.permanentResiCount }}人,流动人口{{
+ pandectData.floatingResiCount
+ }}人,各类群体分布如下:
-

+
分析结果
@@ -78,8 +82,8 @@
v-if="resiCategory.list.length > 0">
根据数据分析结果,建议重点关注
{{ resiCategory.list[0].name }}、{{
- resiCategory.list[1].name
- }}、{{ resiCategory.list[2].name }}
+ resiCategory.list[1].name
+ }}、{{ resiCategory.list[2].name }}
三类群体,开展相关的社区服务和活动。
@@ -97,8 +101,8 @@
) in resiCategory.list">
{{
- ("0" + (index + 1)).substr(-2)
- }}.
+ ("0" + (index + 1)).substr(-2)
+ }}.
{{ item.name }}
@@ -130,8 +134,8 @@
) in znycCategory.list">
{{
- ("0" + (index + 1)).substr(-2)
- }}.
+ ("0" + (index + 1)).substr(-2)
+ }}.
{{ item.name }}
@@ -160,11 +164,12 @@
更多>
+ @click="toNoticePage">更多>
+
-

+
暂无提醒~
@@ -199,7 +204,7 @@
-
+