|
@@ -25,7 +25,7 @@
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="common thr">
|
|
<el-col :span="24" class="common thr">
|
|
<el-col :span="12" class="left">
|
|
<el-col :span="12" class="left">
|
|
- <top topText="技术需求"></top>
|
|
|
|
|
|
+ <top topText="科技需求"></top>
|
|
<list type="5" :list="fiveList"></list>
|
|
<list type="5" :list="fiveList"></list>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="12" class="left">
|
|
<el-col :span="12" class="left">
|
|
@@ -42,7 +42,9 @@
|
|
<script>
|
|
<script>
|
|
import top from './parts/top.vue';
|
|
import top from './parts/top.vue';
|
|
import list from './parts/list.vue';
|
|
import list from './parts/list.vue';
|
|
|
|
+const { productType } = require('@common/dict/index');
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
|
+const { mapActions: product } = createNamespacedHelpers('product');
|
|
export default {
|
|
export default {
|
|
name: 'index',
|
|
name: 'index',
|
|
props: {},
|
|
props: {},
|
|
@@ -125,10 +127,32 @@ export default {
|
|
informationdesc: '不知道是神呢',
|
|
informationdesc: '不知道是神呢',
|
|
},
|
|
},
|
|
],
|
|
],
|
|
|
|
+ productType: productType,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- created() {},
|
|
|
|
- methods: {},
|
|
|
|
|
|
+ async created() {
|
|
|
|
+ await this.search();
|
|
|
|
+ },
|
|
|
|
+ methods: {
|
|
|
|
+ ...product({ productQuery: 'query' }),
|
|
|
|
+ async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
|
+ for (const val of this.productType) {
|
|
|
|
+ if (val.value == '0') {
|
|
|
|
+ // 科技需求
|
|
|
|
+ let res = await this.productQuery({ skip, limit: 6, type: val.value, ...info });
|
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `fiveList`, res.data);
|
|
|
|
+ } else if (val.value == '1') {
|
|
|
|
+ // 技术成果
|
|
|
|
+ let res = await this.productQuery({ skip, limit: 6, type: val.value, ...info });
|
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `oneList`, res.data);
|
|
|
|
+ } else if (val.value == '2') {
|
|
|
|
+ // 商务服务
|
|
|
|
+ let res = await this.productQuery({ skip, limit: 5, type: val.value, ...info });
|
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `sixList`, res.data);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ },
|
|
computed: {
|
|
computed: {
|
|
...mapState(['user']),
|
|
...mapState(['user']),
|
|
},
|
|
},
|