Browse Source

修改bug调整样式 新增需求分类统计时间参数

feature
战立标 2 years ago
parent
commit
f203edc34d
  1. BIN
      src/assets/images/shuju/renfang/index/per/bg.png
  2. BIN
      src/assets/images/shuju/renfang/index/per/dy.png
  3. BIN
      src/assets/images/shuju/renfang/index/per/lnr.png
  4. BIN
      src/assets/images/shuju/renfang/index/per/qsn.png
  5. BIN
      src/assets/images/shuju/renfang/index/per/syry.png
  6. BIN
      src/assets/images/shuju/renfang/index/per/tsrq.png
  7. BIN
      src/assets/images/shuju/renfang/index/per/zyz.png
  8. 28
      src/assets/scss/dataBoard/renfang/index.scss
  9. 16
      src/views/dataBoard/overview/components/DemandCharts.vue
  10. 16
      src/views/dataBoard/overview/components/DemandCharts2.vue
  11. 2
      src/views/dataBoard/overview/components/MapDialog/SatisfactionList.vue
  12. 3
      src/views/dataBoard/renfang/cpts/rkfx.vue
  13. 19
      src/views/dataBoard/renfang/cpts/rkfxPieOption.js
  14. 10
      src/views/dataBoard/renfang/index.vue
  15. 2
      src/views/dataBoard/satisfactionEval/components/Title/index.vue
  16. 16
      src/views/dataBoard/satisfactionEval/index.vue

BIN
src/assets/images/shuju/renfang/index/per/bg.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

BIN
src/assets/images/shuju/renfang/index/per/dy.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 887 B

BIN
src/assets/images/shuju/renfang/index/per/lnr.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 758 B

BIN
src/assets/images/shuju/renfang/index/per/qsn.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1016 B

BIN
src/assets/images/shuju/renfang/index/per/syry.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 966 B

BIN
src/assets/images/shuju/renfang/index/per/tsrq.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 903 B

BIN
src/assets/images/shuju/renfang/index/per/zyz.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 903 B

28
src/assets/scss/dataBoard/renfang/index.scss

@ -353,20 +353,25 @@
.item { .item {
display: flex; display: flex;
width: 120px; width: 140px;
background: url('@/assets/images/shuju/renfang/index/per/bg.png') no-repeat;
height: 70px;
justify-content: center;
align-items: center;
padding-top: 6px;
.item-info { .item-info {
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: rgba(255, 255, 255, 0.65); color: rgba(255, 255, 255, 0.65);
line-height: 40px; //line-height: 40px;
vertical-align: bottom; vertical-align: bottom;
div { div {
margin-bottom: 6px;
&:first-child { &:first-child {
margin-bottom: 6px;
line-height: 20px; line-height: 20px;
} }
} }
@ -380,9 +385,22 @@
} }
b { b {
width: 61px;
height: 23px;
font-size: 30px;
//font-weight: bold;
font-style: italic;
color: #64C1FF;
font-weight: 500; font-weight: 500;
font-size: 24px; }
color: #ffffff; .blue {
color: #3CF5FF;
}
.orange {
color: #FFB73C;
}
.red {
color: #F37346;
} }
} }
} }

16
src/views/dataBoard/overview/components/DemandCharts.vue

