Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
Jz-Php
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
PHP
Jz-Php
Commits
61a95085
提交
61a95085
authored
5月 27, 2020
作者:
chengye
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加统计地图
上级
6c889c02
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
150 行增加
和
0 行删除
+150
-0
Count.php
application/jz/controller/Count.php
+20
-0
index.html
application/jz/view/count/index.html
+124
-0
index.html
application/jz/view/index/index.html
+4
-0
echarts.min.js
public/static/admin/js/echarts.min.js
+0
-0
admin.php
route/admin.php
+2
-0
没有找到文件。
application/jz/controller/Count.php
0 → 100644
浏览文件 @
61a95085
<?php
/**
* Created by PhpStorm.
* User: chouchou
* Date: 2020-5-27
* Time: 18:56
*/
namespace
app\jz\controller
;
use
app\admin\controller\Base
;
class
Index
extends
Base
{
public
function
index
(){
return
$this
->
fetch
();
}
}
\ No newline at end of file
application/jz/view/count/index.html
0 → 100644
浏览文件 @
61a95085
{extend name="public:base" /}
{block name="body"}
<style
type=
"text/css"
>
.layui-table-page
{
text-align
:
right
;
}
</style>
<div
class=
"layui-fluid"
>
<div
class=
"layui-row layui-col-space15"
>
<div
class=
"layui-col-md12"
>
<div
class=
"layui-card"
>
<div
class=
"layui-card-body"
>
<div
id=
"map"
></div>
</div>
</div>
</div>
</div>
</div>
</body>
<script
type=
"text/javascript"
src=
"__STATIC__/xadmin/js/echarts.min.js"
></script>
<script>
var
myChart
=
echarts
.
init
(
document
.
getElementById
(
'map'
));
myChart
.
showLoading
();
$
.
get
(
'https://geo.datav.aliyun.com/areas_v2/bound/110000_full.json'
,
function
(
geoJson
)
{
myChart
.
hideLoading
();
echarts
.
registerMap
(
'HK'
,
geoJson
);
myChart
.
setOption
(
option
=
{
title
:
{
text
:
'香港18区人口密度 (2011)'
,
subtext
:
'人口密度数据来自Wikipedia'
,
sublink
:
'http://zh.wikipedia.org/wiki/%E9%A6%99%E6%B8%AF%E8%A1%8C%E6%94%BF%E5%8D%80%E5%8A%83#cite_note-12'
},
tooltip
:
{
trigger
:
'item'
,
formatter
:
'{b}<br/>{c} (p / km2)'
},
toolbox
:
{
show
:
true
,
orient
:
'vertical'
,
left
:
'right'
,
top
:
'center'
,
feature
:
{
dataView
:
{
readOnly
:
false
},
restore
:
{},
saveAsImage
:
{}
}
},
visualMap
:
{
min
:
800
,
max
:
50000
,
text
:
[
'High'
,
'Low'
],
realtime
:
false
,
calculable
:
true
,
inRange
:
{
color
:
[
'lightskyblue'
,
'yellow'
,
'orangered'
]
}
},
series
:
[
{
name
:
'香港18区人口密度'
,
type
:
'map'
,
mapType
:
'HK'
,
// 自定义扩展图表类型
label
:
{
show
:
true
},
data
:
[
{
name
:
'中西区'
,
value
:
20057.34
},
{
name
:
'湾仔'
,
value
:
15477.48
},
{
name
:
'东区'
,
value
:
31686.1
},
{
name
:
'南区'
,
value
:
6992.6
},
{
name
:
'油尖旺'
,
value
:
44045.49
},
{
name
:
'深水埗'
,
value
:
40689.64
},
{
name
:
'九龙城'
,
value
:
37659.78
},
{
name
:
'黄大仙'
,
value
:
45180.97
},
{
name
:
'观塘'
,
value
:
55204.26
},
{
name
:
'葵青'
,
value
:
21900.9
},
{
name
:
'荃湾'
,
value
:
4918.26
},
{
name
:
'屯门'
,
value
:
5881.84
},
{
name
:
'元朗'
,
value
:
4178.01
},
{
name
:
'北区'
,
value
:
2227.92
},
{
name
:
'大埔'
,
value
:
2180.98
},
{
name
:
'沙田'
,
value
:
9172.94
},
{
name
:
'西贡'
,
value
:
3368
},
{
name
:
'离岛'
,
value
:
806.98
}
],
// 自定义名称映射
nameMap
:
{
'Central and Western'
:
'中西区'
,
'Eastern'
:
'东区'
,
'Islands'
:
'离岛'
,
'Kowloon City'
:
'九龙城'
,
'Kwai Tsing'
:
'葵青'
,
'Kwun Tong'
:
'观塘'
,
'North'
:
'北区'
,
'Sai Kung'
:
'西贡'
,
'Sha Tin'
:
'沙田'
,
'Sham Shui Po'
:
'深水埗'
,
'Southern'
:
'南区'
,
'Tai Po'
:
'大埔'
,
'Tsuen Wan'
:
'荃湾'
,
'Tuen Mun'
:
'屯门'
,
'Wan Chai'
:
'湾仔'
,
'Wong Tai Sin'
:
'黄大仙'
,
'Yau Tsim Mong'
:
'油尖旺'
,
'Yuen Long'
:
'元朗'
}
}
]
});
});
</script>
<script
type=
"text/html"
id=
"barDemo"
>
<
button
onclick
=
"xadmin.add_tab('基站详情-站号:{{d.jz_code}}','/jzdetail/{{d.business_id}}',true,true)"
class
=
"layui-btn layui-btn-sm"
>
查看
<
/button
>
</script>
<script>
layui
.
use
([
'laydate'
,
'form'
,
'table'
],
function
()
{
});
</script>
{/block}
application/jz/view/index/index.html
浏览文件 @
61a95085
...
@@ -61,3 +61,6 @@
...
@@ -61,3 +61,6 @@
});
});
</script>
</script>
{/block}
{/block}
{block name="js"}
<script
type=
'text/javascript'
src=
'http://cdn.staticfile.org/jquery/2.1.1/jquery.min.js'
></script>
{/block}
\ No newline at end of file
public/static/admin/js/echarts.min.js
0 → 100644
浏览文件 @
61a95085
This source diff could not be displayed because it is too large. You can
view the blob
instead.
route/admin.php
浏览文件 @
61a95085
...
@@ -205,4 +205,6 @@ Route::any('region_data','em/region/region_list');
...
@@ -205,4 +205,6 @@ Route::any('region_data','em/region/region_list');
Route
::
get
(
'jz'
,
'jz/index/index'
);
Route
::
get
(
'jz'
,
'jz/index/index'
);
Route
::
get
(
'jzdetail/:id'
,
'jz/index/detail'
);
Route
::
get
(
'jzdetail/:id'
,
'jz/index/detail'
);
Route
::
get
(
'jz_detail/:id'
,
'jz/guest/detail'
);
Route
::
get
(
'jz_detail/:id'
,
'jz/guest/detail'
);
Route
::
get
(
'jz/count'
,
'jz/count/index'
);
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论