1
lzhe
2024-09-30 1988d77f4df3c01a9137303e0c959b3442c14377
src/views/mdc/components/recordChartsByDate.vue
@@ -14,16 +14,8 @@
import * as echarts from 'echarts';
export default {
    components: {saveDialog},
    props: ['achievements','date','workstationInfoList'],
    props: ['achievements','date','workstationInfoList','humanFeedback'],
    watch: {
        date(val) {
            this.current = "1";
            this.getCharts();
        },
        workstationInfoList(val) {
            this.current = "1";
            this.getCharts();
        }
    },
    data() {
        return {
@@ -93,9 +85,10 @@
            return stauts;
        },
        getCharts() {
            if(this.date == "") return;
            var obj = {
                date: this.date,
                humanFeedback: true,
                humanFeedback: this.humanFeedback,
                machineFeedback: true,
                workstationInfoList: this.workstationInfoList
            }
@@ -107,6 +100,7 @@
                    res.data.records.reverse();
                    res.data.records.forEach((item,index)=> {
                        yAxisData.push(item.workstationInfo.name);
                        if(item.statusRecordList == null) item.statusRecordList = [];
                        //计算开始时间,显示时间
                        item.statusRecordList.forEach(item1=> {
                            var initstart = item1.startTime.split(" ")[0];  //根据日期计算差值