|
|
|
@ -28,7 +28,7 @@ export default { |
|
|
|
type: String, |
|
|
|
default: '' |
|
|
|
}, |
|
|
|
searchDate:Array |
|
|
|
searchDate: Array |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
@ -59,7 +59,6 @@ export default { |
|
|
|
this.init(); |
|
|
|
}, |
|
|
|
searchDate() { |
|
|
|
|
|
|
|
this.init(); |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -69,19 +68,19 @@ export default { |
|
|
|
this.getInfo(); |
|
|
|
}, |
|
|
|
async init() { |
|
|
|
await this.getInfo(); |
|
|
|
this.getPie(); |
|
|
|
if (this.orgId) { |
|
|
|
await this.getInfo(); |
|
|
|
this.getPie(); |
|
|
|
} |
|
|
|
}, |
|
|
|
handleClickItem(item) { |
|
|
|
|
|
|
|
let path="" |
|
|
|
if(this.currentTab=="治理事件") |
|
|
|
{ |
|
|
|
path="eventList" |
|
|
|
}else if(this.currentTab=="安全隐患"){ |
|
|
|
path="hiddenDangerList" |
|
|
|
}else{ |
|
|
|
path="specialCategoryList" |
|
|
|
let path = ''; |
|
|
|
if (this.currentTab == '治理事件') { |
|
|
|
path = 'eventList'; |
|
|
|
} else if (this.currentTab == '安全隐患') { |
|
|
|
path = 'hiddenDangerList'; |
|
|
|
} else { |
|
|
|
path = 'specialCategoryList'; |
|
|
|
} |
|
|
|
this.getInfo(); |
|
|
|
this.$router.push({ |
|
|
|
@ -111,7 +110,9 @@ export default { |
|
|
|
url, |
|
|
|
{ |
|
|
|
queryParam: { |
|
|
|
org_id: this.orgId |
|
|
|
org_id: this.orgId, |
|
|
|
start_date: this.searchDate[0], |
|
|
|
end_date: this.searchDate[1] |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
@ -120,7 +121,6 @@ export default { |
|
|
|
); |
|
|
|
this.$refs.pieChart.hideLoading(); |
|
|
|
if (code === 0) { |
|
|
|
console.log("data",data) |
|
|
|
if (data && Array.isArray(data) && data.length > 0) { |
|
|
|
let info = data[0]; |
|
|
|
this.info = { |
|
|
|
|