Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
oEshield
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 0aff1aa4
authored
Mar 29, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
交互更新
1 parent
6f07b14d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
18 deletions
src/pages/monitor/zoneCar.vue
src/pages/monitor/zoneCar.vue
View file @
0aff1aa
...
@@ -37,24 +37,29 @@
...
@@ -37,24 +37,29 @@
>
>
<div
v-show=
"menuId == 1"
>
<div
v-show=
"menuId == 1"
>
<el-form-item
label=
"详细地址"
>
<el-form-item
label=
"详细地址"
>
<div
class=
"device_item"
>
<el-input
<el-input
ref=
"addressInput"
v-model
.
trim=
"form.address"
v-model
.
trim=
"form.address"
id=
"tipInput"
id=
"tipInput"
maxlength=
"50"
maxlength=
"50"
placeholder=
"请输入详细地址"
placeholder=
"请输入详细地址"
@
keyup
.
enter
.
native=
"getAddress"
/>
/>
<el-button
type=
"primary"
class=
"btn"
:disabled=
"!form.address"
@
click=
"getAddress"
>
搜索
</el-button
>
</div>
</el-form-item>
</el-form-item>
</div>
</div>
<div
v-show=
"menuId == 2"
>
<div
v-show=
"menuId == 2"
>
<el-form-item
label=
"设备号"
prop=
"sn"
>
<el-form-item
label=
"设备号"
prop=
"sn"
>
<div
class=
"device_label"
slot=
"label"
>
<div
class=
"device_label"
slot=
"label"
>
<span>
设备号
</span>
<span>
设备号
</span>
<!--
<el-tooltip
content=
"请先设备号精准搜索设备定位后,再进行“选择区域”操作"
placement=
"top"
>
<glsx-image
src=
"circle-question.png"
class=
"img"
/>
</el-tooltip>
-->
<el-popover
<el-popover
trigger=
"hover"
trigger=
"hover"
placement=
"top"
placement=
"top"
...
@@ -72,6 +77,7 @@
...
@@ -72,6 +77,7 @@
v-model
.
trim=
"form.sn"
v-model
.
trim=
"form.sn"
maxlength=
"50"
maxlength=
"50"
placeholder=
"请输入您要查询的设备号"
placeholder=
"请输入您要查询的设备号"
@
keyup
.
enter
.
native=
"getLocation"
/>
/>
<el-button
<el-button
type=
"primary"
type=
"primary"
...
@@ -165,7 +171,7 @@ import {
...
@@ -165,7 +171,7 @@ import {
}
from
"@/api/services/zooneCar"
;
}
from
"@/api/services/zooneCar"
;
import
EventBus
from
"@/event-bus"
;
import
EventBus
from
"@/event-bus"
;
import
{
showToast
,
deepClone
}
from
"@/utils/utils.js"
;
import
{
showToast
,
deepClone
}
from
"@/utils/utils.js"
;
import
{
Validator
,
CHECK_NUMBER
}
from
"@/common/validator"
;
import
{
Validator
,
CHECK_NUMBER
}
from
"@/common/validator"
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -195,7 +201,6 @@ export default {
...
@@ -195,7 +201,6 @@ export default {
deviceList
:
[],
deviceList
:
[],
loading
:
false
,
loading
:
false
,
dloading
:
false
,
dloading
:
false
,
autoOpenLastInfoWindow
:
false
,
columns
:
[
columns
:
[
{
type
:
"seq"
,
title
:
"序号"
,
width
:
"55px"
},
{
type
:
"seq"
,
title
:
"序号"
,
width
:
"55px"
},
{
field
:
"workOrderNo"
,
title
:
"业务工单号"
},
{
field
:
"workOrderNo"
,
title
:
"业务工单号"
},
...
@@ -204,7 +209,7 @@ export default {
...
@@ -204,7 +209,7 @@ export default {
{
field
:
"vin"
,
title
:
"车架号"
},
{
field
:
"vin"
,
title
:
"车架号"
},
{
field
:
"sn"
,
title
:
"设备号"
},
{
field
:
"sn"
,
title
:
"设备号"
},
{
field
:
"activeDate"
,
title
:
"激活时间"
},
{
field
:
"activeDate"
,
title
:
"激活时间"
},
{
field
:
"
deviceTyp
eStr"
,
title
:
"设备类型"
},
{
field
:
"
sourc
eStr"
,
title
:
"设备类型"
},
{
field
:
"finalGpsTime"
,
title
:
"最后GPS定位时间"
},
{
field
:
"finalGpsTime"
,
title
:
"最后GPS定位时间"
},
{
field
:
"finalGpsAddress"
,
title
:
"最后GPS定位地址"
,
width
:
"300px"
},
{
field
:
"finalGpsAddress"
,
title
:
"最后GPS定位地址"
,
width
:
"300px"
},
],
],
...
@@ -212,7 +217,8 @@ export default {
...
@@ -212,7 +217,8 @@ export default {
location
:
{},
// 设备维度查询的位置点
location
:
{},
// 设备维度查询的位置点
autoCenterMarker
:
null
,
autoCenterMarker
:
null
,
mouseTool
:
null
,
mouseTool
:
null
,
mapMass
:
null
mapMass
:
null
,
poi
:
{},
};
};
},
},
mounted
()
{
mounted
()
{
...
@@ -250,11 +256,8 @@ export default {
...
@@ -250,11 +256,8 @@ export default {
autoComplete
.
on
(
"select"
,
function
(
e
)
{
autoComplete
.
on
(
"select"
,
function
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
let
poi
=
e
.
poi
||
{};
let
poi
=
e
.
poi
||
{};
if
(
poi
&&
poi
.
location
)
{
_this
.
poi
=
poi
;
_this
.
autoCenterMarker
=
mapService
.
createMarker
(
poi
.
location
);
_this
.
$refs
.
addressInput
.
focus
()
_this
.
map
.
setFitView
();
_this
.
map
.
add
(
_this
.
autoCenterMarker
);
}
});
});
})
})
.
catch
((
error
)
=>
{
.
catch
((
error
)
=>
{
...
@@ -263,6 +266,18 @@ export default {
...
@@ -263,6 +266,18 @@ export default {
});
});
},
},
// 获取地址
getAddress
()
{
let
_this
=
this
;
let
poi
=
this
.
poi
;
_this
.
clearMap
()
if
(
poi
&&
poi
.
location
)
{
_this
.
autoCenterMarker
=
mapService
.
createMarker
(
poi
.
location
);
_this
.
map
.
setFitView
();
_this
.
map
.
add
(
_this
.
autoCenterMarker
);
}
},
// 选择区域
// 选择区域
async
chooseArea
()
{
async
chooseArea
()
{
let
_this
=
this
;
let
_this
=
this
;
...
@@ -336,6 +351,8 @@ export default {
...
@@ -336,6 +351,8 @@ export default {
this
.
rectangleHeight
=
0
;
this
.
rectangleHeight
=
0
;
this
.
rectangleWidth
=
0
;
this
.
rectangleWidth
=
0
;
this
.
rectangle
=
null
;
this
.
rectangle
=
null
;
this
.
mouseTool
=
null
;
this
.
deviceList
=
[];
this
.
map
.
setZooms
([
2
,
30
]);
this
.
map
.
setZooms
([
2
,
30
]);
},
},
...
@@ -452,7 +469,7 @@ export default {
...
@@ -452,7 +469,7 @@ export default {
// 切换类型
// 切换类型
menuEvent
(
row
)
{
menuEvent
(
row
)
{
this
.
menuId
=
row
.
id
;
this
.
menuId
=
row
.
id
;
this
.
$refs
.
form
.
clearValidate
(
'sn'
)
this
.
$refs
.
form
.
clearValidate
(
"sn"
);
},
},
// 设备号查车
// 设备号查车
...
@@ -519,8 +536,8 @@ export default {
...
@@ -519,8 +536,8 @@ export default {
}
}
_this
.
deviceList
=
[];
_this
.
deviceList
=
[];
if
(
_this
.
mapMass
)
{
if
(
_this
.
mapMass
)
{
_this
.
mapMass
.
clear
()
_this
.
mapMass
.
clear
()
;
_this
.
mapMass
=
null
;
_this
.
mapMass
=
null
;
}
}
...
...
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