diff --git a/config/dev.env.js b/config/dev.env.js index 6b4622a..095ba33 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,4 +8,5 @@ NODE_ENV: '"development"', // BASE_API: '"http://192.168.5.220:20311"' BASE_API: '"http://111.198.10.15:11631"' + // BASE_API: '"http://192.168.5.220:20311"' }) diff --git a/config/dev.env.js b/config/dev.env.js index 6b4622a..095ba33 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,4 +8,5 @@ NODE_ENV: '"development"', // BASE_API: '"http://192.168.5.220:20311"' BASE_API: '"http://111.198.10.15:11631"' + // BASE_API: '"http://192.168.5.220:20311"' }) diff --git a/config/prod.env.js b/config/prod.env.js index f2501d0..ccbc615 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,5 +1,6 @@ 'use strict' module.exports = { NODE_ENV: '"production"', - BASE_API: '"http://192.168.5.220:20311"' + // BASE_API: '"http://192.168.5.220:20311"' + BASE_API: '"http://111.198.10.15:11631"' } diff --git a/config/dev.env.js b/config/dev.env.js index 6b4622a..095ba33 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,4 +8,5 @@ NODE_ENV: '"development"', // BASE_API: '"http://192.168.5.220:20311"' BASE_API: '"http://111.198.10.15:11631"' + // BASE_API: '"http://192.168.5.220:20311"' }) diff --git a/config/prod.env.js b/config/prod.env.js index f2501d0..ccbc615 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,5 +1,6 @@ 'use strict' module.exports = { NODE_ENV: '"production"', - BASE_API: '"http://192.168.5.220:20311"' + // BASE_API: '"http://192.168.5.220:20311"' + BASE_API: '"http://111.198.10.15:11631"' } diff --git a/favicon.ico b/favicon.ico index 34b63ac..bc1bfc5 100644 --- a/favicon.ico +++ b/favicon.ico Binary files differ diff --git a/config/dev.env.js b/config/dev.env.js index 6b4622a..095ba33 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,4 +8,5 @@ NODE_ENV: '"development"', // BASE_API: '"http://192.168.5.220:20311"' BASE_API: '"http://111.198.10.15:11631"' + // BASE_API: '"http://192.168.5.220:20311"' }) diff --git a/config/prod.env.js b/config/prod.env.js index f2501d0..ccbc615 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,5 +1,6 @@ 'use strict' module.exports = { NODE_ENV: '"production"', - BASE_API: '"http://192.168.5.220:20311"' + // BASE_API: '"http://192.168.5.220:20311"' + BASE_API: '"http://111.198.10.15:11631"' } diff --git a/favicon.ico b/favicon.ico index 34b63ac..bc1bfc5 100644 --- a/favicon.ico +++ b/favicon.ico Binary files differ diff --git a/src/api/visitor.js b/src/api/visitor.js index 05ed6ea..01a6c26 100644 --- a/src/api/visitor.js +++ b/src/api/visitor.js @@ -74,3 +74,14 @@ }) } +// 查询人员轨迹 +export function getDetail(devcode) { + return request({ + url: '/device/capturePhoto', + method: 'post', + params:{ + devcode: devcode + } + }) +} + diff --git a/config/dev.env.js b/config/dev.env.js index 6b4622a..095ba33 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,4 +8,5 @@ NODE_ENV: '"development"', // BASE_API: '"http://192.168.5.220:20311"' BASE_API: '"http://111.198.10.15:11631"' + // BASE_API: '"http://192.168.5.220:20311"' }) diff --git a/config/prod.env.js b/config/prod.env.js index f2501d0..ccbc615 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,5 +1,6 @@ 'use strict' module.exports = { NODE_ENV: '"production"', - BASE_API: '"http://192.168.5.220:20311"' + // BASE_API: '"http://192.168.5.220:20311"' + BASE_API: '"http://111.198.10.15:11631"' } diff --git a/favicon.ico b/favicon.ico index 34b63ac..bc1bfc5 100644 --- a/favicon.ico +++ b/favicon.ico Binary files differ diff --git a/src/api/visitor.js b/src/api/visitor.js index 05ed6ea..01a6c26 100644 --- a/src/api/visitor.js +++ b/src/api/visitor.js @@ -74,3 +74,14 @@ }) } +// 查询人员轨迹 +export function getDetail(devcode) { + return request({ + url: '/device/capturePhoto', + method: 'post', + params:{ + devcode: devcode + } + }) +} + diff --git a/src/assets/dashboard_images/icon-defence.png b/src/assets/dashboard_images/icon-defence.png index 8069376..11b41cb 100644 --- a/src/assets/dashboard_images/icon-defence.png +++ b/src/assets/dashboard_images/icon-defence.png Binary files differ diff --git a/config/dev.env.js b/config/dev.env.js index 6b4622a..095ba33 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,4 +8,5 @@ NODE_ENV: '"development"', // BASE_API: '"http://192.168.5.220:20311"' BASE_API: '"http://111.198.10.15:11631"' + // BASE_API: '"http://192.168.5.220:20311"' }) diff --git a/config/prod.env.js b/config/prod.env.js index f2501d0..ccbc615 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,5 +1,6 @@ 'use strict' module.exports = { NODE_ENV: '"production"', - BASE_API: '"http://192.168.5.220:20311"' + // BASE_API: '"http://192.168.5.220:20311"' + BASE_API: '"http://111.198.10.15:11631"' } diff --git a/favicon.ico b/favicon.ico index 34b63ac..bc1bfc5 100644 --- a/favicon.ico +++ b/favicon.ico Binary files differ diff --git a/src/api/visitor.js b/src/api/visitor.js index 05ed6ea..01a6c26 100644 --- a/src/api/visitor.js +++ b/src/api/visitor.js @@ -74,3 +74,14 @@ }) } +// 查询人员轨迹 +export function getDetail(devcode) { + return request({ + url: '/device/capturePhoto', + method: 'post', + params:{ + devcode: devcode + } + }) +} + diff --git a/src/assets/dashboard_images/icon-defence.png b/src/assets/dashboard_images/icon-defence.png index 8069376..11b41cb 100644 --- a/src/assets/dashboard_images/icon-defence.png +++ b/src/assets/dashboard_images/icon-defence.png Binary files differ diff --git a/src/utils/calendarUtil.js b/src/utils/calendarUtil.js index da840c3..e599bdd 100644 --- a/src/utils/calendarUtil.js +++ b/src/utils/calendarUtil.js @@ -61,7 +61,32 @@ return yearMonth + '-' + format(day) } +export function formatDateTime(cellval) { + var dateVal = cellval + "";//把时间戳转成字符串格式 + if (cellval != null) { + //取得时间戳部分 如:获取 /Date(1545299299910)/ 中的 1545299299910 部分 + var date = new Date(parseInt(dateVal.replace("/Date(", "") + .replace(")/", ""), 10)); + //获取年,不需要其他操作所以可以直接返回 date.getFullYear() + //月份为0-11,所以+1,月份小于10时补个0 + var month = date.getMonth() + 1 < 10 ? "0" + + (date.getMonth() + 1) : date.getMonth() + 1; + //获取日 + var currentDate = date.getDate() < 10 ? "0" + date.getDate() + : date.getDate(); + //获取时间 + var hours = date.getHours() < 10 ? "0" + date.getHours() : date + .getHours(); + var minutes = date.getMinutes() < 10 ? "0" + date.getMinutes() + : date.getMinutes(); + var seconds = date.getSeconds() < 10 ? "0" + date.getSeconds() + : date.getSeconds(); + //返回日期结果,需要时间的话在加上时间 + return date.getFullYear() + "-" + month + "-" + currentDate+" "+hours+":"+ + minutes+":"+seconds; + } +} // 格式化日期为字符串 export function formatToString(value, level) { const date = new Date(value) diff --git a/config/dev.env.js b/config/dev.env.js index 6b4622a..095ba33 100644 --- a/config/dev.env.js +++ b/config/dev.env.js @@ -8,4 +8,5 @@ NODE_ENV: '"development"', // BASE_API: '"http://192.168.5.220:20311"' BASE_API: '"http://111.198.10.15:11631"' + // BASE_API: '"http://192.168.5.220:20311"' }) diff --git a/config/prod.env.js b/config/prod.env.js index f2501d0..ccbc615 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -1,5 +1,6 @@ 'use strict' module.exports = { NODE_ENV: '"production"', - BASE_API: '"http://192.168.5.220:20311"' + // BASE_API: '"http://192.168.5.220:20311"' + BASE_API: '"http://111.198.10.15:11631"' } diff --git a/favicon.ico b/favicon.ico index 34b63ac..bc1bfc5 100644 --- a/favicon.ico +++ b/favicon.ico Binary files differ diff --git a/src/api/visitor.js b/src/api/visitor.js index 05ed6ea..01a6c26 100644 --- a/src/api/visitor.js +++ b/src/api/visitor.js @@ -74,3 +74,14 @@ }) } +// 查询人员轨迹 +export function getDetail(devcode) { + return request({ + url: '/device/capturePhoto', + method: 'post', + params:{ + devcode: devcode + } + }) +} + diff --git a/src/assets/dashboard_images/icon-defence.png b/src/assets/dashboard_images/icon-defence.png index 8069376..11b41cb 100644 --- a/src/assets/dashboard_images/icon-defence.png +++ b/src/assets/dashboard_images/icon-defence.png Binary files differ diff --git a/src/utils/calendarUtil.js b/src/utils/calendarUtil.js index da840c3..e599bdd 100644 --- a/src/utils/calendarUtil.js +++ b/src/utils/calendarUtil.js @@ -61,7 +61,32 @@ return yearMonth + '-' + format(day) } +export function formatDateTime(cellval) { + var dateVal = cellval + "";//把时间戳转成字符串格式 + if (cellval != null) { + //取得时间戳部分 如:获取 /Date(1545299299910)/ 中的 1545299299910 部分 + var date = new Date(parseInt(dateVal.replace("/Date(", "") + .replace(")/", ""), 10)); + //获取年,不需要其他操作所以可以直接返回 date.getFullYear() + //月份为0-11,所以+1,月份小于10时补个0 + var month = date.getMonth() + 1 < 10 ? "0" + + (date.getMonth() + 1) : date.getMonth() + 1; + //获取日 + var currentDate = date.getDate() < 10 ? "0" + date.getDate() + : date.getDate(); + //获取时间 + var hours = date.getHours() < 10 ? "0" + date.getHours() : date + .getHours(); + var minutes = date.getMinutes() < 10 ? "0" + date.getMinutes() + : date.getMinutes(); + var seconds = date.getSeconds() < 10 ? "0" + date.getSeconds() + : date.getSeconds(); + //返回日期结果,需要时间的话在加上时间 + return date.getFullYear() + "-" + month + "-" + currentDate+" "+hours+":"+ + minutes+":"+seconds; + } +} // 格式化日期为字符串 export function formatToString(value, level) { const date = new Date(value) diff --git a/src/views/alarm/alarmDetail.vue b/src/views/alarm/alarmDetail.vue index 2c94629..8c32ee5 100644 --- a/src/views/alarm/alarmDetail.vue +++ b/src/views/alarm/alarmDetail.vue @@ -1,7 +1,7 @@