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
1a42eac2
Commit
1a42eac2
authored
Jul 31, 2024
by
qjeslks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
7.31.3
parent
4abdd382
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
24 deletions
+27
-24
AlarmInfoPage.vue
src/views/AlarmPage/AlarmInfoPage.vue
+2
-1
HisPatrolPage.vue
src/views/PatrolPage/HisPatrolPage.vue
+25
-23
No files found.
src/views/AlarmPage/AlarmInfoPage.vue
View file @
1a42eac2
...
@@ -108,7 +108,7 @@ function sortMethod({ order, prop }){
...
@@ -108,7 +108,7 @@ function sortMethod({ order, prop }){
direction
=
'DESC'
direction
=
'DESC'
}
}
if
(
i
===
"name"
){
if
(
i
===
"name"
){
sortname
=
"
n
ame"
;
sortname
=
"
UnitN
ame"
;
}
else
if
(
i
===
"alarmDate"
){
}
else
if
(
i
===
"alarmDate"
){
sortname
=
"alarmDate"
;
sortname
=
"alarmDate"
;
}
}
...
@@ -305,6 +305,7 @@ function gettransfer() {
...
@@ -305,6 +305,7 @@ function gettransfer() {
}
}
http
.
post
(
"/api/alarm/"
+
type
.
value
,
AlarmInfo
).
then
((
result
)
=>
{
http
.
post
(
"/api/alarm/"
+
type
.
value
,
AlarmInfo
).
then
((
result
)
=>
{
console
.
log
(
result
.
data
);
console
.
log
(
result
.
data
);
console
.
log
(
AlarmInfo
);
if
(
result
.
data
!==
null
){
if
(
result
.
data
!==
null
){
tableData
.
value
=
result
.
data
.
dataInfoList
;
tableData
.
value
=
result
.
data
.
dataInfoList
;
total
.
value
=
result
.
data
.
rowCount
;
total
.
value
=
result
.
data
.
rowCount
;
...
...
src/views/PatrolPage/HisPatrolPage.vue
View file @
1a42eac2
...
@@ -3,21 +3,21 @@
...
@@ -3,21 +3,21 @@
<el-card
class=
"card-contianer"
>
<el-card
class=
"card-contianer"
>
<div
class=
"div-header"
>
<div
class=
"div-header"
>
<el-form-item
label=
"设备:"
>
<el-form-item
label=
"设备:"
>
<el-cascader
:options=
"options"
v-model=
"
Alarm
Info.Id"
:props=
"props"
collapse-tags
clearable
:show-all-levels=
"false"
<el-cascader
:options=
"options"
v-model=
"
Patrol
Info.Id"
:props=
"props"
collapse-tags
clearable
:show-all-levels=
"false"
placeholder=
"请选择"
style=
"min-width: 210px;"
/>
placeholder=
"请选择"
style=
"min-width: 210px;"
/>
</el-form-item>
</el-form-item>
<
!--
<
el-form-item
label=
"开始时间:"
>
<el-form-item
label=
"开始时间:"
>
<el-config-provider
:locale=
"zhCn"
>
<el-config-provider
:locale=
"zhCn"
>
<el-date-picker
v-model=
"
Alarm
Info.startTime"
type=
"datetime"
value-format=
"YYYY-MM-DD HH:mm:ss"
<el-date-picker
v-model=
"
Patrol
Info.startTime"
type=
"datetime"
value-format=
"YYYY-MM-DD HH:mm:ss"
placeholder=
"选择开始时间"
style=
"min-width: 180px;"
/>
日期时间格式 2024-01-01 00:00:00
placeholder=
"选择开始时间"
style=
"min-width: 180px;"
/>
<!-- 日期时间格式 2024-01-01 00:00:00-->
</el-config-provider>
</el-config-provider>
</el-form-item>
</el-form-item>
<el-form-item
label=
"结束时间:"
>
<el-form-item
label=
"结束时间:"
>
<el-config-provider
:locale=
"zhCn"
>
<el-config-provider
:locale=
"zhCn"
>
<el-date-picker
v-model=
"
Alarm
Info.endTime"
type=
"datetime"
value-format=
"YYYY-MM-DD HH:mm:ss"
<el-date-picker
v-model=
"
Patrol
Info.endTime"
type=
"datetime"
value-format=
"YYYY-MM-DD HH:mm:ss"
placeholder=
"选择结束时间"
style=
"min-width: 180px;"
/>
placeholder=
"选择结束时间"
style=
"min-width: 180px;"
/>
</el-config-provider>
</el-config-provider>
</el-form-item>
-->
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
type=
"primary"
@
click=
"getdata"
style=
"min-width: 70px;"
>
查询
</el-button>
<el-button
type=
"primary"
@
click=
"getdata"
style=
"min-width: 70px;"
>
查询
</el-button>
</el-form-item>
</el-form-item>
...
@@ -95,10 +95,10 @@
...
@@ -95,10 +95,10 @@
}
else
if
(
sortField
[
i
]
==
'descending'
)
{
}
else
if
(
sortField
[
i
]
==
'descending'
)
{
direction
=
'DESC'
direction
=
'DESC'
}
}
if
(
i
===
"
n
ame"
){
if
(
i
===
"
transferN
ame"
){
sortname
=
"
n
ame"
;
sortname
=
"
UnitN
ame"
;
}
else
if
(
i
===
"
alarmDat
e"
){
}
else
if
(
i
===
"
patrolTim
e"
){
sortname
=
"
alarmDat
e"
;
sortname
=
"
PatrolTim
e"
;
}
}
// console.log(sortname)
// console.log(sortname)
if
(
sortnames
===
""
){
if
(
sortnames
===
""
){
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
}
else
{
}
else
{
sortnames
=
sortnames
+
","
+
sortname
+
" "
+
direction
;
sortnames
=
sortnames
+
","
+
sortname
+
" "
+
direction
;
}
}
Alarm
Info
.
sort
=
sortnames
;
Patrol
Info
.
sort
=
sortnames
;
}
}
getdata
()
//调用后端查询接口
getdata
()
//调用后端查询接口
}
}
...
@@ -149,8 +149,10 @@
...
@@ -149,8 +149,10 @@
sessionStorage
.
setItem
(
"DeviceQueryEnd"
,
endTime
);
sessionStorage
.
setItem
(
"DeviceQueryEnd"
,
endTime
);
}
}
const
Alarm
Info
=
reactive
({
const
Patrol
Info
=
reactive
({
"Id"
:
[],
"Id"
:
[],
"startTime"
:
startTime
,
"endTime"
:
endTime
,
"start"
:
0
,
"start"
:
0
,
"count"
:
30
,
"count"
:
30
,
"sort"
:
""
"sort"
:
""
...
@@ -159,8 +161,8 @@
...
@@ -159,8 +161,8 @@
getSupplys
();
getSupplys
();
getdata
();
getdata
();
function
getdata
()
{
function
getdata
()
{
// sessionStorage.setItem("DeviceQueryStart", Alarm
Info.startTime);
sessionStorage
.
setItem
(
"DeviceQueryStart"
,
Patrol
Info
.
startTime
);
// sessionStorage.setItem("DeviceQueryEnd", Alarm
Info.endTime);
sessionStorage
.
setItem
(
"DeviceQueryEnd"
,
Patrol
Info
.
endTime
);
gettransfer
();
gettransfer
();
}
}
...
@@ -169,7 +171,7 @@
...
@@ -169,7 +171,7 @@
loading
.
value
=
true
;
loading
.
value
=
true
;
tableData
.
value
.
length
=
0
;
tableData
.
value
.
length
=
0
;
options
.
length
=
0
;
options
.
length
=
0
;
Alarm
Info
.
Id
.
length
=
0
;
Patrol
Info
.
Id
.
length
=
0
;
var
result
=
store
.
getters
.
getEnterprise
();
var
result
=
store
.
getters
.
getEnterprise
();
if
(
result
)
{
if
(
result
)
{
result
.
forEach
(
element
=>
{
result
.
forEach
(
element
=>
{
...
@@ -198,26 +200,26 @@
...
@@ -198,26 +200,26 @@
}
}
});
});
}
}
Alarm
Info
.
Id
.
push
(
options
[
0
].
children
[
0
].
children
[
0
].
value
);
Patrol
Info
.
Id
.
push
(
options
[
0
].
children
[
0
].
children
[
0
].
value
);
}
}
//获取数据列表
//获取数据列表
function
gettransfer
()
{
function
gettransfer
()
{
loading
.
value
=
true
;
loading
.
value
=
true
;
if
(
currentPage
.
value
==
1
)
{
if
(
currentPage
.
value
==
1
)
{
Alarm
Info
.
start
=
0
;
Patrol
Info
.
start
=
0
;
Alarm
Info
.
count
=
pageSize
.
value
;
Patrol
Info
.
count
=
pageSize
.
value
;
}
else
{
}
else
{
Alarm
Info
.
start
=
((
currentPage
.
value
-
1
)
*
pageSize
.
value
)
+
1
;
Patrol
Info
.
start
=
((
currentPage
.
value
-
1
)
*
pageSize
.
value
)
+
1
;
Alarm
Info
.
count
=
pageSize
.
value
-
1
;
Patrol
Info
.
count
=
pageSize
.
value
-
1
;
}
}
http
.
post
(
"/api/patrol/GetPatrolHisData"
,
Alarm
Info
).
then
((
result
)
=>
{
http
.
post
(
"/api/patrol/GetPatrolHisData"
,
Patrol
Info
).
then
((
result
)
=>
{
console
.
log
(
result
.
data
);
console
.
log
(
result
.
data
);
console
.
log
(
Alarm
Info
);
console
.
log
(
Patrol
Info
);
if
(
result
.
data
!==
null
){
if
(
result
.
data
!==
null
){
tableData
.
value
=
result
.
data
.
dataInfoList
;
tableData
.
value
=
result
.
data
.
dataInfoList
;
total
.
value
=
result
.
data
.
rowCount
;
total
.
value
=
result
.
data
.
rowCount
;
}
}
if
(
result
.
data
===
null
||
Alarm
Info
.
Id
.
length
<
1
){
if
(
result
.
data
===
null
||
Patrol
Info
.
Id
.
length
<
1
){
tableData
.
value
=
null
;
tableData
.
value
=
null
;
total
.
value
=
0
;
total
.
value
=
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