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 0f9c3b0b
authored
Apr 14, 2022
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
v1.6.0版本需求
1 parent
eb48a2ca
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
85 additions
and
30 deletions
src/common/constants.js
src/common/index.js
src/views/alarmCenter/fence.vue
src/views/alarmCenter/shutdown.vue
src/views/fence/index.vue
src/views/vehicleManage/vehicleList.vue
src/common/constants.js
View file @
0f9c3b0
...
@@ -49,5 +49,5 @@ export const FENCE_MONITOR_LIST = [
...
@@ -49,5 +49,5 @@ export const FENCE_MONITOR_LIST = [
// 围栏列表-状态
// 围栏列表-状态
export
const
FENCE_TYPE_LIST
=
[
export
const
FENCE_TYPE_LIST
=
[
{
label
:
'已开启'
,
value
:
'1'
},
{
label
:
'已开启'
,
value
:
'1'
},
{
label
:
'已关闭'
,
value
:
'
2
'
},
{
label
:
'已关闭'
,
value
:
'
0
'
},
]
]
\ No newline at end of file
\ No newline at end of file
src/common/index.js
View file @
0f9c3b0
...
@@ -49,4 +49,44 @@ export const fenceShortcuts = [{
...
@@ -49,4 +49,44 @@ export const fenceShortcuts = [{
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
}
}
]
// 警情中心-停驶报警
export
const
shutDownShortcuts
=
[
{
text
:
"全部"
,
onClick
(
picker
)
{
const
end
=
""
;
const
start
=
""
;
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
{
text
:
"近3天"
,
onClick
(
picker
)
{
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
start
=
moment
()
.
day
(
moment
().
day
()
-
3
)
.
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
}
},
{
text
:
"近7天"
,
onClick
(
picker
)
{
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
start
=
moment
()
.
day
(
moment
().
day
()
-
7
)
.
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
}
},
{
text
:
"本月"
,
onClick
(
picker
)
{
const
start
=
moment
().
add
(
"month"
,
0
).
format
(
"YYYY-MM"
)
+
"-01"
;
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
]
]
\ No newline at end of file
\ No newline at end of file
src/views/alarmCenter/fence.vue
View file @
0f9c3b0
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<div
class=
"search_box"
>
<div
class=
"search_box"
>
<el-form
:inline=
"true"
size=
"small"
>
<el-form
:inline=
"true"
size=
"small"
>
<el-form-item
label=
"关键字"
>
<el-form-item
label=
"关键字"
>
<el-input
v-model=
"searchForm.keywords"
placeholder=
"业务工单|姓名|车架号|设备号
"
></el-input>
<el-input
v-model=
"searchForm.keywords"
class=
"long_input"
placeholder=
"设备号 | 姓名 | 车架号 | 业务工单"
maxlength=
"20
"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"车辆归属:"
>
<el-form-item
label=
"车辆归属:"
>
<el-popover
v-model=
"filterVisible"
placement=
"bottom-start"
width=
"400"
trigger=
"click"
>
<el-popover
v-model=
"filterVisible"
placement=
"bottom-start"
width=
"400"
trigger=
"click"
>
...
@@ -82,11 +82,14 @@
...
@@ -82,11 +82,14 @@
</template>
</template>
<
script
>
<
script
>
import
moment
from
"moment"
;
import
moment
from
"moment"
;
import
{
fenceShortcuts
}
from
'@/common'
import
{
fenceShortcuts
}
from
"@/common"
;
import
GlsxOrganization
from
"@/components/glsx-organization"
;
import
GlsxOrganization
from
"@/components/glsx-organization"
;
import
{
GET_FENCEALARM_LIST
,
ALARM_FENCEALARM_EXPORT
}
from
"@/services/alarmCenter"
;
import
{
import
{
deepClone
,
showToast
,
downFileByPath
}
from
"@/utils/util"
;
GET_FENCEALARM_LIST
,
import
{
FENCE_MONITOR_LIST
}
from
'@/common/constants'
ALARM_FENCEALARM_EXPORT
,
}
from
"@/services/alarmCenter"
;
import
{
deepClone
,
showToast
,
downFileByPath
}
from
"@/utils/util"
;
import
{
FENCE_MONITOR_LIST
}
from
"@/common/constants"
;
export
default
{
export
default
{
components
:
{
components
:
{
GlsxOrganization
,
GlsxOrganization
,
...
@@ -110,24 +113,23 @@ export default {
...
@@ -110,24 +113,23 @@ export default {
orgInfo
:
{},
orgInfo
:
{},
dloading
:
false
,
dloading
:
false
,
tloading
:
false
,
tloading
:
false
,
FENCE_MONITOR_LIST
FENCE_MONITOR_LIST
,
fenceId
:
''
};
};
},
},
created
()
{
created
()
{
// let end = moment().format("YYYY-MM-DD");
console
.
log
(
history
.
state
)
// let start = moment()
this
.
fenceId
=
history
.
state
.
fenceId
// .day(moment().day() - 3)
// .format("YYYY-MM-DD");
// this.$set(this.searchForm, "offDate", [start, end]);
this
.
getList
();
this
.
getList
();
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
// 重置
// 重置
rest
()
{
rest
()
{
this
.
searchForm
=
{
};
this
.
searchForm
=
{};
this
.
currentPage
=
1
;
this
.
currentPage
=
1
;
this
.
pageSize
=
10
this
.
pageSize
=
10
;
this
.
fenceId
=
''
this
.
getList
();
this
.
getList
();
},
},
...
@@ -140,6 +142,10 @@ export default {
...
@@ -140,6 +142,10 @@ export default {
oParams
.
alarmEndTime
=
m
[
1
];
oParams
.
alarmEndTime
=
m
[
1
];
}
}
if
(
this
.
fenceId
){
oParams
.
fenceId
=
this
.
fenceId
}
delete
oParams
.
orgName
;
delete
oParams
.
orgName
;
delete
oParams
.
timeDate
;
delete
oParams
.
timeDate
;
return
oParams
;
return
oParams
;
...
@@ -154,7 +160,7 @@ export default {
...
@@ -154,7 +160,7 @@ export default {
GET_FENCEALARM_LIST
(
oParams
).
then
((
res
)
=>
{
GET_FENCEALARM_LIST
(
oParams
).
then
((
res
)
=>
{
this
.
tloading
=
false
;
this
.
tloading
=
false
;
let
obj
=
res
.
data
||
{};
let
obj
=
res
.
data
||
{};
this
.
tableData
=
obj
.
list
||
[];
this
.
tableData
=
obj
.
list
||
[];
this
.
pageTotal
=
obj
.
totalElements
;
this
.
pageTotal
=
obj
.
totalElements
;
});
});
},
},
...
@@ -189,17 +195,28 @@ export default {
...
@@ -189,17 +195,28 @@ export default {
return
false
;
return
false
;
}
}
//window.open(res.data);
//window.open(res.data);
downFileByPath
(
res
.
data
)
downFileByPath
(
res
.
data
);
});
});
},
},
// 查看轨迹回放
// 查看轨迹回放
lookDetail
(
row
)
{
lookDetail
(
row
)
{
let
path
=
`/oEshield#/monitor/replay?sn=
${
row
.
sn
}
&name=
${
row
.
ownerName
}
&standno=
${
row
.
vin
}
`
;
let
startTime
=
row
.
alarmTime
?
moment
(
row
.
alarmTime
).
format
(
"x"
)
-
120000
:
""
;
let
sTime
=
moment
(
startTime
).
format
(
"yyyy-MM-DD HH:mm:ss"
);
let
endTime
=
row
.
endTime
?
moment
(
row
.
endTime
).
format
(
"x"
)
-
120000
:
""
;
let
eTime
=
moment
(
endTime
).
format
(
"yyyy-MM-DD HH:mm:ss"
);;
if
(
!
row
.
endTime
)
{
eTime
=
moment
(
startTime
+
3600000
).
format
(
"yyyy-MM-DD HH:mm:ss"
);
}
console
.
log
(
sTime
+
'---'
+
eTime
);
let
path
=
`/oEshield#/monitor/replay?sn=
${
row
.
sn
}
&name=
${
row
.
ownerName
}
&standno=
${
row
.
vin
}
&startTime=
${
sTime
}
&endTime=
${
eTime
}
&fenceId=
${
row
.
fenceId
}
&isInitFence=1`
;
//this.$root.parentCommon.setBreadCrumbs(path);
//this.$root.parentCommon.setBreadCrumbs(path);
window
.
open
(
path
)
window
.
open
(
path
)
;
},
},
},
},
};
};
</
script
>
</
script
>
...
...
src/views/alarmCenter/shutdown.vue
View file @
0f9c3b0
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"关键字"
>
<el-form-item
label=
"关键字"
>
<el-input
v-model=
"searchForm.keywords"
placeholder=
"业务工单|姓名|车架号|设备号
"
></el-input>
<el-input
v-model=
"searchForm.keywords"
class=
"long_input"
placeholder=
"设备号 | 姓名 | 车架号 | 业务工单"
maxlength=
"20
"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"车辆归属:"
>
<el-form-item
label=
"车辆归属:"
>
<el-popover
v-model=
"filterVisible"
placement=
"bottom-start"
width=
"400"
trigger=
"click"
>
<el-popover
v-model=
"filterVisible"
placement=
"bottom-start"
width=
"400"
trigger=
"click"
>
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
fence
Shortcuts
}
from
"@/common"
;
import
{
shutDown
Shortcuts
}
from
"@/common"
;
import
GlsxOrganization
from
"@/components/glsx-organization"
;
import
GlsxOrganization
from
"@/components/glsx-organization"
;
import
{
GET_ALARM_SHUTDOWN
,
ALARM_SHUTDOWN_EXPORT
}
from
"@/services/alarmCenter"
;
import
{
GET_ALARM_SHUTDOWN
,
ALARM_SHUTDOWN_EXPORT
}
from
"@/services/alarmCenter"
;
import
{
deepClone
,
showToast
,
downFileByPath
}
from
"@/utils/util"
;
import
{
deepClone
,
showToast
,
downFileByPath
}
from
"@/utils/util"
;
...
@@ -98,7 +98,7 @@ export default {
...
@@ -98,7 +98,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
searchForm
:
{
},
searchForm
:
{
stayRange
:
2
},
currentPage
:
1
,
currentPage
:
1
,
pageSizes
:
[
10
,
20
,
30
,
40
],
pageSizes
:
[
10
,
20
,
30
,
40
],
pageSize
:
10
,
pageSize
:
10
,
...
@@ -109,7 +109,7 @@ export default {
...
@@ -109,7 +109,7 @@ export default {
showResult
:
false
,
showResult
:
false
,
loading
:
false
,
loading
:
false
,
offPickerOptions
:
{
offPickerOptions
:
{
shortcuts
:
fence
Shortcuts
,
shortcuts
:
shutDown
Shortcuts
,
},
},
filterVisible
:
false
,
filterVisible
:
false
,
orgInfo
:
{},
orgInfo
:
{},
...
@@ -130,7 +130,7 @@ export default {
...
@@ -130,7 +130,7 @@ export default {
methods
:
{
methods
:
{
// 重置
// 重置
rest
()
{
rest
()
{
this
.
searchForm
=
{
deviceTypeAndSource
:
""
};
this
.
searchForm
=
{
stayRange
:
2
};
this
.
currentPage
=
1
;
this
.
currentPage
=
1
;
this
.
pageSize
=
10
;
this
.
pageSize
=
10
;
this
.
getList
();
this
.
getList
();
...
...
src/views/fence/index.vue
View file @
0f9c3b0
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"关键字:"
>
<el-form-item
label=
"关键字:"
>
<el-input
placeholder=
"
围栏名称|车架号|设备号"
class=
"a
_input"
maxlength=
"20"
v-model
.
trim=
"searchForm.term"
>
<el-input
placeholder=
"
设备号 | 姓名 | 车架号|围栏名称"
class=
"long
_input"
maxlength=
"20"
v-model
.
trim=
"searchForm.term"
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
...
@@ -169,12 +169,10 @@ export default {
...
@@ -169,12 +169,10 @@ export default {
// 查看详情
// 查看详情
lookDetail
(
row
)
{
lookDetail
(
row
)
{
console
.
log
(
row
);
console
.
log
(
row
);
//let path = "/trialRun#/reportManage/map";
let
path
=
`/trialRun#/alarmCenter/fence`
;
let
path
=
`/trialRun#/alarmCenter/fence`
;
//history.pushState(query, path, path);
this
.
$root
.
parentCommon
.
setBreadCrumbs
(
path
);
this
.
$root
.
parentCommon
.
setBreadCrumbs
(
path
);
//window.open(path + "?sns=" + row.sns
);
history
.
pushState
({
fenceId
:
row
.
id
},
path
,
path
);
this
.
$router
.
push
({
name
:
"fenceAlarm"
,
query
:
{
vin
:
row
.
vin
}
});
//this.$router.push({ name: "fenceAlarm", query: { fenceId: row.id
} });
},
},
// 导出excel
// 导出excel
...
...
src/views/vehicleManage/vehicleList.vue
View file @
0f9c3b0
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<div
class=
"search_box"
>
<div
class=
"search_box"
>
<el-form
:inline=
"true"
size=
"small"
>
<el-form
:inline=
"true"
size=
"small"
>
<el-form-item
label=
"关键字"
>
<el-form-item
label=
"关键字"
>
<el-input
v-model=
"searchForm.keywords"
placeholder=
"车主姓名|车架号|设备号|车型"
></el-input>
<el-input
v-model=
"searchForm.keywords"
class=
"long_input"
placeholder=
"车主姓名|车架号|设备号|车型"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"设备类型:"
>
<el-form-item
label=
"设备类型:"
>
<el-select
v-model=
"searchForm.deviceType"
class=
"small_select"
>
<el-select
v-model=
"searchForm.deviceType"
class=
"small_select"
>
...
...
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