|
@@ -22,6 +22,7 @@ const { mapActions: mapAffairsColumn } = createNamespacedHelpers('affairsColumn'
|
|
|
const { mapActions: mapAffairsNews } = createNamespacedHelpers('affairsNews');
|
|
|
const { mapActions: mapPolicyColumn } = createNamespacedHelpers('policyColumn');
|
|
|
const { mapActions: mapPolicyNews } = createNamespacedHelpers('policyNews');
|
|
|
+const { mapActions: mapProduct } = createNamespacedHelpers('enterpriseproject');
|
|
|
export default {
|
|
|
name: 'index',
|
|
|
props: {},
|
|
@@ -33,43 +34,17 @@ export default {
|
|
|
map: require('@/assets/map.jpg'),
|
|
|
gndtList: [],
|
|
|
tzggList: [],
|
|
|
- zhzczdList: [
|
|
|
- {
|
|
|
- title: '尼日利亚传统领袖:尼应学习借鉴中国自贸区建设经验',
|
|
|
- date: '2019-12-25',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '八条数据',
|
|
|
- date: '2019-12-25',
|
|
|
- },
|
|
|
- ],
|
|
|
+ zhzczdList: [],
|
|
|
linkList: [],
|
|
|
- xinpinList: [
|
|
|
- {
|
|
|
- title: '科技超市(产品)',
|
|
|
- date: '2019-12-25',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '六条数据',
|
|
|
- date: '2019-12-25',
|
|
|
- },
|
|
|
- ],
|
|
|
- chuangxinList: [
|
|
|
- {
|
|
|
- title: '科技超市(产品)',
|
|
|
- date: '2019-12-25',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '六条数据',
|
|
|
- date: '2019-12-25',
|
|
|
- },
|
|
|
- ],
|
|
|
+ xinpinList: [],
|
|
|
+ chuangxinList: [],
|
|
|
}),
|
|
|
created() {
|
|
|
this.searchSite();
|
|
|
this.searchLink();
|
|
|
this.searchAffairs();
|
|
|
this.searchPolicy();
|
|
|
+ this.searchProduct();
|
|
|
},
|
|
|
computed: {},
|
|
|
methods: {
|
|
@@ -79,6 +54,7 @@ export default {
|
|
|
...mapAffairsNews({ affairsNews: 'query' }),
|
|
|
...mapPolicyColumn({ policyColumnList: 'query', policyColumnInfo: 'fetch' }),
|
|
|
...mapPolicyNews({ policyNews: 'query' }),
|
|
|
+ ...mapProduct({ productList: 'query', productInfo: 'fetch' }),
|
|
|
// 查询站点信息
|
|
|
async searchSite() {
|
|
|
let res = await this.showInfo();
|
|
@@ -137,6 +113,11 @@ export default {
|
|
|
this.$set(this, `${site}List`, res.data);
|
|
|
}
|
|
|
},
|
|
|
+ async searchProduct({ skip = 0, limit = 6, ...info } = {}) {
|
|
|
+ const res = await this.productList({ skip, limit, ...info });
|
|
|
+ this.$set(this, `xinpinList`, res.data);
|
|
|
+ this.$set(this, `chuangxinList`, res.data);
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|