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