Browse Source

Merge branch 'dataBoard' into dev

feature
战立标 2 years ago
parent
commit
b2cb7fea46
  1. 2
      src/views/dataBoard/overview/components/ResourceInfo.vue
  2. 2
      src/views/dataBoard/overview/components/ResourceScheduling.vue
  3. 8
      src/views/dataBoard/overview/components/jdtphx.vue
  4. 6
      src/views/dataBoard/overview/components/rfsjtj.vue
  5. 9
      src/views/dataBoard/overview/index.vue
  6. 1
      src/views/dataBoard/renfang/cpts/jmgl.vue
  7. 5
      src/views/dataBoard/renfang/index.vue
  8. 38
      src/views/dataBoard/satisfactionEval/index.vue
  9. 19
      src/views/dataBoard/satisfactionEval/modules/SelfInspectionScore/index.vue

2
src/views/dataBoard/overview/components/ResourceInfo.vue

@ -104,7 +104,7 @@
<div class="items"> <div class="items">
<div class="label">所在位置</div> <div class="label">所在位置</div>
<div class="value">{{ detail.houseInfo.homeName }}</div> <div class="value">{{ detail.houseInfo?detail.houseInfo.homeName: '' }}</div>
</div> </div>
<div class="items"> <div class="items">
<div class="label">兴趣爱好</div> <div class="label">兴趣爱好</div>

2
src/views/dataBoard/overview/components/ResourceScheduling.vue

