xuye
10 days ago 0506c7530183ab08f9d8bc8d57523ff897ccc3cf
任务池
1 files added
308 ■■■■■ changed files
src/components/taskpool/PoolList.vue 308 ●●●●● patch | view | raw | blame | history
src/components/taskpool/PoolList.vue
New file
@@ -0,0 +1,308 @@
<template>
    <div class="common-main">
        <div class="common">
            <el-row :gutter="10">
                <div class="task-pool">
                    <div class="task-pool-title">
                        任务池
                    </div>
                    <div class="task-pool-content">
                        <div class="pool-content-box">
                            <div class="pool-content-box-row" v-for="(item1, index1) in PoolList" :key="index1">
                                <div class="content-box-show" v-for="(item2, index2) in item1" :key="index2">
                                    <el-row :gutter="10" type="flex" justify="space-around">
                                        <el-col :span="8">
                                            <div class="st">
                                                <SFPort :status="item2.status"></SFPort>
                                                <div>20GP</div>
                                            </div>
                                        </el-col>
                                        <el-col :span="8">
                                            <div class="af up-second">
                                                <div>箱量:{{item2.num}}</div>
                                                <div>棉花-{{item2.weight}}kg</div>
                                            </div>
                                        </el-col>
                                        <el-col :span="8">
                                            <div class="af" style="color: #f8a723;font-size: 16px;">到达:{{item2.time}}</div>
                                        </el-col>
                                    </el-row>
                                    <div class="box-show-under">
                                        <div class="show-under-info">
                                            <div>提箱地</div>
                                            <div>装卸地</div>
                                            <div>还箱地</div>
                                        </div>
                                        <div class="show-under-place">
                                            <div>
                                                <span>{{item2.CarryingCase}}</span>
                                            </div>
                                            <div>
                                                <span>{{item2.Boxed}}</span>
                                            </div>
                                            <div>
                                                <sapn>{{item2.Return}}</sapn>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="box-show-foot">
                                    <div class="price">
                                        <div>¥600</div>
                                    </div>
                                    <div class="foot-right">
                                        <div>
                                            发布:2021-03-25 10:00
                                        </div>
                                        <div class="grab-order">抢单/1车</div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="pagenation">
                            <el-pagination background layout="prev, pager, next" :total="1000">
                            </el-pagination>
                        </div>
                    </div>
                </div>
            </el-row>
        </div>
    </div>
</template>
<script>
    import SFPort from "@/components/common-vue/sf-or-port.vue"
    export default {
        components: {
            SFPort
        },
        data() {
            return {
                PoolList: [
                    [{
                            status: 2,
                            num: 1,
                            weight: 36,
                            time: "2021-03-25 10:00",
                            CarryingCase:"重庆渝北",
                            Boxed:"重庆渝北",
                            Return:"重庆-渝北区 新溉大道18号山顶国宾城12栋1916",
                        },
                        {
                            status: 1,
                            num: 1,
                            weight: 36,
                            time: "2021-03-25 10:00",
                            CarryingCase:"重庆渝北",
                            Boxed:"重庆渝北",
                            Return:"重庆-渝北区 新溉大道18号山顶国宾城12栋1916",
                        }
                    ],
                    [{
                            status: 3,
                            num: 1,
                            weight: 36,
                            time: "2021-03-25 10:00",
                            CarryingCase:"重庆渝北",
                            Boxed:"重庆渝北",
                            Return:"重庆-渝北区 新溉大道18号山顶国宾城12栋1916",
                        },
                        {
                            status: 1,
                            num: 1,
                            weight: 36,
                            time: "2021-03-25 10:00",
                            CarryingCase:"重庆渝北",
                            Boxed:"重庆渝北",
                            Return:"重庆-渝北区 新溉大道18号山顶国宾城12栋1916",
                        }
                    ],
                    [{
                        status: 4,
                        num: 1,
                        weight: 36,
                        time: "2021-03-25 10:00",
                            CarryingCase:"重庆渝北",
                            Boxed:"重庆渝北",
                            Return:"重庆-渝北区 新溉大道18号山顶国宾城12栋1916",
                    }, ],
                    [{
                            status: 4,
                            num: 1,
                            weight: 36,
                            time: "2021-03-25 10:00",
                            CarryingCase:"重庆渝北",
                            Boxed:"重庆渝北",
                            Return:"重庆-渝北区 新溉大道18号山顶国宾城12栋1916",
                        },
                        {
                            status: 1,
                            num: 1,
                            weight: 36,
                            time: "2021-03-25 10:00",
                            CarryingCase:"重庆渝北",
                            Boxed:"重庆渝北",
                            Return:"重庆-渝北区 新溉大道18号山顶国宾城12栋1916",
                        }
                    ],
                    [{
                        status: 3,
                        num: 1,
                        weight: 36,
                        time: "2021-03-25 10:00",
                            CarryingCase:"重庆渝北",
                            Boxed:"重庆渝北",
                            Return:"重庆-渝北区 新溉大道18号山顶国宾城12栋1916",
                    }],
                ]
            }
        }
    }
</script>
<style>
    .common-main {
        margin-top: 10px;
    }
    .task-pool .task-pool-title {
        padding: 5px 20px;
        font-size: 20px;
        font-weight: bold;
    }
    .pool-content-box {
        margin-left:8px;
        display: flex;
        /*flex-wrap: wrap;
        box-sizing: border-box;*/
        flex-flow:column wrap;
        height: 100vh;
    }
    .pool-content-box-row {
        border: 1px solid #d7d7d7;
        margin: 10px 2px;
        width: calc(98%/2 - 4px);
    }
    .st {
        margin: 10px;
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
    .st>div {
        font-size: 24px;
        font-weight: bold;
        color: #aaaaaa;
    }
    .af {
        padding: 20px 0;
        text-align: center;
    }
    .up-second {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .up-second>div {
        margin: 0 5px;
        color: #7f7f7f;
    }
    .box-show-under {
        padding: 8px;
    }
    .show-under-info {
        font-size: 18px;
        color: #333333;
    }
    .show-under-place {
        font-size: 16px;
        color: #7f7f7f;
    }
    .box-show-under .show-under-place,
    .box-show-under .show-under-info {
        padding: 5px;
        display: flex;
        align-items: center;
    }
    .show-under-place>div,
    .show-under-info>div {
        width: 30%;
        text-align: center;
    }
    .box-show-foot {
        margin-right: 50px;
        margin-bottom: 10px;
        padding: 5px 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .box-show-foot .price {
        font-size: 20px;
        font-weight: bold;
        color: red;
        margin-left: 50px;
    }
    .box-show-foot .foot-right {
        display: flex;
        align-items: center;
        justify-content: space-around;
    }
    .box-show-foot .foot-right div:nth-child(1) {
        padding: 0 10px;
        font-size: 16px;
        margin-right: 20px;
    }
    .box-show-foot .foot-right .grab-order {
        padding: 10px;
        color: white;
        font-size: 20px;
        font-weight: bold;
        background-color: #a30014;
        border-radius: 5px;
        cursor: pointer;
        box-shadow: 5px 5px 5px #b8b6b6;
    }
    .pagenation {
        text-align: center;
    }
    .pool-content-box-row .content-box-show:nth-child(2){
        border-top: 1px dashed #d4d4d4;
    }
</style>