vue管理系统展示数据模板

<template>
  <div>

    <el-table :data="tableData" border stripe>
      <el-table-column label="名称" prop="title"></el-table-column>

      <el-table-column label="分类" prop="category"></el-table-column>
      <el-table-column label="品牌" prop="brand"></el-table-column>
      <el-table-column label="可出售"       prop="saleable"     >
        <template slot-scope="scope">
<!--          {{scope.row}}-->
          <el-switch v-model="scope.row.saleable" active-valuee="1" inactive-value="0"></el-switch>
        </template>
      </el-table-column>
      <el-table-column label="上次更新时间" prop="lastUpdateTime"></el-table-column>
      <el-table-column label="操作">
        <template slot-scope="scope">
          <!--    修改按钮      -->
          <el-tooltip effect="dark" content="查看品牌详细商品信息" placement="top">
            <el-button type="primary"  size="mini" icon="el-icon-view"></el-button>
          </el-tooltip>
          <el-button type="danger"   size="mini" icon="el-icon-delete"></el-button>
           <el-tooltip effect="dark" content="修改商品信息" placement="top">
             <el-button type="warning"  size="mini" icon="el-icon-setting"></el-button>
           </el-tooltip>
        </template>
      </el-table-column>

    </el-table>
<!--    分页-->
    <el-pagination

      :page-sizes="[100, 200, 300, 400]"
      :page-size="100"
      layout="total, sizes, prev, pager, next, jumper"
      :total="400">
    </el-pagination>
  </div>
</template>

<script>
  export default {
    name: "ShopInfo",
    data() {
      return {
        //获取用户列表的数据
        queryInfo: {
          page: 1,
          size: 5
        },
        tableData: [{
          lastUpdateTime: '2016-05-02',
          title: '小米9',
          saleable: '1',
          category: '手机',
          brand: '小米'

        }],

      }
    },
    mounted() {
    },
    methods: {}
  }
</script>

<style scoped>

</style>

在这里插入图片描述在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值