Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-trialrun
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3a418244
authored
Apr 21, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复bug
1 parent
76ca00fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
src/views/alarmCenter/fence.vue
src/views/fence/index.vue
src/views/alarmCenter/fence.vue
View file @
3a41824
...
...
@@ -96,7 +96,7 @@ export default {
},
data
()
{
return
{
searchForm
:
{},
searchForm
:
{
alarmType
:
''
},
currentPage
:
1
,
pageSizes
:
[
10
,
20
,
30
,
40
],
pageSize
:
10
,
...
...
@@ -126,7 +126,7 @@ export default {
methods
:
{
// 重置
rest
()
{
this
.
searchForm
=
{};
this
.
searchForm
=
{
alarmType
:
''
};
this
.
currentPage
=
1
;
this
.
pageSize
=
10
;
this
.
fenceId
=
""
;
...
...
src/views/fence/index.vue
View file @
3a41824
...
...
@@ -55,7 +55,7 @@
<!-- 列表 开始 -->
<div
class=
"table_box"
>
<el-table
class=
"el_table"
border
size=
"small"
:data=
"tableData"
>
<el-table
class=
"el_table"
border
size=
"small"
:data=
"tableData"
v-loading=
"loading"
>
<el-table-column
label=
"围栏名称"
prop=
"fenceName"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"监控类型"
prop=
"triggerType"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"监控时间"
prop=
"timeType"
show-overflow-tooltip
width=
"160"
>
...
...
@@ -66,11 +66,11 @@
<el-table-column
label=
"状态"
prop=
"enableStatusDesc"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"报警次数"
prop=
"alarmCnt"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"最新报警时间"
prop=
"lastAlarmDate"
show-overflow-tooltip
>
<
template
slot-scope=
"{row}"
>
{{
row
.
lastAlarmDate
||
'--'
}}
</
template
>
<
template
slot-scope=
"{row}"
>
{{
row
.
lastAlarmDate
||
'--'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"创建时间"
prop=
"createdDate"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"创建人"
prop=
"creator"
show-overflow-tooltip
>
<
template
slot-scope=
"{row}"
>
{{
row
.
creator
||
'--'
}}
</
template
>
<
template
slot-scope=
"{row}"
>
{{
row
.
creator
||
'--'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
prop=
"creator"
width=
"200"
fixed=
"right"
>
<
template
slot-scope=
"{row}"
>
...
...
@@ -108,7 +108,7 @@ import {
DELETE_FENCE_INFO
,
GET_FENCE_LIST
,
}
from
"@/services/fence"
;
import
{
deepClone
,
showToast
,
showModal
,
downFileByPath
}
from
"@/utils/util"
;
import
{
deepClone
,
showToast
,
showModal
,
downFileByPath
}
from
"@/utils/util"
;
import
moment
from
"moment"
;
import
{
FENCE_MONITOR_LIST
,
FENCE_TYPE_LIST
}
from
"@/common/constants"
;
export
default
{
...
...
@@ -117,7 +117,7 @@ export default {
},
data
()
{
return
{
searchForm
:
{
timeType
:
"1"
},
searchForm
:
{
timeType
:
"1"
,
enableStatus
:
""
,
triggerType
:
""
},
tableData
:
[],
pageTotal
:
0
,
pageSize
:
10
,
...
...
@@ -153,8 +153,8 @@ export default {
oParams
.
pageSize
=
this
.
pageSize
;
oParams
.
pageNumber
=
current
||
1
;
this
.
loading
=
true
;
if
(
current
)
{
this
.
pageNumber
=
current
if
(
current
)
{
this
.
pageNumber
=
current
;
}
GET_FENCE_LIST
(
oParams
)
.
then
((
res
)
=>
{
...
...
@@ -189,14 +189,14 @@ export default {
if
(
res
.
code
!=
200
)
{
return
false
;
}
downFileByPath
(
res
.
data
)
downFileByPath
(
res
.
data
)
;
//window.open(res.data);
});
},
// 重置
rest
()
{
this
.
searchForm
=
{
timeType
:
"1"
};
this
.
searchForm
=
{
timeType
:
"1"
,
enableStatus
:
""
,
triggerType
:
""
};
this
.
pageSize
=
10
;
this
.
pageNumber
=
1
;
this
.
getList
();
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment