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
ba8e68c2
Commit
ba8e68c2
authored
Sep 27, 2024
by
hubaoshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面上显示bug
parent
68dd4f5b
Changes
19
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
419 additions
and
46 deletions
+419
-46
ExtinguisherAlarmPage.vue
...iews/AIStation/ExtinguisherPage/ExtinguisherAlarmPage.vue
+31
-0
ExtinguisherHistoryPage.vue
...ws/AIStation/ExtinguisherPage/ExtinguisherHistoryPage.vue
+31
-0
ExtinguisherNewDataPage.vue
...ws/AIStation/ExtinguisherPage/ExtinguisherNewDataPage.vue
+31
-0
MoveMonitorAlarmPage.vue
src/views/AIStation/MoveMonitorPage/MoveMonitorAlarmPage.vue
+31
-0
MoveMonitorHistoryPage.vue
...iews/AIStation/MoveMonitorPage/MoveMonitorHistoryPage.vue
+31
-0
MoveMonitorNewDataPage.vue
...iews/AIStation/MoveMonitorPage/MoveMonitorNewDataPage.vue
+31
-0
index.vue
src/views/AIStation/MoveMonitorPage/index.vue
+1
-1
PipelineTempAlarmPage.vue
...iews/AIStation/PipelineTempPage/PipelineTempAlarmPage.vue
+31
-0
PipelineTempHistoryPage.vue
...ws/AIStation/PipelineTempPage/PipelineTempHistoryPage.vue
+31
-0
PipelineTempNewDataPage.vue
...ws/AIStation/PipelineTempPage/PipelineTempNewDataPage.vue
+31
-0
index.vue
src/views/AIStation/PipelineTempPage/index.vue
+9
-9
RecyclePumpAlarmPage.vue
src/views/AIStation/RecyclePumpPage/RecyclePumpAlarmPage.vue
+31
-0
RecyclePumpHistoryPage.vue
...iews/AIStation/RecyclePumpPage/RecyclePumpHistoryPage.vue
+31
-0
RecyclePumpNewDataPage.vue
...iews/AIStation/RecyclePumpPage/RecyclePumpNewDataPage.vue
+31
-0
index.vue
src/views/AIStation/RecyclePumpPage/index.vue
+1
-1
TransTempHistoryPage.vue
src/views/AIStation/TransTempPage/TransTempHistoryPage.vue
+3
-3
index.vue
src/views/AIStation/TransTempPage/index.vue
+9
-9
VoiceCommandLocationPage.vue
src/views/AIStation/VoiceCommandLocationPage.vue
+10
-10
VoiceCommandPage.vue
src/views/AIStation/VoiceCommandPage.vue
+14
-13
No files found.
src/views/AIStation/ExtinguisherPage/ExtinguisherAlarmPage.vue
View file @
ba8e68c2
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
import
{
ref
,
defineProps
,
reactive
,
watch
}
from
"vue"
;
import
{
ref
,
defineProps
,
reactive
,
watch
}
from
"vue"
;
import
{
getAlarmListData
}
from
"../../../api/AIStation/Extinguisher.js"
;
import
{
getAlarmListData
}
from
"../../../api/AIStation/Extinguisher.js"
;
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
{
ElMessage
}
from
"element-plus"
;
let
AlarmData
=
ref
([])
let
AlarmData
=
ref
([])
...
@@ -49,6 +50,16 @@ function getData() {
...
@@ -49,6 +50,16 @@ function getData() {
endTime
:
''
,
endTime
:
''
,
});
});
getAlarmListData
(
item
).
then
(
res
=>
{
getAlarmListData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
console
.
log
(
res
,
12
)
console
.
log
(
res
,
12
)
AlarmData
.
value
=
res
.
rows
;
AlarmData
.
value
=
res
.
rows
;
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
...
@@ -80,6 +91,16 @@ function getDataByParams() {
...
@@ -80,6 +91,16 @@ function getDataByParams() {
item
.
alarmStatus
=
''
item
.
alarmStatus
=
''
}
}
getAlarmListData
(
item
).
then
(
res
=>
{
getAlarmListData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
AlarmData
.
value
=
res
.
rows
AlarmData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
@@ -97,6 +118,16 @@ watch(
...
@@ -97,6 +118,16 @@ watch(
function
getDataNew
(
item
)
{
function
getDataNew
(
item
)
{
getAlarmListData
(
item
).
then
(
res
=>
{
getAlarmListData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
AlarmData
.
value
=
res
.
rows
AlarmData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
...
src/views/AIStation/ExtinguisherPage/ExtinguisherHistoryPage.vue
View file @
ba8e68c2
...
@@ -3,6 +3,7 @@ import {reactive, ref, watch} from "vue";
...
@@ -3,6 +3,7 @@ import {reactive, ref, watch} from "vue";
import
analysisImage
from
'/imgs/default.png'
import
analysisImage
from
'/imgs/default.png'
import
{
getListHistoryData
}
from
"../../../api/AIStation/Extinguisher.js"
;
import
{
getListHistoryData
}
from
"../../../api/AIStation/Extinguisher.js"
;
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
{
ElMessage
}
from
"element-plus"
;
let
HistoryData
=
ref
([])
let
HistoryData
=
ref
([])
const
historyPage
=
reactive
({
total
:
0
,
rows
:
20
,
page
:
1
});
const
historyPage
=
reactive
({
total
:
0
,
rows
:
20
,
page
:
1
});
...
@@ -60,6 +61,16 @@ function getData() {
...
@@ -60,6 +61,16 @@ function getData() {
endTime
:
''
endTime
:
''
})
})
getListHistoryData
(
item
).
then
(
res
=>
{
getListHistoryData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
console
.
log
(
'res'
,
res
)
console
.
log
(
'res'
,
res
)
HistoryData
.
value
=
res
.
rows
HistoryData
.
value
=
res
.
rows
historyPage
.
total
=
res
.
total
historyPage
.
total
=
res
.
total
...
@@ -92,6 +103,16 @@ function getDataByParams() {
...
@@ -92,6 +103,16 @@ function getDataByParams() {
item
.
alarmStatus
=
''
item
.
alarmStatus
=
''
}
}
getListHistoryData
(
item
).
then
(
res
=>
{
getListHistoryData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
HistoryData
.
value
=
res
.
rows
HistoryData
.
value
=
res
.
rows
historyPage
.
total
=
res
.
total
historyPage
.
total
=
res
.
total
historyPage
.
rows
=
res
.
pageSize
historyPage
.
rows
=
res
.
pageSize
...
@@ -109,6 +130,16 @@ watch(
...
@@ -109,6 +130,16 @@ watch(
function
getDataNew
(
item
)
{
function
getDataNew
(
item
)
{
getListHistoryData
(
item
).
then
(
res
=>
{
getListHistoryData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
HistoryData
.
value
=
res
.
rows
HistoryData
.
value
=
res
.
rows
historyPage
.
total
=
res
.
total
historyPage
.
total
=
res
.
total
historyPage
.
rows
=
res
.
pageSize
historyPage
.
rows
=
res
.
pageSize
...
...
src/views/AIStation/ExtinguisherPage/ExtinguisherNewDataPage.vue
View file @
ba8e68c2
...
@@ -3,6 +3,7 @@ import { reactive, ref, watch} from "vue";
...
@@ -3,6 +3,7 @@ import { reactive, ref, watch} from "vue";
import
analysisImage
from
'/imgs/default.png'
import
analysisImage
from
'/imgs/default.png'
import
{
getListNewData
}
from
"../../../api/AIStation/Extinguisher.js"
;
import
{
getListNewData
}
from
"../../../api/AIStation/Extinguisher.js"
;
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
{
ElMessage
}
from
"element-plus"
;
const
ExtinguisherNewData
=
ref
([])
const
ExtinguisherNewData
=
ref
([])
...
@@ -67,6 +68,16 @@ function getData() {
...
@@ -67,6 +68,16 @@ function getData() {
endTime
:
''
endTime
:
''
})
})
getListNewData
(
item
).
then
(
res
=>
{
getListNewData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
ExtinguisherNewData
.
value
=
res
.
rows
ExtinguisherNewData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
@@ -97,6 +108,16 @@ function getDataByParams() {
...
@@ -97,6 +108,16 @@ function getDataByParams() {
item
.
alarmStatus
=
''
item
.
alarmStatus
=
''
}
}
getListNewData
(
item
).
then
(
res
=>
{
getListNewData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
ExtinguisherNewData
.
value
=
res
.
rows
ExtinguisherNewData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
@@ -115,6 +136,16 @@ watch(
...
@@ -115,6 +136,16 @@ watch(
function
getDataNew
(
item
)
{
function
getDataNew
(
item
)
{
getListNewData
(
item
).
then
(
res
=>
{
getListNewData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
ExtinguisherNewData
.
value
=
res
.
rows
ExtinguisherNewData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
...
src/views/AIStation/MoveMonitorPage/MoveMonitorAlarmPage.vue
View file @
ba8e68c2
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
import
{
ref
,
defineProps
,
reactive
,
watch
}
from
"vue"
;
import
{
ref
,
defineProps
,
reactive
,
watch
}
from
"vue"
;
import
{
getMoveListAlarmNewData
}
from
"../../../api/AIStation/MoveMonitor.js"
;
import
{
getMoveListAlarmNewData
}
from
"../../../api/AIStation/MoveMonitor.js"
;
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
{
ElMessage
}
from
"element-plus"
;
let
AlarmData
=
ref
([])
let
AlarmData
=
ref
([])
...
@@ -61,6 +62,16 @@ function getData(){
...
@@ -61,6 +62,16 @@ function getData(){
endTime
:
''
,
endTime
:
''
,
});
});
getMoveListAlarmNewData
(
item
).
then
(
res
=>
{
getMoveListAlarmNewData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
console
.
log
(
'1123123'
,
res
)
console
.
log
(
'1123123'
,
res
)
AlarmData
.
value
=
res
.
rows
;
AlarmData
.
value
=
res
.
rows
;
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
...
@@ -91,6 +102,16 @@ function getDataByParams(){
...
@@ -91,6 +102,16 @@ function getDataByParams(){
item
.
alarmStatus
=
''
item
.
alarmStatus
=
''
}
}
getMoveListAlarmNewData
(
item
).
then
(
res
=>
{
getMoveListAlarmNewData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
AlarmData
.
value
=
res
.
rows
AlarmData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
@@ -99,6 +120,16 @@ function getDataByParams(){
...
@@ -99,6 +120,16 @@ function getDataByParams(){
function
getDataNew
(
item
)
{
function
getDataNew
(
item
)
{
getMoveListAlarmNewData
(
item
).
then
(
res
=>
{
getMoveListAlarmNewData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
AlarmData
.
value
=
res
.
rows
AlarmData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
...
src/views/AIStation/MoveMonitorPage/MoveMonitorHistoryPage.vue
View file @
ba8e68c2
...
@@ -3,6 +3,7 @@ import {reactive, ref, watch} from "vue";
...
@@ -3,6 +3,7 @@ import {reactive, ref, watch} from "vue";
import
analysisImage
from
'/imgs/default.png'
import
analysisImage
from
'/imgs/default.png'
import
{
getMoveListHistoryData
}
from
"../../../api/AIStation/MoveMonitor.js"
;
import
{
getMoveListHistoryData
}
from
"../../../api/AIStation/MoveMonitor.js"
;
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
{
ElMessage
}
from
"element-plus"
;
const
HistoryData
=
ref
([])
const
HistoryData
=
ref
([])
const
enterpriseId
=
ref
();
const
enterpriseId
=
ref
();
...
@@ -70,6 +71,16 @@ function getData() {
...
@@ -70,6 +71,16 @@ function getData() {
endTime
:
''
endTime
:
''
})
})
getMoveListHistoryData
(
item
).
then
(
res
=>
{
getMoveListHistoryData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
console
.
log
(
'res'
,
res
)
console
.
log
(
'res'
,
res
)
HistoryData
.
value
=
res
.
rows
HistoryData
.
value
=
res
.
rows
historyPage
.
total
=
res
.
total
historyPage
.
total
=
res
.
total
...
@@ -101,6 +112,16 @@ function getDataByParams(){
...
@@ -101,6 +112,16 @@ function getDataByParams(){
item
.
alarmStatus
=
''
item
.
alarmStatus
=
''
}
}
getMoveListHistoryData
(
item
).
then
(
res
=>
{
getMoveListHistoryData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
HistoryData
.
value
=
res
.
rows
HistoryData
.
value
=
res
.
rows
historyPage
.
total
=
res
.
total
historyPage
.
total
=
res
.
total
historyPage
.
rows
=
res
.
pageSize
historyPage
.
rows
=
res
.
pageSize
...
@@ -109,6 +130,16 @@ function getDataByParams(){
...
@@ -109,6 +130,16 @@ function getDataByParams(){
function
getDataNew
(
item
)
{
function
getDataNew
(
item
)
{
getMoveListHistoryData
(
item
).
then
(
res
=>
{
getMoveListHistoryData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
HistoryData
.
value
=
res
.
rows
HistoryData
.
value
=
res
.
rows
historyPage
.
total
=
res
.
total
historyPage
.
total
=
res
.
total
historyPage
.
rows
=
res
.
pageSize
historyPage
.
rows
=
res
.
pageSize
...
...
src/views/AIStation/MoveMonitorPage/MoveMonitorNewDataPage.vue
View file @
ba8e68c2
...
@@ -3,6 +3,7 @@ import {reactive, ref, watch} from "vue";
...
@@ -3,6 +3,7 @@ import {reactive, ref, watch} from "vue";
import
analysisImage
from
'/imgs/default.png'
import
analysisImage
from
'/imgs/default.png'
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
{
getMoveListNewData
}
from
"../../../api/AIStation/MoveMonitor.js"
;
import
{
getMoveListNewData
}
from
"../../../api/AIStation/MoveMonitor.js"
;
import
{
ElMessage
}
from
"element-plus"
;
const
MoveMonitorNewData
=
ref
([])
const
MoveMonitorNewData
=
ref
([])
...
@@ -64,6 +65,16 @@ function getDataByParams(){
...
@@ -64,6 +65,16 @@ function getDataByParams(){
item
.
alarmStatus
=
''
item
.
alarmStatus
=
''
}
}
getMoveListNewData
(
item
).
then
(
res
=>
{
getMoveListNewData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
MoveMonitorNewData
.
value
=
res
.
rows
MoveMonitorNewData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
@@ -105,6 +116,16 @@ function getData(){
...
@@ -105,6 +116,16 @@ function getData(){
endTime
:
''
endTime
:
''
})
})
getMoveListNewData
(
item
).
then
(
res
=>
{
getMoveListNewData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
MoveMonitorNewData
.
value
=
res
.
rows
MoveMonitorNewData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
@@ -113,6 +134,16 @@ function getData(){
...
@@ -113,6 +134,16 @@ function getData(){
function
getDataNew
(
item
)
{
function
getDataNew
(
item
)
{
getMoveListNewData
(
item
).
then
(
res
=>
{
getMoveListNewData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
MoveMonitorNewData
.
value
=
res
.
rows
MoveMonitorNewData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
...
src/views/AIStation/MoveMonitorPage/index.vue
View file @
ba8e68c2
...
@@ -329,7 +329,7 @@ watch(
...
@@ -329,7 +329,7 @@ watch(
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"告警状态:"
prop=
"alarmStatus"
v-show=
"selectedBtn === 1"
>
<el-form-item
label=
"告警状态:"
prop=
"alarmStatus"
v-show=
"selectedBtn === 1"
>
<el-select
placeholder=
""
clearable
style=
"width: 200px"
v-model=
"queryParams.alarmStatus"
>
<el-select
placeholder=
"
请选择
"
clearable
style=
"width: 200px"
v-model=
"queryParams.alarmStatus"
>
<el-option
v-for=
"item in alarmStatusList"
:key=
"item.value"
:value=
"item.value"
:label=
"item.label"
/>
<el-option
v-for=
"item in alarmStatusList"
:key=
"item.value"
:value=
"item.value"
:label=
"item.label"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
...
src/views/AIStation/PipelineTempPage/PipelineTempAlarmPage.vue
View file @
ba8e68c2
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
import
{
ref
,
defineProps
,
reactive
,
watch
}
from
"vue"
;
import
{
ref
,
defineProps
,
reactive
,
watch
}
from
"vue"
;
import
{
getPipListAlarmData
}
from
"../../../api/AIStation/PipelineTemp.js"
;
import
{
getPipListAlarmData
}
from
"../../../api/AIStation/PipelineTemp.js"
;
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
{
ElMessage
}
from
"element-plus"
;
let
AlarmData
=
ref
([])
let
AlarmData
=
ref
([])
...
@@ -50,6 +51,16 @@ watch(
...
@@ -50,6 +51,16 @@ watch(
)
)
function
getDataNew
(
item
){
function
getDataNew
(
item
){
getPipListAlarmData
(
item
).
then
(
res
=>
{
getPipListAlarmData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
AlarmData
.
value
=
res
.
rows
AlarmData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
@@ -67,6 +78,16 @@ function getData(){
...
@@ -67,6 +78,16 @@ function getData(){
endTime
:
''
,
endTime
:
''
,
});
});
getPipListAlarmData
(
item
).
then
(
res
=>
{
getPipListAlarmData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
console
.
log
(
res
,
12
)
console
.
log
(
res
,
12
)
AlarmData
.
value
=
res
.
rows
;
AlarmData
.
value
=
res
.
rows
;
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
...
@@ -94,6 +115,16 @@ function getDataByParams(){
...
@@ -94,6 +115,16 @@ function getDataByParams(){
item
.
endTime
=
''
item
.
endTime
=
''
}
}
getPipListAlarmData
(
item
).
then
(
res
=>
{
getPipListAlarmData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
AlarmData
.
value
=
res
.
rows
AlarmData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
...
src/views/AIStation/PipelineTempPage/PipelineTempHistoryPage.vue
View file @
ba8e68c2
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
import
{
reactive
,
ref
,
watch
}
from
"vue"
;
import
{
reactive
,
ref
,
watch
}
from
"vue"
;
import
{
getPipListHistoryData
}
from
"../../../api/AIStation/PipelineTemp.js"
;
import
{
getPipListHistoryData
}
from
"../../../api/AIStation/PipelineTemp.js"
;
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
{
ElMessage
}
from
"element-plus"
;
let
HistoryData
=
ref
([])
let
HistoryData
=
ref
([])
const
params
=
ref
({})
const
params
=
ref
({})
...
@@ -54,6 +55,16 @@ watch(
...
@@ -54,6 +55,16 @@ watch(
function
getDataNew
(
item
)
{
function
getDataNew
(
item
)
{
getPipListHistoryData
(
item
).
then
(
res
=>
{
getPipListHistoryData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
HistoryData
.
value
=
res
.
rows
HistoryData
.
value
=
res
.
rows
historyPage
.
total
=
res
.
total
historyPage
.
total
=
res
.
total
historyPage
.
rows
=
res
.
pageSize
historyPage
.
rows
=
res
.
pageSize
...
@@ -74,6 +85,16 @@ function getData() {
...
@@ -74,6 +85,16 @@ function getData() {
endTime
:
''
endTime
:
''
})
})
getPipListHistoryData
(
item
).
then
(
res
=>
{
getPipListHistoryData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
console
.
log
(
'res'
,
res
)
console
.
log
(
'res'
,
res
)
HistoryData
.
value
=
res
.
rows
HistoryData
.
value
=
res
.
rows
historyPage
.
total
=
res
.
total
historyPage
.
total
=
res
.
total
...
@@ -103,6 +124,16 @@ function getDataByParams() {
...
@@ -103,6 +124,16 @@ function getDataByParams() {
item
.
endTime
=
''
item
.
endTime
=
''
}
}
getPipListHistoryData
(
item
).
then
(
res
=>
{
getPipListHistoryData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
HistoryData
.
value
=
res
.
rows
HistoryData
.
value
=
res
.
rows
historyPage
.
total
=
res
.
total
historyPage
.
total
=
res
.
total
historyPage
.
rows
=
res
.
pageSize
historyPage
.
rows
=
res
.
pageSize
...
...
src/views/AIStation/PipelineTempPage/PipelineTempNewDataPage.vue
View file @
ba8e68c2
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
import
{
reactive
,
ref
,
watch
}
from
"vue"
;
import
{
reactive
,
ref
,
watch
}
from
"vue"
;
import
{
getPipListNewData
}
from
"../../../api/AIStation/PipelineTemp.js"
;
import
{
getPipListNewData
}
from
"../../../api/AIStation/PipelineTemp.js"
;
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
{
ElMessage
}
from
"element-plus"
;
const
PipelineTempNewData
=
ref
([])
const
PipelineTempNewData
=
ref
([])
const
params
=
ref
({})
const
params
=
ref
({})
...
@@ -54,6 +55,16 @@ watch(
...
@@ -54,6 +55,16 @@ watch(
(
newData
)
=>
{
(
newData
)
=>
{
params
.
value
=
newData
params
.
value
=
newData
getPipListNewData
(
params
.
value
).
then
(
res
=>
{
getPipListNewData
(
params
.
value
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
PipelineTempNewData
.
value
=
res
.
rows
PipelineTempNewData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
@@ -74,6 +85,16 @@ function getData() {
...
@@ -74,6 +85,16 @@ function getData() {
endTime
:
''
endTime
:
''
})
})
getPipListNewData
(
item
).
then
(
res
=>
{
getPipListNewData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
PipelineTempNewData
.
value
=
res
.
rows
PipelineTempNewData
.
value
=
res
.
rows
console
.
log
(
'data============='
,
PipelineTempNewData
.
value
)
console
.
log
(
'data============='
,
PipelineTempNewData
.
value
)
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
...
@@ -102,6 +123,16 @@ function getDataByParams() {
...
@@ -102,6 +123,16 @@ function getDataByParams() {
item
.
endTime
=
''
item
.
endTime
=
''
}
}
getPipListNewData
(
item
).
then
(
res
=>
{
getPipListNewData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
PipelineTempNewData
.
value
=
res
.
rows
PipelineTempNewData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
...
src/views/AIStation/PipelineTempPage/index.vue
View file @
ba8e68c2
...
@@ -354,12 +354,12 @@ watch(
...
@@ -354,12 +354,12 @@ watch(
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"告警状态:"
prop=
"alarmStatus"
v-show=
"selectedBtn === 1"
>
<el-form-item
label=
"告警状态:"
prop=
"alarmStatus"
v-show=
"selectedBtn === 1"
>
<el-select
placeholder=
""
clearable
style=
"width: 200px"
v-model=
"queryParams.alarmStatus"
>
<el-select
placeholder=
"
请选择
"
clearable
style=
"width: 200px"
v-model=
"queryParams.alarmStatus"
>
<el-option
v-for=
"item in alarmStatusList"
:key=
"item.value"
:value=
"item.value"
:label=
"item.label"
/>
<el-option
v-for=
"item in alarmStatusList"
:key=
"item.value"
:value=
"item.value"
:label=
"item.label"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"报警类型:"
prop=
"thermalAlarmType"
v-show=
"selectedBtn === 3"
>
<el-form-item
label=
"报警类型:"
prop=
"thermalAlarmType"
v-show=
"selectedBtn === 3"
>
<el-select
placeholder=
""
clearable
style=
"width: 200px"
v-model=
"queryParams.thermalAlarmType"
>
<el-select
placeholder=
"
请选择
"
clearable
style=
"width: 200px"
v-model=
"queryParams.thermalAlarmType"
>
<el-option
v-for=
"item in thermalAlarmTypeList"
:key=
"item.value"
:value=
"item.value"
:label=
"item.label"
/>
<el-option
v-for=
"item in thermalAlarmTypeList"
:key=
"item.value"
:value=
"item.value"
:label=
"item.label"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -385,17 +385,17 @@ watch(
...
@@ -385,17 +385,17 @@ watch(
/>
/>
</el-config-provider>
</el-config-provider>
</el-form-item>
</el-form-item>
<el-form-item
v-if=
"selectedBtn !== 3"
>
<el-form-item>
<el-button
type=
"primary"
@
click=
"search"
class=
"add-search-btn"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"search"
class=
"add-search-btn"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"resetSearch"
class=
"add-search-btn"
v-if=
"selectedBtn !== 3"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"resetSearch"
class=
"add-search-btn"
v-if=
"selectedBtn !== 3"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"handleExport()"
class=
"add-search-btn"
>
导出
</el-button>
<el-button
type=
"primary"
@
click=
"handleExport()"
class=
"add-search-btn"
>
导出
</el-button>
</el-form-item>
</el-form-item>
<div
>
<!--
<div>
--
>
<el-form-item
v-if=
"selectedBtn === 3"
>
<!--
<el-form-item
v-if=
"selectedBtn === 3"
>
--
>
<el-button
type=
"primary"
@
click=
"search"
class=
"add-search-btn"
>
查询
</el-button
>
<!--
<el-button
type=
"primary"
@
click=
"search"
class=
"add-search-btn"
>
查询
</el-button>
--
>
<el-button
type=
"primary"
@
click=
"handleExport"
class=
"add-search-btn"
>
导出
</el-button
>
<!--
<el-button
type=
"primary"
@
click=
"handleExport"
class=
"add-search-btn"
>
导出
</el-button>
--
>
</el-form-item
>
<!--
</el-form-item>
--
>
</div
>
<!--
</div>
--
>
</el-form>
</el-form>
</div>
</div>
<div>
<div>
...
...
src/views/AIStation/RecyclePumpPage/RecyclePumpAlarmPage.vue
View file @
ba8e68c2
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
import
{
ref
,
reactive
,
defineProps
,
watch
}
from
"vue"
;
import
{
ref
,
reactive
,
defineProps
,
watch
}
from
"vue"
;
import
{
getRecycleListAlarmData
}
from
"../../../api/AIStation/RecyclePump.js"
;
import
{
getRecycleListAlarmData
}
from
"../../../api/AIStation/RecyclePump.js"
;
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
{
ElMessage
}
from
"element-plus"
;
const
TransTempAlarmData
=
ref
([])
const
TransTempAlarmData
=
ref
([])
const
params
=
ref
({})
const
params
=
ref
({})
...
@@ -60,6 +61,16 @@ function getData(){
...
@@ -60,6 +61,16 @@ function getData(){
endTime
:
''
,
endTime
:
''
,
});
});
getRecycleListAlarmData
(
item
).
then
(
res
=>
{
getRecycleListAlarmData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
console
.
log
(
res
,
12
)
console
.
log
(
res
,
12
)
TransTempAlarmData
.
value
=
res
.
rows
;
TransTempAlarmData
.
value
=
res
.
rows
;
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
...
@@ -87,6 +98,16 @@ function getDataByParams(){
...
@@ -87,6 +98,16 @@ function getDataByParams(){
item
.
endTime
=
''
item
.
endTime
=
''
}
}
getRecycleListAlarmData
(
item
).
then
(
res
=>
{
getRecycleListAlarmData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
TransTempAlarmData
.
value
=
res
.
rows
TransTempAlarmData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
@@ -95,6 +116,16 @@ function getDataByParams(){
...
@@ -95,6 +116,16 @@ function getDataByParams(){
function
getDataNew
(
item
)
{
function
getDataNew
(
item
)
{
getRecycleListAlarmData
(
item
).
then
(
res
=>
{
getRecycleListAlarmData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
TransTempAlarmData
.
value
=
res
.
rows
TransTempAlarmData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
...
src/views/AIStation/RecyclePumpPage/RecyclePumpHistoryPage.vue
View file @
ba8e68c2
...
@@ -5,6 +5,7 @@ import WaveSurfer from 'wavesurfer.js';
...
@@ -5,6 +5,7 @@ import WaveSurfer from 'wavesurfer.js';
import
TimelinePlugin
from
'wavesurfer.js/dist/plugin/wavesurfer.timeline'
;
import
TimelinePlugin
from
'wavesurfer.js/dist/plugin/wavesurfer.timeline'
;
import
RegionsPlugin
from
'wavesurfer.js/dist/plugin/wavesurfer.regions'
;
import
RegionsPlugin
from
'wavesurfer.js/dist/plugin/wavesurfer.regions'
;
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
zhCn
from
'element-plus/dist/locale/zh-cn.mjs'
import
{
ElMessage
}
from
"element-plus"
;
const
RecyclePumpData
=
ref
([]);
const
RecyclePumpData
=
ref
([]);
...
@@ -205,6 +206,16 @@ function getData() {
...
@@ -205,6 +206,16 @@ function getData() {
endTime
:
''
endTime
:
''
})
})
getRecycleListHistoryData
(
item
).
then
(
res
=>
{
getRecycleListHistoryData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
RecyclePumpData
.
value
=
res
.
rows
RecyclePumpData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
@@ -231,6 +242,16 @@ function getDataByParams(){
...
@@ -231,6 +242,16 @@ function getDataByParams(){
item
.
endTime
=
''
item
.
endTime
=
''
}
}
getRecycleListHistoryData
(
item
).
then
(
res
=>
{
getRecycleListHistoryData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
RecyclePumpData
.
value
=
res
.
rows
RecyclePumpData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
@@ -239,6 +260,16 @@ function getDataByParams(){
...
@@ -239,6 +260,16 @@ function getDataByParams(){
function
getDataNew
(
item
)
{
function
getDataNew
(
item
)
{
getRecycleListHistoryData
(
item
).
then
(
res
=>
{
getRecycleListHistoryData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
RecyclePumpData
.
value
=
res
.
rows
RecyclePumpData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
...
src/views/AIStation/RecyclePumpPage/RecyclePumpNewDataPage.vue
View file @
ba8e68c2
...
@@ -5,6 +5,7 @@ import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
...
@@ -5,6 +5,7 @@ import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import
WaveSurfer
from
"wavesurfer.js"
;
import
WaveSurfer
from
"wavesurfer.js"
;
import
RegionsPlugin
from
"wavesurfer.js/dist/plugin/wavesurfer.regions.js"
;
import
RegionsPlugin
from
"wavesurfer.js/dist/plugin/wavesurfer.regions.js"
;
import
TimelinePlugin
from
"wavesurfer.js/dist/plugin/wavesurfer.timeline.js"
;
import
TimelinePlugin
from
"wavesurfer.js/dist/plugin/wavesurfer.timeline.js"
;
import
{
ElMessage
}
from
"element-plus"
;
const
RecyclePumpData
=
ref
([]);
const
RecyclePumpData
=
ref
([]);
const
params
=
ref
({})
const
params
=
ref
({})
...
@@ -308,6 +309,16 @@ function getData(){
...
@@ -308,6 +309,16 @@ function getData(){
endTime
:
''
endTime
:
''
})
})
getRecycleListNewData
(
item
).
then
(
res
=>
{
getRecycleListNewData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
RecyclePumpData
.
value
=
res
.
rows
RecyclePumpData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
@@ -335,6 +346,16 @@ function getDataByParams(){
...
@@ -335,6 +346,16 @@ function getDataByParams(){
item
.
endTime
=
''
item
.
endTime
=
''
}
}
getRecycleListNewData
(
item
).
then
(
res
=>
{
getRecycleListNewData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
RecyclePumpData
.
value
=
res
.
rows
RecyclePumpData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
@@ -343,6 +364,16 @@ function getDataByParams(){
...
@@ -343,6 +364,16 @@ function getDataByParams(){
/** 根据父传子的搜索条件 查数据*/
/** 根据父传子的搜索条件 查数据*/
function
getDataNew
(
item
)
{
function
getDataNew
(
item
)
{
getRecycleListNewData
(
item
).
then
(
res
=>
{
getRecycleListNewData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
RecyclePumpData
.
value
=
res
.
rows
RecyclePumpData
.
value
=
res
.
rows
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
...
...
src/views/AIStation/RecyclePumpPage/index.vue
View file @
ba8e68c2
...
@@ -312,7 +312,7 @@ getSupplys();
...
@@ -312,7 +312,7 @@ getSupplys();
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"告警状态:"
prop=
"alarmStatus"
v-show=
"selectedBtn === 1"
>
<el-form-item
label=
"告警状态:"
prop=
"alarmStatus"
v-show=
"selectedBtn === 1"
>
<el-select
placeholder=
""
clearable
style=
"width: 200px"
v-model=
"queryParams.alarmStatus"
>
<el-select
placeholder=
"
请选择
"
clearable
style=
"width: 200px"
v-model=
"queryParams.alarmStatus"
>
<el-option
v-for=
"item in alarmStatusList"
:key=
"item.value"
:value=
"item.value"
:label=
"item.label"
/>
<el-option
v-for=
"item in alarmStatusList"
:key=
"item.value"
:value=
"item.value"
:label=
"item.label"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
...
src/views/AIStation/TransTempPage/TransTempHistoryPage.vue
View file @
ba8e68c2
...
@@ -203,7 +203,7 @@ const handleSortChange = (data) => {
...
@@ -203,7 +203,7 @@ const handleSortChange = (data) => {
</el-image>
</el-image>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"alarmStatus"
align=
"center"
label=
"告警状态"
>
<el-table-column
prop=
"alarmStatus"
align=
"center"
label=
"告警状态"
sortable
:sort-map=
"sortMapData"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<span
v-if=
"scope.row.alarmStatus=== '0'"
>
正常
</span>
<span
v-if=
"scope.row.alarmStatus=== '0'"
>
正常
</span>
<span
v-else-if=
"scope.row.alarmStatus=== '1'"
style=
"color: red"
>
异常
</span>
<span
v-else-if=
"scope.row.alarmStatus=== '1'"
style=
"color: red"
>
异常
</span>
...
@@ -278,8 +278,8 @@ const handleSortChange = (data) => {
...
@@ -278,8 +278,8 @@ const handleSortChange = (data) => {
<span
v-else-if=
"singleDetails.alarmStatus=== '1'"
>
异常
</span>
<span
v-else-if=
"singleDetails.alarmStatus=== '1'"
>
异常
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"图片:"
prop=
"
pic
Url"
>
<el-form-item
label=
"图片:"
prop=
"
image
Url"
>
<el-image
:src=
"singleDetails.
picUrl ? singleDetails.pic
Url : analysisImage"
<el-image
:src=
"singleDetails.
imageUrl ? singleDetails.image
Url : analysisImage"
style=
"max-width: 80%; height: auto;"
/>
style=
"max-width: 80%; height: auto;"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
...
src/views/AIStation/TransTempPage/index.vue
View file @
ba8e68c2
...
@@ -363,12 +363,12 @@ watch(
...
@@ -363,12 +363,12 @@ watch(
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"告警状态:"
prop=
"alarmStatus"
v-show=
"selectedBtn === 1"
>
<el-form-item
label=
"告警状态:"
prop=
"alarmStatus"
v-show=
"selectedBtn === 1"
>
<el-select
placeholder=
""
clearable
style=
"width: 200px"
v-model=
"queryParams.alarmStatus"
>
<el-select
placeholder=
"
请选择
"
clearable
style=
"width: 200px"
v-model=
"queryParams.alarmStatus"
>
<el-option
v-for=
"item in alarmStatusList"
:key=
"item.value"
:value=
"item.value"
:label=
"item.label"
/>
<el-option
v-for=
"item in alarmStatusList"
:key=
"item.value"
:value=
"item.value"
:label=
"item.label"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"报警类型:"
prop=
"alarmType"
v-show=
"selectedBtn === 3"
>
<el-form-item
label=
"报警类型:"
prop=
"alarmType"
v-show=
"selectedBtn === 3"
>
<el-select
placeholder=
""
clearable
style=
"width: 200px"
v-model=
"queryParams.alarmType"
>
<el-select
placeholder=
"
请选择
"
clearable
style=
"width: 200px"
v-model=
"queryParams.alarmType"
>
<el-option
v-for=
"item in alarmTypeList"
:key=
"item.value"
:value=
"item.value"
:label=
"item.label"
/>
<el-option
v-for=
"item in alarmTypeList"
:key=
"item.value"
:value=
"item.value"
:label=
"item.label"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
...
@@ -394,17 +394,17 @@ watch(
...
@@ -394,17 +394,17 @@ watch(
/>
/>
</el-config-provider>
</el-config-provider>
</el-form-item>
</el-form-item>
<el-form-item
v-if=
"selectedBtn !== 3"
>
<el-form-item>
<el-button
type=
"primary"
@
click=
"search"
class=
"add-search-btn"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"search"
class=
"add-search-btn"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"resetSearch"
class=
"add-search-btn"
v-if=
"selectedBtn !== 3"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"resetSearch"
class=
"add-search-btn"
v-if=
"selectedBtn !== 3"
>
重置
</el-button>
<el-button
type=
"primary"
@
click=
"handleExport"
class=
"add-search-btn"
>
导出
</el-button>
<el-button
type=
"primary"
@
click=
"handleExport"
class=
"add-search-btn"
>
导出
</el-button>
</el-form-item>
</el-form-item>
<div
>
<!--
<div>
--
>
<el-form-item
v-if=
"selectedBtn === 3"
>
<!--
<el-form-item
v-if=
"selectedBtn === 3"
>
--
>
<el-button
type=
"primary"
@
click=
"search"
class=
"add-search-btn"
>
查询
</el-button
>
<!--
<el-button
type=
"primary"
@
click=
"search"
class=
"add-search-btn"
>
查询
</el-button>
--
>
<el-button
type=
"primary"
@
click=
"handleExport"
class=
"add-search-btn"
>
导出
</el-button
>
<!--
<el-button
type=
"primary"
@
click=
"handleExport"
class=
"add-search-btn"
>
导出
</el-button>
--
>
</el-form-item
>
<!--
</el-form-item>
--
>
</div
>
<!--
</div>
--
>
</el-form>
</el-form>
</div>
</div>
<div>
<div>
...
...
src/views/AIStation/VoiceCommandLocationPage.vue
View file @
ba8e68c2
...
@@ -82,6 +82,16 @@ function loadData() {
...
@@ -82,6 +82,16 @@ function loadData() {
}
}
//查询数据
//查询数据
getVoiceCommandsLocationData
(
item
).
then
(
res
=>
{
getVoiceCommandsLocationData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
voiceCommandLocationData
.
value
=
res
.
rows
voiceCommandLocationData
.
value
=
res
.
rows
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
...
@@ -400,9 +410,7 @@ function getSupplys() {
...
@@ -400,9 +410,7 @@ function getSupplys() {
const
performActions
=
async
()
=>
{
const
performActions
=
async
()
=>
{
try
{
try
{
await
handleGetAIToken
();
// 等待 handleGetAIToken 完成
await
handleGetAIToken
();
// 等待 handleGetAIToken 完成
resetSearch
()
resetSearch
()
// getNumber()
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
error
(
'处理 Token 时出错:'
,
error
);
console
.
error
(
'处理 Token 时出错:'
,
error
);
}
}
...
@@ -414,14 +422,6 @@ watch(
...
@@ -414,14 +422,6 @@ watch(
if
(
route
.
path
===
'/AIStation/VoiceCommandLocation'
)
{
if
(
route
.
path
===
'/AIStation/VoiceCommandLocation'
)
{
// 路由变化,执行相应操作
// 路由变化,执行相应操作
performActions
()
performActions
()
// handleGetAIToken();
// const checkAIToken = setInterval(() => {
// if (localStorage.getItem('AIToken')) {
// clearInterval(checkAIToken); // 停止轮询
// // loadData();
// resetSearch();
// }
// }, 100); // 每100ms检查一次
}
}
},
},
{
immediate
:
true
}
// 只在路径变化时触发
{
immediate
:
true
}
// 只在路径变化时触发
...
...
src/views/AIStation/VoiceCommandPage.vue
View file @
ba8e68c2
...
@@ -8,6 +8,7 @@ import {
...
@@ -8,6 +8,7 @@ import {
}
from
"../../api/AIStation/VoiceCommand"
;
}
from
"../../api/AIStation/VoiceCommand"
;
import
{
useRoute
}
from
"vue-router"
;
import
{
useRoute
}
from
"vue-router"
;
import
{
handleGetAIToken
}
from
"./AItoken"
;
import
{
handleGetAIToken
}
from
"./AItoken"
;
import
{
ElMessage
}
from
"element-plus"
;
const
options
=
ref
([]);
const
options
=
ref
([]);
const
enterpriseId
=
ref
();
const
enterpriseId
=
ref
();
...
@@ -74,6 +75,16 @@ function loadData(){
...
@@ -74,6 +75,16 @@ function loadData(){
console
.
log
(
'item:'
,
item
)
console
.
log
(
'item:'
,
item
)
//查询数据
//查询数据
getVoiceCommandsData
(
item
).
then
(
res
=>
{
getVoiceCommandsData
(
item
).
then
(
res
=>
{
if
(
res
.
total
===
0
){
ElMessage
.
success
({
message
:
'数据为空!'
})
}
if
(
res
.
total
===
500
){
ElMessage
.
error
({
message
:
'网络错误!'
})
}
VoiceCommandData
.
value
=
res
.
rows
VoiceCommandData
.
value
=
res
.
rows
Page
.
rows
=
res
.
pageSize
Page
.
rows
=
res
.
pageSize
Page
.
total
=
res
.
total
Page
.
total
=
res
.
total
...
@@ -195,9 +206,7 @@ function handleDetail(row) {
...
@@ -195,9 +206,7 @@ function handleDetail(row) {
const
performActions
=
async
()
=>
{
const
performActions
=
async
()
=>
{
try
{
try
{
await
handleGetAIToken
();
// 等待 handleGetAIToken 完成
await
handleGetAIToken
();
// 等待 handleGetAIToken 完成
resetSearch
()
resetSearch
()
// getNumber()
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
error
(
'处理 Token 时出错:'
,
error
);
console
.
error
(
'处理 Token 时出错:'
,
error
);
}
}
...
@@ -208,14 +217,6 @@ watch(
...
@@ -208,14 +217,6 @@ watch(
()
=>
{
()
=>
{
if
(
route
.
path
===
'/AIStation/VoiceCommand'
)
{
if
(
route
.
path
===
'/AIStation/VoiceCommand'
)
{
performActions
()
performActions
()
// handleGetAIToken();
// const checkAIToken = setInterval(() => {
// if (localStorage.getItem('AIToken')) {
// clearInterval(checkAIToken); // 停止轮询
// // loadData();
// resetSearch();
// }
// }, 100); // 每100ms检查一次
}
}
},
},
{
immediate
:
true
}
// 只在路径变化时触发
{
immediate
:
true
}
// 只在路径变化时触发
...
@@ -295,10 +296,10 @@ const handleSortChange = (data) => {
...
@@ -295,10 +296,10 @@ const handleSortChange = (data) => {
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"IP地址:"
prop=
"ipAddress"
>
<el-form-item
label=
"IP地址:"
prop=
"ipAddress"
>
<el-input
placeholder=
""
style=
"width: 200px"
v-model=
"queryParams.ipAddress"
/>
<el-input
placeholder=
"
请输入IP地址
"
style=
"width: 200px"
v-model=
"queryParams.ipAddress"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"MAC地址:"
prop=
"macAddress"
>
<el-form-item
label=
"MAC地址:"
prop=
"macAddress"
>
<el-input
placeholder=
""
style=
"width: 200px"
v-model=
"queryParams.macAddress"
/>
<el-input
placeholder=
"
请输入MAC地址
"
style=
"width: 200px"
v-model=
"queryParams.macAddress"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"开始时间:"
prop=
"beginTime"
>
<el-form-item
label=
"开始时间:"
prop=
"beginTime"
>
<el-config-provider
:locale=
"zhCn"
>
<el-config-provider
:locale=
"zhCn"
>
...
@@ -350,7 +351,7 @@ const handleSortChange = (data) => {
...
@@ -350,7 +351,7 @@ const handleSortChange = (data) => {
<el-table-column
prop=
"answer"
align=
"center"
label=
"回答"
/>
<el-table-column
prop=
"answer"
align=
"center"
label=
"回答"
/>
<el-table-column
prop=
"macAddress"
align=
"center"
width=
"200"
label=
"MAC地址"
/>
<el-table-column
prop=
"macAddress"
align=
"center"
width=
"200"
label=
"MAC地址"
/>
<el-table-column
prop=
"ipAddress"
align=
"center"
label=
"IP 地址"
/>
<el-table-column
prop=
"ipAddress"
align=
"center"
label=
"IP 地址"
/>
<el-table-column
prop=
"result"
align=
"center"
label=
"指令结果"
>
<el-table-column
prop=
"result"
align=
"center"
label=
"指令结果"
sortable
:sort-map=
"sortMapData"
>
<
template
#
default=
"scope"
>
<
template
#
default=
"scope"
>
<span
v-if=
"scope.row.result=== '0'"
>
无
</span>
<span
v-if=
"scope.row.result=== '0'"
>
无
</span>
<span
v-else-if=
"scope.row.result=== '1'"
>
成功
</span>
<span
v-else-if=
"scope.row.result=== '1'"
>
成功
</span>
...
...
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