Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
Jz-Php
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
PHP
Jz-Php
Commits
54caec4c
提交
54caec4c
authored
6月 09, 2020
作者:
chengye
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
细节调整
上级
a0cc0bc6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
98 行增加
和
67 行删除
+98
-67
Region.php
application/em/controller/Region.php
+2
-2
region_list.html
application/em/view/region/region_list.html
+4
-0
Count.php
application/jz/controller/Count.php
+1
-1
Index.php
application/jz/controller/Index.php
+8
-0
detail.html
application/jz/view/index/detail.html
+77
-64
style.css
public/static/admin/css/style.css
+6
-0
没有找到文件。
application/em/controller/Region.php
浏览文件 @
54caec4c
...
...
@@ -108,7 +108,7 @@ class Region extends Base
$map
[]
=
[
'jz_latitude'
,
'neq'
,
""
];
$datalist
=
$db
->
table
(
'jz_message'
)
->
field
(
'business_id,jz_state,jz_name,project_code,jz_longitude,jz_latitude'
)
->
where
(
$map
)
->
limit
(
2
00
)
->
select
();
$datalist
=
$db
->
table
(
'jz_message'
)
->
field
(
'business_id,jz_state,jz_name,project_code,jz_longitude,jz_latitude'
)
->
where
(
$map
)
->
limit
(
3
00
)
->
select
();
if
(
!
$datalist
)
{
echo
0
;
...
...
@@ -155,7 +155,7 @@ class Region extends Base
$je
=
$arr
[
'Je'
];
$map1
[]
=
[
'jz_longitude'
,
'between'
,
"
$ne
,
$je
"
];
$map1
[]
=
[
'jz_latitude'
,
'between'
,
"
$zd
,
$xd
"
];
$datalist
=
$db
->
table
(
'jz_message'
)
->
field
(
'business_id,jz_state,jz_name,project_code,jz_longitude,jz_latitude'
)
->
where
(
$map1
)
->
limit
(
2
00
)
->
select
();
$datalist
=
$db
->
table
(
'jz_message'
)
->
field
(
'business_id,jz_state,jz_name,project_code,jz_longitude,jz_latitude'
)
->
where
(
$map1
)
->
limit
(
3
00
)
->
select
();
}
if
(
!
$datalist
)
{
echo
0
;
...
...
application/em/view/region/region_list.html
浏览文件 @
54caec4c
...
...
@@ -49,6 +49,10 @@
<div
class=
"layui-input-inline layui-show-xs-block"
>
<button
class=
"layui-btn"
lay-submit=
""
lay-filter=
"search"
><i
class=
"layui-icon"
>

</i></button>
</div>
<div
class=
"layui-input-inline layui-show-xs-block layui-right"
>
<div
class=
"layui-input-inline"
>
说明:当前地图区域仅能显示不超过300个站点,如想查看更多请提高地图缩放等级。
</div>
<div
class=
"layui-input-inline layui-show-xs-block layui-right"
>
<div
class=
"layui-input-inline"
>
<img
src=
"__STATIC__/admin/image/3.png"
alt=
""
width=
"30"
>
开通
<span
id=
"valueR"
></span>
...
...
application/jz/controller/Count.php
浏览文件 @
54caec4c
...
...
@@ -14,7 +14,7 @@ use think\Db;
class
Count
extends
Base
{
public
function
index
(){
header
(
'Location: http://114.113.126.44:3000/d/dcUEvUkMk/ji-zhan-quan-lan?
from=1483142400000&to=1589673600000&
orgId=1&kiosk=tv'
);
header
(
'Location: http://114.113.126.44:3000/d/dcUEvUkMk/ji-zhan-quan-lan?orgId=1&kiosk=tv'
);
}
...
...
application/jz/controller/Index.php
浏览文件 @
54caec4c
...
...
@@ -66,6 +66,14 @@ class Index extends Base
if
(
$construct
)
$data
->
jz_construct
=
$construct
[
'qy'
];
if
(
$data
->
jz_state
<=
3
){
$data
->
jz_state
=
'选址'
;
}
else
if
(
$data
->
jz_state
>
3
&&
$data
->
jz_state
<=
9
){
$data
->
jz_state
=
'建站'
;
}
else
if
(
$data
->
jz_state
>
9
){
$data
->
jz_state
=
'开通'
;
}
$data
->
tag
=
1
;
$devs
=
\app\jz\model\Index
::
getDevs
(
$id
);
$this
->
assign
(
'devs'
,
$devs
);
...
...
application/jz/view/index/detail.html
浏览文件 @
54caec4c
...
...
@@ -21,11 +21,13 @@
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"station_sp_code"
title=
"点击查看二维码"
autocomplete=
"off"
class=
"layui-input no-border"
value=
"{$data.business_id}"
disabled=
"disabled"
style=
"min-width: 230px"
>
class=
"layui-input no-border"
value=
"{$data.business_id}"
disabled=
"disabled"
style=
"min-width: 230px"
>
</div>
{if $data['tag'] == 1}
<div
class=
"layui-inline"
id=
"qr"
data-id=
"{$data.business_id}"
style=
"cursor: pointer;line-height: 35px;margin-left: 24px; position: relative;"
>
<div
class=
"layui-inline"
id=
"qr"
data-id=
"{$data.business_id}"
style=
"cursor: pointer;line-height: 35px;margin-left: 24px; position: relative;"
>
<span
class=
"iconfont icon-qr-code"
></span>
</div>
{/if}
...
...
@@ -38,7 +40,8 @@
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"station_sp_code"
autocomplete=
"off"
class=
"layui-input no-border"
value=
"{$data.jz_code}"
disabled=
"disabled"
>
class=
"layui-input no-border"
value=
"{$data.jz_code}"
disabled=
"disabled"
>
</div>
</div>
</div>
...
...
@@ -48,7 +51,8 @@
站名:
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"station_name"
autocomplete=
"off"
class=
"layui-input no-border"
<input
type=
"text"
name=
"station_name"
autocomplete=
"off"
class=
"layui-input no-border"
value=
{$data.jz_name}
disabled=
"disabled"
>
</div>
...
...
@@ -61,7 +65,20 @@
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"project_number"
autocomplete=
"off"
class=
"layui-input no-border"
value=
"{$data.project_code}"
disabled=
"disabled"
>
class=
"layui-input no-border"
value=
"{$data.project_code}"
disabled=
"disabled"
>
</div>
</div>
</div>
<div
class=
"layui-col-md5 layui-col-xs10"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
状态:
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"project_number"
autocomplete=
"off"
class=
"layui-input no-border"
value=
"{$data.jz_state}"
disabled=
"disabled"
>
</div>
</div>
</div>
...
...
@@ -84,7 +101,8 @@
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"area_name"
autocomplete=
"off"
class=
"layui-input no-border"
value=
"{$data.jz_project_owner}"
disabled=
"disabled"
>
class=
"layui-input no-border"
value=
"{$data.jz_project_owner}"
disabled=
"disabled"
>
</div>
</div>
</div>
...
...
@@ -95,7 +113,8 @@
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"area_name"
autocomplete=
"off"
class=
"layui-input no-border"
value=
"{$data.jz_construct}"
disabled=
"disabled"
>
class=
"layui-input no-border"
value=
"{$data.jz_construct}"
disabled=
"disabled"
>
</div>
</div>
</div>
...
...
@@ -107,9 +126,11 @@
</label>
<div
class=
"layui-input-inline"
>
{if $data['jz_longitude'] == '' or $data['jz_latitude'] == ''}
<span
style=
"display: inline-block"
>
地图不可用
</span>
<span
style=
"display: inline-block"
>
地图不可用
</span>
{else /}
<a
class=
"no-border "
data-method=
"notice"
style=
"padding-left: 10px;"
onclick=
"xadmin.open('{$data.jz_name}','/base_map?station_name={$data.jz_name}')"
>
{$data.project_address}
<i
class=
"layui-icon"
>

</i></a>
<a
class=
"no-border "
data-method=
"notice"
style=
"padding-left: 10px;"
onclick=
"xadmin.open('{$data.jz_name}','/base_map?station_name={$data.jz_name}')"
>
{$data.project_address}
<i
class=
"layui-icon"
>

</i></a>
{/if}
</div>
...
...
@@ -122,7 +143,7 @@
位置:
</label>
<div
class=
"layui-input-inline"
>
<a
class=
"no-border "
style=
"padding-left: 10px;"
>
{$data.project_address}
</a>
<a
class=
"no-border "
style=
"padding-left: 10px;"
>
{$data.project_address}
</a>
</div>
</div>
</div>
...
...
@@ -134,11 +155,12 @@
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
name=
"area_name"
autocomplete=
"off"
class=
"layui-input no-border"
value=
"{$data.create_date}"
disabled=
"disabled"
>
class=
"layui-input no-border"
value=
"{$data.create_date}"
disabled=
"disabled"
>
</div>
</div>
</div>
{if $data.tag == 1}
<div
class=
"layui-col-md10 layui-col-xs12"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
...
...
@@ -146,19 +168,19 @@
</label>
</div>
<div
class=
"devs_table"
>
<table
class=
"layui-table"
>
<thead>
<tr>
<th>
序号
</th>
<th>
设备类型
</th>
<th>
设备型号
</th>
<th>
品牌
</th>
<th>
功率(W)
</th>
<th>
制式
</th>
<th>
数量
</th>
</thead>
<tbody>
{volist name="devs" id="item" key="k"}
<table
class=
"layui-table"
>
<thead>
<tr>
<th>
序号
</th>
<th>
设备类型
</th>
<th>
设备型号
</th>
<th>
品牌
</th>
<th>
功率(W)
</th>
<th>
制式
</th>
<th>
数量
</th>
</thead>
<tbody>
{volist name="devs" id="item" key="k"}
<tr>
<td>
{$k}
</td>
<td>
{$item.device_name}
</td>
...
...
@@ -168,9 +190,9 @@
<td>
{$item.radio_type}
</td>
<td>
{$item.numb}
</td>
</tr>
{/volist}
</tbody>
</table>
{/volist}
</tbody>
</table>
</div>
</div>
<div
class=
"layui-col-md10 layui-col-xs12"
>
...
...
@@ -192,7 +214,8 @@
<tbody>
{volist name="useage" id="u"}
<tr>
<td>
{$u.em_numb}
</td></td>
<td>
{$u.em_numb}
</td>
</td>
<td>
{$u.last_date}
</td>
<td>
{$u.current_date}
</td>
<td>
{$u.repo}
</td>
...
...
@@ -203,7 +226,7 @@
</table>
</div>
</div>
{/if}
</div>
</div>
</div>
...
...
@@ -214,8 +237,8 @@
<script
type=
'text/javascript'
src=
'http://cdn.staticfile.org/jquery/2.1.1/jquery.min.js'
></script>
<script
type=
"text/javascript"
src=
"http://cdn.staticfile.org/jquery.qrcode/1.0/jquery.qrcode.min.js"
></script>
<script>
$
(
function
()
{
$
(
"#qr"
).
click
(
function
()
{
$
(
function
()
{
$
(
"#qr"
).
click
(
function
()
{
$url
=
'http://demojz.gonn.tech/jz_detail/'
+
$
(
this
).
data
(
'id'
);
var
$qrcode
=
$
(
'#qrcode'
)
$qrcode
.
html
(
''
)
...
...
@@ -224,22 +247,22 @@
var
$height
=
80
;
var
$dWidth
=
$
(
document
).
width
();
if
(
$dWidth
<=
1366
)
{
if
(
$dWidth
<=
1366
)
{
$width
=
$height
=
60
}
$qrcode
.
qrcode
({
width
:
$width
,
height
:
$height
,
correctLevel
:
0
,
text
:
$url
})
$
(
this
).
find
(
'.icon-qr-code'
).
hide
()
layui
.
use
([
'layer'
],
function
()
{
layui
.
use
([
'layer'
],
function
()
{
$
=
layui
.
jquery
;
var
layer
=
layui
.
layer
;
var
layer
=
layui
.
layer
;
layer
.
open
({
type
:
1
,
title
:
false
,
content
:
$
(
'#qrcard'
),
type
:
1
,
title
:
false
,
content
:
$
(
'#qrcard'
),
shade
:
[
0.8
,
'#393D49'
],
anim
:
0
,
scrollbar
:
false
,
cancel
:
function
()
{
anim
:
0
,
scrollbar
:
false
,
cancel
:
function
()
{
$
(
"#qr"
).
find
(
'.icon-qr-code'
).
show
()
$
(
'#qrcard'
).
hide
()
}
...
...
@@ -254,32 +277,22 @@
<div
id=
"qrcard"
>
<div
class=
"qrhead"
></div>
<div
class=
"layui-inline-block"
style=
"padding-left: 10px;line-height:33px;"
>
<span
class=
"qrtitle"
>
资产编码:
</span>
<span
class=
"qrval"
>
{$data.business_id}
</span>
<span
class=
"qrtitle"
>
资产编码:
</span>
<span
class=
"qrval"
>
{$data.business_id}
</span>
</div>
<div
class=
"qrinfo"
>
<div
class=
"layui-inline-block"
>
<span
class=
"qrtitle"
>
站点名称:
</span>
<span
class=
"qrval"
>
{$data.jz_name}
</span>
<div
class=
"qr-bottom"
>
<div
class=
"qrinfo"
>
<div
class=
"layui-inline-block"
>
<span
class=
"qrtitle"
>
站点名称:
</span>
<span
class=
"qrval"
>
{$data.jz_name}
</span>
</div>
<div
class=
"layui-inline-block"
>
<span
class=
"qrtitle"
>
站点编号:
</span>
<span
class=
"qrval"
>
{$data.jz_code}
</span>
</div>
</div>
<div
class=
"layui-inline-block"
>
<span
class=
"qrtitle"
>
站点编号:
</span>
<span
class=
"qrval"
>
{$data.jz_code}
</span>
</div>
<div
id=
"qrcode"
></div>
</div>
<div
id=
"qrcode"
></div>
</div>
...
...
public/static/admin/css/style.css
浏览文件 @
54caec4c
...
...
@@ -142,4 +142,9 @@ ul.station_flow li.active>*{
display
:
inline-block
;
vertical-align
:
top
;
margin-top
:
4px
;
}
.qr-bottom
{
display
:
flex
;
justify-content
:
space-around
;
}
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论