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 c3563b4c
authored
Dec 27, 2021
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1111
1 parent
aa8b7bf2
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
88 additions
and
43 deletions
src/routes/index.js
src/services/report.js
src/styles/hadoop.scss
src/views/alarmCenter/hadoop.vue
src/views/alarmCenter/offline.vue
src/views/alarmCenter/tamper.vue
src/views/reportManage/actived.vue
src/views/reportManage/lastLocation.vue
src/routes/index.js
View file @
c3563b4
...
...
@@ -152,6 +152,15 @@ const routes = [
}
},
{
path
:
'/reportManage/lastLocation'
,
name
:
'lastLocation'
,
component
:
()
=>
import
(
'../views/reportManage/lastLocation.vue'
),
meta
:
{
title
:
'最后定位报表'
,
keepAlive
:
true
}
},
{
path
:
'/specialShop'
,
name
:
'specialShop'
,
component
:
()
=>
import
(
'../views/specialShop/index.vue'
),
...
...
src/services/report.js
View file @
c3563b4
...
...
@@ -72,4 +72,10 @@ export const GET_DEVICEACTIVE_EXPORT = params => {
return
request
(
params
,
'/trialdrive/deviceactive/export'
)
}
// 报表管理-最后定位报表-获取列表
export
const
GET_FINALPOSITIONING_SEARCH
=
params
=>
{
return
request
(
params
,
'/trialdrive/finalpositioning/search'
)
}
export
{
getList
,
getYears
,
getOutStoreList
}
src/styles/hadoop.scss
View file @
c3563b4
...
...
@@ -21,6 +21,9 @@
width
:
100px
;
}
.long_select
{
width
:
260px
;
}
.long_input
{
width
:
240px
;
}
.small_select
{
...
...
src/views/alarmCenter/hadoop.vue
View file @
c3563b4
...
...
@@ -38,7 +38,7 @@
</el-select>
</el-form-item>
<el-form-item
label=
"关键字"
>
<el-input
v-model=
"searchForm.keywords"
placeholder=
"设备
|车架号|姓名|工单号
"
></el-input>
<el-input
v-model=
"searchForm.keywords"
placeholder=
"设备
号|车架号|姓名
"
></el-input>
</el-form-item>
<el-form-item>
<el-button
icon=
"el-icon-search"
type=
"primary"
@
click=
"getList()"
>
搜索
</el-button>
...
...
@@ -179,8 +179,6 @@ export default {
created
()
{
let
o
=
history
.
state
;
if
(
o
.
alarmStatus
)
{
let
n
=
moment
().
format
(
"YYYY-MM-DD"
);
this
.
$set
(
this
.
searchForm
,
"timeDate"
,
[
n
,
n
]);
this
.
$set
(
this
.
searchForm
,
"alarmStatus"
,
o
.
alarmStatus
);
}
},
...
...
src/views/alarmCenter/offline.vue
View file @
c3563b4
...
...
@@ -2,8 +2,8 @@
<div
class=
""
>
<div
class=
"page_title"
>
<h2
class=
"h2"
>
离线报警信息
</h2>
<h3
class=
"h3"
>
用于统计设备离线信息
</h3>
<h2
class=
"h2"
>
离线报警信息
</h2>
<h3
class=
"h3"
>
用于统计设备离线信息
</h3>
</div>
<!-- 搜索区域 开始 -->
...
...
@@ -62,7 +62,7 @@
<el-table-column
label=
"设备号"
prop=
"sn"
></el-table-column>
<el-table-column
label=
"车架号"
prop=
"vin"
></el-table-column>
<el-table-column
label=
"设备类型"
prop=
"alarmTypeStr"
>
<template
slot-scope=
"
{row}">
{{
row
.
deviceTypeStr
+
'/'
+
row
.
sourceStr
}}
</
template
>
<template
slot-scope=
"
{row}">
{{
(
row
.
deviceTypeStr
||
''
)
+
(
row
.
sourceStr
?
'/'
+
row
.
sourceStr
:
''
)
}}
</
template
>
</el-table-column>
<el-table-column
label=
"所属组织"
prop=
"shopName"
></el-table-column>
<el-table-column
label=
"激活时间"
prop=
"activeDate"
></el-table-column>
...
...
@@ -184,9 +184,18 @@ export default {
tloading
:
false
,
};
},
mounted
()
{
created
()
{
let
o
=
history
.
state
;
if
(
o
.
alarmStatus
)
{
let
end
=
moment
().
format
(
"YYYY-MM-DD"
);
let
start
=
moment
()
.
day
(
moment
().
day
()
-
3
)
.
format
(
"YYYY-MM-DD"
);
this
.
searchForm
.
offDate
=
[
start
,
end
];
}
this
.
getList
();
},
mounted
()
{},
methods
:
{
// 重置
rest
()
{
...
...
@@ -205,8 +214,8 @@ export default {
}
if
(
n
&&
n
.
length
>
0
)
{
oParams
.
offlineStartTime
=
m
[
0
];
oParams
.
offlineEndTime
=
m
[
1
];
oParams
.
offlineStartTime
=
n
[
0
];
oParams
.
offlineEndTime
=
n
[
1
];
}
delete
oParams
.
offDate
;
...
...
@@ -263,17 +272,17 @@ export default {
// 查看报警位置点
lookLocation
(
row
)
{
let
oParams
=
{
...
row
};
oParams
.
lng
=
row
.
gpsAlarmLng
oParams
.
lat
=
row
.
gpsAlarmLat
oParams
.
address
=
row
.
gpsAlarmAddress
oParams
.
name
=
row
.
ownerName
oParams
.
standNo
=
row
.
vin
oParams
.
time
=
row
.
lastGpsTime
oParams
.
bsLng
=
row
.
bsAlarmLng
oParams
.
bsLat
=
row
.
bsAlarmLat
oParams
.
bsAddress
=
row
.
bsAlarmAddress
oParams
.
bsTime
=
row
.
lastBsTime
let
oParams
=
{
...
row
};
oParams
.
lng
=
row
.
gpsAlarmLng
;
oParams
.
lat
=
row
.
gpsAlarmLat
;
oParams
.
address
=
row
.
gpsAlarmAddress
;
oParams
.
name
=
row
.
ownerName
;
oParams
.
standNo
=
row
.
vin
;
oParams
.
time
=
row
.
lastGpsTime
;
oParams
.
bsLng
=
row
.
bsAlarmLng
;
oParams
.
bsLat
=
row
.
bsAlarmLat
;
oParams
.
bsAddress
=
row
.
bsAlarmAddress
;
oParams
.
bsTime
=
row
.
lastBsTime
;
let
path
=
`/oEshield#/monitor/activeLocation`
;
history
.
pushState
(
oParams
,
"报警位置点"
,
path
);
...
...
src/views/alarmCenter/tamper.vue
View file @
c3563b4
...
...
@@ -37,7 +37,7 @@
</el-select>
</el-form-item>
<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-button
icon=
"el-icon-search"
type=
"primary"
@
click=
"getList()"
>
搜索
</el-button>
...
...
src/views/reportManage/actived.vue
View file @
c3563b4
...
...
@@ -30,7 +30,7 @@
</el-popover>
</el-form-item>
<el-form-item
label=
"关键字"
>
<el-input
v-model=
"searchForm.keywords"
class=
"long_select"
placeholder=
"
特约店编码|店名称|车牌号|设备号
"
></el-input>
<el-input
v-model=
"searchForm.keywords"
class=
"long_select"
placeholder=
"
工单号|设备号|车架号|姓名
"
></el-input>
</el-form-item>
<el-form-item>
<el-button
icon=
"el-icon-search"
type=
"primary"
@
click=
"getList()"
>
搜索
</el-button>
...
...
src/views/reportManage/lastLocation.vue
View file @
c3563b4
...
...
@@ -2,8 +2,8 @@
<div
class=
""
>
<div
class=
"page_title"
>
<h2
class=
"h2"
>
设备激活
</h2>
<h3
class=
"h3"
>
用于统计和展示
所有设备的激活
情况
</h3>
<h2
class=
"h2"
>
最后定位报表
</h2>
<h3
class=
"h3"
>
用于统计和展示
设备的最后定位
情况
</h3>
</div>
<!-- 搜索区域 开始 -->
...
...
@@ -11,19 +11,13 @@
<el-form
:inline=
"true"
size=
"small"
>
<el-form-item>
<el-select
v-model=
"searchForm.queryTimeType"
class=
"sort_select"
placeholder=
"请选择"
>
<el-option
label=
"创建时间"
value=
"1"
></el-option>
<el-option
label=
"期望安装时间"
value=
"2"
></el-option>
<el-option
label=
"最后GPS定位时间"
value=
"1"
></el-option>
<el-option
label=
"最后基站时间"
value=
"2"
></el-option>
<el-option
label=
"激活时间"
value=
"3"
></el-option>
</el-select>
<el-date-picker
v-model=
"searchForm.
dateRang
e"
class=
"data_picker"
value-format=
"yyyy-MM-dd"
type=
"daterange"
range-separator=
"~"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
<el-date-picker
v-model=
"searchForm.
timeDat
e"
class=
"data_picker"
value-format=
"yyyy-MM-dd"
type=
"daterange"
range-separator=
"~"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"是否在线:"
>
<el-select
v-model=
"searchForm.alarmType"
class=
"small_select"
>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
"是"
value=
"1"
></el-option>
<el-option
label=
"否"
value=
"2"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"车辆归属:"
>
<el-popover
v-model=
"filterVisible"
placement=
"bottom-start"
width=
"400"
trigger=
"click"
>
<div>
...
...
@@ -33,8 +27,16 @@
</el-input>
</el-popover>
</el-form-item>
<el-form-item
label=
"设备类型:"
>
<el-select
v-model=
"searchForm.deviceTypeAndSource"
class=
"small_select"
>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
"GPS/有线"
value=
"8-1"
></el-option>
<el-option
label=
"GPS/无线"
value=
"8-0"
></el-option>
<el-option
label=
"OBD/OBD"
value=
"1-1"
></el-option>
</el-select>
</el-form-item>
<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-button
icon=
"el-icon-search"
type=
"primary"
@
click=
"getList()"
>
搜索
</el-button>
...
...
@@ -48,7 +50,7 @@
<!-- 操作区域 开始 -->
<div
class=
"links_group"
>
<span
class=
"name"
>
设备激活
信息
</span>
<span
class=
"name"
>
最后定位
信息
</span>
<el-button
type=
"primary"
size=
"small"
icon=
"el-icon-download"
:loading=
"dloading"
@
click=
"downloadExcel()"
>
导出excel
</el-button>
</div>
<!-- 操作区域 end -->
...
...
@@ -82,7 +84,10 @@
import
moment
from
"moment"
;
import
GlsxOrganization
from
"@/components/glsx-organization"
;
import
{
GETJUDGMENTSEARCH
,
ALARM_HADOOP_EXPORT
}
from
"@/services/alarmCenter"
;
import
{
GET_DEVICEACTIVE_SEARCH
,
GET_DEVICEACTIVE_EXPORT
}
from
'@/services/report'
import
{
GET_FINALPOSITIONING_SEARCH
,
GET_DEVICEACTIVE_EXPORT
,
}
from
"@/services/report"
;
import
{
deepClone
,
showToast
}
from
"@/utils/util"
;
import
store
from
"@/store"
;
export
default
{
...
...
@@ -91,7 +96,7 @@ export default {
},
data
()
{
return
{
searchForm
:
{},
searchForm
:
{
queryTimeType
:
'1'
},
currentPage
:
1
,
pageSizes
:
[
10
,
20
,
30
,
40
],
pageSize
:
10
,
...
...
@@ -175,8 +180,8 @@ export default {
let
o
=
history
.
state
;
if
(
o
.
alarmStatus
)
{
let
n
=
moment
().
format
(
"YYYY-MM-DD"
);
this
.
$set
(
this
.
searchForm
,
'timeDate'
,[
n
,
n
])
this
.
$set
(
this
.
searchForm
,
'alarmStatus'
,
o
.
alarmStatus
)
this
.
$set
(
this
.
searchForm
,
"timeDate"
,
[
n
,
n
]);
this
.
$set
(
this
.
searchForm
,
"alarmStatus"
,
o
.
alarmStatus
);
}
},
mounted
()
{
...
...
@@ -193,10 +198,25 @@ export default {
getParams
()
{
let
oParams
=
deepClone
(
this
.
searchForm
);
let
m
=
oParams
.
timeDate
;
let
i
=
oParams
.
queryTimeType
;
let
timeStartList
=
{
1
:
"finalGpsTimeStart"
,
2
:
"finalBsTimeStart"
,
3
:
"activeDateStart"
,
};
let
timeEndList
=
{
1
:
"finalGpsTimeEnd"
,
2
:
"finalBsTimeEnd"
,
3
:
"activeDateEnd"
,
};
if
(
m
&&
m
.
length
>
0
)
{
oParams
.
startTime
=
m
[
0
];
oParams
.
endTime
=
m
[
1
];
oParams
[
timeStartList
[
i
]]
=
m
[
0
];
oParams
[
timeEndList
[
i
]]
=
m
[
1
];
}
delete
oParams
.
timeDate
;
delete
oParams
.
queryTimeType
;
delete
oParams
.
orgName
;
delete
oParams
.
timeDate
;
return
oParams
;
...
...
@@ -208,7 +228,7 @@ export default {
oParams
.
pageSize
=
this
.
pageSize
;
oParams
.
pageNumber
=
current
||
this
.
currentPage
;
this
.
tloading
=
true
;
GET_
DEVICEACTIVE
_SEARCH
(
oParams
).
then
((
res
)
=>
{
GET_
FINALPOSITIONING
_SEARCH
(
oParams
).
then
((
res
)
=>
{
this
.
tloading
=
false
;
let
obj
=
res
.
data
||
{};
this
.
tableData
=
obj
.
list
;
...
...
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