Browse Source

房屋地图定位,不满意人群清单跳转居民画像,居民画像为0不显示全部

feature
mk 2 years ago
parent
commit
0f43926792
  1. 6
      src/views/modules/base/community/communityForm.vue
  2. 26
      src/views/modules/portrayal/jumin/cpts/rightBto.vue
  3. 6
      src/views/modules/portrayal/jumin/cpts/xiangshoufuwu.vue
  4. 4
      src/views/modules/portrayal/jumin/index.vue
  5. 13
      src/views/modules/satisfaction/detail/index.vue

6
src/views/modules/base/community/communityForm.vue

@ -238,16 +238,20 @@ export default {
let { latitude, longitude } = this.$store.state.user;
this.formType = type
if (row) {
console.log(row);
this.dataForm = JSON.parse(JSON.stringify(row))
this.dataForm.neighborHoodId = this.dataForm.id
this.neighborHoodId = this.dataForm.neighborHoodId
this.quartersType = this.dataForm.quartersType
this.propertyId = this.dataForm.propertyId
} else {
this.dataForm.latitude = latitude
this.dataForm.longitude = longitude
}
if(!this.dataForm.latitude){
this.dataForm.latitude = latitude
this.dataForm.longitude = longitude
}
// if (!map) {
this.initMap(this.dataForm.latitude, this.dataForm.longitude);
// } else {

26
src/views/modules/portrayal/jumin/cpts/rightBto.vue

@ -1,26 +0,0 @@
<!-- 房屋模块用 -->
<template>
<div class=''>
</div>
</template>
<!-- -->
<script>
export default{
data(){
return{};
},
//
created(){},
//
methods:{},
//
components:{},
//
computed:{},
//
watch:{},
}
</script>
<style lang="less" scoped>
</style>

6
src/views/modules/portrayal/jumin/cpts/xiangshoufuwu.vue

@ -8,7 +8,7 @@
</el-row>
<div class="item-progress">
<b :style="{
width: item.per + '%',
width: (item.per == 'NaN'?0:item.per) + '%',
}"></b>
</div>
</div>
@ -61,11 +61,9 @@ export default {
let total = res.data.reduce((sum, item) => sum + Number(item.classificationNum), 0);
res.data = res.data.map(item => ({
...item,
per: (Number(item.classificationNum) / total * 100).toFixed(2) //
per: (Number(item.classificationNum) / total * 100).toFixed(2) //
}));
this.list = res.data
console.log( res.data);
});
},
},

4
src/views/modules/portrayal/jumin/index.vue

@ -62,7 +62,7 @@ import { requestPost, requestGet } from '@/js/dai/request'
import leftTop from "./cpts/leftTop";
import leftBto from "./cpts/leftBto";
import rightTop from "./cpts/rightTop";
import rightBto from "./cpts/rightBto";
// import rightBto from "./cpts/rightBto";
import resiInfo from "@/views/modules/cpts/resi/info";
import nextTick from "dai-js/tools/nextTick";
import pointsRecord from "./cpts/pointsRecord";
@ -98,7 +98,7 @@ export default {
},
},
//
components: { leftTop, leftBto, resiInfo, rightTop, pointsRecord, rightBto, xiangshoufuwu },
components: { leftTop, leftBto, resiInfo, rightTop, pointsRecord, xiangshoufuwu },
//
computed: {},
//

13
src/views/modules/satisfaction/detail/index.vue

@ -323,8 +323,17 @@ export default {
//
async handleWatch(row) {
this.resiId = row.resiId;
this.showView = true;
// this.resiId = row.resiId;
// this.showView = true;
let { agencyId, gridId, gridName, gender, homeId, homeName, name, resiId } = row
this.$store.dispatch('saveData', { agencyId, gridId, gridName, gender, homeId, homeName, name, resiId });
this.$router.push({ name: 'jumin-huaxiang' });
this.$store.state.contentTabs = this.$store.state.contentTabs.map(item => {
if (item.name === "jumin-huaxiang") {
return { ...item, title: name };
}
return item;
});
},
//

Loading…
Cancel
Save