@ -22,19 +22,19 @@ export default {
data() { data() {
return { return {
dateList: [{ dateList: [{
label: '月', label: '月',
value: 1 value: 1
}, { }, {
label: '三个月', label: '三个月',
value: 2 value: 3
}, { }, {
label: '近半年', label: '近半年',
value: 3 value: 6
}, { }, {
label: '近一年', label: '近一年',
value: 4 value: 12
}], }],
date: 4 date: 12
} }
}, },
mounted() { mounted() {
@ -42,10 +42,10 @@ export default {
}, },
methods: { methods: {
timeChange() { timeChange() {
this.initChart();
}, },
initChart() { initChart() {
this.$http.post('/governance/userdemand/countByCategory').then(({data:{data}}) => { this.$http.post('/governance/userdemand/countByCategory',{monthTime: this.date} ).then(({data:{data}}) => {
let div = document.getElementById('DemandCharts'); let div = document.getElementById('DemandCharts');
this.myChart = echarts.init(div); this.myChart = echarts.init(div);
var getname = data.map(item => item.categoryName); // var getname = data.map(item => item.categoryName); //

16
src/views/dataBoard/overview/components/DemandCharts2.vue

@ -22,19 +22,19 @@ export default {
data() { data() {
return { return {
dateList: [{ dateList: [{
label: '月', label: '月',
value: 1 value: 1
}, { }, {
label: '三个月', label: '三个月',
value: 2 value: 3
}, { }, {
label: '近半年', label: '近半年',
value: 3 value: 6
}, { }, {
label: '近一年', label: '近一年',
value: 4 value: 12
}], }],
date: 4 date: 12
} }
}, },
mounted() { mounted() {
@ -42,10 +42,10 @@ export default {
}, },
methods: { methods: {
timeChange() { timeChange() {
this.initChart();
}, },
initChart() { initChart() {
this.$http.post('/governance/commonDemand/countByCategory').then(({data:{data}}) => { this.$http.post('/governance/commonDemand/countByCategory',{monthTime: this.date}).then(({data:{data}}) => {
let div = document.getElementById('DemandCharts2'); let div = document.getElementById('DemandCharts2');
this.myChart = echarts.init(div); this.myChart = echarts.init(div);
var getname = data.map(item => item.categoryName); // var getname = data.map(item => item.categoryName); //

2
src/views/dataBoard/overview/components/MapDialog/SatisfactionList.vue

@ -110,7 +110,7 @@ export default {
let params = { let params = {
...this.queryParams, ...this.queryParams,
agencyId: this.currentLevelData.orgId, agencyId: this.currentLevelData.orgId,
secondIdList: [this.catVal] satisfactionCategory: this.catVal
} }
this.$http.get("/governance/satisfactionDetailList/getUnsatisfiedMattersList?" + this.$paramsFormat(params)).then(({data: {data}}) => { this.$http.get("/governance/satisfactionDetailList/getUnsatisfiedMattersList?" + this.$paramsFormat(params)).then(({data: {data}}) => {
this.list = data.list; this.list = data.list;

3
src/views/dataBoard/renfang/cpts/rkfx.vue

@ -484,7 +484,8 @@ export default {
.pie { .pie {
flex: 0 0 280px; flex: 0 0 280px;
height: 146px; min-height: 146px;
height: 100%;
margin-top: 32px; margin-top: 32px;
} }
} }

19
src/views/dataBoard/renfang/cpts/rkfxPieOption.js

@ -30,35 +30,28 @@ export function pieOption() {
avoidLabelOverlap: true, avoidLabelOverlap: true,
labelLine: { labelLine: {
show: true, show: true,
normal: {
length: 3,
length2: 0
}
}, },
label: { label: {
normal: { normal: {
show: true, show: true,
color: "#FFFFFF", color: "#FFFFFF",
formatter: '{name|{b}}\n{rate|{d}%}', formatter: '{name|{b}}\n{rate|{d}%}',
minMargin: 5,
edgeDistance: 1,
lineHeight: 15,
fontSize: 14, fontSize: 14,
// distanceToLabelLine: -60, // distanceToLabelLine: -60,
rich: { rich: {
name: { name: {
padding: [0, 0, 10, 0], padding: [0, 0, 2, 0],
}, },
rate: { rate: {
padding: [10, 0, 0, 0], padding: [2, 0, 0, 0],
} }
} }
}, },
}, },
emphasis: {
label: {
show: true,
// fontSize: 36,
fontWeight: "bold",
},
},
data: [], data: [],
}, },
], ],

10
src/views/dataBoard/renfang/index.vue

@ -45,7 +45,7 @@
/> />
</div> </div>
<div> <div>
<b>{{ perInfo.SUBSISTENCE_ALLOWANCE_FLAG }}</b> <b class="blue">{{ perInfo.SUBSISTENCE_ALLOWANCE_FLAG }}</b>
% %
</div> </div>
</div> </div>
@ -58,7 +58,7 @@
/> />
</div> </div>
<div> <div>
<b>{{ perInfo.UNEMPLOYED_FLAG }}</b> <b class="blue">{{ perInfo.UNEMPLOYED_FLAG }}</b>
% %
</div> </div>
</div> </div>
@ -71,7 +71,7 @@
/> />
</div> </div>
<div> <div>
<b>{{ perInfo.PARTY_FLAG }}</b> <b class="orange">{{ perInfo.PARTY_FLAG }}</b>
% %
</div> </div>
</div> </div>
@ -84,7 +84,7 @@
/> />
</div> </div>
<div> <div>
<b>{{ perInfo.VOLUNTEER_FLAG }}</b> <b class="red">{{ perInfo.VOLUNTEER_FLAG }}</b>
% %
</div> </div>
</div> </div>
@ -93,7 +93,7 @@
<div class="item-info"> <div class="item-info">
<div> <div>
<img <img
src="~@/assets/images/shuju/renfang/index/per/zyz.png" src="~@/assets/images/shuju/renfang/index/per/tsrq.png"
/> />
</div> </div>
<div> <div>

2
src/views/dataBoard/satisfactionEval/components/Title/index.vue

@ -28,7 +28,7 @@ export default {
.title { .title {
// width: 100%; // width: 100%;
height: 40px; height: 40px;
background: url(../../../../../assets/images/shuju/overview/title-bg.png) no-repeat; background: url(@/assets/images/shuju/overview/title-bg.png) no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
padding: 8px 16px 8px 45px; padding: 8px 16px 8px 45px;
display: flex; display: flex;

16
src/views/dataBoard/satisfactionEval/index.vue

@ -1,9 +1,11 @@
<template> <template>
<div class="satisfaction-eval"> <div class="satisfaction-eval">
<el-row :gutter="20"> <el-row :gutter="15">
<el-col :span="8" class="bgImg"> <el-col :span="8" class="">
<div class="bgImg">
<Title text="12345数据分析"/> <Title text="12345数据分析"/>
<eventAnalysis/> <eventAnalysis/>
</div>
</el-col> </el-col>
<el-col :span="8"> <el-col :span="8">
<!-- <EventSituation /> --> <!-- <EventSituation /> -->
@ -61,7 +63,8 @@
<script> <script>
import TypesOfDissatisfaction from "./modules/TypesOfDissatisfaction"; import TypesOfDissatisfaction from "./modules/TypesOfDissatisfaction";
import RiskStatistics from "./modules/RiskStatistics"; import RiskStatistics from "./modules/RiskStatistics";
import Title from "@/views/dataBoard/satisfactionEval/components/Title"; import Title from "@/views/dataBoard/satisfactionEval/components/Title/index.vue";
import EventSituation from "@/views/dataBoard/satisfactionEval/modules/EventSituation"; import EventSituation from "@/views/dataBoard/satisfactionEval/modules/EventSituation";
import SelfTrend from "@/views/dataBoard/satisfactionEval/modules/SelfTrend"; import SelfTrend from "@/views/dataBoard/satisfactionEval/modules/SelfTrend";
import EventStatistics from "@/views/dataBoard/satisfactionEval/modules/EventStatistics"; import EventStatistics from "@/views/dataBoard/satisfactionEval/modules/EventStatistics";
@ -176,9 +179,14 @@ export default {
.el-date-picker__header--bordered { .el-date-picker__header--bordered {
border-bottom: solid 1px #006cff; border-bottom: solid 1px #006cff;
} }
.el-month-table td.disabled .cell { .el-month-table td.disabled .cell {
background: none;
opacity: .5; opacity: .5;
background: none;
} }
} }
/deep/ .title {
padding-left: 58px;
}
</style> </style>

Loading…
Cancel
Save