<template>
  <div>
    <Row class="search-row">
      <i-col span="24" class="search-col">
        <Row class="row-style"></Row>
      </i-col>
    </Row>
    <Table :columns="columns1" style="margin-top: 20px;" size="small">
      <template slot-scope="{s}" slot="action">
        <Button type="primary" size="small" @click="handleEdit(s)">修改</Button>
        <Button type="error" size="small" @click="handleDelete(s)">删除</Button>
      </template>
    </Table>
    <Page
      :total="total"
      :current="pageNum"
      :page-size="pageSize"
      show-elevator
      show-total
      placement="top"
      @on-change="handlePage"
      class="ks-page"
    ></Page>
  </div>
</template>

<script>
  import data from "../../utils/PhoneRegionData";
  import http from "../../services/store/IncreaseStoreManager";

  import staff from "../../services/staff/staff";

  export default {
    name: "IncreaseWelcomeList",
    inject: ["setMenuName"],
    data() {
      return {
        loading: true,
        // 分页
        total: 0,
        pageSize: 10,
        pageNum: 1,
        columns1: [
          { title: "序号", key: "id" },
          { title: "欢迎语", key: "content" },
          { title: "配置范围", key: "range" },
          { title: "配置时间", key: "createdate" },
          { title: "修改时间", key: "updatedate" },
          { title: "操作", slot: "action" },
        ],
        formValidate: {
        },
      };
    },
    mounted() {
      this.setMenuName("门店推广", "欢迎语");
      this.handlePaginate();
    },
    methods: {
      // 分页刷新
      handlePaginate() {

      },
      //切页处理
      handlePage: function(value) {
        this.pageNum = value;
      },
      // 新增或修改
      handleEdit(row) {

      },
      // 删除
      handleDelete(row) {

      },
    },
  };
</script>

<style scoped>
</style>
