ResultDisplay.vue 1.78 KB
<template>
    <div class="result-wrapper">
        <div class="result-header">结果展示</div>
        <div class="scrollbar-wrapper">
            <div v-for="item in resultList" class="result-item">
                <div class="result-page">
                    <span>总处理条数 : {{ item.totalNum }}</span>
                </div>
                <el-row>
                    <el-col :span="2">
                        执行进度 :
                    </el-col>
                    <el-col :span="22">
                        <el-progress :text-inside="true" :stroke-width="26" :percentage="item?.progress"/>
                    </el-col>
                </el-row>
                <el-row>
                    <el-col :span="2">

                    </el-col>
                    <el-col :span="22">
                        <span>{{ item.current }}条/共{{ item.curPageSize }}</span>
                        <span class="pagination-page">{{ item.currentPage }}页/共{{ item.totalPage }}</span>
                    </el-col>
                </el-row>
            </div>
        </div>
        <!--        <div class="result-footer">-->
        <!--            <span class="result-intro" v-if="startTiming && endTiming">{{ footerText || '数据重跑' }}完毕! 共计 {{ totalTime | formatTime }}</span>-->
        <!--            <el-button class="result-clear-btn" @click="onClearClick">清空结果</el-button>-->
        <!--        </div>-->
    </div>
</template>

<script>
export default {
    props: {
        data: {
            type: Array,
            default: []
        },
    },
    setup(props, {emit}) {
        const resultList = props.data
        return {
            resultList
        }
    }
}
</script>

<style lang="less" scoped>
@import "./ResultDisplay.less";
</style>