<template>
    <div>
        <div class="bigBox">
            <!-- 检测任务信息 -->
            <div class="missionBox">
                <p class="nowMis">正在检测的任务名称</p>
                <p class="dateMis">创建日期:2000-00-00</p>
                <img src="../../../assets/image/start_mission.png" style="width: 200px;height: 200px;" alt="">
                <p class="loading1">请耐心等待检测完成</p>
                <el-button type="primary" @click="misDown">取消</el-button>
            </div>
            <!-- 步骤和结果 -->
            <div class="stepAndEnd">
                <!-- 步骤条 -->
                <div class="stepBox">
                    <StepMethod></StepMethod>
                </div>
                <!-- 结果 -->
                <div class="endBox">

                </div>
            </div>
        </div>
    </div>
</template>

<script>
import { ref, onMounted, toRefs } from 'vue';
import StepMethod from './StepMethod.vue';
export default {
    setup(props, { emit }) {
        let arrow = ref(0)
        function misDown() {
            emit("smBack", arrow.value)
        }
        return {
            arrow,
            misDown,
        }
    },
    components: {
        StepMethod
    }
}
</script>

<style  scoped>
p {
    margin: 0;
    padding: 0;
}

.bigBox {
    width: 98%;
    height: calc(100vh - 150px);
    border: 1px solid black;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.missionBox {
    width: 30%;
    height: 100%;
    border: 1px solid purple;
    text-align: center;
    line-height: 30px;
}

.stepAndEnd {
    width: 68%;
    height: 100%;
    border: 1px solid brown;
}

.stepBox {
    width: 100%;
    height: calc(100vh - 530px);
    border: 1px solid red;
    overflow-y: auto;
    background-color: #F7F8FB;
}

.endBox {
    width: 100%;
    height: calc(100vh - 420px);
    border: 1px solid green;
    margin-top: 20px;
}

.nowMis {
    font-size: 20px;
    font-family: Source Han Sans CN-Bold, Source Han Sans CN;
    font-weight: bold;
    color: #1A2447;
}

.dateMis {
    font-size: 14px;
    font-family: Source Han Sans CN-Regular, Source Han Sans CN;
    font-weight: 400;
    color: #7484AB;
}

.loading1 {
    font-size: 16px;
    font-family: Source Han Sans CN-Regular, Source Han Sans CN;
    font-weight: 400;
    color: #255CE7;
}
</style>