|
@@ -31,6 +31,7 @@ import supermarketDetail from '@/components/supermaket/supermarket.vue';
|
|
|
import { createNamespacedHelpers, mapGetters, mapState } from 'vuex';
|
|
|
const { mapActions: mapSite } = createNamespacedHelpers('site');
|
|
|
const { mapActions: user } = createNamespacedHelpers('user');
|
|
|
+const { mapActions: marketproduct } = createNamespacedHelpers('marketproduct');
|
|
|
// 获取学校
|
|
|
import { school } from '@/util/school';
|
|
|
export default {
|
|
@@ -59,7 +60,7 @@ export default {
|
|
|
name: '研发服务',
|
|
|
},
|
|
|
{
|
|
|
- name: '技术成果',
|
|
|
+ name: '科技需求',
|
|
|
},
|
|
|
{
|
|
|
name: '创新产品',
|
|
@@ -99,11 +100,11 @@ export default {
|
|
|
// 技术型
|
|
|
jishuList: [],
|
|
|
// 技术型分页
|
|
|
- jishuTotal: 1,
|
|
|
+ jishuTotal: 0,
|
|
|
// 产品型
|
|
|
chanpinList: [],
|
|
|
// 产品型分页
|
|
|
- chanpinTotal: 1,
|
|
|
+ chanpinTotal: 0,
|
|
|
// 服务供求,研发服务
|
|
|
serviceList: [
|
|
|
{
|
|
@@ -120,21 +121,9 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
// 服务分页
|
|
|
- serveTotal: 1,
|
|
|
- tableData: [
|
|
|
- {
|
|
|
- market: '系统管理员',
|
|
|
- make: '硅藻土联盟',
|
|
|
- product: '纳米融金',
|
|
|
- deal: '交易完成',
|
|
|
- },
|
|
|
- {
|
|
|
- market: '四条数据',
|
|
|
- make: '硅藻土联盟',
|
|
|
- product: '纳米融金',
|
|
|
- deal: '交易完成',
|
|
|
- },
|
|
|
- ],
|
|
|
+ serveTotal: 0,
|
|
|
+ // 交易展示
|
|
|
+ tableData: [],
|
|
|
companyTotal: 1,
|
|
|
// 机构团体
|
|
|
mechanismList: [
|
|
@@ -160,6 +149,7 @@ export default {
|
|
|
methods: {
|
|
|
...mapSite(['showInfo']),
|
|
|
...user({ userQuery: 'query' }),
|
|
|
+ ...marketproduct({ productquery: 'query' }),
|
|
|
// 查询站点信息
|
|
|
async search() {
|
|
|
let res = await this.showInfo();
|
|
@@ -171,7 +161,24 @@ export default {
|
|
|
// 查询列表
|
|
|
async searchList({ ...info }) {
|
|
|
let res = await this.userQuery({ role: 5, ...info });
|
|
|
- // console.log(res);
|
|
|
+ // 科技需求
|
|
|
+ res = await this.productquery({ type: 0, ...info });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `jishuList`, res.data);
|
|
|
+ this.$set(this, `jishuTotal`, res.total);
|
|
|
+ }
|
|
|
+ // 创新产品
|
|
|
+ res = await this.productquery({ type: 1, ...info });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `chanpinList`, res.data);
|
|
|
+ this.$set(this, `chanpinTotal`, res.total);
|
|
|
+ }
|
|
|
+ // 研发服务+咨询服务
|
|
|
+ res = await this.productquery({ type: 2, ...info });
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `serviceList`, res.data);
|
|
|
+ this.$set(this, `serveTotal`, res.total);
|
|
|
+ }
|
|
|
},
|
|
|
// 发布
|
|
|
fabu() {},
|
|
@@ -187,7 +194,7 @@ export default {
|
|
|
this.display = 'fivth';
|
|
|
} else if (name === '研发服务') {
|
|
|
this.display = 'sixth';
|
|
|
- } else if (name === '技术成果') {
|
|
|
+ } else if (name === '科技需求') {
|
|
|
this.display = 'seventh';
|
|
|
} else if (name === '创新产品') {
|
|
|
this.display = 'eighth';
|