12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <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"></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';
- const { mapActions: achieveApply } = createNamespacedHelpers('achieveApply');
- const { mapActions: verifyRecord } = createNamespacedHelpers('verifyRecord');
- export default {
- metaInfo() {
- return { title: this.$route.meta.title };
- },
- name: 'index',
- props: {},
- components: {
- dataTable,
- },
- data: function() {
- return {
- opera: [],
- fields: [
- { label: '成果编号', prop: 'basic.achieve_num', filter: 'input', showTip: true },
- { label: '成果名称', prop: 'basic.achieve_name', showTip: true },
- { label: '成果类别', prop: 'basic.achieve_type', showTip: true },
- ],
- list: [],
- total: 0,
- };
- },
- async created() {
- await this.search();
- },
- methods: {
- ...achieveApply(['query']),
- ...verifyRecord(['create']),
- // 查询列表
- async search({ skip = 0, limit = 10, ...info } = {}) {
- const res = await this.query({ skip, limit, ...info, status: '6' });
- if (this.$checkRes(res)) {
- this.$set(this, 'list', res.data);
- this.$set(this, `total`, res.total);
- }
- },
- },
- computed: {
- ...mapState(['user']),
- },
- watch: {},
- };
- </script>
- <style lang="less" scoped></style>
|