|
@@ -1,22 +1,28 @@
|
|
|
<template>
|
|
|
<div id="index">
|
|
|
<admin-frame @search="search" :limit="limit" :total="total" :useNav="false">
|
|
|
- <template v-slot:info> 专利导航q</template>
|
|
|
+ <template v-slot:info>
|
|
|
+ <list-1 :list="list" @detail="detail"></list-1>
|
|
|
+ </template>
|
|
|
</admin-frame>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import list1 from './parts/list-1.vue';
|
|
|
import adminFrame from '@frame/src/components/mobile-frame/mobile-main.vue';
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
+const { mapActions: patentnav } = createNamespacedHelpers('patentnav');
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
props: {},
|
|
|
components: {
|
|
|
adminFrame,
|
|
|
+ list1,
|
|
|
},
|
|
|
data: function () {
|
|
|
return {
|
|
|
+ list: [],
|
|
|
limit: 5,
|
|
|
total: 0,
|
|
|
};
|
|
@@ -25,7 +31,18 @@ export default {
|
|
|
await this.search();
|
|
|
},
|
|
|
methods: {
|
|
|
- async search({ skip = 0, limit = 10, ...info } = {}) {},
|
|
|
+ ...patentnav(['query']),
|
|
|
+ async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
+ let res = await this.query({ skip, limit, is_show: true, ...info });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `list`, res.data);
|
|
|
+ this.$set(this, `total`, res.total);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 详情
|
|
|
+ detail(data) {
|
|
|
+ this.$router.push({ path: '/market/navigation/detail', query: { id: data.id } });
|
|
|
+ },
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['user']),
|