数据资源参数外引

This commit is contained in:
gaoyuanwei 2022-06-16 18:00:49 +08:00
parent db6bd47bd9
commit a118461845
3 changed files with 23 additions and 3 deletions

View File

@ -61,6 +61,8 @@
<script type="text/javascript" src="./static/config/basicConfig.js"></script> <script type="text/javascript" src="./static/config/basicConfig.js"></script>
<script type="text/javascript" src="./static/config/mapConfig.js"></script> <script type="text/javascript" src="./static/config/mapConfig.js"></script>
<!-- 数据资源参数引用 -->
<script type="text/javascript" src="./static/config/dataResource.js"></script>
<!-- ==========地图相关配置========== --> <!-- ==========地图相关配置========== -->
<script type="text/javascript" src="./leaflet/libs/leaflet/1.3.1/leaflet.js"></script> <script type="text/javascript" src="./leaflet/libs/leaflet/1.3.1/leaflet.js"></script>
<script type="text/javascript" src="./static/js/jquery-3.6.0.min.js"></script> <script type="text/javascript" src="./static/js/jquery-3.6.0.min.js"></script>

View File

@ -0,0 +1,18 @@
/*
* @Author: hisense.wuhongjian
* @Date: 2020-07-07 16:03:23
* @LastEditors: hisense.wuhongjian
* @LastEditTime: 2022-04-01 10:51:45
* @Description: 数据资源参数配置
*/
const launchedDataNum = [
{
num: 10372,
},
{
num: 1080,
},
{
num: 976,
},
]

View File

@ -32,17 +32,17 @@
const launchedData = ref([ const launchedData = ref([
{ {
title: '已上线目录', title: '已上线目录',
num: 10372, num: launchedDataNum[0].num,
img: require('@/assets/home/pageResource/catalogue-icon.png'), img: require('@/assets/home/pageResource/catalogue-icon.png'),
}, },
{ {
title: '已发布服务', title: '已发布服务',
num: 1080, num: launchedDataNum[1].num,
img: require('@/assets/home/pageResource/service-icon.png'), img: require('@/assets/home/pageResource/service-icon.png'),
}, },
{ {
title: '已发布接口', title: '已发布接口',
num: 976, num: launchedDataNum[2].num,
img: require('@/assets/home/pageResource/port-icon.png'), img: require('@/assets/home/pageResource/port-icon.png'),
}, },
]) ])