|
@@ -10,9 +10,11 @@
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="info">
|
|
|
<div class="w_1200">
|
|
|
- <el-col :span="6" class="one">
|
|
|
- <img src="../assets/map.jpg" style="width: 100%; height: 100%" />
|
|
|
- <p>创新地图提供科技企业的分布和位置信息</p>
|
|
|
+ <el-col :span="24" class="one">
|
|
|
+ <el-col :span="24" v-for="(item, index) in tpxw1" :key="index" style="width:100%; height:100%">
|
|
|
+ <el-image :src="item.picture" style="width:100%; height:100%"></el-image>
|
|
|
+ <p>{{ item.brief }}</p>
|
|
|
+ </el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="18" class="two">
|
|
|
<el-col :span="24" class="title">
|
|
@@ -28,10 +30,10 @@
|
|
|
<el-col :span="24" class="listInfo" v-for="(item, index) in zxzx" :key="index">
|
|
|
<el-col :span="20">
|
|
|
<span class="circle"></span>
|
|
|
- <span class="text">{{ item.text }}</span>
|
|
|
+ <span class="text">{{ item.title }}</span>
|
|
|
</el-col>
|
|
|
<el-col :span="4" class="time">
|
|
|
- {{ item.time }}
|
|
|
+ {{ item.create_time }}
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -49,12 +51,12 @@
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="list">
|
|
|
<el-col :span="24" class="listInfo" v-for="(item, index) in tzgg" :key="index">
|
|
|
- <el-col :span="20">
|
|
|
+ <el-col :span="18">
|
|
|
<span class="circle"></span>
|
|
|
- <span class="text">{{ item.text }}</span>
|
|
|
+ <span class="text">{{ item.title }}</span>
|
|
|
</el-col>
|
|
|
- <el-col :span="4" class="time">
|
|
|
- {{ item.time }}
|
|
|
+ <el-col :span="6" class="time">
|
|
|
+ {{ item.create_time }}
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -70,13 +72,13 @@
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
<el-col :span="24" class="list">
|
|
|
- <el-col :span="24" class="listInfo" v-for="(item, index) in tzgg" :key="index">
|
|
|
- <el-col :span="20">
|
|
|
+ <el-col :span="24" class="listInfo" v-for="(item, index) in zcfg" :key="index">
|
|
|
+ <el-col :span="18">
|
|
|
<span class="circle"></span>
|
|
|
- <span class="text">{{ item.text }}</span>
|
|
|
+ <span class="text">{{ item.title }}</span>
|
|
|
</el-col>
|
|
|
- <el-col :span="4" class="time">
|
|
|
- {{ item.time }}
|
|
|
+ <el-col :span="6" class="time">
|
|
|
+ {{ item.create_time }}
|
|
|
</el-col>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -119,6 +121,9 @@ import top from '../components/common/top.vue';
|
|
|
import menus from '../components/common/menus.vue';
|
|
|
import foot from '../components/common/foot1.vue';
|
|
|
import link1 from '../components/common/link1.vue';
|
|
|
+const { mapActions: link } = createNamespacedHelpers('links');
|
|
|
+const { mapActions: column } = createNamespacedHelpers('column');
|
|
|
+const { mapActions: kjzxInfo } = createNamespacedHelpers('kjzxInfo');
|
|
|
export default {
|
|
|
metaInfo() {
|
|
|
return { title: this.$route.meta.title };
|
|
@@ -133,63 +138,7 @@ export default {
|
|
|
},
|
|
|
data: function() {
|
|
|
return {
|
|
|
- zxzx: [
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士中国工程院新增两名吉林省院士中国工程院新增两名吉林省院士', time: '2019-12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士中国工程院新增两名吉林省院士中国工程院新增两名吉林省院士', time: '2019-12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士中国工程院新增两名吉林省院士中国工程院新增两名吉林省院士', time: '2019-12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '2019-12-05' },
|
|
|
- ],
|
|
|
- tzgg: [
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士中国工程院新增两名吉林省院士中国工程院新增两名吉林省院士', time: '12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士中国工程院新增两名吉林省院士中国工程院新增两名吉林省院士', time: '12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士中国工程院新增两名吉林省院士中国工程院新增两名吉林省院士', time: '12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士中国工程院新增两名吉林省院士中国工程院新增两名吉林省院士', time: '12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '12-05' },
|
|
|
- { text: '2019年中国科学院、中国工程院新增两名吉林省院士', time: '12-05' },
|
|
|
- ],
|
|
|
- links: [
|
|
|
- {
|
|
|
- url: require('../assets/link2.jpg'),
|
|
|
- href1: '',
|
|
|
- },
|
|
|
- {
|
|
|
- url: require('../assets/link.jpg'),
|
|
|
- href1: '',
|
|
|
- },
|
|
|
- {
|
|
|
- url: require('../assets/link3.jpg'),
|
|
|
- href1: '',
|
|
|
- },
|
|
|
- {
|
|
|
- url: require('../assets/link3.jpg'),
|
|
|
- href1: '',
|
|
|
- },
|
|
|
- ],
|
|
|
+ links: [],
|
|
|
imgs: [
|
|
|
{
|
|
|
url: require('../assets/service1.jpg'),
|
|
@@ -224,10 +173,64 @@ export default {
|
|
|
href1: '',
|
|
|
},
|
|
|
],
|
|
|
+ //科技资讯下栏目
|
|
|
+ kjdtColumn: [],
|
|
|
+ //图片新闻信息
|
|
|
+ tpxw1: [],
|
|
|
+ //最新资讯信息
|
|
|
+ zxzx: [],
|
|
|
+ //通知公告
|
|
|
+ tzgg: [],
|
|
|
+ //政策法规
|
|
|
+ zcfg: [],
|
|
|
};
|
|
|
},
|
|
|
- created() {},
|
|
|
+ created() {
|
|
|
+ this.search();
|
|
|
+ this.searchColumn();
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ ...link({ linkquery: 'query', linkcreate: 'create', linkfetch: 'fetch', linkupdate: 'update', linkdelete: 'delete' }),
|
|
|
+ ...column({ columnquery: 'query', columncreate: 'create', columnfetch: 'fetch', columnupdate: 'update', columndelete: 'delete' }),
|
|
|
+ ...kjzxInfo({ kjzxquery: 'query', kjzxcreate: 'create', kjzxfetch: 'fetch', kjzxupdate: 'update', kjzxdelete: 'delete' }),
|
|
|
+ //查询列表
|
|
|
+ async search() {
|
|
|
+ const res = await this.linkquery();
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `links`, res.data);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //查询栏目
|
|
|
+ async searchColumn() {
|
|
|
+ const res = await this.columnquery();
|
|
|
+ if (res.errcode === 0) {
|
|
|
+ this.$set(this, `kjdtColumn`, res.data);
|
|
|
+ this.search1();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ async search1() {
|
|
|
+ let col = this.kjdtColumn;
|
|
|
+ let tpxw = col.find(i => i.site == 'tpxw');
|
|
|
+ const res = await this.kjzxquery({ column_id: tpxw.id });
|
|
|
+ if (res.errcode === 0) {
|
|
|
+ this.$set(this, `tpxw1`, res.data);
|
|
|
+ }
|
|
|
+ let zxzx = col.find(i => i.site == 'zxzx');
|
|
|
+ const res2 = await this.kjzxquery({ column_id: zxzx.id, limit: 8 });
|
|
|
+ if (res2.errcode === 0) {
|
|
|
+ this.$set(this, `zxzx`, res2.data);
|
|
|
+ }
|
|
|
+ let tzgg = col.find(i => i.site == 'tztg');
|
|
|
+ const res3 = await this.kjzxquery({ column_id: tzgg.id, limit: 8 });
|
|
|
+ if (res3.errcode === 0) {
|
|
|
+ this.$set(this, `tzgg`, res3.data);
|
|
|
+ }
|
|
|
+ let zcfg = col.find(i => i.site == 'zcfg');
|
|
|
+ const res4 = await this.kjzxquery({ column_id: zcfg.id, limit: 8 });
|
|
|
+ if (res4.errcode === 0) {
|
|
|
+ this.$set(this, `zcfg`, res4.data);
|
|
|
+ }
|
|
|
+ },
|
|
|
to() {
|
|
|
this.$router.push({ path: '/list' });
|
|
|
},
|
|
@@ -286,7 +289,7 @@ export default {
|
|
|
overflow: hidden;
|
|
|
.listInfo {
|
|
|
.text {
|
|
|
- width: 280px;
|
|
|
+ width: 250px;
|
|
|
}
|
|
|
.time {
|
|
|
font-size: 13px;
|