|
@@ -1,23 +1,39 @@
|
|
<template>
|
|
<template>
|
|
<!-- 综合展示 -->
|
|
<!-- 综合展示 -->
|
|
- <div class="ComprehensiveDisplayMain">
|
|
|
|
|
|
+ <div class="ComprehensiveDisplayMain" v-if="content != null">
|
|
<!-- 第一层:新闻中心、平台介绍 -->
|
|
<!-- 第一层:新闻中心、平台介绍 -->
|
|
<div class="ComprehensiveDisplayMain_IntroductionOfNewsCenterAndPlatform">
|
|
<div class="ComprehensiveDisplayMain_IntroductionOfNewsCenterAndPlatform">
|
|
<!-- 新闻中心 -->
|
|
<!-- 新闻中心 -->
|
|
<el-card class="Newscenter">
|
|
<el-card class="Newscenter">
|
|
<!-- 新闻中心标题 -->
|
|
<!-- 新闻中心标题 -->
|
|
<div slot="header" class="clearfix userSelect_None">
|
|
<div slot="header" class="clearfix userSelect_None">
|
|
- <span class="clearfix_title"><i class="elIcon el-icon-message-solid"></i>新闻中心</span>
|
|
|
|
|
|
+ <span class="clearfix_title"
|
|
|
|
+ ><i class="elIcon el-icon-message-solid"></i>新闻中心</span
|
|
|
|
+ >
|
|
<span class="clearfix_titleEn" type="text">News Center</span>
|
|
<span class="clearfix_titleEn" type="text">News Center</span>
|
|
</div>
|
|
</div>
|
|
<!-- 新闻中心主题 -->
|
|
<!-- 新闻中心主题 -->
|
|
<div class="Newscenter_main">
|
|
<div class="Newscenter_main">
|
|
<!-- 图片轮播区域 -->
|
|
<!-- 图片轮播区域 -->
|
|
<el-carousel class="Newscenter_main_byArea" height="200px">
|
|
<el-carousel class="Newscenter_main_byArea" height="200px">
|
|
- <el-carousel-item v-for="(item, index) in data.NewscenterAreas" :key="index">
|
|
|
|
- <el-image style="cursor: pointer" :src="item.imageUrl" @click="Jump(item.jumpUrl)" :alt="item.alt"> </el-image>
|
|
|
|
|
|
+ <el-carousel-item
|
|
|
|
+ v-for="(item, index) in content.NewscenterAreas"
|
|
|
|
+ :key="index"
|
|
|
|
+ >
|
|
|
|
+ <el-image
|
|
|
|
+ style="cursor: pointer"
|
|
|
|
+ :src="item.imageUrl"
|
|
|
|
+ @click="Jump(item.jumpUrl)"
|
|
|
|
+ :alt="item.alt"
|
|
|
|
+ >
|
|
|
|
+ </el-image>
|
|
<div class="Newscenter_main_byArea_alt userSelect_None">
|
|
<div class="Newscenter_main_byArea_alt userSelect_None">
|
|
- <el-tooltip class="item" effect="dark" :content="item.alt" :open-delay="1000">
|
|
|
|
|
|
+ <el-tooltip
|
|
|
|
+ class="item"
|
|
|
|
+ effect="dark"
|
|
|
|
+ :content="item.alt"
|
|
|
|
+ :open-delay="1000"
|
|
|
|
+ >
|
|
<span>{{ item.alt }}</span>
|
|
<span>{{ item.alt }}</span>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</div>
|
|
</div>
|
|
@@ -26,38 +42,91 @@
|
|
<!-- 新闻中心内容 -->
|
|
<!-- 新闻中心内容 -->
|
|
<div class="Newscenter_main_content">
|
|
<div class="Newscenter_main_content">
|
|
<!-- 标题 -->
|
|
<!-- 标题 -->
|
|
- <el-tooltip class="item" effect="dark" :content="data.NewscenterData.NewscenterTitle" :open-delay="1000">
|
|
|
|
- <div class="title" @click="Jump(data.NewscenterData.NewscenterUrl)">{{ data.NewscenterData.NewscenterTitle }}</div>
|
|
|
|
|
|
+ <el-tooltip
|
|
|
|
+ class="item"
|
|
|
|
+ effect="dark"
|
|
|
|
+ :content="content.NewscenterData.NewscenterTitle"
|
|
|
|
+ :open-delay="1000"
|
|
|
|
+ >
|
|
|
|
+ <div
|
|
|
|
+ class="title"
|
|
|
|
+ @click="Jump(content.NewscenterData.NewscenterUrl)"
|
|
|
|
+ >
|
|
|
|
+ {{ content.NewscenterData.NewscenterTitle }}
|
|
|
|
+ </div>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
<!-- 内容 -->
|
|
<!-- 内容 -->
|
|
- <el-tooltip class="item" effect="dark" :content="data.NewscenterData.NewscenterContent" :open-delay="1000">
|
|
|
|
|
|
+ <el-tooltip
|
|
|
|
+ class="item"
|
|
|
|
+ effect="dark"
|
|
|
|
+ :content="content.NewscenterData.NewscenterContent"
|
|
|
|
+ :open-delay="1000"
|
|
|
|
+ >
|
|
<div class="content userSelect_None">
|
|
<div class="content userSelect_None">
|
|
- {{ data.NewscenterData.NewscenterContent }}
|
|
|
|
|
|
+ {{ content.NewscenterData.NewscenterContent }}
|
|
</div>
|
|
</div>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
<!-- 小标题 -->
|
|
<!-- 小标题 -->
|
|
- <div v-if="data.NewscenterData.NewscenterTitles.length > 0">
|
|
|
|
|
|
+ <div v-if="content.NewscenterData.NewscenterTitles.length > 0">
|
|
<el-carousel height="70px" direction="vertical">
|
|
<el-carousel height="70px" direction="vertical">
|
|
- <el-carousel-item v-for="index in Math.ceil(data.NewscenterData.NewscenterTitles.length / 2)" :key="index">
|
|
|
|
|
|
+ <el-carousel-item
|
|
|
|
+ v-for="index in Math.ceil(
|
|
|
|
+ content.NewscenterData.NewscenterTitles.length / 2
|
|
|
|
+ )"
|
|
|
|
+ :key="index"
|
|
|
|
+ >
|
|
<el-tooltip
|
|
<el-tooltip
|
|
class="item"
|
|
class="item"
|
|
effect="dark"
|
|
effect="dark"
|
|
- :content="data.NewscenterData.NewscenterTitles[2 * index - 2].title"
|
|
|
|
|
|
+ :content="
|
|
|
|
+ content.NewscenterData.NewscenterTitles[2 * index - 2]
|
|
|
|
+ .title
|
|
|
|
+ "
|
|
:open-delay="1000"
|
|
:open-delay="1000"
|
|
>
|
|
>
|
|
- <div class="titles" @click="Jump(data.NewscenterData.NewscenterTitles[2 * index - 2].url)">
|
|
|
|
- {{ data.NewscenterData.NewscenterTitles[2 * index - 2].title }}
|
|
|
|
|
|
+ <div
|
|
|
|
+ class="titles"
|
|
|
|
+ @click="
|
|
|
|
+ Jump(
|
|
|
|
+ content.NewscenterData.NewscenterTitles[2 * index - 2]
|
|
|
|
+ .url
|
|
|
|
+ )
|
|
|
|
+ "
|
|
|
|
+ >
|
|
|
|
+ {{
|
|
|
|
+ content.NewscenterData.NewscenterTitles[2 * index - 2]
|
|
|
|
+ .title
|
|
|
|
+ }}
|
|
</div>
|
|
</div>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
- <div v-if="data.NewscenterData.NewscenterTitles[2 * index - 1]">
|
|
|
|
|
|
+ <div
|
|
|
|
+ v-if="
|
|
|
|
+ content.NewscenterData.NewscenterTitles[2 * index - 1]
|
|
|
|
+ "
|
|
|
|
+ >
|
|
<el-tooltip
|
|
<el-tooltip
|
|
class="item"
|
|
class="item"
|
|
effect="dark"
|
|
effect="dark"
|
|
- :content="data.NewscenterData.NewscenterTitles[2 * index - 1].title"
|
|
|
|
|
|
+ :content="
|
|
|
|
+ content.NewscenterData.NewscenterTitles[2 * index - 1]
|
|
|
|
+ .title
|
|
|
|
+ "
|
|
:open-delay="1000"
|
|
:open-delay="1000"
|
|
>
|
|
>
|
|
- <div class="titles" @click="Jump(data.NewscenterData.NewscenterTitles[2 * index - 1].url)">
|
|
|
|
- {{ data.NewscenterData.NewscenterTitles[2 * index - 1].title }}
|
|
|
|
|
|
+ <div
|
|
|
|
+ class="titles"
|
|
|
|
+ @click="
|
|
|
|
+ Jump(
|
|
|
|
+ content.NewscenterData.NewscenterTitles[
|
|
|
|
+ 2 * index - 1
|
|
|
|
+ ].url
|
|
|
|
+ )
|
|
|
|
+ "
|
|
|
|
+ >
|
|
|
|
+ {{
|
|
|
|
+ content.NewscenterData.NewscenterTitles[2 * index - 1]
|
|
|
|
+ .title
|
|
|
|
+ }}
|
|
</div>
|
|
</div>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</div>
|
|
</div>
|
|
@@ -72,30 +141,49 @@
|
|
<el-card class="PlatformIsIntroduced">
|
|
<el-card class="PlatformIsIntroduced">
|
|
<!-- 平台介绍标题 -->
|
|
<!-- 平台介绍标题 -->
|
|
<div slot="header" class="clearfix userSelect_None">
|
|
<div slot="header" class="clearfix userSelect_None">
|
|
- <span class="clearfix_title"><i class="elIcon el-icon-s-flag"></i>平台介绍</span>
|
|
|
|
- <span class="clearfix_titleEn" type="text">Platform Introduction</span>
|
|
|
|
|
|
+ <span class="clearfix_title"
|
|
|
|
+ ><i class="elIcon el-icon-s-flag"></i>平台介绍</span
|
|
|
|
+ >
|
|
|
|
+ <span class="clearfix_titleEn" type="text"
|
|
|
|
+ >Platform Introduction</span
|
|
|
|
+ >
|
|
</div>
|
|
</div>
|
|
<!-- 平台介绍主题 -->
|
|
<!-- 平台介绍主题 -->
|
|
- <div class="PlatformIsIntroduced_main" v-html="data.PlatformIsIntroducedContent"></div>
|
|
|
|
|
|
+ <div
|
|
|
|
+ class="PlatformIsIntroduced_main"
|
|
|
|
+ v-html="content.PlatformIsIntroducedContent"
|
|
|
|
+ ></div>
|
|
</el-card>
|
|
</el-card>
|
|
</div>
|
|
</div>
|
|
<!-- 第二层:中国地理信息平台 -->
|
|
<!-- 第二层:中国地理信息平台 -->
|
|
<el-card class="ComprehensiveDisplayMain_ChinaGeographicInformationCenter">
|
|
<el-card class="ComprehensiveDisplayMain_ChinaGeographicInformationCenter">
|
|
<!-- 平台介绍内容 -->
|
|
<!-- 平台介绍内容 -->
|
|
- <span class="ChinaGeographicInformationCenterTitle userSelect_None" @click="undefinedFunction()">中国地理信息平台</span>
|
|
|
|
|
|
+ <span
|
|
|
|
+ class="ChinaGeographicInformationCenterTitle userSelect_None"
|
|
|
|
+ @click="undefinedFunction()"
|
|
|
|
+ >中国地理信息平台</span
|
|
|
|
+ >
|
|
</el-card>
|
|
</el-card>
|
|
<!-- 第三层:服务中心 -->
|
|
<!-- 第三层:服务中心 -->
|
|
<el-card class="ComprehensiveDisplayMain_ServiceCenter">
|
|
<el-card class="ComprehensiveDisplayMain_ServiceCenter">
|
|
<!-- 服务中心标题 -->
|
|
<!-- 服务中心标题 -->
|
|
<div slot="header" class="clearfix userSelect_None">
|
|
<div slot="header" class="clearfix userSelect_None">
|
|
- <span class="clearfix_title"><i class="elIcon el-icon-s-cooperation"></i>服务中心</span>
|
|
|
|
|
|
+ <span class="clearfix_title"
|
|
|
|
+ ><i class="elIcon el-icon-s-cooperation"></i>服务中心</span
|
|
|
|
+ >
|
|
<span class="clearfix_titleEn" type="text">Service Center</span>
|
|
<span class="clearfix_titleEn" type="text">Service Center</span>
|
|
</div>
|
|
</div>
|
|
<!-- 服务中心主题 -->
|
|
<!-- 服务中心主题 -->
|
|
<div class="ServiceCenter_main userSelect_None">
|
|
<div class="ServiceCenter_main userSelect_None">
|
|
- <div @click="undefinedFunction()"><i class="el-icon-s-operation" style="margin-right: 47px"></i>数据管理</div>
|
|
|
|
- <div @click="undefinedFunction()"><i class="el-icon-s-promotion" style="margin-right: 47px"></i>专题发布</div>
|
|
|
|
- <div @click="undefinedFunction()"><i class="el-icon-data-line" style="margin-right: 47px"></i>数据可视化</div>
|
|
|
|
|
|
+ <div @click="undefinedFunction(1)">
|
|
|
|
+ <i class="el-icon-s-operation" style="margin-right: 47px"></i>数据管理
|
|
|
|
+ </div>
|
|
|
|
+ <div @click="undefinedFunction(2)">
|
|
|
|
+ <i class="el-icon-s-promotion" style="margin-right: 47px"></i>专题发布
|
|
|
|
+ </div>
|
|
|
|
+ <div @click="undefinedFunction(3)">
|
|
|
|
+ <i class="el-icon-data-line" style="margin-right: 47px"></i>数据可视化
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</el-card>
|
|
</el-card>
|
|
</div>
|
|
</div>
|
|
@@ -108,25 +196,43 @@ export default {
|
|
data() {
|
|
data() {
|
|
// 后续可调用后端接口动态显示
|
|
// 后续可调用后端接口动态显示
|
|
return {
|
|
return {
|
|
- data: {}
|
|
|
|
|
|
+ content: null,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
created() {
|
|
created() {
|
|
let that = this;
|
|
let that = this;
|
|
- $.getJSON("./static/config/ComprehensiveDisplayData.json", function (result) {
|
|
|
|
- that.data = result;
|
|
|
|
- });
|
|
|
|
|
|
+ $.getJSON(
|
|
|
|
+ "./static/config/ComprehensiveDisplayData.json",
|
|
|
|
+ function (result) {
|
|
|
|
+ that.content = result;
|
|
|
|
+ }
|
|
|
|
+ );
|
|
},
|
|
},
|
|
mounted() {},
|
|
mounted() {},
|
|
methods: {
|
|
methods: {
|
|
Jump(jumpUrl) {
|
|
Jump(jumpUrl) {
|
|
window.open(jumpUrl);
|
|
window.open(jumpUrl);
|
|
},
|
|
},
|
|
- undefinedFunction() {
|
|
|
|
- this.$message.info("敬请期待!");
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ undefinedFunction(key) {
|
|
|
|
+ switch (key) {
|
|
|
|
+ case 1:
|
|
|
|
+ jumpModule("2", 22); // 跳转图层管理(数据管理)
|
|
|
|
+ break;
|
|
|
|
+
|
|
|
|
+ case 2:
|
|
|
|
+ jumpModule("6", 61); // 跳转数据发布(专题发布)
|
|
|
|
+ break;
|
|
|
|
+
|
|
|
|
+ case 3:
|
|
|
|
+ jumpModule("5", 52); // 跳转GIS图层管理(数据可视化)
|
|
|
|
+ break;
|
|
|
|
+
|
|
|
|
+ default:
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|