|
@@ -22,15 +22,25 @@
|
|
|
<techol-frame :list="techolList" @detail="tecDetail"></techol-frame>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
- <el-col :span="24" class="two_2" style="display:none">
|
|
|
+ <el-col :span="24" class="two_2">
|
|
|
<el-image :src="imgUrl"></el-image>
|
|
|
</el-col>
|
|
|
- <el-col :span="24" class="two_1 two_3" style="display:none">
|
|
|
+ <el-col :span="24" class="two_1">
|
|
|
+ <el-col :span="12" class="left">
|
|
|
+ <top topText="专利交易公告" @more="more(2)"></top>
|
|
|
+ <trans-frame :list="transList" @detail="transDetail"></trans-frame>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12" class="right">
|
|
|
+ <top topText="专利导航" @more="more(3)"></top>
|
|
|
+ <nav-frame :list="navList" @detail="navDetail"></nav-frame>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ <!-- <el-col :span="24" class="two_1 two_3" style="display:none">
|
|
|
<el-col :span="24" class="left">
|
|
|
<top topText="项目申报" @more="more(2)"></top>
|
|
|
<project-frame :list="declareList" @detail="proDetail"></project-frame>
|
|
|
</el-col>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
</el-col>
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -60,11 +70,15 @@ import top from './parts/top.vue';
|
|
|
import achieveFrame from './index/achieve.vue';
|
|
|
import techolFrame from './index/techol.vue';
|
|
|
import projectFrame from './index/project.vue';
|
|
|
+import transFrame from './index/trans.vue';
|
|
|
+import navFrame from './index/nav.vue';
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
const { mapActions: organization } = createNamespacedHelpers('organization');
|
|
|
const { mapActions: achieveApply } = createNamespacedHelpers('achieveApply');
|
|
|
const { mapActions: product } = createNamespacedHelpers('product');
|
|
|
const { mapActions: declare } = createNamespacedHelpers('declare');
|
|
|
+const { mapActions: patenttrans } = createNamespacedHelpers('patenttrans');
|
|
|
+const { mapActions: patentnav } = createNamespacedHelpers('patentnav');
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
props: {},
|
|
@@ -73,7 +87,9 @@ export default {
|
|
|
top,
|
|
|
achieveFrame,
|
|
|
techolFrame,
|
|
|
- projectFrame,
|
|
|
+ // projectFrame,
|
|
|
+ transFrame,
|
|
|
+ navFrame,
|
|
|
},
|
|
|
data: function() {
|
|
|
return {
|
|
@@ -97,6 +113,10 @@ export default {
|
|
|
techolList: [],
|
|
|
// 项目申报
|
|
|
declareList: [],
|
|
|
+ // 专利交易公告
|
|
|
+ transList: [],
|
|
|
+ // 专利导航
|
|
|
+ navList: [],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -107,6 +127,8 @@ export default {
|
|
|
...achieveApply(['query']),
|
|
|
...product({ productQuery: 'query' }),
|
|
|
...declare({ declareQuery: 'query' }),
|
|
|
+ ...patenttrans({ patenttransQuery: 'query' }),
|
|
|
+ ...patentnav({ patentnavQuery: 'query' }),
|
|
|
// 查询列表
|
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
let res = await this.query({ skip, limit: 5, status: '7', ...info });
|
|
@@ -121,6 +143,16 @@ export default {
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `declareList`, res.data);
|
|
|
}
|
|
|
+ // 专利交易公告
|
|
|
+ res = await this.patenttransQuery({ skip, limit: 5, status: '4', ...info });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `transList`, res.data);
|
|
|
+ }
|
|
|
+ // 专利导航
|
|
|
+ res = await this.patentnavQuery({ skip, limit: 8, is_show: true, ...info });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `navList`, res.data);
|
|
|
+ }
|
|
|
},
|
|
|
// 打开弹框
|
|
|
btn(data) {
|
|
@@ -168,9 +200,17 @@ export default {
|
|
|
tecDetail(data) {
|
|
|
this.$router.push({ path: '/twoweb/service/list', query: { index: 1, id: data.id } });
|
|
|
},
|
|
|
- // 项目申报
|
|
|
- proDetail(data) {
|
|
|
- this.$router.push({ path: '/twoweb/service/list', query: { index: 2, id: data._id } });
|
|
|
+ // // 项目申报
|
|
|
+ // proDetail(data) {
|
|
|
+ // this.$router.push({ path: '/twoweb/service/list', query: { index: 2, id: data._id } });
|
|
|
+ // },
|
|
|
+ // 专利交易公告
|
|
|
+ transDetail(data) {
|
|
|
+ // this.$router.push({ path: '/twoweb/service/list', query: { index: 2, id: data._id } });
|
|
|
+ },
|
|
|
+ // 专利导航
|
|
|
+ navDetail(data) {
|
|
|
+ this.$router.push({ path: '/twoweb/service/list', query: { index: 3, id: data._id } });
|
|
|
},
|
|
|
},
|
|
|
computed: {
|