Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
e-shield-h5
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 2f6b9d9c
authored
Jul 25, 2022
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
冒烟 修改
1 parent
4cd73381
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
177 additions
and
145 deletions
public/index.html
src/App.vue
src/components/mapContent.vue
src/components/top-tab.vue
src/views/fence.vue
src/views/freq.vue
src/views/index.vue
src/views/info.vue
src/views/monitor.vue
src/views/replay.vue
src/views/resident.vue
src/views/share.vue
public/index.html
View file @
2f6b9d9
...
@@ -7,9 +7,7 @@
...
@@ -7,9 +7,7 @@
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0,user-scalable=no,maximum-scale=1.0"
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0,user-scalable=no,maximum-scale=1.0"
id=
"viewportMeta"
>
id=
"viewportMeta"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<title>
<title>
找车
</title>
<
%= htmlWebpackPlugin.options.title %>
</title>
</head>
</head>
<body>
<body>
...
...
src/App.vue
View file @
2f6b9d9
...
@@ -57,7 +57,7 @@ body {
...
@@ -57,7 +57,7 @@ body {
.map-container
{
.map-container
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
position
:
fixed
;
//
position
:
fixed
;
z-index
:
100
;
z-index
:
100
;
}
}
</
style
>
</
style
>
src/components/mapContent.vue
View file @
2f6b9d9
...
@@ -139,11 +139,11 @@ export default {
...
@@ -139,11 +139,11 @@ export default {
justify-content
:
center
;
justify-content
:
center
;
}
}
.location
{
.location
{
bottom
:
1
8
0px
;
bottom
:
1
6
0px
;
right
:
20px
;
right
:
20px
;
}
}
.refresh-car
{
.refresh-car
{
bottom
:
2
4
0px
;
bottom
:
2
2
0px
;
right
:
20px
;
right
:
20px
;
}
}
...
...
src/components/top-tab.vue
View file @
2f6b9d9
<
template
>
<
template
>
<div>
<div
class=
"top-tab-class"
>
<van-tabs
v-model:active=
"active"
@
click-tab=
"onTabClick"
>
<van-tabs
v-model:active=
"active"
@
click-tab=
"onTabClick"
>
<van-tab
<van-tab
v-for=
"(item, index) in tabRoutes"
v-for=
"(item, index) in tabRoutes"
...
@@ -65,8 +65,25 @@ export default {
...
@@ -65,8 +65,25 @@ export default {
},
},
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
.top-tab-class
{
height
:
100%
;
}
.tab-content
{
height
:
100%
;
}
</
style
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.van-tabs
{
height
:
100%
;
}
.van-tabs__wrap
{
.van-tabs__wrap
{
border-bottom
:
1px
solid
#f0f2f5
;
border-bottom
:
1px
solid
#f0f2f5
;
}
}
.van-tabs__content
{
height
:
calc
(
100%
-
45px
);
}
.van-tab__panel
{
height
:
100%
;
}
</
style
>
</
style
>
src/views/fence.vue
View file @
2f6b9d9
<
template
>
<
template
>
<div>
<div
class=
"info-content"
>
<div
class=
"settingControll"
@
click=
"showSettingDialog = true"
>
<div
class=
"settingControll"
@
click=
"showSettingDialog = true"
>
<a
class=
"icon icon-setting-btn"
></a>
<a
class=
"icon icon-setting-btn"
></a>
<span
class=
"setting-text"
>
设置
</span>
<span
class=
"setting-text"
>
设置
</span>
...
...
src/views/freq.vue
View file @
2f6b9d9
...
@@ -159,8 +159,12 @@ export default defineComponent({
...
@@ -159,8 +159,12 @@ export default defineComponent({
case
1
:
case
1
:
res
.
data
.
timer
&&
res
.
data
.
timer
&&
res
.
data
.
timer
.
split
(
","
).
forEach
((
val
,
index
)
=>
{
res
.
data
.
timer
.
split
(
","
).
forEach
((
val
,
index
)
=>
{
clockList
.
value
[
index
].
checked
=
true
;
if
(
val
!=
"NA"
)
{
clockList
.
value
[
index
].
time
=
val
;
clockList
.
value
[
index
].
checked
=
true
;
clockList
.
value
[
index
].
time
=
val
;
}
else
{
clockList
.
value
[
index
].
checked
=
false
;
}
});
});
break
;
break
;
case
2
:
case
2
:
...
@@ -298,13 +302,14 @@ export default defineComponent({
...
@@ -298,13 +302,14 @@ export default defineComponent({
break
;
break
;
case
1
:
case
1
:
// eslint-disable-next-line no-case-declarations
// eslint-disable-next-line no-case-declarations
let
arr
=
[];
let
arr
=
[
[],
[]
];
clockList
.
value
.
forEach
((
val
)
=>
{
clockList
.
value
.
forEach
((
val
)
=>
{
arr
[
0
].
push
(
val
.
checked
?
val
.
time
:
"NA"
);
if
(
val
.
checked
)
{
if
(
val
.
checked
)
{
arr
.
push
(
val
.
time
);
arr
[
1
]
.
push
(
val
.
time
);
}
}
});
});
if
(
arr
.
length
<=
0
)
{
if
(
arr
[
1
]
.
length
<=
0
)
{
return
Toast
(
"请至少选择一组模式"
);
return
Toast
(
"请至少选择一组模式"
);
}
}
// eslint-disable-next-line no-case-declarations
// eslint-disable-next-line no-case-declarations
...
@@ -314,7 +319,7 @@ export default defineComponent({
...
@@ -314,7 +319,7 @@ export default defineComponent({
if
(
timeArr
.
length
!=
timeArrSet
.
size
)
{
if
(
timeArr
.
length
!=
timeArrSet
.
size
)
{
return
Toast
(
"每组模式时间不可相同"
);
return
Toast
(
"每组模式时间不可相同"
);
}
}
OParams
.
timer
=
arr
.
join
(
","
);
OParams
.
timer
=
arr
[
0
]
.
join
(
","
);
break
;
break
;
case
2
:
case
2
:
// eslint-disable-next-line no-case-declarations
// eslint-disable-next-line no-case-declarations
...
...
src/views/index.vue
View file @
2f6b9d9
...
@@ -10,69 +10,70 @@
...
@@ -10,69 +10,70 @@
</
template
>
</
template
>
</mapContent>
</mapContent>
<!-- 搜索区域 -->
<!-- 搜索区域 -->
<div
class=
"search-box"
v-if=
"mapIsUploaded"
>
<div
class=
"search-header"
>
<div
class=
"search-header"
>
<div
<div
class=
"select-box"
class=
"select-box"
:class=
"carItem ? 'text' : ''"
:class=
"carItem ? 'text' : ''"
@
click=
"isShowList = !isShowList"
@
click=
"isShowList = !isShowList"
>
>
<span>
{{
<span>
{{
carItem
carItem
? (carItem.ownerName || "--") + " | " + (carItem.vin || "--")
? (carItem.ownerName || "--") + " | " + (carItem.vin || "--")
: "请选择"
: "请选择"
}}
</span>
}}
</span>
<span
class=
"arrow-icon"
><van-icon
name=
"arrow-down"
/></span>
<span
class=
"arrow-icon"
><van-icon
name=
"arrow-down"
/></span>
</div>
</div>
</div>
<div
class=
"search-content"
:class=
"isShowList ? '' : 'hidden'"
>
</div>
<van-search
<div
class=
"search-input"
class=
"search-content"
v-model=
"keyWord"
:class=
"isShowList ? (!list.length ? 'no-data-content' : '') : 'hidden'"
placeholder=
"输入两位以上关键字搜索"
>
@
search=
"getCarList(true)"
<van-search
@
clear=
"getCarList(true)"
class=
"search-input"
/>
v-model=
"keyWord"
<van-list
placeholder=
"输入两位以上关键字搜索"
v-if=
"list.length"
@
search=
"getCarList(true)"
class=
"list-box"
@
clear=
"getCarList(true)"
v-model:loading=
"loading"
/>
:finished=
"finished"
<van-list
finished-text=
"没有更多了"
v-if=
"list.length"
@
load=
"getCarList"
class=
"list-box"
:immediate-check=
"false"
v-model:loading=
"loading"
>
:finished=
"finished"
<van-cell
v-for=
"item in list"
@
click=
"getCarInfo(item)"
:key=
"item"
>
finished-text=
"没有更多了"
<div
@
load=
"getCarList"
class=
"list-item"
:immediate-check=
"false"
:class=
"(carItem && carItem.id) == item.id ? 'active' : ''"
>
>
<van-cell
v-for=
"item in list"
@
click=
"getCarInfo(item)"
:key=
"item"
>
<!-- <i v-if="item.offLineDuration" class="icon icon-off-line"></i>
<div
class=
"list-item"
:class=
"(carItem && carItem.id) == item.id ? 'active' : ''"
>
<!-- <i v-if="item.offLineDuration" class="icon icon-off-line"></i>
<i v-else class="icon icon-on-line"></i> -->
<i v-else class="icon icon-on-line"></i> -->
<div
class=
"item-right"
>
<div
class=
"item-right"
>
<span
class=
"item-text"
>
{{
<span
class=
"item-text"
>
{{
(item.ownerName || "--") + " | " + (item.vin || "--")
(item.ownerName || "--") + " | " + (item.vin || "--")
}}
</span>
}}
</span>
<span
<span
v-if=
"(carItem && carItem.vin) == item.vin"
v-if=
"(carItem && carItem.vin) == item.vin"
class=
"slectedicon"
class=
"slectedicon"
><i
class=
"icon icon-checked"
></i
><i
class=
"icon icon-checked"
></i
></span>
></span>
</div>
</div>
</div>
</
van-cell
>
</
div
>
</van-
list
>
</van-
cell
>
<div
</van-list>
class=
"no-data-class"
<div
v-if=
"list.length <= 0 && !searched && !ISLOADING
"
class=
"no-data-class
"
>
v-if=
"list.length <= 0 && !searched && !ISLOADING"
<img
src=
"../assets/images/no-data.png"
alt=
""
/
>
>
<span>
暂无数据
</span
>
<img
src=
"../assets/images/no-data.png"
alt=
""
/
>
<
/div
>
<
span>
暂无数据
</span
>
<div
class=
"no-data-class"
v-if=
"list.length <= 0 && searched"
>
</div
>
<img
src=
"../assets/images/search-noData.png"
alt=
""
/
>
<div
class=
"no-data-class"
v-if=
"list.length <= 0 && searched"
>
<span>
搜索无结果
</span
>
<img
src=
"../assets/images/search-noData.png"
alt=
""
/
>
<
/div
>
<
span>
搜索无结果
</span
>
</div>
</div>
</div>
</div>
<van-overlay
<van-overlay
...
@@ -598,7 +599,7 @@ export default defineComponent({
...
@@ -598,7 +599,7 @@ export default defineComponent({
GET_ALL_CAR_LIST
({
GET_ALL_CAR_LIST
({
pageSize
:
10
,
pageSize
:
10
,
pageNumber
:
pageNumber
.
value
,
pageNumber
:
pageNumber
.
value
,
keyWord
:
keyWord
.
value
,
term
:
keyWord
.
value
,
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
list
.
value
=
list
.
value
.
concat
(
res
.
data
.
list
);
list
.
value
=
list
.
value
.
concat
(
res
.
data
.
list
);
...
@@ -641,86 +642,89 @@ export default defineComponent({
...
@@ -641,86 +642,89 @@ export default defineComponent({
.index-map
{
.index-map
{
position
:
relative
;
position
:
relative
;
}
}
.search-box
{
.search-header
{
width
:
100%
;
z-index
:
102
;
z-index
:
102
;
position
:
fixed
;
position
:
fixed
;
top
:
0
;
top
:
0
;
.search-header
{
box-shadow
:
0px
3px
6px
0px
rgba
(
0
,
0
,
0
,
0.06
);
box-shadow
:
0px
3px
6px
0px
rgba
(
0
,
0
,
0
,
0.06
);
background-color
:
rgba
(
255
,
255
,
255
,
1
);
background-color
:
rgba
(
255
,
255
,
255
,
1
);
border-radius
:
6px
;
border-radius
:
6px
;
height
:
44px
;
height
:
44px
;
width
:
calc
(
100%
-
24px
);
width
:
calc
(
100%
-
24px
);
margin
:
12px
12px
0
12px
;
margin
:
12px
12px
0
12px
;
.select-box
{
.select-box
{
color
:
#b8bdc2
;
color
:
#b8bdc2
;
font-size
:
14px
;
font-size
:
14px
;
padding
:
0
16px
;
padding
:
0
16px
;
line-height
:
44px
;
line-height
:
44px
;
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
.arrow-icon
{
.arrow-icon
{
color
:
#9ca4ad
;
color
:
#9ca4ad
;
}
}
.select-box.text
{
color
:
#111111
;
}
}
}
}
.search-content
{
.select-box.text
{
width
:
100%
;
color
:
#111111
;
max-height
:
516px
;
}
margin-top
:
8px
;
}
.search-content
{
width
:
100%
;
position
:
fixed
;
z-index
:
102
;
top
:
64px
;
height
:
65%
;
margin-top
:
8px
;
border-radius
:
12px
;
background
:
#fff
;
overflow
:
hidden
;
transition
:
height
0.3s
;
.search-input
{
border-radius
:
12px
;
border-radius
:
12px
;
background
:
#fff
;
}
overflow
:
hidden
;
.list-box
{
transition
:
max-height
0.3s
;
max-height
:
calc
(
100%
-
52px
);
.search-input
{
overflow-y
:
auto
;
border-radius
:
12px
;
.list-item
{
}
height
:
52px
;
.list-box
{
padding
:
0
14px
;
max-height
:
464px
;
display
:
flex
;
overflow-y
:
auto
;
align-items
:
center
;
.list-item
{
.item-right
{
height
:
52px
;
margin-left
:
10px
;
padding
:
0
14px
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
.item-right
{
width
:
100%
;
margin-left
:
10px
;
.slectedicon
{
display
:
flex
;
display
:
inline-block
;
justify-content
:
space-between
;
width
:
20px
;
width
:
100%
;
height
:
20px
;
.slectedicon
{
display
:
inline-block
;
width
:
20px
;
height
:
20px
;
}
}
}
}
}
.list-item.active
{
background
:
#ecf5fe
;
}
}
}
.no-data-class
{
.list-item.active
{
display
:
flex
;
background
:
#ecf5fe
;
flex-flow
:
column
;
justify-content
:
center
;
align-items
:
center
;
padding
:
40px
;
span
{
font-size
:
14px
;
color
:
#9fa6ad
;
margin-top
:
16px
;
}
}
}
}
}
.search-content.hidden
{
.no-data-class
{
max-height
:
0
;
display
:
flex
;
transition
:
max-height
0.3s
;
flex-flow
:
column
;
justify-content
:
center
;
align-items
:
center
;
padding
:
40px
;
span
{
font-size
:
14px
;
color
:
#9fa6ad
;
margin-top
:
16px
;
}
}
}
}
}
.search-content.hidden
{
height
:
0
;
transition
:
height
0.3s
;
}
.search-content.no-data-content
{
height
:
auto
;
}
</
style
>
</
style
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.car-info-window
{
.car-info-window
{
...
...
src/views/info.vue
View file @
2f6b9d9
...
@@ -112,5 +112,8 @@ export default defineComponent({
...
@@ -112,5 +112,8 @@ export default defineComponent({
});
});
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.info-content
{
height
:
100%
;
}
@import
"@/assets/css/share.scss"
;
@import
"@/assets/css/share.scss"
;
</
style
>
</
style
>
src/views/monitor.vue
View file @
2f6b9d9
<
template
>
<
template
>
<div
class=
"
monitor-tabC
ontent"
>
<div
class=
"
info-c
ontent"
>
<mapContent
@
refreshCb=
"refreshCb"
@
getData=
"getData"
ref=
"mapContentRefs"
>
<mapContent
@
refreshCb=
"refreshCb"
@
getData=
"getData"
ref=
"mapContentRefs"
>
<template
#
mapBox
>
<template
#
mapBox
>
<div
id=
"monitorContainer"
class=
"map-container"
></div>
<div
id=
"monitorContainer"
class=
"map-container"
></div>
...
...
src/views/replay.vue
View file @
2f6b9d9
<
template
>
<
template
>
<div>
<div
class=
"info-content"
>
<div
class=
"tab"
>
<div
class=
"tab"
>
<div
class=
"tabbar"
>
<div
class=
"tabbar"
>
<div
class=
"tabbar-item"
@
click=
"showTimeDialog = true"
>
<div
class=
"tabbar-item"
@
click=
"showTimeDialog = true"
>
...
@@ -435,6 +435,11 @@ export default defineComponent({
...
@@ -435,6 +435,11 @@ export default defineComponent({
}
}
</
style
>
</
style
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.info-content
{
.map-box
{
height
:
calc
(
100%
-
39px
)
!important
;
}
}
.tab
{
.tab
{
.tabbar
{
.tabbar
{
font-size
:
0px
;
font-size
:
0px
;
...
...
src/views/resident.vue
View file @
2f6b9d9
<
template
>
<
template
>
<div>
<div
class=
"info-content"
>
<div
class=
"searchControll"
@
click=
"showTimeDialog = true"
>
<div
class=
"searchControll"
@
click=
"showTimeDialog = true"
>
<a
class=
"icon icon-screen-btn"
></a>
<a
class=
"icon icon-screen-btn"
></a>
<span
class=
"screen-text"
>
筛选
</span>
<span
class=
"screen-text"
>
筛选
</span>
...
...
src/views/share.vue
View file @
2f6b9d9
<
template
>
<
template
>
<div>
<div
class=
"info-content"
>
<mapContent
ref=
"mapContentRefs"
>
<mapContent
ref=
"mapContentRefs"
>
<template
#
mapBox
>
<template
#
mapBox
>
<div
id=
"shareContainer"
class=
"map-container"
></div>
<div
id=
"shareContainer"
class=
"map-container"
></div>
...
...
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