Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-project
Project
Project
Details
Activity
Releases
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
海康威视
web-project
Commits
48795c03
Commit
48795c03
authored
Mar 12, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了AI无人站和大屏bug
parent
495c8ed2
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
103 additions
and
27 deletions
+103
-27
Extinguisher.js
src/api/AIStation/Extinguisher.js
+2
-2
MoveMonitor.js
src/api/AIStation/MoveMonitor.js
+2
-2
PipelineTemp.js
src/api/AIStation/PipelineTemp.js
+2
-2
RecyclePump.js
src/api/AIStation/RecyclePump.js
+2
-2
TransTemp.js
src/api/AIStation/TransTemp.js
+2
-2
screenDisplay.vue
src/components/screenDisplay.vue
+7
-0
ExtinguisherHistoryPage.vue
...ws/AIStation/ExtinguisherPage/ExtinguisherHistoryPage.vue
+2
-0
ExtinguisherNewDataPage.vue
...ws/AIStation/ExtinguisherPage/ExtinguisherNewDataPage.vue
+2
-0
index.vue
src/views/AIStation/ExtinguisherPage/index.vue
+12
-2
MoveMonitorHistoryPage.vue
...iews/AIStation/MoveMonitorPage/MoveMonitorHistoryPage.vue
+2
-0
MoveMonitorNewDataPage.vue
...iews/AIStation/MoveMonitorPage/MoveMonitorNewDataPage.vue
+2
-0
index.vue
src/views/AIStation/MoveMonitorPage/index.vue
+24
-7
index.vue
src/views/AIStation/PipelineTempPage/index.vue
+12
-1
index.vue
src/views/AIStation/RecyclePumpPage/index.vue
+12
-3
TransTempAlarmPage.vue
src/views/AIStation/TransTempPage/TransTempAlarmPage.vue
+2
-0
TransTempHistoryPage.vue
src/views/AIStation/TransTempPage/TransTempHistoryPage.vue
+2
-0
TransTempNewDataPage.vue
src/views/AIStation/TransTempPage/TransTempNewDataPage.vue
+2
-0
index.vue
src/views/AIStation/TransTempPage/index.vue
+12
-4
No files found.
src/api/AIStation/Extinguisher.js
View file @
48795c03
...
@@ -15,8 +15,8 @@ export const getAlarmListData = (item) => {
...
@@ -15,8 +15,8 @@ export const getAlarmListData = (item) => {
return
httpTwo
.
post
(
`/busFireExtinguisherAlarm/list?page=
${
item
.
page
}
&rows=
${
item
.
size
}
`
,
item
)
return
httpTwo
.
post
(
`/busFireExtinguisherAlarm/list?page=
${
item
.
page
}
&rows=
${
item
.
size
}
`
,
item
)
}
}
export
const
getAlarmNumData
=
()
=>
{
export
const
getAlarmNumData
=
(
item
)
=>
{
return
httpTwo
.
get
(
`/busFireExtinguisherAlarm/queryAlarmsList`
)
return
httpTwo
.
post
(
`/busFireExtinguisherAlarm/queryAlarmsCount`
,
item
)
}
}
export
const
exportNewExtinguisherData
=
(
item
)
=>
{
export
const
exportNewExtinguisherData
=
(
item
)
=>
{
...
...
src/api/AIStation/MoveMonitor.js
View file @
48795c03
...
@@ -12,8 +12,8 @@ export const getMoveListAlarmNewData = (item) => {
...
@@ -12,8 +12,8 @@ export const getMoveListAlarmNewData = (item) => {
return
httpTwo
.
post
(
`/busdynamicenvironmentalalarm/list?page=
${
item
.
page
}
&rows=
${
item
.
size
}
`
,
item
)
return
httpTwo
.
post
(
`/busdynamicenvironmentalalarm/list?page=
${
item
.
page
}
&rows=
${
item
.
size
}
`
,
item
)
}
}
export
const
getMoveAlarmNumber
=
()
=>
{
export
const
getMoveAlarmNumber
=
(
item
)
=>
{
return
httpTwo
.
get
(
`/busdynamicenvironmentalalarm/queryAlarmsList`
)
return
httpTwo
.
post
(
`/busdynamicenvironmentalalarm/queryAlarmsCount`
,
item
)
}
}
export
const
exportMoveMonitorNewData
=
(
item
)
=>
{
export
const
exportMoveMonitorNewData
=
(
item
)
=>
{
...
...
src/api/AIStation/PipelineTemp.js
View file @
48795c03
...
@@ -12,8 +12,8 @@ export const getPipListAlarmData = (item) =>{
...
@@ -12,8 +12,8 @@ export const getPipListAlarmData = (item) =>{
return
httpTwo
.
post
(
`/buspipelinetemperaturealarm/list?page=
${
item
.
page
}
&rows=
${
item
.
size
}
`
,
item
)
return
httpTwo
.
post
(
`/buspipelinetemperaturealarm/list?page=
${
item
.
page
}
&rows=
${
item
.
size
}
`
,
item
)
}
}
export
const
getPipAlarmNumber
=
()
=>
{
export
const
getPipAlarmNumber
=
(
item
)
=>
{
return
httpTwo
.
get
(
`/buspipelinetemperaturealarm/queryAlarmsList`
)
return
httpTwo
.
post
(
`/buspipelinetemperaturealarm/queryAlarmsCount`
,
item
)
}
}
export
const
exportPipelineTempNewData
=
(
item
)
=>
{
export
const
exportPipelineTempNewData
=
(
item
)
=>
{
...
...
src/api/AIStation/RecyclePump.js
View file @
48795c03
...
@@ -11,8 +11,8 @@ export const getRecycleListAlarmData = (item) =>{
...
@@ -11,8 +11,8 @@ export const getRecycleListAlarmData = (item) =>{
return
httpTwo
.
post
(
`/buscirculatingpumpalarm/list?page=
${
item
.
page
}
&rows=
${
item
.
size
}
`
,
item
)
return
httpTwo
.
post
(
`/buscirculatingpumpalarm/list?page=
${
item
.
page
}
&rows=
${
item
.
size
}
`
,
item
)
}
}
export
const
getRecycleAlarmNumber
=
()
=>
{
export
const
getRecycleAlarmNumber
=
(
item
)
=>
{
return
httpTwo
.
get
(
`/buscirculatingpumpalarm/queryAlarmsList`
)
return
httpTwo
.
post
(
`/buscirculatingpumpalarm/queryAlarmsCount`
,
item
)
}
}
export
const
exportRecyclePumpNewData
=
(
item
)
=>
{
export
const
exportRecyclePumpNewData
=
(
item
)
=>
{
...
...
src/api/AIStation/TransTemp.js
View file @
48795c03
...
@@ -12,8 +12,8 @@ export const getTransListAlarmData = (item) =>{
...
@@ -12,8 +12,8 @@ export const getTransListAlarmData = (item) =>{
return
httpTwo
.
post
(
`/bustransfertemperaturealarm/list?page=
${
item
.
page
}
&rows=
${
item
.
size
}
`
,
item
)
return
httpTwo
.
post
(
`/bustransfertemperaturealarm/list?page=
${
item
.
page
}
&rows=
${
item
.
size
}
`
,
item
)
}
}
export
const
getTransAlarmNumber
=
()
=>
{
export
const
getTransAlarmNumber
=
(
item
)
=>
{
return
httpTwo
.
get
(
`/bustransfertemperaturealarm/queryAlarmsList`
)
return
httpTwo
.
post
(
`/bustransfertemperaturealarm/queryAlarmsCount`
,
item
)
}
}
export
const
exportTransTempNewData
=
(
item
)
=>
{
export
const
exportTransTempNewData
=
(
item
)
=>
{
...
...
src/components/screenDisplay.vue
View file @
48795c03
...
@@ -3628,7 +3628,9 @@ export default defineComponent({
...
@@ -3628,7 +3628,9 @@ export default defineComponent({
/** 最大化*/
/** 最大化*/
handleDetails
()
{
handleDetails
()
{
this
.
queryParams
=
''
this
.
queryParams
=
''
this
.
queryParams2
=
''
this
.
stopParams
+=
1
this
.
stopParams
+=
1
this
.
stopParams2
+=
1
this
.
detailOpen
=
true
this
.
detailOpen
=
true
this
.
audioId
=
this
.
AudioUrlIdList
[
this
.
audioNum
]
this
.
audioId
=
this
.
AudioUrlIdList
[
this
.
audioNum
]
},
},
...
@@ -3636,9 +3638,14 @@ export default defineComponent({
...
@@ -3636,9 +3638,14 @@ export default defineComponent({
this
.
detailOpen
=
false
this
.
detailOpen
=
false
const
videoList
=
[]
const
videoList
=
[]
videoList
.
push
(
this
.
VideoInfo
.
playVideoList
[
this
.
videoNum
])
videoList
.
push
(
this
.
VideoInfo
.
playVideoList
[
this
.
videoNum
])
const
videoList2
=
[]
videoList2
.
push
(
this
.
VideoInfo
.
playVideoList
[
this
.
videoNum2
])
this
.
getDivWidth
()
this
.
getDivWidth
()
this
.
getDivWidth2
()
this
.
queryParams
=
JSON
.
stringify
(
videoList
)
this
.
queryParams
=
JSON
.
stringify
(
videoList
)
this
.
queryParams2
=
JSON
.
stringify
(
videoList2
)
this
.
videoLoading
=
true
this
.
videoLoading
=
true
this
.
videoLoading2
=
true
},
},
// 查询管道光纤测漏温度曲线统计图
// 查询管道光纤测漏温度曲线统计图
getTemperatureStatistics
()
{
getTemperatureStatistics
()
{
...
...
src/views/AIStation/ExtinguisherPage/ExtinguisherHistoryPage.vue
View file @
48795c03
...
@@ -177,6 +177,8 @@ function Nindex(index) {
...
@@ -177,6 +177,8 @@ function Nindex(index) {
<el-image
<el-image
style=
"width:100%;height:100%;"
style=
"width:100%;height:100%;"
:src=
"getImageSrc(scope.row)"
:src=
"getImageSrc(scope.row)"
:preview-src-list=
"[getImageSrc(scope.row)]"
preview-teleported
>
>
<div
slot=
"error"
class=
"image-slot"
>
<div
slot=
"error"
class=
"image-slot"
>
<i
class=
"el-icon-picture-outline"
/>
<i
class=
"el-icon-picture-outline"
/>
...
...
src/views/AIStation/ExtinguisherPage/ExtinguisherNewDataPage.vue
View file @
48795c03
...
@@ -167,6 +167,8 @@ function Nindex(index) {
...
@@ -167,6 +167,8 @@ function Nindex(index) {
<el-image
<el-image
style=
"width:100%;height:100%;"
style=
"width:100%;height:100%;"
:src=
"getImageSrc(scope.row)"
:src=
"getImageSrc(scope.row)"
:preview-src-list=
"[getImageSrc(scope.row)]"
preview-teleported
>
>
<div
slot=
"error"
class=
"image-slot"
>
<div
slot=
"error"
class=
"image-slot"
>
<i
class=
"el-icon-picture-outline"
/>
<i
class=
"el-icon-picture-outline"
/>
...
...
src/views/AIStation/ExtinguisherPage/index.vue
View file @
48795c03
...
@@ -210,8 +210,18 @@ const search = () => {
...
@@ -210,8 +210,18 @@ const search = () => {
//报警数量
//报警数量
function
getNumber
()
{
function
getNumber
()
{
getAlarmNumData
().
then
(
res
=>
{
//当前时间为2025-02-15 9:50:56 则开始时间为2025-02-14 09:00:00 结束时间为2025-02-15 09:00:00
console
.
log
(
'123123123123-----------'
,
res
.
data
)
let
now
=
new
Date
();
now
.
setMinutes
(
0
,
0
,
0
);
// 将分钟、秒数和毫秒数都设为0
let
start
=
new
Date
(
now
.
getTime
()
-
24
*
60
*
60
*
1000
);
// 减去24小时的毫秒数
let
endTime
=
`
${
now
.
getFullYear
()}
-
${
String
(
now
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
)}
-
${
String
(
now
.
getDate
()).
padStart
(
2
,
'0'
)}
${
String
(
now
.
getHours
()).
padStart
(
2
,
'0'
)}
:00:00`
;
start
.
setMinutes
(
0
,
0
,
0
);
// 确保分钟、秒数和毫秒数都为0
let
startTime
=
`
${
start
.
getFullYear
()}
-
${
String
(
start
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
)}
-
${
String
(
start
.
getDate
()).
padStart
(
2
,
'0'
)}
${
String
(
start
.
getHours
()).
padStart
(
2
,
'0'
)}
:00:00`
;
const
params
=
{
beginTime
:
startTime
,
endTime
:
endTime
}
getAlarmNumData
(
params
).
then
(
res
=>
{
alarmNum
.
value
=
res
.
data
?
res
.
data
:
0
alarmNum
.
value
=
res
.
data
?
res
.
data
:
0
})
})
}
}
...
...
src/views/AIStation/MoveMonitorPage/MoveMonitorHistoryPage.vue
View file @
48795c03
...
@@ -216,6 +216,8 @@ function Nindex(index) {
...
@@ -216,6 +216,8 @@ function Nindex(index) {
<el-image
<el-image
style=
"width:100%;height:100%;"
style=
"width:100%;height:100%;"
:src=
"getImageSrc(scope.row)"
:src=
"getImageSrc(scope.row)"
:preview-src-list=
"[getImageSrc(scope.row)]"
preview-teleported
>
>
<div
slot=
"error"
class=
"image-slot"
>
<div
slot=
"error"
class=
"image-slot"
>
<i
class=
"el-icon-picture-outline"
/>
<i
class=
"el-icon-picture-outline"
/>
...
...
src/views/AIStation/MoveMonitorPage/MoveMonitorNewDataPage.vue
View file @
48795c03
...
@@ -230,6 +230,8 @@ function handleCamera(row) {
...
@@ -230,6 +230,8 @@ function handleCamera(row) {
<el-image
<el-image
style=
"width:100%;height:100%;"
style=
"width:100%;height:100%;"
:src=
"getImageSrc(scope.row)"
:src=
"getImageSrc(scope.row)"
:preview-src-list=
"[getImageSrc(scope.row)]"
preview-teleported
>
>
<div
slot=
"error"
class=
"image-slot"
>
<div
slot=
"error"
class=
"image-slot"
>
<i
class=
"el-icon-picture-outline"
/>
<i
class=
"el-icon-picture-outline"
/>
...
...
src/views/AIStation/MoveMonitorPage/index.vue
View file @
48795c03
...
@@ -172,8 +172,18 @@ const search = () => {
...
@@ -172,8 +172,18 @@ const search = () => {
};
};
function
getNumber
()
{
function
getNumber
()
{
getMoveAlarmNumber
().
then
(
res
=>
{
//当前时间为2025-02-15 9:50:56 则开始时间为2025-02-14 09:00:00 结束时间为2025-02-15 09:00:00
console
.
log
(
'123123123123-----------'
,
res
.
data
)
let
now
=
new
Date
();
now
.
setMinutes
(
0
,
0
,
0
);
// 将分钟、秒数和毫秒数都设为0
let
start
=
new
Date
(
now
.
getTime
()
-
24
*
60
*
60
*
1000
);
// 减去24小时的毫秒数
let
endTime
=
`
${
now
.
getFullYear
()}
-
${
String
(
now
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
)}
-
${
String
(
now
.
getDate
()).
padStart
(
2
,
'0'
)}
${
String
(
now
.
getHours
()).
padStart
(
2
,
'0'
)}
:00:00`
;
start
.
setMinutes
(
0
,
0
,
0
);
// 确保分钟、秒数和毫秒数都为0
let
startTime
=
`
${
start
.
getFullYear
()}
-
${
String
(
start
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
)}
-
${
String
(
start
.
getDate
()).
padStart
(
2
,
'0'
)}
${
String
(
start
.
getHours
()).
padStart
(
2
,
'0'
)}
:00:00`
;
const
params
=
{
beginTime
:
startTime
,
endTime
:
endTime
}
getMoveAlarmNumber
(
params
).
then
(
res
=>
{
alarmNum
.
value
=
res
.
data
?
res
.
data
:
0
alarmNum
.
value
=
res
.
data
?
res
.
data
:
0
})
})
}
}
...
@@ -574,16 +584,23 @@ function batchSetHandleChange(e){
...
@@ -574,16 +584,23 @@ function batchSetHandleChange(e){
</el-form-item>
</el-form-item>
</div>
</div>
</div>
</div>
<div
style=
"display: flex; flex-direction: column;margin-bottom: 1%;margin-right: 10px;"
>
<div
style=
"display: flex; flex-direction: column;margin-bottom: 1%;margin-right: 10px;"
v-if=
"selectedBtn !== 1"
>
<div
style=
"display: flex; justify-content: space-between;"
>
<div
style=
"display: flex; justify-content: space-between;"
>
<el-button
style=
"margin-left: 12px;"
type=
"primary"
@
click=
"search"
class=
"add-search-btn"
>
查询
</el-button>
<el-button
style=
"margin-left: 12px;"
type=
"primary"
@
click=
"search"
class=
"add-search-btn"
>
查询
</el-button>
<el-button
style=
"margin-left: 12px;"
type=
"primary"
@
click=
"resetSearch"
class=
"add-search-btn"
>
重置
</el-button>
<el-button
style=
"margin-left: 12px;"
type=
"primary"
@
click=
"resetSearch"
class=
"add-search-btn"
>
重置
</el-button>
<el-button
style=
"margin-left: 12px;"
type=
"primary"
@
click=
"handleExport"
class=
"add-search-btn"
>
导出
</el-button>
<el-button
style=
"margin-left: 12px;"
type=
"primary"
@
click=
"handleExport"
class=
"add-search-btn"
>
导出
</el-button>
<el-button
style=
"margin-left: 12px;"
type=
"primary"
@
click=
"setError"
class=
"add-search-btn"
v-if=
"selectedBtn === 1"
>
设置误差
</el-button>
</div>
</div>
<div
style=
"display: flex; justify-content: flex-start;align-items: center;"
>
</div>
<el-button
style=
"margin-top: 12px;margin-left: 12px"
type=
"primary"
@
click=
"downloadPlugin()"
class=
"add-search-btn"
v-if=
"selectedBtn === 1"
>
下载证书
</el-button>
<div
style=
"display: flex; flex-direction: column;margin-bottom: 1%;margin-right: 20px;width: 360px"
v-if=
"selectedBtn === 1"
>
<span
v-if=
"selectedBtn === 1"
>
(如果图片不能加载请安装证书)
</span>
<div
style=
"display: flex;"
>
<el-button
style=
"margin-left: 12px;width: 80px"
type=
"primary"
@
click=
"search"
class=
"add-search-btn"
>
查询
</el-button>
<el-button
style=
"margin-left: 12px;width: 80px"
type=
"primary"
@
click=
"handleExport"
class=
"add-search-btn"
>
导出
</el-button>
<el-button
style=
"margin-left: 40px;width: 80px"
type=
"primary"
@
click=
"downloadPlugin()"
class=
"add-search-btn"
v-if=
"selectedBtn === 1"
>
下载证书
</el-button>
</div>
<div
style=
"display: flex;align-items: center;margin-top: 10px;"
>
<el-button
style=
"margin-left: 12px;width: 80px"
type=
"primary"
@
click=
"resetSearch"
class=
"add-search-btn"
>
重置
</el-button>
<el-button
style=
"margin-left: 12px;width: 80px"
type=
"primary"
@
click=
"setError"
class=
"add-search-btn"
v-if=
"selectedBtn === 1"
>
设置误差
</el-button>
<span
v-if=
"selectedBtn === 1"
style=
"font-size: 12px;"
>
(图片不能加载请安装证书)
</span>
</div>
</div>
</div>
</div>
</el-form>
</el-form>
...
...
src/views/AIStation/PipelineTempPage/index.vue
View file @
48795c03
...
@@ -171,7 +171,18 @@ const search = () => {
...
@@ -171,7 +171,18 @@ const search = () => {
};
};
function
getNumber
()
{
function
getNumber
()
{
getPipAlarmNumber
().
then
(
res
=>
{
//当前时间为2025-02-15 9:50:56 则开始时间为2025-02-14 09:00:00 结束时间为2025-02-15 09:00:00
let
now
=
new
Date
();
now
.
setMinutes
(
0
,
0
,
0
);
// 将分钟、秒数和毫秒数都设为0
let
start
=
new
Date
(
now
.
getTime
()
-
24
*
60
*
60
*
1000
);
// 减去24小时的毫秒数
let
endTime
=
`
${
now
.
getFullYear
()}
-
${
String
(
now
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
)}
-
${
String
(
now
.
getDate
()).
padStart
(
2
,
'0'
)}
${
String
(
now
.
getHours
()).
padStart
(
2
,
'0'
)}
:00:00`
;
start
.
setMinutes
(
0
,
0
,
0
);
// 确保分钟、秒数和毫秒数都为0
let
startTime
=
`
${
start
.
getFullYear
()}
-
${
String
(
start
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
)}
-
${
String
(
start
.
getDate
()).
padStart
(
2
,
'0'
)}
${
String
(
start
.
getHours
()).
padStart
(
2
,
'0'
)}
:00:00`
;
const
params
=
{
beginTime
:
startTime
,
endTime
:
endTime
}
getPipAlarmNumber
(
params
).
then
(
res
=>
{
alarmNum
.
value
=
res
.
data
?
res
.
data
:
0
alarmNum
.
value
=
res
.
data
?
res
.
data
:
0
})
})
}
}
...
...
src/views/AIStation/RecyclePumpPage/index.vue
View file @
48795c03
...
@@ -98,7 +98,6 @@ const handleTabClick = (tab, event) => {
...
@@ -98,7 +98,6 @@ const handleTabClick = (tab, event) => {
queryParams
.
beginTime
=
startTime
queryParams
.
beginTime
=
startTime
queryParams
.
endTime
=
endTime
queryParams
.
endTime
=
endTime
}
}
getNumber
()
search
()
search
()
}
}
};
};
...
@@ -205,8 +204,18 @@ const search = () => {
...
@@ -205,8 +204,18 @@ const search = () => {
// 获取报警数量
// 获取报警数量
function
getNumber
()
{
function
getNumber
()
{
getRecycleAlarmNumber
().
then
(
res
=>
{
//当前时间为2025-02-15 9:50:56 则开始时间为2025-02-14 09:00:00 结束时间为2025-02-15 09:00:00
console
.
log
(
'123123123123-----------'
,
res
.
data
)
let
now
=
new
Date
();
now
.
setMinutes
(
0
,
0
,
0
);
// 将分钟、秒数和毫秒数都设为0
let
start
=
new
Date
(
now
.
getTime
()
-
24
*
60
*
60
*
1000
);
// 减去24小时的毫秒数
let
endTime
=
`
${
now
.
getFullYear
()}
-
${
String
(
now
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
)}
-
${
String
(
now
.
getDate
()).
padStart
(
2
,
'0'
)}
${
String
(
now
.
getHours
()).
padStart
(
2
,
'0'
)}
:00:00`
;
start
.
setMinutes
(
0
,
0
,
0
);
// 确保分钟、秒数和毫秒数都为0
let
startTime
=
`
${
start
.
getFullYear
()}
-
${
String
(
start
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
)}
-
${
String
(
start
.
getDate
()).
padStart
(
2
,
'0'
)}
${
String
(
start
.
getHours
()).
padStart
(
2
,
'0'
)}
:00:00`
;
const
params
=
{
beginTime
:
startTime
,
endTime
:
endTime
}
getRecycleAlarmNumber
(
params
).
then
(
res
=>
{
alarmNum
.
value
=
res
.
data
?
res
.
data
:
0
alarmNum
.
value
=
res
.
data
?
res
.
data
:
0
})
})
}
}
...
...
src/views/AIStation/TransTempPage/TransTempAlarmPage.vue
View file @
48795c03
...
@@ -236,6 +236,8 @@ function Nindex(index) {
...
@@ -236,6 +236,8 @@ function Nindex(index) {
<el-image
<el-image
style=
"width:100%;height:100%;"
style=
"width:100%;height:100%;"
:src=
"getImageSrc(scope.row)"
:src=
"getImageSrc(scope.row)"
:preview-src-list=
"[getImageSrc(scope.row)]"
preview-teleported
>
>
<div
slot=
"error"
class=
"image-slot"
>
<div
slot=
"error"
class=
"image-slot"
>
<i
class=
"el-icon-picture-outline"
/>
<i
class=
"el-icon-picture-outline"
/>
...
...
src/views/AIStation/TransTempPage/TransTempHistoryPage.vue
View file @
48795c03
...
@@ -188,6 +188,8 @@ function Nindex(index) {
...
@@ -188,6 +188,8 @@ function Nindex(index) {
<el-image
<el-image
style=
"width:100%;height:100%;"
style=
"width:100%;height:100%;"
:src=
"getImageSrc(scope.row)"
:src=
"getImageSrc(scope.row)"
:preview-src-list=
"[getImageSrc(scope.row)]"
preview-teleported
>
>
<div
slot=
"error"
class=
"image-slot"
>
<div
slot=
"error"
class=
"image-slot"
>
<i
class=
"el-icon-picture-outline"
/>
<i
class=
"el-icon-picture-outline"
/>
...
...
src/views/AIStation/TransTempPage/TransTempNewDataPage.vue
View file @
48795c03
...
@@ -178,6 +178,8 @@ function Nindex(index) {
...
@@ -178,6 +178,8 @@ function Nindex(index) {
<el-image
<el-image
style=
"width:100%;height:100%;"
style=
"width:100%;height:100%;"
:src=
"getImageSrc(scope.row)"
:src=
"getImageSrc(scope.row)"
:preview-src-list=
"[getImageSrc(scope.row)]"
preview-teleported
>
>
<div
slot=
"error"
class=
"image-slot"
>
<div
slot=
"error"
class=
"image-slot"
>
<i
class=
"el-icon-picture-outline"
/>
<i
class=
"el-icon-picture-outline"
/>
...
...
src/views/AIStation/TransTempPage/index.vue
View file @
48795c03
...
@@ -222,14 +222,22 @@ const search = () => {
...
@@ -222,14 +222,22 @@ const search = () => {
}
else
if
(
selectedBtn
.
value
===
3
)
{
}
else
if
(
selectedBtn
.
value
===
3
)
{
childParams
.
value
=
item
childParams
.
value
=
item
}
}
console
.
log
(
'查询:'
,
item
);
};
};
//获取报警数量
//获取报警数量
getNumber
()
function
getNumber
()
{
function
getNumber
()
{
getTransAlarmNumber
().
then
(
res
=>
{
//当前时间为2025-02-15 9:50:56 则开始时间为2025-02-14 09:00:00 结束时间为2025-02-15 09:00:00
console
.
log
(
'123123123123-----------'
,
res
.
data
)
let
now
=
new
Date
();
now
.
setMinutes
(
0
,
0
,
0
);
// 将分钟、秒数和毫秒数都设为0
let
start
=
new
Date
(
now
.
getTime
()
-
24
*
60
*
60
*
1000
);
// 减去24小时的毫秒数
let
endTime
=
`
${
now
.
getFullYear
()}
-
${
String
(
now
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
)}
-
${
String
(
now
.
getDate
()).
padStart
(
2
,
'0'
)}
${
String
(
now
.
getHours
()).
padStart
(
2
,
'0'
)}
:00:00`
;
start
.
setMinutes
(
0
,
0
,
0
);
// 确保分钟、秒数和毫秒数都为0
let
startTime
=
`
${
start
.
getFullYear
()}
-
${
String
(
start
.
getMonth
()
+
1
).
padStart
(
2
,
'0'
)}
-
${
String
(
start
.
getDate
()).
padStart
(
2
,
'0'
)}
${
String
(
start
.
getHours
()).
padStart
(
2
,
'0'
)}
:00:00`
;
const
params
=
{
beginTime
:
startTime
,
endTime
:
endTime
}
getTransAlarmNumber
(
params
).
then
(
res
=>
{
alarmNum
.
value
=
res
.
data
?
res
.
data
:
0
alarmNum
.
value
=
res
.
data
?
res
.
data
:
0
})
})
}
}
...
...
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