123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- <template>
- <div class="offFieldLog">
- <h2 style="margin-bottom: 20px;padding-bottom:7px;border-bottom:2px solid #ddd">离场记录</h2>
- <header id="header">
- <el-row type="flex" :gutter="20">
- <el-col :span="4">
- <el-input v-model="value" placeholder="请选择"/>
- </el-col>
- <el-col :span="4">
- <el-button type="primary">查找</el-button>
- </el-col>
- <el-col :span="4">
- <el-button type="primary">新增</el-button>
- </el-col>
- </el-row>
- </header>
- <section>
- <article class="table">
- <el-table
- ref="multipleTable"
- :data="tableData"
- tooltip-effect="dark"
- style="width: 100%"
- >
- <el-table-column prop="a" label="羊只编码"></el-table-column>
- <el-table-column prop="b" label="离场时间"></el-table-column>
- <el-table-column prop="c" label="日龄"></el-table-column>
- <el-table-column prop="d" label="离场体重"></el-table-column>
- <el-table-column prop="e" label="离场原因"></el-table-column>
- <el-table-column prop="f" label="饲养员"></el-table-column>
- <el-table-column prop="g" label="等级评级"></el-table-column>
- <!-- <el-table-column label="操作" width="150">
- <template slot-scope="scope">
- <el-button @click="edit(scope.row)" type="text" size="small">编辑</el-button>
- <el-popconfirm title="是否删除此设备的信息?" @onConfirm="del(scope.row)">
- <el-button slot="reference" type="text" size="small">删除</el-button>
- </el-popconfirm>
- </template>
- </el-table-column> -->
- </el-table>
- <el-row type="flex" justify="end">
- <el-col :span="8" class="pagination">
- <el-pagination
- @current-change="pageChange"
- background
- layout="prev, pager, next"
- :page-count="10"
- ></el-pagination>
- </el-col>
- </el-row>
- </article>
- </section>
- </div>
- </template>
- <script>
- const pageSize = 10
- const tableData = [
- {
- a: "15463",
- b: "胴体",
- c: "2020-07-14",
- d: "49kg",
- e: "48kg",
- f: "1.6%",
- g: "张小刚",
- },
- {
- a: "15463",
- b: "带骨羊前腿",
- c: "2020-07-14",
- d: "49kg",
- e: "48kg",
- f: "1.6%",
- g: "张小刚",
- },
- {
- a: "15463",
- b: "羔羊肉卷",
- c: "2020-07-14",
- d: "49kg",
- e: "48kg",
- f: "1.6%",
- g: "张小刚",
- },
- {
- a: "15463",
- b: "胴体",
- c: "2020-07-14",
- d: "49kg",
- e: "48kg",
- f: "1.6%",
- g: "张小刚",
- },
- {
- a: "15463",
- b: "羔羊肉卷",
- c: "2020-07-14",
- d: "49kg",
- e: "48kg",
- f: "1.6%",
- g: "张小刚",
- },
-
-
- ]
- export default {
- data() {
- return {
- value: "",
- page: 1,
- tableData
- };
- },
- created() {},
- methods: {
- edit(row) {},
- del(row) {},
- pageChange(p) {
- console.log(p);
- }
- }
- };
- </script>
- <style lang="scss" scoped>
- #header {
- margin-bottom: 15px;
- }
- .table {
- .pagination {
- margin-top: 20px;
- }
- }
- </style>
|