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 aa8b7bf2
authored
Dec 25, 2021
by
张杰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
111
1 parent
70806800
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
121 additions
and
121 deletions
src/styles/hadoop.scss
src/utils/http.js
src/views/alarmCenter/offline.vue
src/views/reportManage/actived.vue
src/styles/hadoop.scss
View file @
aa8b7bf
.page_title
{
.page_title
{
margin-bottom
:
30px
;
margin-bottom
:
30px
;
.h2
,
.h3
{
.h2
,
.h3
{
font-weight
:
normal
;
font-weight
:
normal
;
margin
:
0
;
margin
:
0
;
padding
:
0
;
padding
:
0
;
line-height
:
2
;
line-height
:
2
;
}
}
.h2
{
.h2
{
font-size
:
18px
;
font-size
:
18px
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#666
;
color
:
#666
;
}
}
.h3
{
.h3
{
font-size
:
14px
;
font-size
:
14px
;
color
:
#999
;
color
:
#999
;
}
}
}
}
.sort_select
{
.sort_select
{
width
:
100px
;
width
:
100px
;
}
}
.small_select
{
.long_select
{
width
:
120px
;
width
:
240px
;
}
}
.data_picker
{
.small_select
{
width
:
240px
;
width
:
120px
;
}
}
.table_box
{
.data_picker
{
margin
:
10px
0
;
width
:
240px
;
}
}
.el_link
{
.table_box
{
margin
:
0
4px
;
margin
:
10px
0
;
}
}
.upload_box
{
.el_link
{
.input_box
{
margin
:
0
4px
;
display
:
flex
;
}
align-items
:
center
;
.upload_box
{
.a_input
{
.input_box
{
margin-right
:
10px
;
width
:
320px
;
}
}
.tips
{
font-size
:
12px
;
color
:
#999
;
line-height
:
2
;
}
}
.dialog_links
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
.a_input
{
margin-right
:
10px
;
width
:
320px
;
}
}
}
.upload_result
{
.tips
{
font-size
:
12px
;
color
:
#999
;
line-height
:
2
;
}
}
.dialog_links
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
}
.upload_result
{
display
:
flex
;
justify-content
:
center
;
.cell
{
position
:
relative
;
width
:
200px
;
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
flex-direction
:
column
;
.cell
{
text-align
:
center
;
position
:
relative
;
span
{
width
:
200px
;
line-height
:
2
;
display
:
flex
;
flex-direction
:
column
;
text-align
:
center
;
span
{
line-height
:
2
;
}
.num
{
font-size
:
18px
;
font-weight
:
bold
;
color
:
#666
;
}
.cred
{
color
:
#f00
;
}
}
}
.cell
:after
{
.num
{
display
:
block
;
font-size
:
18px
;
content
:
""
;
font-weight
:
bold
;
width
:
1px
;
color
:
#666
;
background
:
#d8d8d8
;
position
:
absolute
;
top
:
50%
;
right
:
0
;
height
:
70%
;
transform
:
translateY
(
-50%
);
opacity
:
0
.8
;
}
}
.c
ell
:last-child:after
{
.c
red
{
display
:
none
;
color
:
#f00
;
}
}
}
\ No newline at end of file
\ No newline at end of file
}
.cell
:after
{
display
:
block
;
content
:
""
;
width
:
1px
;
background
:
#d8d8d8
;
position
:
absolute
;
top
:
50%
;
right
:
0
;
height
:
70%
;
transform
:
translateY
(
-50%
);
opacity
:
0
.8
;
}
.cell
:last-child:after
{
display
:
none
;
}
}
src/utils/http.js
View file @
aa8b7bf
...
@@ -5,7 +5,7 @@ import store from '@/store'
...
@@ -5,7 +5,7 @@ import store from '@/store'
import
{
checkStatus
,
showLoading
}
from
'./checkStatus'
import
{
checkStatus
,
showLoading
}
from
'./checkStatus'
const
instance
=
axios
.
create
({
// 创建axios实例,在这里可以设置请求的默认配置
const
instance
=
axios
.
create
({
// 创建axios实例,在这里可以设置请求的默认配置
timeout
:
60
000
,
// 设置超时时间60s
timeout
:
3
*
60
*
1
000
,
// 设置超时时间60s
retry
:
3
,
retry
:
3
,
retryDelay
:
1000
retryDelay
:
1000
})
})
...
...
src/views/alarmCenter/offline.vue
View file @
aa8b7bf
...
@@ -29,9 +29,9 @@
...
@@ -29,9 +29,9 @@
<el-form-item
label=
"设备类型:"
>
<el-form-item
label=
"设备类型:"
>
<el-select
v-model=
"searchForm.deviceTypeAndSource"
class=
"small_select"
>
<el-select
v-model=
"searchForm.deviceTypeAndSource"
class=
"small_select"
>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
"GPS/有线"
value=
"1"
></el-option>
<el-option
label=
"GPS/有线"
value=
"
8-
1"
></el-option>
<el-option
label=
"GPS/无线"
value=
"
2
"
></el-option>
<el-option
label=
"GPS/无线"
value=
"
8-0
"
></el-option>
<el-option
label=
"OBD/OBD"
value=
"
3
"
></el-option>
<el-option
label=
"OBD/OBD"
value=
"
1-1
"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"关键字"
>
<el-form-item
label=
"关键字"
>
...
...
src/views/reportManage/actived.vue
View file @
aa8b7bf
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"是否在线:"
>
<el-form-item
label=
"是否在线:"
>
<el-select
v-model=
"searchForm.
alarmTyp
e"
class=
"small_select"
>
<el-select
v-model=
"searchForm.
isOnLin
e"
class=
"small_select"
>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
"全部"
value=
""
></el-option>
<el-option
label=
"是"
value=
"1"
></el-option>
<el-option
label=
"是"
value=
"1"
></el-option>
<el-option
label=
"否"
value=
"2"
></el-option>
<el-option
label=
"否"
value=
"2"
></el-option>
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
</el-popover>
</el-popover>
</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_select"
placeholder=
"特约店编码|店名称|车牌号|设备号"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
icon=
"el-icon-search"
type=
"primary"
@
click=
"getList()"
>
搜索
</el-button>
<el-button
icon=
"el-icon-search"
type=
"primary"
@
click=
"getList()"
>
搜索
</el-button>
...
@@ -56,13 +56,13 @@
...
@@ -56,13 +56,13 @@
<el-table-column
label=
"姓名"
prop=
"ownerName"
></el-table-column>
<el-table-column
label=
"姓名"
prop=
"ownerName"
></el-table-column>
<el-table-column
label=
"车架号"
prop=
"vin"
></el-table-column>
<el-table-column
label=
"车架号"
prop=
"vin"
></el-table-column>
<el-table-column
label=
"设备号"
prop=
"sn"
></el-table-column>
<el-table-column
label=
"设备号"
prop=
"sn"
></el-table-column>
<el-table-column
label=
"设备类型"
prop=
"
modelName
"
></el-table-column>
<el-table-column
label=
"设备类型"
prop=
"
deviceTypeStr
"
></el-table-column>
<el-table-column
label=
"是否在线"
prop=
"
alarmTyp
eStr"
></el-table-column>
<el-table-column
label=
"是否在线"
prop=
"
isOnLin
eStr"
></el-table-column>
<el-table-column
label=
"车辆归属"
prop=
"
alarmStatusStr
"
></el-table-column>
<el-table-column
label=
"车辆归属"
prop=
"
shopName
"
></el-table-column>
<el-table-column
label=
"激活时间"
prop=
"
geoCod
e"
></el-table-column>
<el-table-column
label=
"激活时间"
prop=
"
activeDat
e"
></el-table-column>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"center"
width=
"180px"
>
<el-table-column
label=
"操作"
fixed=
"right"
align=
"center"
width=
"180px"
>
<template
slot-scope=
"
{row}">
<template
slot-scope=
"
{row}">
<el-link
class=
"el_link"
type=
"primary"
@
click=
"lookLocation(row)"
>
查看报警
位置
</el-link>
<el-link
class=
"el_link"
type=
"primary"
@
click=
"lookLocation(row)"
v-if=
"row.gpsLng|| row.bsLng"
>
查看激活
位置
</el-link>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -77,7 +77,6 @@
...
@@ -77,7 +77,6 @@
<
script
>
<
script
>
import
moment
from
"moment"
;
import
moment
from
"moment"
;
import
GlsxOrganization
from
"@/components/glsx-organization"
;
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_DEVICEACTIVE_SEARCH
,
GET_DEVICEACTIVE_EXPORT
}
from
'@/services/report'
import
{
deepClone
,
showToast
}
from
"@/utils/util"
;
import
{
deepClone
,
showToast
}
from
"@/utils/util"
;
import
store
from
"@/store"
;
import
store
from
"@/store"
;
...
@@ -108,57 +107,53 @@ export default {
...
@@ -108,57 +107,53 @@ export default {
},
},
},
},
{
{
text
:
"
昨
日"
,
text
:
"
今
日"
,
onClick
(
picker
)
{
onClick
(
picker
)
{
const
end
=
new
Date
();
const
end
=
moment
().
format
(
'YYYY-MM-DD'
);
const
start
=
new
Date
();
const
start
=
moment
().
format
(
'YYYY-MM-DD'
);
start
.
setTime
(
start
.
getTime
()
-
3600
*
1000
*
24
*
1
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
},
},
{
{
text
:
"
本周
"
,
text
:
"
昨日
"
,
onClick
(
picker
)
{
onClick
(
picker
)
{
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
end
=
moment
().
format
(
'YYYY-MM-DD'
);
const
start
=
moment
().
weekday
(
1
).
format
(
"YYYY-MM-DD"
);
const
start
=
moment
().
format
(
'YYYY-MM-DD'
);
start
.
setTime
(
start
.
getTime
()
-
3600
*
1000
*
24
*
1
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
},
},
{
{
text
:
"
上周
"
,
text
:
"
近7天
"
,
onClick
(
picker
)
{
onClick
(
picker
)
{
let
weekOfDay
=
parseInt
(
moment
().
format
(
"E"
));
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
end
=
moment
()
.
subtract
(
weekOfDay
,
"days"
)
.
format
(
"YYYY-MM-DD"
);
const
start
=
moment
()
const
start
=
moment
()
.
subtract
(
weekOfDay
+
7
-
1
,
"days"
)
.
day
(
moment
().
day
()
-
7
)
.
format
(
"YYYY-MM-DD"
);
.
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
},
},
{
{
text
:
"
本月
"
,
text
:
"
近15天
"
,
onClick
(
picker
)
{
onClick
(
picker
)
{
const
start
=
moment
().
add
(
"month"
,
0
).
format
(
"YYYY-MM"
)
+
"-01"
;
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
const
start
=
moment
()
.
day
(
moment
().
day
()
-
15
)
.
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
},
},
{
{
text
:
"
上月
"
,
text
:
"
近30天
"
,
onClick
(
picker
)
{
onClick
(
picker
)
{
const
end
=
moment
()
const
end
=
moment
().
format
(
"YYYY-MM-DD"
);
.
month
(
moment
().
month
()
-
1
)
.
endOf
(
"month"
)
.
format
(
"YYYY-MM-DD"
);
const
start
=
moment
()
const
start
=
moment
()
.
month
(
moment
().
month
()
-
1
)
.
day
(
moment
().
day
()
-
30
)
.
startOf
(
"month"
)
.
format
(
"YYYY-MM-DD"
);
.
format
(
"YYYY-MM-DD"
);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
picker
.
$emit
(
"pick"
,
[
start
,
end
]);
},
},
},
},
],
],
},
},
filterVisible
:
false
,
filterVisible
:
false
,
...
@@ -243,20 +238,21 @@ export default {
...
@@ -243,20 +238,21 @@ export default {
});
});
},
},
// 查看报警位置点
// 查看激活位置点
lookLocation
(
row1
)
{
lookLocation
(
row
)
{
let
row
=
{
let
oParams
=
{...
row
}
sn
:
"1700151515"
,
oParams
.
lng
=
row
.
gpsLng
ownerName
:
"默认"
,
oParams
.
lat
=
row
.
gpsLat
vin
:
"test321test321tes"
,
oParams
.
address
=
row
.
firstGpsAddress
mileageStartTime
:
"2021-12-03 15:59:49"
,
oParams
.
name
=
row
.
ownerName
mileageEndTime
:
""
,
oParams
.
standNo
=
row
.
vin
lng
:
"113.986208"
,
oParams
.
time
=
row
.
activeDate
lat
:
"22.590340"
,
oParams
.
bsLng
=
row
.
bsLng
address
:
"广东省深圳市南山区南方科技大学"
,
oParams
.
bsLat
=
row
.
bsLat
};
oParams
.
bsAddress
=
row
.
firstBsAddress
oParams
.
bsTime
=
row
.
activeDate
let
path
=
`/oEshield#/monitor/activeLocation`
;
let
path
=
`/oEshield#/monitor/activeLocation`
;
history
.
pushState
(
row
,
"报警
位置点"
,
path
);
history
.
pushState
(
oParams
,
"激活
位置点"
,
path
);
},
},
},
},
};
};
...
...
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