|
|
@ -2,7 +2,7 @@ |
|
|
|
<div class="g-main"> |
|
|
|
<div> |
|
|
|
<div class="header"> |
|
|
|
<img src="@/assets/img/AI/助手.png" alt=""> |
|
|
|
<img style="width: 40px; height: 40px;" src="@/assets/img/AI/助手.gif" alt=""> |
|
|
|
<div> |
|
|
|
AI小助手:为您生成了上周的12345政务热线诉求总结 |
|
|
|
<el-button type="text" @click="handelClickShowSummarize">查看</el-button> |
|
|
@ -55,7 +55,7 @@ |
|
|
|
<div class="item2_div"> |
|
|
|
<span class="div_span1">{{ analysisList.resolveRate? analysisList.resolveRate:0}}%</span> |
|
|
|
<div style="display: flex; align-items: center;justify-content:center;"> |
|
|
|
<span class="div_span2">最终解决率</span> |
|
|
|
<span class="div_span2">解决率</span> |
|
|
|
<img style="width: 10px;height: 10px;margin-top: 10px;margin-left: 5px;" src="./img/describe.png"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -65,7 +65,7 @@ |
|
|
|
<div class="item2_div"> |
|
|
|
<span class="div_span1">{{ analysisList.satisfiedRate? analysisList.satisfiedRate:0}}%</span> |
|
|
|
<div style="display: flex; align-items: center;justify-content:center;"> |
|
|
|
<span class="div_span2">最终满意率</span> |
|
|
|
<span class="div_span2">满意率</span> |
|
|
|
<img style="width: 10px;height: 10px;margin-top: 10px;margin-left: 5px;" src="./img/describe.png"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -536,14 +536,15 @@ export default { |
|
|
|
showEventList:false, |
|
|
|
selectedIndex: 0, |
|
|
|
titleList: [ |
|
|
|
{ |
|
|
|
value: 1, |
|
|
|
label: '社区办件情况' |
|
|
|
}, |
|
|
|
{ |
|
|
|
value: 0, |
|
|
|
label: '部门科室办件情况' |
|
|
|
}, |
|
|
|
{ |
|
|
|
value: 1, |
|
|
|
label: '社区办件情况' |
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
starttime: "", |
|
|
|
endtime: "", |
|
|
@ -872,7 +873,6 @@ export default { |
|
|
|
|
|
|
|
this.user = this.$store.state.user; |
|
|
|
this.agencyId = this.user.agencyId; |
|
|
|
|
|
|
|
this.getLastMonthRange() |
|
|
|
this.getOrgData(); |
|
|
|
this.agencyLevel = localStorage.getItem("level", this.orgData.level); |
|
|
@ -880,7 +880,8 @@ export default { |
|
|
|
// this.initEcharts(); |
|
|
|
await this.sysAdvancedPage() |
|
|
|
await this.EventCategoryAnalysis(); |
|
|
|
await this.EventCate(); |
|
|
|
this.EventCate(); |
|
|
|
this.getCommunityList() |
|
|
|
this.getCategoryTree(); |
|
|
|
|
|
|
|
|
|
|
@ -956,7 +957,7 @@ export default { |
|
|
|
tooltip: { trigger: "axis" }, |
|
|
|
legend: { |
|
|
|
bottom: -5, |
|
|
|
data: ["响应率", "按时办结率", "最终解决率", "最终满意率"], |
|
|
|
data: ["响应率", "按时办结率", "解决率", "满意率"], |
|
|
|
}, |
|
|
|
xAxis: { |
|
|
|
type: "category", |
|
|
@ -972,8 +973,8 @@ export default { |
|
|
|
name: "响应率", type: "bar", barWidth: 20, data: responseRate, color: "#3B82F6" |
|
|
|
}, |
|
|
|
{ name: "按时办结率", type: "bar", barWidth: 20, data: returnRate, color: "#22C55E" }, |
|
|
|
{ name: "最终解决率", type: "bar", barWidth: 20, data: resolveRate, color: "#FACC15" }, |
|
|
|
{ name: "最终满意率", type: "bar", barWidth: 20, data: satisfiedRate, color: "#FB923C" }, |
|
|
|
{ name: "解决率", type: "bar", barWidth: 20, data: resolveRate, color: "#FACC15" }, |
|
|
|
{ name: "满意率", type: "bar", barWidth: 20, data: satisfiedRate, color: "#FB923C" }, |
|
|
|
], |
|
|
|
grid: { left: "3%", right: "4%", bottom: "10%", containLabel: true }, |
|
|
|
dataZoom: [ |
|
|
@ -1249,7 +1250,7 @@ export default { |
|
|
|
}, |
|
|
|
//对部门进行统计 |
|
|
|
async EventCate() { |
|
|
|
const url = "/governance/icEvent/EventCategoryAnalysis"; |
|
|
|
const url = "/governance/icEvent/partEventCategoryAnalysis"; |
|
|
|
// 对社区,部门进行更改 |
|
|
|
if (this.formData.queryDateStart && this.formData.queryDateEnd) { |
|
|
|
this.starttime = this.formData.queryDateStart, |
|
|
@ -1262,22 +1263,47 @@ export default { |
|
|
|
let param = { |
|
|
|
startDate: this.starttime, |
|
|
|
endDate: this.endtime, |
|
|
|
usableFlag: true |
|
|
|
deptFlag: false |
|
|
|
} |
|
|
|
const { data, code, msg } = await requestPost(url, param); |
|
|
|
if (code === 0) { |
|
|
|
data.map(item => { |
|
|
|
if (item.assignOrgType == "duty") { |
|
|
|
this.departmentList.push(item) |
|
|
|
} else { |
|
|
|
this.communityList.push(item) |
|
|
|
} |
|
|
|
}) |
|
|
|
this.departmentList=data |
|
|
|
// data.map(item => { |
|
|
|
// if (item.assignOrgType == "duty") { |
|
|
|
// this.departmentList.push(item) |
|
|
|
// } else { |
|
|
|
// this.communityList.push(item) |
|
|
|
// } |
|
|
|
// }) |
|
|
|
this.initChart(); |
|
|
|
} else { |
|
|
|
this.$message.error(msg); |
|
|
|
} |
|
|
|
}, |
|
|
|
async getCommunityList() { |
|
|
|
const url = "/governance/icEvent/partEventCategoryAnalysis"; |
|
|
|
// 对社区,部门进行更改 |
|
|
|
if (this.formData.queryDateStart && this.formData.queryDateEnd) { |
|
|
|
this.starttime = this.formData.queryDateStart, |
|
|
|
this.endtime = this.formData.queryDateEnd |
|
|
|
} else { |
|
|
|
{ |
|
|
|
this.getLastMonthRange() |
|
|
|
} |
|
|
|
} |
|
|
|
let param = { |
|
|
|
startDate: this.starttime, |
|
|
|
endDate: this.endtime, |
|
|
|
deptFlag: true |
|
|
|
} |
|
|
|
const { data, code, msg } = await requestPost(url, param); |
|
|
|
if (code === 0) { |
|
|
|
this.communityList=data |
|
|
|
// this.initChart(); |
|
|
|
} else { |
|
|
|
this.$message.error(msg); |
|
|
|
} |
|
|
|
}, |
|
|
|
flattenTree(tree, levelKeys = []) { |
|
|
|
let result = []; |
|
|
|
console.log(tree, "tree"); |
|
|
|