<template>
    <div class="box" id="pdfDom">
        <div class="searchBar">
            <el-form :inline="true" :model="formInline" class="demo-form-inline">
          <el-row :gutter="1">
            <el-form-item>
              <el-button style="margin-left:20%" type="primary" @click="goReturn">返回</el-button>
            </el-form-item>
            <!-- <el-form-item>
              <el-button style="margin-left:20%" type="primary" v-on:click="getPdf('单机性能分析')">导出pdf</el-button>
            </el-form-item> -->
          </el-row>
        </el-form>
            <div style="font-size:30px;text-align:center;margin-top:1%">{{title}}</div>
            <el-table
                id="callthepolicetable"
                :row-style="{ height: '10px' }" 
                :cell-style="{ textAlign: 'center'}" 
                :header-cell-style="{ textAlign:'center',background:'#F5F7FA'}"
                @sort-change="changeTableSort"
                :data="tableDataAll"
                align="center"
                border
                style="width: 100%;margin-top:2%;">
                <el-table-column
                prop="name"
                label="指标名称"
                >
                </el-table-column>
                <el-table-column
                prop="byz"
                label="本月值"
                >
                </el-table-column>
                <el-table-column
                prop="qntq"
                label="去年同期"
                >
                </el-table-column>
                <el-table-column
                prop="tbzzl"
                label="同比增长率（%）"
                >
                </el-table-column>
                <el-table-column
                prop="hb"
                label="环比"
                >
                </el-table-column>
                <el-table-column
                prop="hq"
                label="环比增减值（%）"
                >
                </el-table-column>
            </el-table>
            <div style="width:80%;margin-top:1%;margin-left:7%">本月{{text1}}设备小时数{{sbxxs}}小时、同比{{tbsbxxs}}小时，设备可利用率{{sbklly}}%、同比{{tbsbklly}}%，等效可用系数{{dxkyxs}}%、同比{{tbdxkyxs}}%，静风频率达到{{jfpl}}%、同比{{tbjfpl}}%，机组功率特性一致性系数达到{{gltxyzx}}%、同比{{tbglyzxxs}}%。</div>
            <div style="width:80%;margin-top:1%;margin-left:7%">{{text2}}</div>
            <div id="chartHistogram" style="width: 100%; height: 400px;"></div>
            <div id="losschartHistogram" style="width: 100%; height: 400px;"></div>
            <div id="windchartHistogram" style="width: 100%; height: 400px;"></div>
            <div style="width: 100%; height: 300px; margin: auto"></div>

        </div>
    </div>
</template>
<script>
    import singleMachineAnalysisOperation from "@assets/js/performanceAnalysis/singleMachineAnalysisOperation";
    export default singleMachineAnalysisOperation;
</script>
<style lang="scss" scoped>
    @import "@assets/css/performanceAnalysis/singleMachineAnalysisOperation.scss";
</style>