<!-- <!-- 量化体验结果页面 --> -->
<template>
    <div class="qualityResult">
        <div class="labContent">
            <div class="labContent-title">
                <img src="../assets/image/logoEn.png" alt="">
                <p >XC环境验证系统</p>
            </div>
            <div class="labContent-back">
                <span class="backImg" @click="backPath"></span>
            </div>
            <div class="theme">
                <div class="themeContent">
                    <div class="themeName"> <i></i> 量化体验结果 </div>
                    <div class="qualityResult-table">
                        <el-table
                                :data="tableData"
                                style="width: 100%">
                            <el-table-column
                                    prop="name"
                                    align="center"
                                    label="体验项"
                                    width="180">
                            </el-table-column>
                            <el-table-column
                                    prop="last"
                                    align="center"
                                    label="上次操作(技术路线)"
                                    width="180">
                            </el-table-column>
                            <el-table-column
                                    prop="avg.1"
                                    align="center"
                                    label="龙芯">
                            </el-table-column>
                            <el-table-column
                                    prop="avg.2"
                                    align="center"
                                    label="鲲鹏">
                            </el-table-column>
                            <el-table-column
                                    prop="avg.3"
                                    align="center"
                                    label="X86">
                            </el-table-column>

                        </el-table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
// 这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）
// 例如：import 《组件名称》 from '《组件路径》';
export default {
    name: 'quality-result1',
    // import引入的组件需要注入到对象中才能使用
    components: {

    },
    props: {},
    data () {
        // 这里存放数据
        return {
            tableData: [
                // {name:'xxx',last:'xxx',avg:{1:12,2:12,3:32}},
                // {name:'xxx',last:'xxx',avg:{1:12,2:12,3:32}},
                // {name:'xxx',last:'xxx',avg:{1:12,2:12,3:32}},
                // {name:'xxx',last:'xxx',avg:{1:12,2:12,3:32}},
                // {name:'xxx',last:'xxx',avg:{1:12,2:12,3:32}},
                // {name:'xxx',last:'xxx',avg:{1:12,2:12,3:32}}
            ],
            lastest: '',
            // avg: ''
        };
    },
    // 方法集合
    methods: {
        backPath() {
            this.$router.push('/verifyEnvironment1')
        }
    },
    // 监听属性 类似于data概念
    computed: {},
    // 监控data中的数据变化
    watch: {},
    //生命周期 - 创建完成（可以访问当前this实例）
    created () {},
    // 生命周期 - 挂载完成（可以访问DOM元素）
    mounted () {
        console.log(JSON.parse(sessionStorage.getItem("tableData")))
        this.tableData = JSON.parse(sessionStorage.getItem("tableData"))
        // for(let item of this.tableData){
        //     console.log(item)
        //     this.lastest = item.last
        //     console.log(this.lastest)
        //     this.lastest == -1 ? '-' : '121'
        // }
    },
    // 生命周期 - 创建之前
    beforeCreate () {},
    // 生命周期 - 挂载之前
    beforeMount () {},
    // 生命周期 - 更新之前
    beforeUpdate () {},
    // 生命周期 - 更新之后
    updated () {},
    // 生命周期 - 销毁之前
    beforeDestroy () {},
    // 生命周期 - 销毁完成
    destroyed () {},
    // 如果页面有keep-alive缓存功能，这个函数会触发
    activated () {},
}
</script>

<style scoped>
    .qualityResult {
        height: 96vh;
        overflow-y: scroll;
    }
    .labContent-title {
        height: 138px;
        line-height: 138px;
        text-align: center;
        font-size: 60px;
        font-weight: bold;
        color: #151033;
    }
    .labContent-title p {
        display: inline-block;
    }
    .labContent-title img {
        margin-right: 20px;
        margin-bottom: 17px;
    }
    .theme {
        padding: 22px 50px;
        background: #f5f7ff;
    }
    .themeContent {
        height: 122vh;
        background: #fff;
        padding: 60px 30px 20px 30px;
    }
    /*返回按钮*/
    .qualityResult .labContent-back{
        padding: 0 88px;
    }
    .qualityResult .backImg{
        width: 25px;
        height: 25px;
        position: absolute;
        top:180px;
        cursor: pointer;
        background-image: url('../assets/img/back.png');
    }
    .qualityResult .backImg:hover{
        background-image: url('../assets/img/back-select.png');
    }
    /*返回按钮*/
    .themeName {
        text-align: left;
        position: relative;
        background-color: #f5f7ff;
        height: 38px;
        width: 100%;
        line-height: 38px;
        font-weight: bold;
        font-size: 20px
    }
    .themeName i {
        display: block;
        float: left;
        background-color: #151033;
        height: 38px;
        width: 14px;
        margin-right: 10px;
    }
    /*表格样式*/
    .qualityResult-table {
        margin-top: 32px;
    }
    .qualityResult-table >>> .el-table__body {
        border-collapse:separate;
        border-spacing:0px 6px;
    }
    .qualityResult-table >>> .el-table thead tr th {
        color: #fff;
        background: #151033;
        font-size: 18px;
        height: 72px;
    }
    .qualityResult-table >>> .is-center {
        border-right: none;
    }
    .qualityResult-table >>> .el-table__row {
        height: 66px;
        background: #f5f7ff;
        color: #787682;
        font-size: 18px;
    }
    .qualityResult-table >>> .el-table td {
        border-bottom: none;
    }
    .qualityResult-table >>> .el-table--enable-row-hover .el-table__body tr:hover>td {
        background-color: #e1e6f4;
    }
</style>