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 929f55a2
authored
Mar 22, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
v1.17.0版本需求
1 parent
b30ceef7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
102 additions
and
5 deletions
src/assets/scss/zoneCar.scss
src/components/area/index.vue
src/components/glsx-image/index.vue
src/main.js
src/pages/monitor/zoneCar.vue
src/assets/scss/zoneCar.scss
View file @
929f55a
...
...
@@ -134,6 +134,7 @@
font-size
:
16px
;
color
:
#185EFE
;
margin-left
:
20px
;
cursor
:
pointer
;
}
.tips_info
{
...
...
src/components/area/index.vue
View file @
929f55a
...
...
@@ -37,8 +37,9 @@ export default {
watch
:
{
// value: {
// handler: function (n, o) {
// console.log(n)
// if (n) {
// this.init();
//
//
this.init();
// }
// },
// immediate: true,
...
...
@@ -143,6 +144,11 @@ export default {
return
afterArray
;
},
// 重置
reset
(){
this
.
city
=
[]
}
// 查询高德地图的省市区
// getList() {
// let oParams = {};
...
...
src/components/glsx-image/index.vue
0 → 100644
View file @
929f55a
<
template
>
<el-image
:src=
"imgPath"
:fit=
"fit"
class=
"img"
>
<div
slot=
"error"
class=
"image_slot"
>
<i
class=
"el-icon-user"
></i>
</div>
</el-image>
</
template
>
<
script
>
export
default
{
name
:
"GlsxImage"
,
props
:
{
src
:
{
type
:
String
,
default
:
""
,
},
fit
:
{
type
:
String
,
default
:
""
,
},
},
watch
:
{
src
:
{
handler
:
function
(
n
)
{
if
(
n
)
{
console
.
log
(
n
);
this
.
imgPath
=
this
.
IMAGEURL
+
n
;
}
},
immediate
:
true
,
},
},
data
()
{
return
{
imgPath
:
""
,
IMAGEURL
:
'https://img01.glsx.com.cn/weapp/resource/e-shield/'
,
};
},
created
()
{
console
.
log
(
this
.
src
);
},
mounted
()
{},
methods
:
{
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
.img
{
cursor
:
pointer
;
width
:
100%
;
height
:
100%
;
}
</
style
>
<
style
lang=
"scss"
>
.image_slot
{
width
:
100%
;
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
background
:
#f5f7fa
;
i{
font-size
:
24px
;
color
:
#909399
;
}
}
</
style
>
\ No newline at end of file
src/main.js
View file @
929f55a
...
...
@@ -32,6 +32,14 @@ import 'vxe-table/lib/style.css'
Vue
.
use
(
VXETable
)
// // worker多线程
// import VueWorker from 'vue-worker'
// Vue.use(VueWorker)
// 引入 公共图片组件
import
GlsxImage
from
'@/components/glsx-image/index.vue'
;
Vue
.
component
(
'GlsxImage'
,
GlsxImage
)
// new Vue({
// el: '#app',
// router,
...
...
src/pages/monitor/zoneCar.vue
View file @
929f55a
...
...
@@ -8,12 +8,15 @@
v-loading=
"mapLoading"
></div>
<div
class=
"row_box_hide"
v-if=
"hideRowBox"
@
click=
"onShow"
>
<img
src=
"@/assets/images/car.png"
class=
"img img_normal"
alt=
""
/>
<img
src=
"@/assets/images/car_hover.png"
class=
"img img_hover"
alt=
""
/>
<glsx-image
src=
"car.png"
class=
"img img_normal"
/>
<glsx-image
src=
"car_hover.png"
class=
"img img_hover"
/>
<!--
<img
src=
"@/assets/images/car.png"
class=
"img img_normal"
alt=
""
/>
<img
src=
"@/assets/images/car_hover.png"
class=
"img img_hover"
alt=
""
/>
-->
</div>
<div
class=
"row_box"
v-else
>
<div
class=
"hide_icon"
@
click=
"onShow"
>
<img
src=
"@/assets/images/hide.png"
class=
"img"
alt=
""
/>
<!--
<img
src=
"@/assets/images/hide.png"
class=
"img"
alt=
""
/>
-->
<glsx-image
src=
"hide.png"
class=
"img"
/>
</div>
<div
class=
"row_head"
>
<div
...
...
@@ -36,6 +39,7 @@
<div
v-show=
"menuId == 1"
>
<el-form-item
label=
"行政区域"
>
<CitySelect
ref=
"citySelect"
v-model=
"form.area"
class=
"el_select"
@
change=
"onChange"
...
...
@@ -132,6 +136,7 @@
:data=
"deviceList"
size=
"small"
show-overflow
v-if=
"drawDone"
>
</vxe-grid>
<!--
<el-table
:data=
"deviceList"
size=
"small"
>
...
...
@@ -227,6 +232,7 @@ export default {
{
field
:
"finalGpsTime"
,
title
:
"最后GPS定位时间"
},
{
field
:
"finalGpsAddress"
,
title
:
"最后GPS定位地址"
,
width
:
"300px"
},
],
drawDone
:
false
,
};
},
mounted
()
{
...
...
@@ -433,6 +439,7 @@ export default {
this
.
rectangleHeight
=
0
;
this
.
rectangleWidth
=
0
;
this
.
form
=
{};
this
.
$refs
.
citySelect
.
reset
();
},
// 展开
...
...
@@ -536,7 +543,7 @@ export default {
// 设备号查车
async
getLocation
()
{
let
params
=
{};
this
.
onClear
()
this
.
clearMap
()
params
.
sns
=
this
.
form
.
sn
;
params
.
deviceCode
=
"gps"
;
let
res
=
await
GET_DEVICEINFO_BYSNS
(
params
);
...
...
@@ -611,6 +618,7 @@ export default {
size
:
[
24
,
15
],
anchor
:
"bottom-center"
,
};
this
.
drawDone
=
false
;
var
layer
=
new
AMap
.
LabelsLayer
({
zooms
:
[
0
,
20
],
zIndex
:
1000
,
...
...
@@ -636,6 +644,7 @@ export default {
layer
.
add
(
markers
);
console
.
log
(
'画点结束'
,
new
Date
().
getTime
());
this
.
drawDone
=
true
;
this
.
map
.
setFitView
();
},
},
...
...
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