<template>
  <div id="index">
    <el-row>
      <el-col :span="24" class="main">
        <el-col :span="24" class="down">
          <data-table :fields="fields" :opera="opera" :data="list" :total="total" @query="search" @check="toCheck"></data-table>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import dataTable from '@common/src/components/frame/filter-page-table.vue';
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  metaInfo() {
    return { title: this.$route.meta.title };
  },
  name: 'index',
  props: {},
  components: {
    dataTable,
  },
  data: function() {
    return {
      opera: [
        {
          label: '资料审核',
          method: 'check',
        },
      ],
      fields: [
        { label: '成果编号', prop: 'basic.achieve_num', filter: 'input', showTip: true },
        { label: '成果名称', prop: 'basic.achieve_name', showTip: true },
        { label: '成果类别', prop: 'basic.achieve_type', showTip: true },
        { label: '状态', prop: 'status' },
      ],
      list: [
        {
          basic: {
            achieve_num: '成果编号',
            achieve_name: '成果名称',
            achieve_type: '成果类别',
          },
          status: '0',
        },
      ],
      total: 0,
    };
  },
  async created() {
    await this.search();
  },
  methods: {
    // 查询列表
    async search({ skip = 0, limit = 10, ...info } = {}) {},
    // 资料审核
    toCheck({ data }) {
      this.$router.push({ path: '/adminExamine/detail', query: { id: data.id } });
    },
  },
  computed: {
    ...mapState(['user']),
  },
  watch: {},
};
</script>

<style lang="less" scoped></style>