@ -224,7 +224,7 @@ export default {
this.peopleType === '4' ? 3 : this.peopleType === '4' ? 3 :
this.peopleType === 'staffGrid' ? 4 : this.peopleType === 'staffGrid' ? 4 :
this.peopleType === 'publicWelfareNum' ? 5 : '' this.peopleType === 'publicWelfareNum' ? 5 : ''
this.$refs.ResourceInfo.open(type === 3 ? data.agencyId : data.id, type, data) this.$refs.ResourceInfo.open(type === 3 ? data.orgId : data.id, type, data)
}, },
/* handleViews() { /* handleViews() {
this.$refs.ResourceInfo.open() this.$refs.ResourceInfo.open()

8
src/views/dataBoard/overview/components/jdtphx.vue

@ -169,10 +169,10 @@ export default {
orgLevel orgLevel
) )
.then(({ data: { data } }) => { .then(({ data: { data } }) => {
this.categoryList = data.categoryList; this.categoryList = data?data.categoryList:[];
this.houseList = data.houseList; this.houseList = data?data.houseList:[];
this.notSatisfactionList = data.notSatisfactionList; this.notSatisfactionList = data?data.notSatisfactionList:[];
this.riskList = data.riskList; this.riskList = data?data.riskList:[];
}); });
}, },
}, },

6
src/views/dataBoard/overview/components/rfsjtj.vue

@ -108,6 +108,7 @@ export default {
orgLevel orgLevel
) )
.then(({data: {data}}) => { .then(({data: {data}}) => {
if (data) {
data.forEach((item) => { data.forEach((item) => {
if (item.type === "house") { if (item.type === "house") {
this.house = item; this.house = item;
@ -116,9 +117,10 @@ export default {
this.resident = item; this.resident = item;
} }
}); });
}
}); });
timer = setInterval(() => { timer = setInterval(() => {
this.getData({ orgId, level }); this.getData({orgId, orgLevel});
}, 1000 * 60); }, 1000 * 60);
}, },
}, },
@ -127,6 +129,6 @@ export default {
<style <style
lang="scss" lang="scss"
src="@/assets/scss/dataBoard/overview/index.scss"
scoped scoped
src="@/assets/scss/dataBoard/overview/index.scss"
></style> ></style>

9
src/views/dataBoard/overview/index.vue

@ -25,7 +25,6 @@
<img src="~@/assets/images/shuju/overview/go-back.png"/> <img src="~@/assets/images/shuju/overview/go-back.png"/>
</div> </div>
<grid-map <grid-map
v-if="showMap"
ref="map" ref="map"
:level="currentLevel" :level="currentLevel"
:peopleType="peopleType" :peopleType="peopleType"
@ -227,7 +226,7 @@ export default {
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {
// showMap false // showMap false
this.showMap = false; // this.showMap = false;
console.log(this.showMap); console.log(this.showMap);
next(); next();
}, },
@ -420,9 +419,9 @@ export default {
console.log(this.currentLevelData, 'this.currentLevelData 33210') console.log(this.currentLevelData, 'this.currentLevelData 33210')
this.peopleType = this.currentLevel === "grid" ? "unit" : "staffAgency"; this.peopleType = this.currentLevel === "grid" ? "unit" : "staffAgency";
this.$refs.map.removeResourcesPoint(); this.$refs.map.removeResourcesPoint();
// console.log(level,'level',orgId ,level === 'agency ' || level === 'community' || level === 'grid') console.log(this.currentLevel,'level',orgId ,this.currentLevel === 'agency' || this.currentLevel === 'community' || this.currentLevel === 'grid')
if (level === 'agency' || level === 'community' || level === 'grid') { if (this.currentLevel === 'community' || this.currentLevel === 'grid') {
this.setResourcesPoint({agencyId: orgId}) this.setResourcesPoint({agencyId: this.orgId})
} }
this.getMapCount() this.getMapCount()
}); });

1
src/views/dataBoard/renfang/cpts/jmgl.vue

@ -179,6 +179,7 @@ export default {
this.$refs.pieChart.clear(); this.$refs.pieChart.clear();
this.pieOption = pieOption(); this.pieOption = pieOption();
const {pandectData} = this; const {pandectData} = this;
console.log(pandectData)
this.pieData = [ this.pieData = [
{value: pandectData.permanentResiCount, name: "常住人口"}, {value: pandectData.permanentResiCount, name: "常住人口"},
{value: pandectData.floatingResiCount, name: "流动人口"}, {value: pandectData.floatingResiCount, name: "流动人口"},

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

@ -11,14 +11,13 @@
<Title text="房屋概览"/> <Title text="房屋概览"/>
<fwgl ref="fwgl" :orgId="orgId"></fwgl> <fwgl ref="fwgl" :orgId="orgId"></fwgl>
</div> </div>
<div class="bgImg"> <div class="bgImg">
<Title text="居民概览"/> <Title text="居民概览"/>
<jmgl ref="jmgl" :orgId="orgId"></jmgl> <jmgl ref="jmgl" :orgId="orgId"></jmgl>
</div> </div>
<div class="bgImg"> <div class="bgImg">
<Title text="图谱画像"/> <Title text="图谱画像"/>
<jdtphx :id="orgId" ref="jmgl" :current-level-data="{orgId:orgId, level:orgLevel}"/> <jdtphx :id="orgId" :current-level-data="{orgId:orgId, orgLevel:orgLevel}"/>
</div> </div>
</div> </div>
@ -341,7 +340,7 @@
<div class="g-right"> <div class="g-right">
<div class="bgImg"> <div class="bgImg">
<Title text="信息采集统计"></Title> <Title text="信息采集统计"></Title>
<rfsjtj :currentLevelData="{orgId:orgId, level:orgLevel}"/> <rfsjtj :currentLevelData="{orgId:orgId, orgLevel:orgLevel}"/>
</div> </div>
<div class="bgImg"> <div class="bgImg">
<Title text="人口预警"></Title> <Title text="人口预警"></Title>

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

@ -9,7 +9,9 @@
<!-- <EventSituation /> --> <!-- <EventSituation /> -->
<div class=" bgImg"> <div class=" bgImg">
<Title text="不满意事项类型分析"> <Title text="不满意事项类型分析">
<div class="more" @click="goToPage(`/dataBoard/satisfactionEval/dissatisfied/${index}/${type}/${time}`)">查看详细 <i class="el-icon-arrow-right"></i></div> <div class="more"
@click="goToPage(`/dataBoard/satisfactionEval/dissatisfied/${index}/${type}/${time}`)">查看详细 <i
class="el-icon-arrow-right"></i></div>
</Title> </Title>
<TypesOfDissatisfaction @timeChange="timeChange"/> <TypesOfDissatisfaction @timeChange="timeChange"/>
</div> </div>
@ -23,11 +25,13 @@
size="small" size="small"
popper-class="date-current-weiyi" popper-class="date-current-weiyi"
:append-to-body="false" :append-to-body="false"
v-model="scoreMonth" type="month" v-model="scoreMonth"
value-format="yyyy-MM-dd HH:mm:ss" type="month"
value-format="yyyy-MM-dd"
value="yyyy-MM" value="yyyy-MM"
placeholder="按月度" placeholder="按月度"
style="width: 118px" style="width: 118px"
:picker-options= "pickerOptions"
/> />
</Title> </Title>
<SelfInspectionScore :date="scoreMonth"/> <SelfInspectionScore :date="scoreMonth"/>
@ -89,7 +93,14 @@ export default {
index: 0, index: 0,
type: 0, type: 0,
time: 0, time: 0,
scoreMonth: "" scoreMonth: this.$moment().add(-1, 'month').startOf("month").format("YYYY-MM-DD"),
pickerOptions: {
disabledDate: (time) => {
let month = this.$moment().add(-1, 'month').startOf("month").format("YYYY-MM-DD")
// return time.getTime() > Date.now()
return time.getTime() > new Date(month).getTime();
}
}
} }
}, },
methods: { methods: {
@ -102,16 +113,16 @@ export default {
}, },
}; };
</script> </script>
<style lang="scss" src="@/assets/scss/dataBoard/overview/index.scss" scoped /> <style lang="scss" scoped src="@/assets/scss/dataBoard/overview/index.scss"/>
<style scoped lang="scss"> <style lang="scss" scoped>
/deep/ .el-input__inner { /deep/ .el-input__inner {
//width: 90px !important; //width: 90px !important;
height: 24px !important; height: 24px !important;
background: #021c49 !important; color: #a0cdff;
border: 1px solid #125aaa !important; border: 1px solid #125aaa !important;
border-radius: 12px !important; border-radius: 12px !important;
color: #a0cdff; background: #021c49 !important;
} }
/deep/ .el-input__icon { /deep/ .el-input__icon {
@ -122,18 +133,19 @@ export default {
.more { .more {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #a0cdff;
cursor: pointer; cursor: pointer;
color: #a0cdff;
} }
.bgImg { .bgImg {
margin-top: 5px;
background: url('@/assets/images/shuju/overview/box-bg.png') no-repeat; background: url('@/assets/images/shuju/overview/box-bg.png') no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
margin-top: 5px;
} }
::v-deep .date-current-weiyi { ::v-deep .date-current-weiyi {
background: rgba(3, 19, 51, 0.9);
border-color: #006cff; border-color: #006cff;
background: rgba(3, 19, 51, 0.9);
box-shadow: inset 0px 0px 16px 0px rgba(0, 145, 255, 1); box-shadow: inset 0px 0px 16px 0px rgba(0, 145, 255, 1);
.el-date-picker__header-label { .el-date-picker__header-label {
@ -164,5 +176,9 @@ 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 {
background: none;
opacity: .5;
}
} }
</style> </style>

19
src/views/dataBoard/satisfactionEval/modules/SelfInspectionScore/index.vue

@ -1,33 +1,33 @@
<template> <template>
<div class="table"> <div class="table">
<el-table :data="data" height="290px"> <el-table :data="data" height="290px">
<el-table-column label="社区" prop="number" width="100"></el-table-column> <el-table-column label="社区" prop="agencyName" width="100"></el-table-column>
<el-table-column label="" prop="column1" width="130"> <el-table-column label="" prop="events" width="130">
<template #header> <template #header>
<div>12345热线投诉</div> <div>12345热线投诉</div>
<div>人数</div> <div>人数</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="" prop="column2" width="130"> <el-table-column label="" prop="province" width="130">
<template #header> <template #header>
<div>上级满意度调查</div> <div>上级满意度调查</div>
<div>不满意人数</div> <div>不满意人数</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="" prop="column3" width="130"> <el-table-column label="" prop="inspection" width="130">
<template #header> <template #header>
<div>社区自查不满意</div> <div>社区自查不满意</div>
<div>人数</div> <div>人数</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="社区自查得分" prop="column3" width="120"></el-table-column> <el-table-column label="社区自查得分" prop="score" width="120"></el-table-column>
</el-table> </el-table>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
name: "index", name: "SelfInspectionScore",
data() { data() {
return { return {
data: [] data: []
@ -55,6 +55,13 @@ export default {
methods: { methods: {
getList() { getList() {
console.log(this.date) console.log(this.date)
let params = {
time: this.date,
agencyId: this.$store.state.chooseArea.chooseName.orgId
}
this.$http.get('/governance/satisfaction/communitySelfInsp/satisfactionScore?'+this.$paramsFormat(params), params).then(res => {
this.data = res.data.data
})
} }
} }
} }

Loading…
Cancel
Save