智慧农业大数据平台
shuishen
2022-07-09 e93163f3066a3f411a5c39c9765d0cacb8e89336
部分修改
2 files modified
177 ■■■■■ changed files
src/styles/publicBox/trace-table.scss 133 ●●●●● patch | view | raw | blame | history
src/views/farm/index.vue 44 ●●●●● patch | view | raw | blame | history
src/styles/publicBox/trace-table.scss
@@ -63,79 +63,94 @@
        /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
        border-radius: 0 0 8px 8px;
        .farm-profiles {
            position: relative;
        .action-bar {
            padding: 0 30px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 74px;
            .btn-grounp {
                position: absolute;
                top: 18px;
                right: 20px;
            &>.search {
                .details {
                    text-align: right;
                    font-size: 18px;
                    color: #08F4FF;
                    cursor: pointer;
                }
                .search-input {
                .scene {
                    margin-top: 24px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 100px;
                    height: 30px;
                    background: rgba(102, 221, 233, 0.16);
                    border-radius: 4px 4px 4px 4px;
                    border: 1px solid #66DDE9;
                    box-sizing: border-box;
                    img {
                        // width: 70px;
                        height: 24px;
                    input {
                        color: #fff;
                        background: rgba(33, 186, 196, 0.2);
                        border-color: #21BAC4;
                    }
                }
            }
            .farm-content {
            .btn-grounp {
                padding: 30px 20px;
                font-size: 16px;
                color: #fff;
                .row {
                    display: flex;
                    justify-content: space-between;
                    .l {
                        display: flex;
                        align-items: flex-start;
                        justify-content: flex-end;
                        width: 100px;
                        height: 50px;
                        color: #A9D1D7;
                    }
                    .r {
                        display: flex;
                        align-items: flex-start;
                        justify-content: flex-start;
                        margin-left: 24px;
                        flex: 1;
                        img {
                            margin-right: 16px;
                            width: 102px;
                            height: 102px;
                            border-radius: 4px 4px 4px 4px;
                        }
                    }
                .search {
                    color: #fff;
                    background: #21BAC4;
                    border-color: #21BAC4;
                }
                .reset {
                    color: #fff;
                    background: rgba(255, 255, 255, .2);
                    border-color: rgba(255, 255, 255, .2);
                }
            }
        }
        .table-list {
            .t-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                height: 56px;
                font-size: 18px;
                font-weight: bold;
                color: #fff;
                background: linear-gradient(90deg, rgba(49, 137, 153, .5) 0%, rgba(49, 161, 168, .5) 44%, rgba(49, 137, 153, .5) 100%);
            }
            .t-body {}
            .table-list {
                display: flex;
                align-items: center;
                justify-content: space-between;
                height: 94px;
                border-bottom: 1px solid #E8ECEF;
            }
            .table-list:last-child {
                border: none;
            }
            .t-header>div:first-child,
            .table-list>div:first-child {
                flex: 1;
            }
            .t-header>div:nth-child(2),
            .table-list>div:nth-child(2) {
                width: 200px;
            }
            .t-header>div:nth-child(3),
            .table-list>div:nth-child(3) {
                width: 240px;
            }
            .t-header>div:nth-child(4),
            .table-list>div:nth-child(4) {
                width: 240px;
            }
            .t-header>div:nth-child(5),
            .table-list>div:nth-child(5) {
                width: 160px;
            }
        }
    }
}
src/views/farm/index.vue
@@ -147,10 +147,48 @@
                />
            </template>
            <template slot="public-box-content">
                <div class="action-bar"></div>
                <div class="action-bar">
                    <div class="search">
                        <el-input
                            class="search-input"
                            size="small"
                            prefix-icon="el-icon-search"
                            placeholder="请输入内容"
                            v-model="input1"
                        ></el-input>
                    </div>
                    <div class="btn-grounp">
                        <el-button
                            size="small"
                            class="search"
                            type="primary"
                            icon="el-icon-search"
                        >查询</el-button>
                        <el-button
                            size="small"
                            class="reset"
                            type="info"
                            icon="el-icon-refresh-right"
                        >重置</el-button>
                    </div>
                </div>
                <div class="table-list">
                    <div class="t-header"></div>
                    <div class="t-body"></div>
                    <div class="t-header">
                        <div>溯源码样式</div>
                        <div>溯源码编号</div>
                        <div>已绑定溯源/总数</div>
                        <div>创建时间</div>
                        <div>操作</div>
                    </div>
                    <div class="t-body">
                        <div class="table-list">
                            <div></div>
                            <div>193500000030</div>
                            <div>1/1</div>
                            <div>2022-06-10 15:50</div>
                            <div></div>
                        </div>
                    </div>
                </div>
            </template>
        </public-box>