Browse Source

修复社区查询饼图显示问题

shibei_master
dai 4 years ago
parent
commit
0398ebbbc2
  1. BIN
      src/assets/img/shuju/measure/qydw.png
  2. 4
      src/assets/scss/modules/search.scss
  3. 2
      src/router/index.js
  4. 2
      src/views/modules/shequ/index.vue
  5. 6
      src/views/modules/visual/heart/index.vue
  6. 36
      src/views/modules/visual/warning/components/screen-table/index.vue
  7. 2
      src/views/modules/visual/warning/index.vue

BIN
src/assets/img/shuju/measure/qydw.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

4
src/assets/scss/modules/search.scss

@ -207,10 +207,10 @@
.cnt {
display: flex;
.chart {
width: 500px;
width: 520px;
}
.tb {
width: calc(100% - 500px);
width: calc(100% - 520px);
}
}
}

2
src/router/index.js

@ -52,7 +52,7 @@ export const moduleRoutes = {
component: () => import("@/views/main"),
name: "main",
redirect: {
path: "/main/base-resi",
path: "/main/shequ-index",
},
meta: {
title: "主入口布局",

2
src/views/modules/shequ/index.vue

@ -378,7 +378,7 @@
<div class="cnt">
<div class="chart">
<pan-chart
:width="480"
:width="520"
:height="420"
v-if="warningChart.loading"
:total="warningChart.total"

6
src/views/modules/visual/heart/index.vue

@ -229,7 +229,11 @@ export default {
//
async getTb1() {
const { agencyId, areaCode } = this;
const url = "/data/report/screen/index/advancedbranchrank";
const url =
localStorage.getItem("customerId") == "b09527201c4409e19d1dbc5e3c3429a1"
? "/data/report/screen/index/advancedbranchrank-shibei"
: "/data/report/screen/index/advancedbranchrank";
let params = {
agencyId,
areaCode,

36
src/views/modules/visual/warning/components/screen-table/index.vue

@ -23,23 +23,32 @@
:key="indexs"
:style="tableContentStyle[indexs]"
>
<span @click="toUserInfo(item)">{{ item }}</span>
<div v-if="Array.isArray(item)">
<span
v-show="rIndex < 1"
:key="resi.userId"
v-for="(resi, rIndex) in item"
>
{{ rIndex != 0 ? "、" : "" }}
<a @click="toUserInfo(resi.userId)">{{ resi.residentName }}</a>
</span>
</div>
<span v-else>{{ item }}</span>
<span
v-if="indexs + 1 == value.length && item.length > 8"
v-if="indexs + 1 == value.length && item.length > 1"
class="more"
@click.stop="onClickMorePop(index)"
ref="morePop"
>
更多>
<span
class="more-pop"
@click="toUserInfo(item)"
v-if="visiblePopList[index]"
>
<!-- 李佳琪刘阳赵欣丁一嘉敏李岩何嘉慧
李易峰赵敏何军曲树惠 -->
{{ item }}
</span>
<div class="more-pop" v-if="visiblePopList[index]">
<span :key="resi.userId" v-for="(resi, rIndex) in item">
{{ rIndex != 0 ? "、" : "" }}
<a @click="toUserInfo(resi.userId)">{{
resi.residentName
}}</a>
</span>
</div>
</span>
</div>
</div>
@ -185,7 +194,7 @@ export default {
methods: {
toUserInfo(uid) {
// this.$router.push({ path: `/main-shuju/visual-basicinfo-people/${uid}` });
this.$router.push({ path: `/main-shuju/visual-basicinfo-people/${uid}` });
},
onClickMorePop(index) {
@ -245,6 +254,9 @@ export default {
.td {
text-align: center;
width: calc(100% / 5);
a {
cursor: pointer;
}
.more {
font-size: 18px;
font-weight: 400;

2
src/views/modules/visual/warning/index.vue

@ -133,7 +133,7 @@ export default {
item.gridName,
item.neighborhoodName,
item.buildingName,
item.residentNames ? item.residentNames : "暂无",
item.userList,
]);
});
this.tableData = tableData;

Loading…
Cancel
Save