12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- <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" @view="toView"></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: 'view',
- },
- ],
- 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 } = {}) {},
- // 资料审核
- toView({ data }) {
- this.$router.push({ path: '/adminPerfect/detail', query: { id: data.id } });
- },
- },
- computed: {
- ...mapState(['user']),
- },
- watch: {},
- };
- </script>
- <style lang="less" scoped></style>
|