|
|
@ -278,7 +278,7 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
maxTableHeight () { |
|
|
|
maxTableHeight() { |
|
|
|
// return this.clientHeight - 450; |
|
|
|
return 420; |
|
|
|
}, |
|
|
@ -314,14 +314,11 @@ export default { |
|
|
|
initChart() { |
|
|
|
this.$http.get('/governance/satisfactionOverview/notSatisfactionTrend').then(({data: {data}}) => { |
|
|
|
this.myChart = echarts.init(document.getElementById('my_chart')); |
|
|
|
let series = [] |
|
|
|
console.log(data,'datadatadata') |
|
|
|
data.series.forEach(item => { |
|
|
|
series.push({ |
|
|
|
let series = data.series.map((item, index) => { |
|
|
|
return { |
|
|
|
...item, |
|
|
|
type: 'line', |
|
|
|
stack: 'Total', |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
let option = { |
|
|
|
tooltip: { |
|
|
@ -361,15 +358,15 @@ export default { |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
handleWindowResize () { |
|
|
|
handleWindowResize() { |
|
|
|
if (this.myChart) { |
|
|
|
this.myChart.resize(); |
|
|
|
} |
|
|
|
}, |
|
|
|
searchDataTab (str) { |
|
|
|
searchDataTab(str) { |
|
|
|
this.searchData.type = str; |
|
|
|
}, |
|
|
|
handleClickCategory (item) { |
|
|
|
handleClickCategory(item) { |
|
|
|
this.$router.push({ |
|
|
|
name: "base-resi", |
|
|
|
params: { |
|
|
@ -378,18 +375,18 @@ export default { |
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
async readClearOne (item) { |
|
|
|
async readClearOne(item) { |
|
|
|
console.log("item", item) |
|
|
|
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) { |
|
|
|
this.getNoticeData() |
|
|
|
} else if (code >= 8000) { |
|
|
|
this.$message.error(msg) |
|
|
|
} |
|
|
|
}, |
|
|
|
handleClickNotice (item) { |
|
|
|
const { msgType, targetId } = item; |
|
|
|
handleClickNotice(item) { |
|
|
|
const {msgType, targetId} = item; |
|
|
|
this.readClearOne(item) |
|
|
|
if (msgType == "community_house") { |
|
|
|
this.$refs.fastcall.showHouseInfo(targetId); |
|
|
@ -398,13 +395,13 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
toNoticePage () { |
|
|
|
toNoticePage() { |
|
|
|
this.$router.push({ |
|
|
|
path: "/main/home-notice", |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
toSearchPage (type, searchKey) { |
|
|
|
toSearchPage(type, searchKey) { |
|
|
|
this.$router.push({ |
|
|
|
path: "/main/shequ-chaxun" |
|
|
|
}); |
|
|
@ -412,9 +409,9 @@ export default { |
|
|
|
localStorage.setItem('homeSearchKey', searchKey) |
|
|
|
}, |
|
|
|
|
|
|
|
handleClickSearchBtn (str) { |
|
|
|
handleClickSearchBtn(str) { |
|
|
|
const { |
|
|
|
searchData: { type, searchKey }, |
|
|
|
searchData: {type, searchKey}, |
|
|
|
} = this; |
|
|
|
if (str) { |
|
|
|
this.toSearchPage(type, searchKey); |
|
|
@ -424,7 +421,7 @@ export default { |
|
|
|
this.toSearchPage(type, searchKey); |
|
|
|
}, |
|
|
|
|
|
|
|
async getApiData () { |
|
|
|
async getApiData() { |
|
|
|
await this.getOrgData(); |
|
|
|
this.getWarningList(); |
|
|
|
this.getZnycList(); |
|
|
@ -433,14 +430,14 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//加载组织数据 |
|
|
|
async getOrgData () { |
|
|
|
async getOrgData() { |
|
|
|
const url = "/gov/org/agency/maporg"; |
|
|
|
let params = { |
|
|
|
orgId: "", |
|
|
|
level: "", |
|
|
|
}; |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, params); |
|
|
|
const {data, code, msg} = await requestPost(url, params); |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
this.orgData = data; |
|
|
@ -450,14 +447,14 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//加载组织数据 |
|
|
|
async getPandectData () { |
|
|
|
async getPandectData() { |
|
|
|
const url = "/actual/base/residentHouseMerge/communityOverview"; |
|
|
|
let params = { |
|
|
|
// orgId: "", |
|
|
|
// level: "", |
|
|
|
}; |
|
|
|
|
|
|
|
const { data, code, msg } = await requestGet(url, params); |
|
|
|
const {data, code, msg} = await requestGet(url, params); |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
if (data) { |
|
|
@ -469,13 +466,13 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//加载组织数据 |
|
|
|
async getNoticeData () { |
|
|
|
async getNoticeData() { |
|
|
|
const url = "/message/intelligentMessage/list"; |
|
|
|
let params = { |
|
|
|
last: "10", |
|
|
|
}; |
|
|
|
|
|
|
|
const { data, code, msg } = await requestGet(url, params); |
|
|
|
const {data, code, msg} = await requestGet(url, params); |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
if (data) { |
|
|
@ -487,7 +484,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//加载组织数据 |
|
|
|
async getWarningList () { |
|
|
|
async getWarningList() { |
|
|
|
const url = "/actual/base/resiCategory/categoryCountList"; |
|
|
|
let params = { |
|
|
|
// id: this.orgData.id, |
|
|
@ -495,7 +492,7 @@ export default { |
|
|
|
}; |
|
|
|
|
|
|
|
this.resiCategory.loading = true; |
|
|
|
const { data, code, msg } = await requestGet(url, params); |
|
|
|
const {data, code, msg} = await requestGet(url, params); |
|
|
|
this.resiCategory.loading = false; |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
@ -507,7 +504,7 @@ export default { |
|
|
|
name: resiCategoryMap[item.categoryName] || "", |
|
|
|
count: item.categoryCount, |
|
|
|
per: parseInt( |
|
|
|
(100 * item.categoryCount) / data.resiCount |
|
|
|
(100 * item.categoryCount) / data.resiCount |
|
|
|
), |
|
|
|
const: "const", |
|
|
|
}; |
|
|
@ -518,7 +515,7 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
//加载智能预测数据 |
|
|
|
async getZnycList () { |
|
|
|
async getZnycList() { |
|
|
|
const url = "/actual/base/resiCategory/intelligentPredictioncategoryCountList"; |
|
|
|
// const url = "/actual/base/resiCategory/categoryCountList"; |
|
|
|
let params = { |
|
|
@ -527,7 +524,7 @@ export default { |
|
|
|
}; |
|
|
|
|
|
|
|
this.znycCategory.loading = true; |
|
|
|
const { data, code, msg } = await requestGet(url, params); |
|
|
|
const {data, code, msg} = await requestGet(url, params); |
|
|
|
this.znycCategory.loading = false; |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|