|
@@ -27,7 +27,7 @@
|
|
|
<technology :jishuList="jishuList"></technology>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="lianjie">
|
|
|
- <links></links>
|
|
|
+ <links :linklist="linklist"></links>
|
|
|
</el-col>
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -43,6 +43,7 @@
|
|
|
<script>
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
const { mapActions: news } = createNamespacedHelpers('news');
|
|
|
+const { mapActions: link } = createNamespacedHelpers('links');
|
|
|
import top from '@/layout/common/top.vue';
|
|
|
import menus from '@/layout/common/menus.vue';
|
|
|
import topRight from '@/layout/index/top-right.vue';
|
|
@@ -53,6 +54,11 @@ import technology from '@/layout/index/technology.vue';
|
|
|
import links from '@/layout/index/links.vue';
|
|
|
import foot from '@/layout/common/foot.vue';
|
|
|
export default {
|
|
|
+ metaInfo() {
|
|
|
+ return {
|
|
|
+ title: '吉林省计算中心',
|
|
|
+ };
|
|
|
+ },
|
|
|
name: 'index',
|
|
|
props: {},
|
|
|
components: {
|
|
@@ -73,6 +79,7 @@ export default {
|
|
|
jishuList: [],
|
|
|
noticeList: [],
|
|
|
jobsList: [],
|
|
|
+ linklist: [],
|
|
|
}),
|
|
|
created() {
|
|
|
this.search();
|
|
@@ -80,7 +87,7 @@ export default {
|
|
|
computed: {},
|
|
|
methods: {
|
|
|
...news({ newsQuery: 'query', newsFetch: 'fetch' }),
|
|
|
-
|
|
|
+ ...link({ linkQuery: 'query' }),
|
|
|
async search() {
|
|
|
let res = await this.newsQuery({ skip: 0, limit: 6, col_name: '工作动态', status: 2 });
|
|
|
if (this.$checkRes(res)) this.$set(this, `jobsList`, res.data);
|
|
@@ -90,6 +97,8 @@ export default {
|
|
|
if (this.$checkRes(res)) this.$set(this, `serviceList`, res.data);
|
|
|
res = await this.newsQuery({ skip: 0, limit: 6, col_name: '技术问答', status: 2 });
|
|
|
if (this.$checkRes(res)) this.$set(this, `jishuList`, res.data);
|
|
|
+ res = await this.linkQuery({ skip: 0, limit: 4 });
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `linklist`, res.data);
|
|
|
},
|
|
|
},
|
|
|
};
|