同步现场代码
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<!-- 综合评估详情 -->
|
||||
<el-dialog draggable title="综合评估详情" v-model="dialogVisible" width="1400px">
|
||||
<el-dialog draggable title="综合评估统计" v-model="dialogVisible" width="1400px">
|
||||
<div>
|
||||
<vxe-table v-bind="defaultAttribute" ref="vxeRef" height="300px" :data="tableData">
|
||||
<vxe-column field="deptName" title="所属区域" />
|
||||
<vxe-column field="deptName" title="地市" />
|
||||
<vxe-column field="assessData" title="综合评估得分" :formatter="formatter" />
|
||||
<vxe-column field="qualifyData" title="指标合格率" :formatter="formatter" />
|
||||
<vxe-colgroup title="各项指标得分">
|
||||
@@ -55,8 +55,8 @@ const open = async (row: any) => {
|
||||
text: '各地市综合评估趋势对比'
|
||||
},
|
||||
xAxis: {
|
||||
name: '(区域)',
|
||||
data: res.data.map((item: any) => item.deptName)
|
||||
name: '时间',
|
||||
data: res.data[0].children.map((item: any) => item.dataTime)
|
||||
},
|
||||
grid: {
|
||||
bottom: '10px'
|
||||
@@ -73,13 +73,10 @@ const open = async (row: any) => {
|
||||
let list: any = []
|
||||
let time: any = []
|
||||
res.data.forEach((item: any, num: any) => {
|
||||
time = []
|
||||
time.push(item.deptName)
|
||||
list.push([])
|
||||
item.children.forEach((val: any, i: any) => {
|
||||
if (num == 0) {
|
||||
list.push([])
|
||||
}
|
||||
time.push(val.dataTime)
|
||||
list[i].push(val.score == 3.14159 ? null : val.score)
|
||||
list[num].push(val.score == 3.14159 ? null : val.score)
|
||||
})
|
||||
})
|
||||
list.forEach((item: any, i: any) => {
|
||||
|
||||
Reference in New Issue
Block a user