<el-main>
  <!--面包屑-->
  <breadcrumb-component></breadcrumb-component>

  <!--下面是搜索条件-->
  <el-form label-position="right" class="simple-search-form-outline" inline>

    <el-form-item label="表名称">
      <el-input placeholder="请输入" maxlength="30" @keyup.enter.native="getList" v-model="searchForm.tableName" class="input-with-select"></el-input>
    </el-form-item>

    <el-form-item label="表中文名称">
      <el-input placeholder="请输入" maxlength="30" @keyup.enter.native="getList" v-model="searchForm.tableComment" class="input-with-select"></el-input>
    </el-form-item>

    <el-form-item label="表所属数据库">
      <el-select v-model="searchForm.databaseId" placeholder="请选择" clearable filterable>
        <el-option
          v-for="item in databaseOptions"
          :key="item.id"
          :label="item.resourceName"
          :value="item.id">
        </el-option>
      </el-select>
    </el-form-item>

    <el-form-item>
      <el-button type="primary" @click="getList">查询</el-button>
    </el-form-item>

  </el-form>

  <!--主列表数据-->
  <div class="table-container">
    <div class="button-container">
      <div>
        <el-button type="primary" @click="go('CreateMetaGuide')">向导</el-button>
        <el-button type="primary" @click="go('CreateMetaDDL')">DDL</el-button>
        <el-button type="primary" @click="go('CreateMetaScan')">扫描</el-button>
      </div>
    </div>
    <table-component @search="search" :tableOption="tableOption" :tableData="tableData" :pageParam="pageParam" @action="action" @selectChange="selectChange"></table-component>
  </div>

</el-main>
