|
@ -9,149 +9,90 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="tabs"> |
|
|
<div class="tabs"> |
|
|
<div :class="{ 'z-on': searchData.type == 'jumin' }" |
|
|
<div :class="{ 'z-on': searchData.type == 'jumin' }" @click="searchDataTab('jumin')">查居民</div> |
|
|
@click="searchDataTab('jumin')"> |
|
|
<div :class="{ 'z-on': searchData.type == 'fangwu' }" @click="searchDataTab('fangwu')">查房屋</div> |
|
|
查居民 |
|
|
|
|
|
</div> |
|
|
|
|
|
<div :class="{ 'z-on': searchData.type == 'fangwu' }" |
|
|
|
|
|
@click="searchDataTab('fangwu')"> |
|
|
|
|
|
查房屋 |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="search"> |
|
|
<div class="search"> |
|
|
<div class="search-input"> |
|
|
<div class="search-input"> |
|
|
<div class="input"> |
|
|
<div class="input"> |
|
|
<input type="text" |
|
|
<input type="text" :placeholder="typePlaceholder[searchData.type]" v-model="searchData.searchKey" @keyup.enter="handleClickSearchBtn" /> |
|
|
:placeholder="typePlaceholder[searchData.type] |
|
|
|
|
|
" |
|
|
<div class="close-btn" v-if="searchData.searchKey != ''" @click="searchData.searchKey = ''"> |
|
|
v-model="searchData.searchKey" |
|
|
<img src="@/assets/img/shequ/close.png" /> |
|
|
@keyup.enter="handleClickSearchBtn"/> |
|
|
|
|
|
|
|
|
|
|
|
<div class="close-btn" |
|
|
|
|
|
v-if="searchData.searchKey != ''" |
|
|
|
|
|
@click="searchData.searchKey = ''"> |
|
|
|
|
|
<img src="@/assets/img/shequ/close.png"/> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="btn" |
|
|
<div class="btn" @click="handleClickSearchBtn">查一下</div> |
|
|
@click="handleClickSearchBtn"> |
|
|
|
|
|
查一下 |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class=" m-pan m-box"> |
|
|
<div class="m-pan m-box"> |
|
|
<div class="header"> |
|
|
<div class="header"> |
|
|
<img src="@/assets/images/index/title-icon-sqzl.png"/> |
|
|
<img src="@/assets/images/index/title-icon-sqzl.png" /> |
|
|
<span>组织总览</span> |
|
|
<span>组织总览</span> |
|
|
</div> |
|
|
</div> |
|
|
<div class="flex_box"> |
|
|
<div class="flex_box"> |
|
|
<div class="cnt"> |
|
|
<div class="cnt"> |
|
|
<div class="cnt-left"> |
|
|
<div class="cnt-left"> |
|
|
<div class="subtitle"> |
|
|
<div class="subtitle"> |
|
|
<img src="@/assets/images/index/i-sqjj.png"/> |
|
|
<img src="@/assets/images/index/i-sqjj.png" /> |
|
|
<span>组织简介</span> |
|
|
<span>组织简介</span> |
|
|
</div> |
|
|
</div> |
|
|
<p> |
|
|
<p> |
|
|
{{ pandectData.deptName }},<span v-if="pandectData.gridCount">划分为{{ |
|
|
{{ pandectData.deptName }},<span v-if="pandectData.gridCount">划分为{{ pandectData.underCount }}个{{ pandectData.underName }},</span> 现有房屋{{ pandectData.homeCount }}间,自住房屋{{ pandectData.selfStay }}间、出租房屋{{ pandectData.rentOut }}间、闲置房屋{{ pandectData.vacantHouse }}间,现有居民{{ pandectData.resiCount }}户、{{ pandectData.totalResidents }}人,其中常住人口{{ pandectData.permanentResiCount }}人,流动人口{{ pandectData.floatingResiCount }}人,各类群体分布如下: |
|
|
pandectData.underCount |
|
|
|
|
|
}}个{{ |
|
|
|
|
|
pandectData.underName |
|
|
|
|
|
}},</span> 现有房屋{{ pandectData.homeCount }}间,自住房屋{{ |
|
|
|
|
|
pandectData.selfStay |
|
|
|
|
|
}}间、出租房屋{{ |
|
|
|
|
|
pandectData.rentOut |
|
|
|
|
|
}}间、闲置房屋{{ |
|
|
|
|
|
pandectData.vacantHouse |
|
|
|
|
|
}}间,现有居民{{ pandectData.resiCount }}户、{{ |
|
|
|
|
|
pandectData.totalResidents |
|
|
|
|
|
}}人,其中常住人口{{ pandectData.permanentResiCount }}人,流动人口{{ |
|
|
|
|
|
pandectData.floatingResiCount |
|
|
|
|
|
}}人,各类群体分布如下: |
|
|
|
|
|
</p> |
|
|
</p> |
|
|
|
|
|
|
|
|
<div class="subtitle"> |
|
|
<div class="subtitle"> |
|
|
<img src="@/assets/images/index/i-fxjg.png"/> |
|
|
<img src="@/assets/images/index/i-fxjg.png" /> |
|
|
<span>分析结果</span> |
|
|
<span>分析结果</span> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<p class="hint" |
|
|
<p class="hint" v-if="resiCategory.list.length > 0"> |
|
|
v-if="resiCategory.list.length > 0"> |
|
|
|
|
|
根据数据分析结果,建议重点关注 |
|
|
根据数据分析结果,建议重点关注 |
|
|
<b>{{ resiCategory.list[0].name }}、{{ |
|
|
<b>{{ resiCategory.list[0].name }}、{{ resiCategory.list[1].name }}、{{ resiCategory.list[2].name }}</b> |
|
|
resiCategory.list[1].name |
|
|
|
|
|
}}、{{ resiCategory.list[2].name }}</b> |
|
|
|
|
|
三类群体,开展相关的社区服务和活动。 |
|
|
三类群体,开展相关的社区服务和活动。 |
|
|
</p> |
|
|
</p> |
|
|
</div> |
|
|
</div> |
|
|
<el-tabs v-model="activeName" |
|
|
<el-tabs v-model="activeName" style="width: calc(100% - 240px - 40px); margin-left: auto"> |
|
|
style="width: calc(100% - 240px - 40px);margin-left: auto;"> |
|
|
<el-tab-pane label="居民分类统计" name="resi"> |
|
|
<el-tab-pane label="居民分类统计" |
|
|
|
|
|
name="resi"> |
|
|
|
|
|
<div class="cnt-right"> |
|
|
<div class="cnt-right"> |
|
|
<div class="list"> |
|
|
<div class="list"> |
|
|
<div class="item" |
|
|
<div class="item" @click="handleClickCategory(item)" :key="item.code" v-for="(item, index) in resiCategory.list"> |
|
|
@click="handleClickCategory(item)" |
|
|
<div>{{ ("0" + (index + 1)).substr(-2) }}.</div> |
|
|
:key="item.code" |
|
|
|
|
|
v-for="( |
|
|
|
|
|
item, index |
|
|
|
|
|
) in resiCategory.list"> |
|
|
|
|
|
<div> |
|
|
|
|
|
{{ |
|
|
|
|
|
("0" + (index + 1)).substr(-2) |
|
|
|
|
|
}}. |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="item-name"> |
|
|
<div class="item-name"> |
|
|
{{ item.name }} |
|
|
{{ item.name }} |
|
|
</div> |
|
|
</div> |
|
|
<div class="item-div"></div> |
|
|
<div class="item-div"></div> |
|
|
<div class="item-count"> |
|
|
<div class="item-count">{{ item.count }}人</div> |
|
|
{{ item.count }}人 |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="item-progress"> |
|
|
<div class="item-progress"> |
|
|
<b :style="{ |
|
|
<b |
|
|
width: item.per + '%', |
|
|
:style="{ |
|
|
}"></b> |
|
|
width: item.per + '%', |
|
|
</div> |
|
|
}"></b> |
|
|
<div class="item-per"> |
|
|
|
|
|
{{ item.per }} % |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="item-per">{{ item.per }} %</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</el-tab-pane> |
|
|
</el-tab-pane> |
|
|
<el-tab-pane label="智能预测" |
|
|
<el-tab-pane label="智能预测" name="zhineng"> |
|
|
name="zhineng"> |
|
|
|
|
|
<div class="cnt-right"> |
|
|
<div class="cnt-right"> |
|
|
<div class="list"> |
|
|
<div class="list"> |
|
|
<div class="item" |
|
|
<div class="item" :key="item.code" v-for="(item, index) in znycCategory.list"> |
|
|
:key="item.code" |
|
|
<div>{{ ("0" + (index + 1)).substr(-2) }}.</div> |
|
|
v-for="( |
|
|
|
|
|
item, index |
|
|
|
|
|
) in znycCategory.list"> |
|
|
|
|
|
<div> |
|
|
|
|
|
{{ |
|
|
|
|
|
("0" + (index + 1)).substr(-2) |
|
|
|
|
|
}}. |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="item-name"> |
|
|
<div class="item-name"> |
|
|
{{ item.name }} |
|
|
{{ item.name }} |
|
|
</div> |
|
|
</div> |
|
|
<div class="item-div"></div> |
|
|
<div class="item-div"></div> |
|
|
<div class="item-count"> |
|
|
<div class="item-count">{{ item.count }}人</div> |
|
|
{{ item.count }}人 |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="item-progress"> |
|
|
<div class="item-progress"> |
|
|
<b :style="{ |
|
|
<b |
|
|
width: item.per + '%', |
|
|
:style="{ |
|
|
}"></b> |
|
|
width: item.per + '%', |
|
|
</div> |
|
|
}"></b> |
|
|
<div class="item-per"> |
|
|
|
|
|
{{ item.per }} % |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="item-per">{{ item.per }} %</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -164,23 +105,15 @@ |
|
|
<div class="g-row-right"> |
|
|
<div class="g-row-right"> |
|
|
<div class="m-box m-tx"> |
|
|
<div class="m-box m-tx"> |
|
|
<div class="header"> |
|
|
<div class="header"> |
|
|
<img src="@/assets/images/index/title-icon-zntx.png"/> |
|
|
<img src="@/assets/images/index/title-icon-zntx.png" /> |
|
|
<span>智能提醒</span> |
|
|
<span>智能提醒</span> |
|
|
</div> |
|
|
</div> |
|
|
<div class="more" |
|
|
<div class="more" @click="toNoticePage">更多></div> |
|
|
@click="toNoticePage">更多> |
|
|
<div class="cnt" v-if="noticeData.length > 0"> |
|
|
</div> |
|
|
<div @click="handleClickNotice(item)" class="item" :key="'notice' + item.targetId + index" v-for="(item, index) in noticeData"> |
|
|
<div class="cnt" |
|
|
|
|
|
v-if="noticeData.length > 0"> |
|
|
|
|
|
<div @click="handleClickNotice(item)" |
|
|
|
|
|
class="item" |
|
|
|
|
|
:key="'notice' + item.targetId + index" |
|
|
|
|
|
v-for="(item, index) in noticeData"> |
|
|
|
|
|
<div class="item_left"> |
|
|
<div class="item_left"> |
|
|
<i class="i-tag" |
|
|
<i class="i-tag" v-if="item.readFlag == 1">已读</i> |
|
|
v-if="item.readFlag == 1">已读</i> |
|
|
<i class="i-tag" v-else>未读</i> |
|
|
<i class="i-tag" |
|
|
|
|
|
v-else>未读</i> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
<div class="item_right"> |
|
|
<div class="item_right"> |
|
|
<div class="item-date"> |
|
|
<div class="item-date"> |
|
@ -193,10 +126,9 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="cnt" |
|
|
<div class="cnt" v-else> |
|
|
v-else> |
|
|
|
|
|
<div class="empty"> |
|
|
<div class="empty"> |
|
|
<img src="~@/assets/images/shuju/renfang/index/empty.png"/> |
|
|
<img src="~@/assets/images/shuju/renfang/index/empty.png" /> |
|
|
<span>暂无提醒~</span> |
|
|
<span>暂无提醒~</span> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -204,31 +136,30 @@ |
|
|
<div class="m-box m-tb"> |
|
|
<div class="m-box m-tb"> |
|
|
<div class="wrap"> |
|
|
<div class="wrap"> |
|
|
<div class="header"> |
|
|
<div class="header"> |
|
|
<img src="@/assets/images/index/title-icon-zntb.png"/> |
|
|
<img src="@/assets/images/index/title-icon-zntb.png" /> |
|
|
<span>不满意事项月度趋势分析</span> |
|
|
<span>不满意事项月度趋势分析</span> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<!-- <div class="more">更多></div> --> |
|
|
<!-- <div class="more">更多></div> --> |
|
|
<div class="cnt"> |
|
|
<div class="cnt"> |
|
|
<div id="my_chart" |
|
|
<div id="my_chart" style="width: 100%; height: 230px; position: relative; top: -10px"></div> |
|
|
style="width: 100%;height: 230px; position: relative;top:-10px"></div> |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<fastcall ref="fastcall"/> |
|
|
<fastcall ref="fastcall" /> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
<script> |
|
|
<script> |
|
|
import {requestPost, requestGet} from "@/js/dai/request"; |
|
|
import { requestPost, requestGet } from "@/js/dai/request"; |
|
|
import resiCategoryMap from "@/views/business/resi-category-map.js"; |
|
|
import resiCategoryMap from "@/views/business/resi-category-map.js"; |
|
|
import {mapGetters} from "vuex"; |
|
|
import { mapGetters } from "vuex"; |
|
|
import nextTick from "dai-js/tools/nextTick"; |
|
|
import nextTick from "dai-js/tools/nextTick"; |
|
|
import fastcall from "@/views/modules/cpts/fastcall"; |
|
|
import fastcall from "@/views/modules/cpts/fastcall"; |
|
|
import * as echarts from 'echarts'; |
|
|
import * as echarts from "echarts"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
components: {fastcall}, |
|
|
components: { fastcall }, |
|
|
|
|
|
|
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -272,10 +203,10 @@ export default { |
|
|
|
|
|
|
|
|
noticeData: [], |
|
|
noticeData: [], |
|
|
|
|
|
|
|
|
activeName: 'resi', |
|
|
activeName: "resi", |
|
|
|
|
|
|
|
|
myChart: {} |
|
|
myChart: {}, |
|
|
} |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
|
maxTableHeight() { |
|
|
maxTableHeight() { |
|
@ -303,40 +234,37 @@ export default { |
|
|
mounted() { |
|
|
mounted() { |
|
|
this.getApiData(); |
|
|
this.getApiData(); |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
this.initChart() |
|
|
this.initChart(); |
|
|
}) |
|
|
}); |
|
|
console.log( |
|
|
console.log("dynamicMenuRoutes----------------------------", this.$store.state.sidebarMenuList); |
|
|
"dynamicMenuRoutes----------------------------", |
|
|
|
|
|
this.$store.state.sidebarMenuList |
|
|
|
|
|
); |
|
|
|
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
initChart() { |
|
|
initChart() { |
|
|
this.$http.get('/governance/satisfactionOverview/notSatisfactionTrend').then(({data: {data}}) => { |
|
|
this.$http.get("/governance/satisfactionOverview/notSatisfactionTrend").then(({ data: { data } }) => { |
|
|
this.myChart = echarts.init(document.getElementById('my_chart')); |
|
|
this.myChart = echarts.init(document.getElementById("my_chart")); |
|
|
let series = data.series.map((item, index) => { |
|
|
let series = data.series.map((item, index) => { |
|
|
return { |
|
|
return { |
|
|
...item, |
|
|
...item, |
|
|
type: 'line', |
|
|
type: "line", |
|
|
} |
|
|
}; |
|
|
}) |
|
|
}); |
|
|
let option = { |
|
|
let option = { |
|
|
tooltip: { |
|
|
tooltip: { |
|
|
trigger: 'axis' |
|
|
trigger: "axis", |
|
|
}, |
|
|
}, |
|
|
legend: { |
|
|
legend: { |
|
|
data: data.series.map(item => item.name), |
|
|
data: data.series.map((item) => item.name), |
|
|
bottom: '10%', |
|
|
bottom: "10%", |
|
|
icon: 'rect', |
|
|
icon: "rect", |
|
|
itemWidth: 20, |
|
|
itemWidth: 20, |
|
|
itemHeight: 5, |
|
|
itemHeight: 5, |
|
|
itemGap: 20, |
|
|
itemGap: 20, |
|
|
}, |
|
|
}, |
|
|
grid: { |
|
|
grid: { |
|
|
left: '3%', |
|
|
left: "3%", |
|
|
right: '4%', |
|
|
right: "4%", |
|
|
bottom: '25%', |
|
|
bottom: "25%", |
|
|
containLabel: true |
|
|
containLabel: true, |
|
|
}, |
|
|
}, |
|
|
toolbox: { |
|
|
toolbox: { |
|
|
// feature: { |
|
|
// feature: { |
|
@ -344,19 +272,18 @@ export default { |
|
|
// } |
|
|
// } |
|
|
}, |
|
|
}, |
|
|
xAxis: { |
|
|
xAxis: { |
|
|
type: 'category', |
|
|
type: "category", |
|
|
boundaryGap: false, |
|
|
boundaryGap: false, |
|
|
data: data.monthTimes.map(item => this.$moment(item).format('M') + '月') |
|
|
data: data.monthTimes.map((item) => this.$moment(item).format("M") + "月"), |
|
|
}, |
|
|
}, |
|
|
yAxis: { |
|
|
yAxis: { |
|
|
type: 'value' |
|
|
type: "value", |
|
|
}, |
|
|
}, |
|
|
series |
|
|
series, |
|
|
} |
|
|
}; |
|
|
this.myChart.setOption(option, true) |
|
|
this.myChart.setOption(option, true); |
|
|
window.addEventListener('resize', this.handleWindowResize); |
|
|
window.addEventListener("resize", this.handleWindowResize); |
|
|
}) |
|
|
}); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
handleWindowResize() { |
|
|
handleWindowResize() { |
|
|
if (this.myChart) { |
|
|
if (this.myChart) { |
|
@ -370,24 +297,23 @@ export default { |
|
|
this.$router.push({ |
|
|
this.$router.push({ |
|
|
name: "base-resi", |
|
|
name: "base-resi", |
|
|
params: { |
|
|
params: { |
|
|
category: item.code |
|
|
category: item.code, |
|
|
} |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
async readClearOne(item) { |
|
|
async readClearOne(item) { |
|
|
console.log("item", item) |
|
|
console.log("item", item); |
|
|
const url = `/message/intelligentMessage/msg/clearOne/?msgId=${item.id}` |
|
|
const url = `/message/intelligentMessage/msg/clearOne/?msgId=${item.id}`; |
|
|
const {data, code, msg} = await requestPost(url) |
|
|
const { data, code, msg } = await requestPost(url); |
|
|
if (code == 0) { |
|
|
if (code == 0) { |
|
|
this.getNoticeData() |
|
|
this.getNoticeData(); |
|
|
} else if (code >= 8000) { |
|
|
} else if (code >= 8000) { |
|
|
this.$message.error(msg) |
|
|
this.$message.error(msg); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
handleClickNotice(item) { |
|
|
handleClickNotice(item) { |
|
|
const {msgType, targetId} = item; |
|
|
const { msgType, targetId } = item; |
|
|
this.readClearOne(item) |
|
|
this.readClearOne(item); |
|
|
if (msgType == "community_house") { |
|
|
if (msgType == "community_house") { |
|
|
this.$refs.fastcall.showHouseInfo(targetId); |
|
|
this.$refs.fastcall.showHouseInfo(targetId); |
|
|
} else if (msgType == "resident_base_info") { |
|
|
} else if (msgType == "resident_base_info") { |
|
@ -403,19 +329,19 @@ export default { |
|
|
|
|
|
|
|
|
toSearchPage(type, searchKey) { |
|
|
toSearchPage(type, searchKey) { |
|
|
this.$router.push({ |
|
|
this.$router.push({ |
|
|
path: "/main/shequ-chaxun" |
|
|
path: "/main/shequ-chaxun", |
|
|
}); |
|
|
}); |
|
|
localStorage.setItem('homeSearchType', type) |
|
|
localStorage.setItem("homeSearchType", type); |
|
|
localStorage.setItem('homeSearchKey', searchKey) |
|
|
localStorage.setItem("homeSearchKey", searchKey); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
handleClickSearchBtn(str) { |
|
|
handleClickSearchBtn(str) { |
|
|
const { |
|
|
const { |
|
|
searchData: {type, searchKey}, |
|
|
searchData: { type, searchKey }, |
|
|
} = this; |
|
|
} = this; |
|
|
if (str) { |
|
|
if (str) { |
|
|
this.toSearchPage(type, searchKey); |
|
|
this.toSearchPage(type, searchKey); |
|
|
return |
|
|
return; |
|
|
} |
|
|
} |
|
|
if (!searchKey) return this.$message.error("请输入搜索条件"); |
|
|
if (!searchKey) return this.$message.error("请输入搜索条件"); |
|
|
this.toSearchPage(type, searchKey); |
|
|
this.toSearchPage(type, searchKey); |
|
@ -437,7 +363,7 @@ export default { |
|
|
level: "", |
|
|
level: "", |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
const {data, code, msg} = await requestPost(url, params); |
|
|
const { data, code, msg } = await requestPost(url, params); |
|
|
|
|
|
|
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
|
this.orgData = data; |
|
|
this.orgData = data; |
|
@ -454,7 +380,7 @@ export default { |
|
|
// level: "", |
|
|
// level: "", |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
const {data, code, msg} = await requestGet(url, params); |
|
|
const { data, code, msg } = await requestGet(url, params); |
|
|
|
|
|
|
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
|
if (data) { |
|
|
if (data) { |
|
@ -472,7 +398,7 @@ export default { |
|
|
last: "10", |
|
|
last: "10", |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
const {data, code, msg} = await requestGet(url, params); |
|
|
const { data, code, msg } = await requestGet(url, params); |
|
|
|
|
|
|
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
|
if (data) { |
|
|
if (data) { |
|
@ -492,7 +418,7 @@ export default { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
this.resiCategory.loading = true; |
|
|
this.resiCategory.loading = true; |
|
|
const {data, code, msg} = await requestGet(url, params); |
|
|
const { data, code, msg } = await requestGet(url, params); |
|
|
this.resiCategory.loading = false; |
|
|
this.resiCategory.loading = false; |
|
|
|
|
|
|
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
@ -503,9 +429,7 @@ export default { |
|
|
code: item.categoryName, |
|
|
code: item.categoryName, |
|
|
name: resiCategoryMap[item.categoryName] || "", |
|
|
name: resiCategoryMap[item.categoryName] || "", |
|
|
count: item.categoryCount, |
|
|
count: item.categoryCount, |
|
|
per: parseInt( |
|
|
per: ((100 * item.categoryCount) / data.resiCount).toFixed(0), |
|
|
(100 * item.categoryCount) / data.resiCount |
|
|
|
|
|
), |
|
|
|
|
|
const: "const", |
|
|
const: "const", |
|
|
}; |
|
|
}; |
|
|
}); |
|
|
}); |
|
@ -524,7 +448,7 @@ export default { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
this.znycCategory.loading = true; |
|
|
this.znycCategory.loading = true; |
|
|
const {data, code, msg} = await requestGet(url, params); |
|
|
const { data, code, msg } = await requestGet(url, params); |
|
|
this.znycCategory.loading = false; |
|
|
this.znycCategory.loading = false; |
|
|
|
|
|
|
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
|