123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <template>
- <div id="index">
- <data-table :fields="fields" :opera="opera" :data="list" :total="total" @query="search" @check="toCheck"> </data-table>
- </div>
- </template>
- <script>
- import { mapState, createNamespacedHelpers } from 'vuex';
- export default {
- name: 'index',
- props: {},
- components: {},
- data: function () {
- return {
- list: [
- { name: '专利1', apply_name: '申请人', type: '申请类型', contact: '联系人', phone: '11111111111', email: 'test@qq.com' },
- { name: '专利2', apply_name: '申请人2', type: '申请类型2', contact: '联系人2', phone: '11111111112', email: 'test2@qq.com' },
- ],
- total: 0,
- fields: [
- { label: '专利名称', model: 'name', filter: true },
- { label: '申请人', model: 'apply_name' },
- { label: '申请类型', model: 'type' },
- { label: '技术联系人', model: 'contact' },
- { label: '联系人电话', model: 'phone' },
- { label: '联系人邮箱', model: 'email' },
- ],
- opera: [{ label: '查看', method: 'check' }],
- };
- },
- created() {},
- methods: {},
- computed: {
- ...mapState(['user']),
- pageTitle() {
- return `${this.$route.meta.title}`;
- },
- },
- metaInfo() {
- return { title: this.$route.meta.title };
- },
- };
- </script>
- <style lang="less" scoped></style>
|