Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jcy_monitor
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
beilang
jcy_monitor
Commits
19c60a7e
Commit
19c60a7e
authored
Apr 08, 2024
by
beilang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-04-08
parent
1440a3e8
Hide whitespace changes
Inline
Side-by-side
Showing
44 changed files
with
89 additions
and
1208 deletions
+89
-1208
DeviceController.java
.../java/com/ces/web/device/controller/DeviceController.java
+2
-3
fourfloor.jsp
src/main/webapp/WEB-INF/views/nh/fourfloor.jsp
+2
-28
onefloor.jsp
src/main/webapp/WEB-INF/views/nh/onefloor.jsp
+3
-28
threefloor.jsp
src/main/webapp/WEB-INF/views/nh/threefloor.jsp
+2
-28
twofloor.jsp
src/main/webapp/WEB-INF/views/nh/twofloor.jsp
+2
-28
cfloor.jsp
src/main/webapp/WEB-INF/views/nj/cfloor.jsp
+2
-28
hjfloor.jsp
src/main/webapp/WEB-INF/views/nj/hjfloor.jsp
+2
-28
onefloor.jsp
src/main/webapp/WEB-INF/views/nj/onefloor.jsp
+2
-28
twodoor.jsp
src/main/webapp/WEB-INF/views/nj/twodoor.jsp
+2
-28
twofloor.jsp
src/main/webapp/WEB-INF/views/nj/twofloor.jsp
+2
-28
xxyfloor.jsp
src/main/webapp/WEB-INF/views/nj/xxyfloor.jsp
+2
-28
ywfloor.jsp
src/main/webapp/WEB-INF/views/nj/ywfloor.jsp
+2
-28
edufloor.jsp
src/main/webapp/WEB-INF/views/qp/edufloor.jsp
+2
-28
fivearea.jsp
src/main/webapp/WEB-INF/views/qp/fivearea.jsp
+2
-28
fourarea.jsp
src/main/webapp/WEB-INF/views/qp/fourarea.jsp
+2
-28
onearea.jsp
src/main/webapp/WEB-INF/views/qp/onearea.jsp
+2
-28
onecq.jsp
src/main/webapp/WEB-INF/views/qp/onecq.jsp
+2
-28
sixarea.jsp
src/main/webapp/WEB-INF/views/qp/sixarea.jsp
+2
-28
threearea.jsp
src/main/webapp/WEB-INF/views/qp/threearea.jsp
+2
-28
twoarea.jsp
src/main/webapp/WEB-INF/views/qp/twoarea.jsp
+2
-28
bjxl.jsp
src/main/webapp/WEB-INF/views/wjc/bjxl.jsp
+2
-29
dxyl.jsp
src/main/webapp/WEB-INF/views/wjc/dxyl.jsp
+2
-28
east.jsp
src/main/webapp/WEB-INF/views/wjc/east.jsp
+2
-28
njxl.jsp
src/main/webapp/WEB-INF/views/wjc/njxl.jsp
+2
-28
north.jsp
src/main/webapp/WEB-INF/views/wjc/north.jsp
+2
-28
south.jsp
src/main/webapp/WEB-INF/views/wjc/south.jsp
+2
-28
xxyl.jsp
src/main/webapp/WEB-INF/views/wjc/xxyl.jsp
+2
-28
zhl.jsp
src/main/webapp/WEB-INF/views/wjc/zhl.jsp
+2
-28
jqeight.jsp
src/main/webapp/WEB-INF/views/xsf/jqeight.jsp
+2
-28
jqfive.jsp
src/main/webapp/WEB-INF/views/xsf/jqfive.jsp
+2
-28
jqfour.jsp
src/main/webapp/WEB-INF/views/xsf/jqfour.jsp
+2
-28
jqnine.jsp
src/main/webapp/WEB-INF/views/xsf/jqnine.jsp
+2
-28
jqone.jsp
src/main/webapp/WEB-INF/views/xsf/jqone.jsp
+2
-28
jqseven.jsp
src/main/webapp/WEB-INF/views/xsf/jqseven.jsp
+2
-28
jqthree.jsp
src/main/webapp/WEB-INF/views/xsf/jqthree.jsp
+2
-28
jqtwo.jsp
src/main/webapp/WEB-INF/views/xsf/jqtwo.jsp
+2
-28
hjfloor.jsp
src/main/webapp/WEB-INF/views/zp/hjfloor.jsp
+2
-28
onefloor.jsp
src/main/webapp/WEB-INF/views/zp/onefloor.jsp
+2
-28
threefloor.jsp
src/main/webapp/WEB-INF/views/zp/threefloor.jsp
+2
-28
twofloor.jsp
src/main/webapp/WEB-INF/views/zp/twofloor.jsp
+2
-28
bffloor.jsp
src/main/webapp/WEB-INF/views/zyy/bffloor.jsp
+2
-28
fzfloor.jsp
src/main/webapp/WEB-INF/views/zyy/fzfloor.jsp
+2
-28
grfloor.jsp
src/main/webapp/WEB-INF/views/zyy/grfloor.jsp
+2
-28
xtsfloor.jsp
src/main/webapp/WEB-INF/views/zyy/xtsfloor.jsp
+2
-28
No files found.
src/main/java/com/ces/web/device/controller/DeviceController.java
View file @
19c60a7e
...
@@ -102,14 +102,13 @@ public class DeviceController {
...
@@ -102,14 +102,13 @@ public class DeviceController {
Map
<
String
,
String
>
resultMap
=
new
HashMap
<>(
gbIdArray
.
length
);
Map
<
String
,
String
>
resultMap
=
new
HashMap
<>(
gbIdArray
.
length
);
for
(
String
gbId
:
gbIdArray
)
{
for
(
String
gbId
:
gbIdArray
)
{
/*
QueryWrapper queryWrapper = new QueryWrapper("gbid,status");
QueryWrapper
queryWrapper
=
new
QueryWrapper
(
"gbid,status"
);
queryWrapper
.
eq
(
"gbid"
,
gbId
);
queryWrapper
.
eq
(
"gbid"
,
gbId
);
List
<
DeviceDTO
>
deviceByExt
=
deviceQueryService
.
getDeviceByExt
(
queryWrapper
);
List
<
DeviceDTO
>
deviceByExt
=
deviceQueryService
.
getDeviceByExt
(
queryWrapper
);
if
(
ObjectUtils
.
isNotEmpty
(
deviceByExt
))
{
if
(
ObjectUtils
.
isNotEmpty
(
deviceByExt
))
{
DeviceDTO
device
=
deviceByExt
.
get
(
0
);
DeviceDTO
device
=
deviceByExt
.
get
(
0
);
resultMap
.
put
(
device
.
getGbid
(),
device
.
getStatus
());
resultMap
.
put
(
device
.
getGbid
(),
device
.
getStatus
());
}*/
}
resultMap
.
put
(
gbId
,
"0"
);
}
}
return
Result
.
success
(
resultMap
);
return
Result
.
success
(
resultMap
);
...
...
src/main/webapp/WEB-INF/views/nh/fourfloor.jsp
View file @
19c60a7e
...
@@ -105,37 +105,11 @@
...
@@ -105,37 +105,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/floor4_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/floor4_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/nh/onefloor.jsp
View file @
19c60a7e
...
@@ -282,37 +282,12 @@
...
@@ -282,37 +282,12 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/floor1_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
});
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/floor1_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/nh/threefloor.jsp
View file @
19c60a7e
...
@@ -210,37 +210,11 @@
...
@@ -210,37 +210,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/floor3_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/floor3_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/nh/twofloor.jsp
View file @
19c60a7e
...
@@ -206,37 +206,11 @@
...
@@ -206,37 +206,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/floor2_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/floor2_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/nj/cfloor.jsp
View file @
19c60a7e
...
@@ -132,37 +132,11 @@
...
@@ -132,37 +132,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/nvjian_cookware.png'
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/nvjian_cookware.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/nj/hjfloor.jsp
View file @
19c60a7e
...
@@ -189,37 +189,11 @@
...
@@ -189,37 +189,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/nvjian_huiyi'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/nvjian_huiyi'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/nj/onefloor.jsp
View file @
19c60a7e
...
@@ -750,37 +750,11 @@
...
@@ -750,37 +750,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/nv1_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/nv1_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/nj/twodoor.jsp
View file @
19c60a7e
...
@@ -88,37 +88,11 @@
...
@@ -88,37 +88,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/nvjian_twodamen.png'
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/nvjian_twodamen.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/nj/twofloor.jsp
View file @
19c60a7e
...
@@ -538,37 +538,11 @@
...
@@ -538,37 +538,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/nv2_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/nv2_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/nj/xxyfloor.jsp
View file @
19c60a7e
...
@@ -266,37 +266,11 @@
...
@@ -266,37 +266,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/xiyi'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/xiyi'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/nj/ywfloor.jsp
View file @
19c60a7e
...
@@ -169,37 +169,11 @@
...
@@ -169,37 +169,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/yiwulou'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/yiwulou'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/qp/edufloor.jsp
View file @
19c60a7e
...
@@ -211,37 +211,11 @@
...
@@ -211,37 +211,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/jiaoyu_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/jiaoyu_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/qp/fivearea.jsp
View file @
19c60a7e
...
@@ -356,37 +356,11 @@
...
@@ -356,37 +356,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/qp/jianqu5_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/qp/jianqu5_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/qp/fourarea.jsp
View file @
19c60a7e
...
@@ -267,37 +267,11 @@
...
@@ -267,37 +267,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/qp/jianqu3_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/qp/jianqu3_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/qp/onearea.jsp
View file @
19c60a7e
...
@@ -364,37 +364,11 @@
...
@@ -364,37 +364,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/qp/jianqu1_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/qp/jianqu1_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/qp/onecq.jsp
View file @
19c60a7e
...
@@ -255,37 +255,11 @@
...
@@ -255,37 +255,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/changqu_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/changqu_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/qp/sixarea.jsp
View file @
19c60a7e
...
@@ -283,37 +283,11 @@
...
@@ -283,37 +283,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/qp/jianqu6_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/qp/jianqu6_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/qp/threearea.jsp
View file @
19c60a7e
...
@@ -275,37 +275,11 @@
...
@@ -275,37 +275,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/qp/jianqu3_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/qp/jianqu3_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/qp/twoarea.jsp
View file @
19c60a7e
...
@@ -279,37 +279,11 @@
...
@@ -279,37 +279,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/qp/jianqu2_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/qp/jianqu2_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/wjc/bjxl.jsp
View file @
19c60a7e
...
@@ -101,38 +101,11 @@
...
@@ -101,38 +101,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/jiaoxuelou.png'
).
init
();
console
.
log
(
dataList
[
`arr
${
"${index}"
}
`
].
length
)
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/jiaoxuelou.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/wjc/dxyl.jsp
View file @
19c60a7e
...
@@ -165,37 +165,11 @@
...
@@ -165,37 +165,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/xiyilou'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/xiyilou'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/wjc/east.jsp
View file @
19c60a7e
...
@@ -353,37 +353,11 @@
...
@@ -353,37 +353,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/dongjian'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/dongjian'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/wjc/njxl.jsp
View file @
19c60a7e
...
@@ -125,37 +125,11 @@
...
@@ -125,37 +125,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/nanjiaoxuelou'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/nanjiaoxuelou'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/wjc/north.jsp
View file @
19c60a7e
...
@@ -265,37 +265,11 @@
...
@@ -265,37 +265,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/wjc_workshop'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/wjc_workshop'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/wjc/south.jsp
View file @
19c60a7e
...
@@ -405,37 +405,11 @@
...
@@ -405,37 +405,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/nanjian'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/nanjian'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/wjc/xxyl.jsp
View file @
19c60a7e
...
@@ -185,37 +185,11 @@
...
@@ -185,37 +185,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/westxiyilou'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/westxiyilou'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/wjc/zhl.jsp
View file @
19c60a7e
...
@@ -128,37 +128,11 @@
...
@@ -128,37 +128,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/wjc_zonghelou.png'
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/wjc_zonghelou.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/xsf/jqeight.jsp
View file @
19c60a7e
...
@@ -129,37 +129,11 @@
...
@@ -129,37 +129,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/new_eight_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/new_eight_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/xsf/jqfive.jsp
View file @
19c60a7e
...
@@ -146,37 +146,11 @@
...
@@ -146,37 +146,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/new_five_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/new_five_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/xsf/jqfour.jsp
View file @
19c60a7e
...
@@ -277,37 +277,11 @@
...
@@ -277,37 +277,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/new_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/new_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/xsf/jqnine.jsp
View file @
19c60a7e
...
@@ -369,37 +369,11 @@
...
@@ -369,37 +369,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/new_nine.png'
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/new_nine.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/xsf/jqone.jsp
View file @
19c60a7e
...
@@ -277,37 +277,11 @@
...
@@ -277,37 +277,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/new_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/new_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/xsf/jqseven.jsp
View file @
19c60a7e
...
@@ -89,37 +89,11 @@
...
@@ -89,37 +89,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/new_five_1.png'
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/new_five_1.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/xsf/jqthree.jsp
View file @
19c60a7e
...
@@ -277,37 +277,11 @@
...
@@ -277,37 +277,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/new_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/new_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/xsf/jqtwo.jsp
View file @
19c60a7e
...
@@ -277,37 +277,11 @@
...
@@ -277,37 +277,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/new_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/new_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/zp/hjfloor.jsp
View file @
19c60a7e
...
@@ -352,37 +352,11 @@
...
@@ -352,37 +352,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/zhoupu_huiyi.png'
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/zhoupu_huiyi.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/zp/onefloor.jsp
View file @
19c60a7e
...
@@ -297,37 +297,11 @@
...
@@ -297,37 +297,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/zhoupu_one'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/zhoupu_one'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/zp/threefloor.jsp
View file @
19c60a7e
...
@@ -441,37 +441,11 @@
...
@@ -441,37 +441,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/zhoupu_there'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/zhoupu_there'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/zp/twofloor.jsp
View file @
19c60a7e
...
@@ -361,37 +361,11 @@
...
@@ -361,37 +361,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/zhoupu_two'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/zhoupu_two'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/zyy/bffloor.jsp
View file @
19c60a7e
...
@@ -130,37 +130,11 @@
...
@@ -130,37 +130,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/bingfang1_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/bingfang1_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/zyy/fzfloor.jsp
View file @
19c60a7e
...
@@ -61,37 +61,11 @@
...
@@ -61,37 +61,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/fuzhu1_2.png'
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/fuzhu1_2.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/zyy/grfloor.jsp
View file @
19c60a7e
...
@@ -170,37 +170,11 @@
...
@@ -170,37 +170,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/ganran1_'
,
true
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/ganran1_'
+
index
+
'.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
src/main/webapp/WEB-INF/views/zyy/xtsfloor.jsp
View file @
19c60a7e
...
@@ -50,37 +50,11 @@
...
@@ -50,37 +50,11 @@
]
]
}
}
let
thisIndex
=
1
;
$
(
function
()
{
$
(
function
()
{
// 1、点击上面的li,当前点击的li添加current类,其余兄弟移除类
$
(
".tab_list li"
).
click
(
function
()
{
// 链式编程 当前li添加类,其余兄弟移除类
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
// 2、拿到当前点击的索引号
var
index
=
$
(
this
).
index
();
// 3、下面index对应的模块显示,其余的item隐藏
$
(
".tab_con .item"
).
eq
(
index
).
show
().
siblings
().
hide
();
updateData
(
index
+
1
);
})
updateData
(
1
);
});
function
updateData
(
index
)
{
new
DeviceRender
(
dataList
,
'/static/images/xuetoushi1_1.png'
).
init
();
thisIndex
=
index
;
//循环数组 打摄像头位置
var
divElement
=
document
.
querySelector
(
'.room_box'
);
let
htmlTxt
=
'<img class="bg_img" src="${ctx}/static/images/xuetoushi1_1.png" alt="">'
for
(
let
i
=
0
;
i
<
dataList
[
`arr
${
"${index}"
}
`
].
length
;
i
++
)
{
htmlTxt
=
htmlTxt
+
'<img class="camera" src="${ctx}/static/images/camera.png" '
+
' style="top:'
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
top
+
";left:"
+
dataList
[
`arr
${
"${index}"
}
`
][
i
].
left
+
'" onclick="handleClick('
+
i
+
')"></img>'
}
divElement
.
innerHTML
=
htmlTxt
;
}
function
handleClick
(
i
)
{
});
let
gbId
=
dataList
[
'arr'
+
thisIndex
][
i
].
gbid
;
VideoPlayer
.
show
(
gbId
);
}
</script>
</script>
</body>
</body>
</html>
</html>
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