<template>
  <div class="q-pa-md q-gutter-y-md">
    <div
      class="flex justify-between items-center bg-white q-pa-md rounded-borders"
    >
      <div class="column justify-center text-h5" style="min-height: 36px">
        {{ $t('solutions.solutions') }}
      </div>
      <q-btn
        color="primary"
        icon="create"
        :label="$t('solutions.create')"
        @click="create"
      />
    </div>
    <div class="bg-white rounded-borders">
      <BaseTable
        v-model="inputSearch"
        :use-search="true"
        :columns="columns"
        :data="solutionsRecords"
        :loading="solutionsLoading"
        :pagination.sync="model.pagination"
        :title="$t('solutions.title')"
        :visible-columns="model.visibleColumns"
        @requestTable="init"
        @update="init"
        @query="setQuery"
        saveQuery
      >
      </BaseTable>
    </div>
  </div>
</template>

<script lang="ts" src="./index.ts"></script>
