<template>
  <a-card :bordered="false">

    <!-- 查询区域 -->
    <div class="table-page-search-wrapper">
      <a-form layout="inline">
        <a-row :gutter="24">

          <a-col :md="6" :sm="8">
            <a-form-item label="产品名称">
              <a-input placeholder="请输入产品名称" v-model="queryParam.name"></a-input>
            </a-form-item>
          </a-col>
          <a-col :md="6" :sm="8" >
            <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
              <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
              <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
            </span>
          </a-col>

        </a-row>
      </a-form>
    </div>

    <!-- table区域-begin -->
    <div>

      <a-table
        ref="table"
        size="middle"
        bordered
        rowKey="id"
        :columns="columns"
        :dataSource="dataSource"
        :pagination="ipagination"
        :loading="loading"
        @change="handleTableChange">


      </a-table>
    </div>
    <!-- table区域-end -->

    <!-- 表单区域 -->
    <kuaishouAppProduct-modal ref="modalForm" @ok="modalFormOk"></kuaishouAppProduct-modal>
  </a-card>
</template>

<script>
  import KuaishouAppProductModal from './modules/KuaishouAppProductModal'
  import { JeecgListMixin } from '@/mixins/JeecgListMixin'

  export default {
    name: "KuaishouAppProductList",
    mixins:[JeecgListMixin],
    components: {
      KuaishouAppProductModal
    },
    data () {
      return {
        description: '快手推广产品管理页面',
        // 表头
        columns: [
		   {
            title: '产品名称',
            align:"center",
            dataIndex: 'name'
           },
          {
            title: '投放日期',
            align:"center",
            dataIndex: 'createTime'
          }
        ],
		url: {
          list: "/ctop/kuaishouAppProduct/list",
          delete: "/ctop/kuaishouAppProduct/delete",
          deleteBatch: "/ctop/kuaishouAppProduct/deleteBatch",
          exportXlsUrl: "ctop/kuaishouAppProduct/exportXls",
          importExcelUrl: "ctop/kuaishouAppProduct/importExcel",
       },
    }
  },
  computed: {
    importExcelUrl: function(){
      return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
    }
  },
    methods: {
     
    }
  }
</script>
<style scoped>
  @import '~@assets/less/common.less'
</style>