master
xy 2 years ago
parent 329516bfd3
commit 36a87c8d82

@ -620,7 +620,7 @@ export default {
prop: i.field, prop: i.field,
label: i.name, label: i.name,
width: i.width, width: i.width,
fixed: i.is_fixed, fixed: i.field === 'biaoti' ? 'left' : 'center',
}, },
linkOb linkOb
); );

@ -73,7 +73,7 @@
<script> <script>
import formType from "@/const/formType" import formType from "@/const/formType"
import { detail } from "@/api/reception" import { detail } from "@/api/reception"
import {download} from "@/utils/downloadRequest"; import { download } from "@/utils/downloadRequest";
export default { export default {
data() { data() {
return { return {

@ -85,10 +85,16 @@ export default {
this.chart = echarts.init(document.getElementById('line-chart')) this.chart = echarts.init(document.getElementById('line-chart'))
let xAxis = []; let xAxis = [];
for (let key in this.data) { for (let key in this.data) {
xAxis.push(this.data[key][0]?.leixing) xAxis.push(this.data[key][0]?.date)
break
} }
this.chart.setOption( this.chart.setOption(
{ {
tooltip: {
axisPointer: {
type: 'cross'
}
},
xAxis: { xAxis: {
type: 'category', type: 'category',
data: xAxis data: xAxis
@ -100,9 +106,9 @@ export default {
let data = [] let data = []
for (let key in this.data) { for (let key in this.data) {
data.push({ data.push({
name: this.data[key][0]?.leixing,
data: this.data[key].map(i => i.total), data: this.data[key].map(i => i.total),
type: 'line', type: 'bar',
smooth: true,
}) })
} }

Loading…
Cancel
Save