diff --git a/css/accessMge/accessMge.css b/css/accessMge/accessMge.css
index 4c82bec..d58ea48 100644
--- a/css/accessMge/accessMge.css
+++ b/css/accessMge/accessMge.css
@@ -204,4 +204,9 @@ body {
.layui-form-item .layui-input-inline{
width: 150px;
+}
+
+.layui-table-cell {
+ height: auto;
+ white-space: normal;
}
\ No newline at end of file
diff --git a/css/personnelControl/personnelControl.css b/css/personnelControl/personnelControl.css
index 4e32905..b72a508 100644
--- a/css/personnelControl/personnelControl.css
+++ b/css/personnelControl/personnelControl.css
@@ -310,4 +310,9 @@ ul li {
#tree>.layui-tree>.layui-tree-txt{
color: #fff !important;
+}
+
+.layui-table-cell {
+ height: auto;
+ white-space: normal;
}
\ No newline at end of file
diff --git a/img/personnelControl/PersonnelMovement.png b/img/personnelControl/PersonnelMovement.png
index e2687b7..96e35c1 100644
Binary files a/img/personnelControl/PersonnelMovement.png and b/img/personnelControl/PersonnelMovement.png differ
diff --git a/js/pages/video/video.js b/js/pages/video/video.js
index 35833e7..82aea09 100644
--- a/js/pages/video/video.js
+++ b/js/pages/video/video.js
@@ -15,11 +15,17 @@ layui.config({
$("#voi-photo").niceScroll({ cursorborder: "", cursorcolor: "#c0c4cc", boxzoom: true });
$("#video-tree").niceScroll({ cursorborder: "", cursorcolor: "#c0c4cc", boxzoom: true });
dtree.on("node('video-tree')", function (obj) {
+ debugger
if (obj.param.level === '1') {
return parent.layer.msg('请选择球机', { icon: 7 });
}
const nodeId = obj.param.nodeId;
let puid = nodeId.replace('QJ', '');
+ let online = puid.substring(puid.length - 1, puid.length);
+ if(online === '0'){
+ return parent.layer.msg("设备离线",{icon:7});
+ }
+ puid = puid.substring(0, puid.length - 2);
if (puid) {
parent.layer.msg("视频加载中,请稍候...", { icon: 16, scrollbar: false, time: 1000, });
QXPlayVideo(puid, '0', winDom)
diff --git a/js/personnelControl/personnelControl.js b/js/personnelControl/personnelControl.js
index d409ed3..dc1b2b3 100644
--- a/js/personnelControl/personnelControl.js
+++ b/js/personnelControl/personnelControl.js
@@ -140,11 +140,11 @@ function wearGarList(){
bidCode: bidCode
},
cols: [[
- {field: 'number', width:80,title: '序号', align: 'center', type: 'numbers'},
- {field: 'deviceType', width:120, align: 'center', title: '装备类型'},
- {field: 'deviceName', width:120, align: 'center', title: '装备名称'},
- {field: 'userName', width:80, align: 'center', title: '负责人'},
- {field: 'status', align: 'center', title: '状态' ,templet: function (d) {
+ {field: 'number', width:'10%',title: '序号', align: 'center', type: 'numbers'},
+ {field: 'deviceType', width:'20%', align: 'center', title: '装备类型'},
+ {field: 'deviceName', width:'20%', align: 'center', title: '装备名称'},
+ {field: 'userName', width:'20%', align: 'center', title: '负责人'},
+ {field: 'status', align: 'center', width:'10%', title: '状态' ,templet: function (d) {
if(d.status == 1){
return "在线";
}else if(d.status == 0){
@@ -152,11 +152,11 @@ function wearGarList(){
}
}
},
- {field: 'warningContent', align: 'center', fixed: 'right', title: '操作', templet: function (d) {
+ {field: 'warningContent', align: 'center', fixed: 'right', width:'10%', title: '操作', templet: function (d) {
if (d.status == 0) {
return "--";
}else{
- return '开启对讲';
+ return '开启对讲';
}
}
@@ -177,6 +177,11 @@ function wearGarList(){
}
+// 安全帽开启对讲
+function openTalk(){
+ return layer.msg('网络异常,无法开启对讲',{icon:2});
+}
+
function mapInit(){
var lat,lon;
// if (navigator.geolocation) {
diff --git a/js/publics/public.js b/js/publics/public.js
index 553c02b..5e8af4a 100644
--- a/js/publics/public.js
+++ b/js/publics/public.js
@@ -52,12 +52,12 @@ function loginout(type) {
backLoginPage();
}
}, function (xhr) {
- error(xhr)
+ errorFn(xhr)
});
}
}
/* 请求错误 */
-function error(xhr, status, error) {
+function errorFn(xhr, status, error) {
if (xhr.status === 0) {
// 网络连接失败
console.error("网络连接失败,请检查网络是否正常");
@@ -80,4 +80,17 @@ function backLoginPage() {
//判断字符是否为空的方法
function isEmpty(obj) {
return typeof obj == "undefined" || obj == null || obj == "" || obj == '00';
+}
+
+/**
+ * 获取当日时间
+ */
+function getNowTime() {
+ var nowDate = new Date();
+ var year = nowDate.getFullYear();
+ var month = nowDate.getMonth() + 1 < 10 ? "0" + (nowDate.getMonth() + 1) :
+ nowDate.getMonth() + 1;
+ var day = nowDate.getDate() < 10 ? "0" + nowDate.getDate() : nowDate.getDate();
+ var dateStr = year + "-" + month + "-" + day;
+ return dateStr;
}
\ No newline at end of file