master
xy 2 years ago
parent 329516bfd3
commit 36a87c8d82

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

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

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

Loading…
Cancel
Save