tanghaolin
2023-01-10 4ca3a6152894f2deb4a04f6bd784ed692af08da5
修改历史评价图表
已修改3个文件
123 ■■■■■ 文件已修改
src/views/main/istation/health/compreEvaluate.vue 40 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/main/istation/health/historyEvaluation.vue 81 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/main/istation/health/realTimeEvaluation.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/main/istation/health/compreEvaluate.vue
@@ -75,7 +75,7 @@
                    <fks-table 
                        border
                        max-height="700"
                        :data="TableData"
                        :data="evaluationTableData"
                        border
                        lazy
                        style="width: 100%">
@@ -98,12 +98,17 @@
                            label="型号">
                        </fks-table-column>
                        <fks-table-column
                            prop="status"
                            label="状态">
                        </fks-table-column><fks-table-column
                            prop="evaluationModel"
                            label="评价模型">
                            prop="importantce"
                            label="重要程度">
                        </fks-table-column>
                        <fks-table-column
                            prop="SOH"
                            label="劣化程度">
                        </fks-table-column>
                       <fks-table-column
                            prop="desc"
                            label="说明">
                        </fks-table-column>
                        <fks-table-column label="操作">
                            <template slot-scope="scope">
                                <fks-button
@@ -283,6 +288,29 @@
                 status:"在用",
                 evaluationModel:"",
            },
        ],
             evaluationTableData:[
                {
                 id:1,
                 name:"1#泵",
                 category:"泵",
                 norms:"",
                 model:"",
                 importantce:"1级",
                 SOH:"1级",
                 desc:""
            },
            {
                 id:2,
                 name:"1#电机",
                 category:"电机",
                 norms:"",
                 model:"",
                 importantce:"1级",
                 SOH:"1级",
                 desc:""
            },
        ]
    }
    },
src/views/main/istation/health/historyEvaluation.vue
@@ -157,7 +157,64 @@
                children: "children",
                label: "label",
            },
            showTableData:[]
            chartData:[
              {
                DataTime: "2023-01-05 23:54:52",
                DataValue: "10",
              },
              {
                DataTime: "2023-01-04 22:30:52",
                DataValue: "11",
              },{
                DataTime: "2023-01-02 21:50:52",
                DataValue: "13",
              },{
                DataTime: "2023-01-01 20:44:52",
                DataValue: "12",
              },{
                DataTime: "2023-01-02 19:44:52",
                DataValue: "14",
              },{
                DataTime: "2023-01-01 09:04:52",
                DataValue: "16",
              },{
                DataTime: "2023-01-02 07:04:52",
                DataValue: "18",
              },{
                DataTime: "2023-01-03 06:51:52",
                DataValue: "20",
              },{
                DataTime: "2023-01-04 10:14:52",
                DataValue: "21",
              },{
                DataTime: "2023-01-05 20:33:52",
                DataValue: "24",
              },{
                DataTime: "2023-01-05 23:15:52",
                DataValue: "22",
              },{
                DataTime: "2023-01-05 23:54:52",
                DataValue: "22",
              },{
                DataTime: "2023-01-05 03:12:52",
                DataValue: "23",
              },{
                DataTime: "2023-01-05 09:21:52",
                DataValue: "21",
              },{
                DataTime: "2023-01-05 20:48:52",
                DataValue: "15",
              },{
                DataTime: "2023-01-05 19:54:52",
                DataValue: "16",
              },{
                DataTime: "2023-01-05 19:36:52",
                DataValue: "18",
              },{
                DataTime: "2023-01-05 19:22:52",
                DataValue: "15",
              },
            ]
        }
    },
    mounted(){
@@ -176,21 +233,37 @@
        // 初始化chart
       initChart(){
            chartDom = document.getElementById('chartMain')
            let xData = []
            let yData = []
            this.chartData.forEach(item=>{
                xData.push(item.DataTime)
                yData.push(item.DataValue)
            })
            // chartDom.style.height = document.getElementsByClassName("score-status-div")[0].clientHeight + 'px'
            myChart = echarts.init(chartDom);
            option = {
            xAxis: {
                type: 'category',
                boundaryGap: false,
                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
                name: "时间",
                data:xData
            },
            yAxis: {
                type: 'value',
                data:[0,25,50,75,100]
                min:0,
                max:100,
                name: "扣分",
                nameGap: 35,
                nameLocation: "center",
                // boundaryGap: x.boundaryGap,
                scale: true,
                axisLine: {
                show: true,
                },
            },
            series: [
                {
                data: [15, 16, 17, 18, 19, 18, 20,12,13,14,15,11,10,13,14,16,17,18,19,20],
                data: yData,
                type: 'line',
                smooth: true
                }
src/views/main/istation/health/realTimeEvaluation.vue
@@ -317,7 +317,7 @@
                    data: [
                        {
                        value: 0.2,
                        name: '评价分数'
                        name: '扣分'
                        }
                    ]
                    }