enter_list.html 10.0 KB
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <script src="__CDN__/assets/ele/vue.js"></script>
    <link rel="stylesheet" href="__CDN__/assets/libs/layui/css/layui.css" media="all">
    <link rel="stylesheet" type="text/css" href="__CDN__/assets/libs/swiper/package/swiper-bundle.min.css" />
    <title></title>
</head>

<body>
    <style>
        .rotation{
            width: 100%;
            height: 200px;
        }
        .rotation img {
            width: 100%;
            height: 100%;
        }

        .bar {
            background-color: #f7f7f7;
        }

        .base-tag {
            position: relative;
            display: inline-block;
            min-width: 72px;
            padding: 3px 8px;
            font-size: 12px;
            line-height: 20px;
            text-align: center;
            color: #fff;
            background-color: rgba(0, 112, 222, .8);
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
            -webkit-box-shadow: 0 0 2px 2px rgba(0, 112, 222, .3);
            box-shadow: 0 0 2px 2px rgba(0, 112, 222, .3)
        }

        .base-tag-success {
            background-color: rgba(112, 162, 134, .8);
            -webkit-box-shadow: 0 0 2px 2px rgba(112, 162, 134, .3);
            box-shadow: 0 0 2px 2px rgba(112, 162, 134, .3)
        }

        .base-tag-error {
            background-color: rgba(233, 68, 45, .8);
            -webkit-box-shadow: 0 0 2px 2px rgba(233, 68, 45, .3);
            box-shadow: 0 0 2px 2px rgba(233, 68, 45, .3)
        }

        .flexRow {
            display: flex;
            flex-direction: row;
        }

        .flexRowBetween {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
        }

        .left25 {
            margin-left: 25px;
        }

        .con {
            border: 1px solid #f2f2f2;
            box-shadow: 5px 5px 8px 0 rgb(0 0 0 / 10%);
            margin-top: 25px;
            width: 90%;
            margin: 0 auto;
        }

        .container {

            padding-bottom: 25px;
        }

        .layui-table thead tr {
            background-color: #fff;
            font-size: 14px;
            font-weight: bold;
            color: #333;
        }

        .check {
            color: #5179B7;
            cursor: pointer;
        }

        .pw-enter-column .pec-body,
        .pw-enter-column .pec-footer,
        .pw-enter-column .pec-header {
            position: relative;
            padding: 10px;
            overflow: hidden
        }

        .pw-enter-column .pec-footer {
            border-top: 1px solid #f2f2f2
        }

        .pw-enter-record-list {
            position: relative;
            padding-left: 110px
        }

        .pw-enter-record-list .per-label {
            display: block;
            position: absolute;
            left: 0;
            top: 35px
        }

        .pw-enter-record-list .per-list-content {
            position: relative;
            padding-top: 25px;
            overflow: hidden
        }

        .pw-enter-record-list .per-list-content+.per-list-content {
            margin-top: 15px
        }

        .pw-enter-record-list .per-list-content:after {
            content: "";
            position: absolute;
            left: 0;
            top: 44px;
            width: 100%;
            height: 0;
            border-top: 1px dashed rgba(0, 112, 222, .5)
        }

        .pw-enter-record-list .per-list-content .per-item {
            position: relative;
            float: left;
            width: 193px;
            padding: 0 15px;
            text-align: center;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            z-index: 100
        }

        .pw-enter-record-list .per-list-content .tag {
            margin-bottom: 25px
        }

        .pw-enter-record-list .per-list-content .title {
            font-size: 12px;
            margin: 0 auto;
            font-weight: 400;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap
        }

        .pw-enter-record-list .per-list-content .date {
            margin: 0;
            color: #8b8b8b
        }

        .pec-header-bar {
            overflow: hidden
        }

        .pec-header-bar .go-to-detail {
            float: right
        }

        .pec-header-bar .apply-user {
            display: inline-block;
            width: 180px;
            margin-right: 10px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            vertical-align: top
        }
        [v-cloak] {
            display: none
        }
        .content{
            min-height: 700px;
        }
        .cheack_btn{
            width: 70px;
            height: 25px;
            background-color: pink;
            border-radius: 5px;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 5px 0;
        }
        .cheack_btn a{
            color: #fff;
            font-size: 14px;
        }
        .cheack_btn:nth-child(1){
            background-color: #40a9ff;
        }
        .cheack_btn:nth-child(2){
            background-color: #ff7875;
        }
        .no_request{
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%,-50%);
            color: rgb(80, 79, 79);
            font-size: 14px;
        }
    </style>
    <div id="app" v-cloak>
        <div class="rotation">
            <img src="__CDN__/assets/img/teacherRotation.png" />
        </div>
        <div class="content">
        <div class="layui-tab layui-tab-brief main" lay-filter="docDemoTabBrief" v-for="(item,index) in list"
            :key="index">
            <div class="layui-col-md12 container">
                <div class="layui-card con">
                    <div class="layui-card-header flexRowBetween bar">
                        <div class="flexRow">
                            <div>申请人:{{item.user.username}}</div>
                            <div class="left25">学院:{{item.college.college_name}}</div>
                        </div>
                        <div class="check"><a :href="'/index/building_enter/enter_detail?id='+item.id">查看详情</a></div>
                    </div>
                    <div class="layui-card-body">
                        <table class="layui-table" lay-skin="nob">
                            <thead>
                                <tr>
                                    <th>申请日期</th>
                                    <th>入驻信息</th>
                                    <th>入驻房间(工位数)</th>
                                    <th>入驻期限</th>
<!--                                    <th>退孵日期</th>-->
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>{{item.createtime}}</td>
                                    <td>
                                        <div>编号:{{item.enter_no}}</div>
                                        <div>公司:{{item.company_name}}</div>
                                    </td>
                                    <td>房间:{{item.roomInfo ? item.roomInfo :''}}</br>工位数:{{item.station_num}}</td>
                                    <td>{{item.room_order ? item.room_order.start_time : ''}}--{{item.room_order ? item.room_order.end_time : ''}}</td>
<!--                                    <td>2021-03-17</td>-->
                                    <td class="tdLast check">
                                        <div class="cheack_btn" v-if ="item.is_drafts == 1"><a :href="'/index/building_enter/enter?id='+item.id">继续申请</a></div>
                                        <div class="cheack_btn" v-if ="item.is_drafts == 1"><a :href="'/index/building_enter/enter_del?id='+item.id">删除</a></div>
                                        <div v-else>暂无操作</div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                        <!-- 入驻历史记录 -->
                        <div v-if="item.is_drafts == 2">
                            <div class="pec-footer" style="">
                                <div class="pw-enter-record-list"><span class="per-label">入驻历史记录:</span>
                                    <div class="per-list-content">
                                        <div class="per-item" style="margin-left: 70px" v-for="(items,indexs) in item.enter_log">
                                            <div class="tag"><span><span class="base-tag el-popover__reference"
                                                        aria-describedby="el-popover-3262"
                                                        tabindex="0">{{item.status_text}}</span></span>
                                            </div>
                                            <h5 class="title"><span class="check">{{items.log_type}}</span></h5>
                                            <p class="date">{{items.createtime}}</p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="no_request" v-if="list.length == 0" >
            暂无入驻申请,快去申请吧!
        </div>
        <div style="margin-left: 43%">
            {$render}
        </div>
    </div>
</div>


</body>
<script src="__CDN__/assets/layui/layui.js" charset="utf-8"></script>
    <script>
        layui.use(['element', 'layer'], function () {
            var element = layui.element;
            var layer = layui.layer;
        });
    </script>
</script>

</html>