Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zanhuangyingji
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yaqizhang
zanhuangyingji
Commits
4cca41e5
Commit
4cca41e5
authored
Apr 08, 2022
by
yaqizhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不合理样式优化
parent
8019c493
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
33 deletions
+48
-33
index.html
ioc_frontweb/index.html
+15
-0
app.js
ioc_frontweb/js/app.js
+9
-9
utils.js
ioc_frontweb/js/utils.js
+23
-23
style.css
ioc_frontweb/style/style.css
+1
-1
No files found.
ioc_frontweb/index.html
View file @
4cca41e5
...
@@ -243,6 +243,21 @@
...
@@ -243,6 +243,21 @@
</a>
</a>
</div> -->
</div> -->
<div
class=
"alarm"
id=
"alarm"
>
<div
class=
"alarm"
id=
"alarm"
>
<div
class=
"itemh2"
>
预警监控
<img
src=
"images/vector12.png"
alt=
""
style=
"width: 14px;margin-right: 10px;"
>
</div>
<div
class=
"itemout"
>
<div
class=
"item"
>
<div
class=
"itemTitle"
>
预警总数
</div><div
class=
"num"
>
0
</div>
</div>
<div
class=
"item"
>
<div
class=
"itemTitle"
>
已处理
</div><div
class=
"num"
>
0
</div>
</div>
<div
class=
"item"
>
<div
class=
"itemTitle"
>
未处理
</div><div
class=
"num"
>
0
</div>
</div>
</div>
</div>
</div>
<div
style=
"background: linear-gradient(to left,#111a2e,#64FEFF,#111a2e);height:1px;margin-top: 20px;margin-bottom: 20px;margin-left: 20px;width: 90%;"
></div>
<div
style=
"background: linear-gradient(to left,#111a2e,#64FEFF,#111a2e);height:1px;margin-top: 20px;margin-bottom: 20px;margin-left: 20px;width: 90%;"
></div>
<div
id=
""
class=
"leftBar-legend"
>
<div
id=
""
class=
"leftBar-legend"
>
...
...
ioc_frontweb/js/app.js
View file @
4cca41e5
...
@@ -437,7 +437,7 @@ $(function () {
...
@@ -437,7 +437,7 @@ $(function () {
currEventsArr
=
[...
getCurrEventsArr
,
...
socketCurrEventsArr
];
currEventsArr
=
[...
getCurrEventsArr
,
...
socketCurrEventsArr
];
$
(
".currEvNum"
).
html
(
currEventsArr
.
length
);
$
(
".currEvNum"
).
html
(
currEventsArr
.
length
);
if
(
getCurrEventsArr
.
length
>
0
)
if
(
getCurrEventsArr
.
length
>
0
)
$
(
".escbox-txt"
).
html
(
'<font style="color:red">有待处理事件
!
</font>'
);
$
(
".escbox-txt"
).
html
(
'<font style="color:red">有待处理事件
!
</font>'
);
if
(
socketCurrEventsArr
.
length
>
0
)
if
(
socketCurrEventsArr
.
length
>
0
)
$
(
".escbox-txt"
).
html
(
'<font style="color:red">发生事件!</font>'
);
$
(
".escbox-txt"
).
html
(
'<font style="color:red">发生事件!</font>'
);
layTable
.
render
({
layTable
.
render
({
...
@@ -1150,15 +1150,15 @@ $(function () {
...
@@ -1150,15 +1150,15 @@ $(function () {
function
defalutMApP
()
{
function
defalutMApP
()
{
cont
=
0
;
cont
=
0
;
map
.
clearMap
();
map
.
clearMap
();
district
.
search
(
"
新乐市
"
,
function
(
status
,
result
)
{
district
.
search
(
"
赞皇
"
,
function
(
status
,
result
)
{
var
bounds
=
result
.
districtList
[
0
].
boundaries
;
var
bounds
=
result
.
districtList
[
0
].
boundaries
;
var
mask
=
[];
//
var mask = [];
for
(
var
i
=
0
;
i
<
bounds
.
length
;
i
+=
1
)
{
//
for (var i = 0; i < bounds.length; i += 1) {
mask
.
push
([
bounds
[
i
]]);
//
mask.push([bounds[i]]);
}
//
}
var
defaultCenter
=
[
114.
72995
,
38.37417
];
var
defaultCenter
=
[
114.
391885
,
37.672925
];
map
=
new
AMap
.
Map
(
"container"
,
{
map
=
new
AMap
.
Map
(
"container"
,
{
mask
:
mask
,
//
mask: mask,
center
:
defaultCenter
,
center
:
defaultCenter
,
// resizeEnable: true,
// resizeEnable: true,
disableSocket
:
true
,
disableSocket
:
true
,
...
@@ -1166,7 +1166,7 @@ $(function () {
...
@@ -1166,7 +1166,7 @@ $(function () {
showLabel
:
true
,
showLabel
:
true
,
// labelzIndex: 110,
// labelzIndex: 110,
pitch
:
8
,
pitch
:
8
,
zoom
:
1
1
.5
,
zoom
:
1
2
.5
,
// mapStyle: 'amap://styles/darkblue',
// mapStyle: 'amap://styles/darkblue',
mapStyle
:
"amap://styles/3b679a15f448a4740ba2ff7524e1a4ae"
,
mapStyle
:
"amap://styles/3b679a15f448a4740ba2ff7524e1a4ae"
,
});
});
...
...
ioc_frontweb/js/utils.js
View file @
4cca41e5
...
@@ -1334,28 +1334,28 @@ function queryGisTrails(memId, startTime, endTime) {
...
@@ -1334,28 +1334,28 @@ function queryGisTrails(memId, startTime, endTime) {
}
}
// 语音呼叫
// 语音呼叫
function
makeCall
(
callee
)
{
//
function makeCall(callee) {
var
opts
=
{
//
var opts = {
url
:
apis
.
scooper
.
makeCall
,
//
url: apis.scooper.makeCall,
type
:
'post'
,
//
type: 'post',
data
:
{
//
data: {
token
:
token
,
//
token: token,
caller
:
'8001'
,
//
caller: '8001',
callee
:
callee
,
//
callee: callee,
businessId
:
'998'
,
//
businessId: '998',
isRecord
:
1
,
//
isRecord: 1,
},
//
},
contentType
:
'application/x-www-form-urlencoded'
,
//
contentType: 'application/x-www-form-urlencoded',
success
:
function
(
res
)
{
//
success: function (res) {
if
(
res
.
code
==
0
)
{
//
if (res.code == 0) {
console
.
log
(
res
);
//
console.log(res);
}
else
{
//
} else {
alert
(
'呼叫失败:'
+
data
.
message
);
//
alert('呼叫失败:' + data.message);
}
//
}
},
//
},
};
//
};
jQueryAjax
(
opts
);
//
jQueryAjax(opts);
}
//
}
// 视频呼叫
// 视频呼叫
function
makeVideoCall
(
callee
,
callback
)
{
function
makeVideoCall
(
callee
,
callback
)
{
...
@@ -1466,7 +1466,7 @@ function getDutyInfo() {
...
@@ -1466,7 +1466,7 @@ function getDutyInfo() {
for
(
var
a
=
0
;
a
<
duteManInfo
.
length
;
a
++
){
for
(
var
a
=
0
;
a
<
duteManInfo
.
length
;
a
++
){
if
(
a
==
2
){
if
(
a
==
2
){
var
phone
=
"'"
+
duteManInfo
[
a
]
+
"'"
;
var
phone
=
"'"
+
duteManInfo
[
a
]
+
"'"
;
html
+=
'<dd>
<button class="layui-btn layui-btn-xs" onclick="makeCall('
+
phone
+
')">'
+
duteManInfo
[
a
]
+
'</button>
</dd>'
;
html
+=
'<dd>
'
+
duteManInfo
[
a
]
+
'
</dd>'
;
}
else
{
}
else
{
html
+=
"<dd>"
+
duteManInfo
[
a
]
+
"</dd>"
;
html
+=
"<dd>"
+
duteManInfo
[
a
]
+
"</dd>"
;
}
}
...
...
ioc_frontweb/style/style.css
View file @
4cca41e5
...
@@ -782,7 +782,7 @@ table.layui-table th {
...
@@ -782,7 +782,7 @@ table.layui-table th {
line-height
:
70px
;
line-height
:
70px
;
display
:
inline
;
display
:
inline
;
float
:
left
;
float
:
left
;
margin-left
:
10
px
;
margin-left
:
5
px
;
}
}
.escbox-bottom
.escbox-top
{
.escbox-bottom
.escbox-top
{
height
:
auto
;
height
:
auto
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment