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 023860e7
authored
Aug 08, 2022
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
常驻地bug,ui走查修改
1 parent
a69901c6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
17 deletions
src/assets/css/style.css
src/views/index.vue
src/views/replay.vue
src/views/resident.vue
src/assets/css/style.css
View file @
023860e
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
--van-text-link-color
:
#0077FF
!important
;
--van-text-link-color
:
#0077FF
!important
;
--van-blue
:
#0077FF
!important
;
--van-blue
:
#0077FF
!important
;
--van-search-input-height
:
32px
!important
;
--van-search-input-height
:
32px
!important
;
--van-search-content-background-color
:
#f5f6f7
!important
;
--van-font-weight-bold
:
600
!important
;
--van-font-weight-bold
:
600
!important
;
--van-search-action-text-color
:
var
(
--base-color
)
!important
;
--van-search-action-text-color
:
var
(
--base-color
)
!important
;
--van-dropdown-menu-title-active-text-color
:
var
(
--base-color
)
!important
;
--van-dropdown-menu-title-active-text-color
:
var
(
--base-color
)
!important
;
...
...
src/views/index.vue
View file @
023860e
...
@@ -871,7 +871,7 @@ export default defineComponent({
...
@@ -871,7 +871,7 @@ export default defineComponent({
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
border-bottom
:
1px
solid
#f0f2f5
;
border-bottom
:
1px
solid
#f0f2f5
;
padding
:
10
px
0
;
padding
:
5
px
0
;
.item-title-left
{
.item-title-left
{
.item-text-name
{
.item-text-name
{
font-size
:
14px
;
font-size
:
14px
;
...
@@ -894,7 +894,7 @@ export default defineComponent({
...
@@ -894,7 +894,7 @@ export default defineComponent({
}
}
}
}
.item-text-content
{
.item-text-content
{
padding
:
10
px
0
;
padding
:
5
px
0
;
.item-text-sn
{
.item-text-sn
{
display
:
flex
;
display
:
flex
;
.sn-item
{
.sn-item
{
...
@@ -920,7 +920,12 @@ export default defineComponent({
...
@@ -920,7 +920,12 @@ export default defineComponent({
}
}
}
}
.list-item.active
{
.list-item.active
{
background
:
#eff6ff
;
background
:
#fff
linear-gradient
(
90deg
,
rgba
(
0
,
119
,
255
,
0.1
)
0%
,
rgba
(
0
,
102
,
255
,
0.04
)
100%
);
}
}
}
}
.list-box.hidden
{
.list-box.hidden
{
...
...
src/views/replay.vue
View file @
023860e
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<span
class=
"slect-class"
>
{{
currDateText
}}
</span>
<span
class=
"slect-class"
>
{{
currDateText
}}
</span>
<van-icon
class=
"icon-rotate"
name=
"play"
/>
<van-icon
class=
"icon-rotate"
name=
"play"
/>
</div>
</div>
<div
class=
"tabbar-item"
@
click=
"
showSpeedPicker = true
"
>
<div
class=
"tabbar-item"
@
click=
"
changeSpeedPickerPopup
"
>
回放速度
回放速度
<span
class=
"slect-class"
>
{{
selectSpeedId
||
""
}}
</span>
<span
class=
"slect-class"
>
{{
selectSpeedId
||
""
}}
</span>
<van-icon
class=
"icon-rotate"
name=
"play"
/>
<van-icon
class=
"icon-rotate"
name=
"play"
/>
...
@@ -210,6 +210,11 @@ export default defineComponent({
...
@@ -210,6 +210,11 @@ export default defineComponent({
}
}
});
});
};
};
// 切换速度弹窗
const
changeSpeedPickerPopup
=
()
=>
{
speedId
.
value
=
selectSpeedId
.
value
;
showSpeedPicker
.
value
=
true
;
};
// 切换速度
// 切换速度
const
changSpeed
=
(
e
)
=>
{
const
changSpeed
=
(
e
)
=>
{
speedId
.
value
=
e
;
speedId
.
value
=
e
;
...
@@ -446,6 +451,7 @@ export default defineComponent({
...
@@ -446,6 +451,7 @@ export default defineComponent({
maxDate
,
maxDate
,
replayList
,
replayList
,
dateTimePicker
,
dateTimePicker
,
changeSpeedPickerPopup
,
};
};
},
},
});
});
...
@@ -610,7 +616,8 @@ export default defineComponent({
...
@@ -610,7 +616,8 @@ export default defineComponent({
margin-left
:
-72px
;
margin-left
:
-72px
;
z-index
:
101
;
z-index
:
101
;
a
{
a
{
box-shadow
:
0px
5px
12px
0px
rgba
(
0
,
0
,
0
,
0.1
);
border-radius
:
10px
;
box-shadow
:
0px
5px
12px
0px
rgba
(
0
,
0
,
0
,
0.12
);
}
}
.icon-replay-refresh
{
.icon-replay-refresh
{
margin-left
:
12px
;
margin-left
:
12px
;
...
...
src/views/resident.vue
View file @
023860e
...
@@ -183,13 +183,11 @@ export default defineComponent({
...
@@ -183,13 +183,11 @@ export default defineComponent({
};
};
const
saveTime
=
()
=>
{
const
saveTime
=
()
=>
{
showTimePicker
.
value
=
false
;
showTimePicker
.
value
=
false
;
if
(
seledtedItem
.
value
===
2
)
{
// 不显示picker顶部 确认时调用 自带的confirm 防止选择时间延迟
// 不显示picker顶部 确认时调用 自带的confirm 防止选择时间延迟
nextTick
(()
=>
{
nextTick
(()
=>
{
let
confirmBtn
=
dateTimePicker
.
value
.
$el
.
children
[
0
].
children
[
1
];
let
confirmBtn
=
dateTimePicker
.
value
.
$el
.
children
[
0
].
children
[
1
];
confirmBtn
.
click
();
confirmBtn
.
click
();
});
});
}
};
};
onMounted
(()
=>
{
onMounted
(()
=>
{
AMapLoader
.
load
({
AMapLoader
.
load
({
...
@@ -201,9 +199,8 @@ export default defineComponent({
...
@@ -201,9 +199,8 @@ export default defineComponent({
mapContentRefs
.
value
.
initMap
(
"residentContainer"
);
mapContentRefs
.
value
.
initMap
(
"residentContainer"
);
});
});
});
});
// 选择时间
//
快捷
选择时间
const
selectTime
=
(
e
)
=>
{
const
selectTime
=
(
e
)
=>
{
seledtedItem
.
value
=
e
;
switch
(
e
)
{
switch
(
e
)
{
case
0
:
case
0
:
searchTime
.
value
=
[
searchTime
.
value
=
[
...
@@ -211,7 +208,7 @@ export default defineComponent({
...
@@ -211,7 +208,7 @@ export default defineComponent({
moment
().
format
(
"YYYY-MM-DD HH:mm:ss"
),
moment
().
format
(
"YYYY-MM-DD HH:mm:ss"
),
];
];
showTimePicker
.
value
=
false
;
showTimePicker
.
value
=
false
;
currentDateText
.
value
=
"自定义"
;
seledtedItem
.
value
=
e
;
getData
();
getData
();
break
;
break
;
case
1
:
case
1
:
...
@@ -219,8 +216,8 @@ export default defineComponent({
...
@@ -219,8 +216,8 @@ export default defineComponent({
moment
().
subtract
(
30
,
"day"
).
format
(
"YYYY-MM-DD HH:mm:ss"
),
moment
().
subtract
(
30
,
"day"
).
format
(
"YYYY-MM-DD HH:mm:ss"
),
moment
().
format
(
"YYYY-MM-DD HH:mm:ss"
),
moment
().
format
(
"YYYY-MM-DD HH:mm:ss"
),
];
];
currentDateText
.
value
=
"自定义"
;
showTimePicker
.
value
=
false
;
showTimePicker
.
value
=
false
;
seledtedItem
.
value
=
e
;
getData
();
getData
();
break
;
break
;
case
2
:
case
2
:
...
@@ -228,7 +225,7 @@ export default defineComponent({
...
@@ -228,7 +225,7 @@ export default defineComponent({
break
;
break
;
}
}
};
};
// 时间选择
//
自定义
时间选择
const
change
=
(
e
)
=>
{
const
change
=
(
e
)
=>
{
currentDate
.
value
=
e
;
currentDate
.
value
=
e
;
currentDateText
.
value
=
moment
(
e
).
format
(
"YYYY-MM"
);
currentDateText
.
value
=
moment
(
e
).
format
(
"YYYY-MM"
);
...
@@ -236,6 +233,7 @@ export default defineComponent({
...
@@ -236,6 +233,7 @@ export default defineComponent({
moment
(
e
).
format
(
"YYYY-MM-DD HH:mm:ss"
),
moment
(
e
).
format
(
"YYYY-MM-DD HH:mm:ss"
),
moment
(
e
).
endOf
(
"month"
).
format
(
"YYYY-MM-DD HH:mm:ss"
),
moment
(
e
).
endOf
(
"month"
).
format
(
"YYYY-MM-DD HH:mm:ss"
),
];
];
seledtedItem
.
value
=
timeBtnList
.
findIndex
((
item
)
=>
item
==
"自定义"
);
getData
();
getData
();
};
};
// 获取数据
// 获取数据
...
@@ -250,6 +248,8 @@ export default defineComponent({
...
@@ -250,6 +248,8 @@ export default defineComponent({
if
(
res
.
data
.
length
>
0
)
{
if
(
res
.
data
.
length
>
0
)
{
init
(
currentMap
,
res
.
data
);
init
(
currentMap
,
res
.
data
);
}
else
{
}
else
{
currentMap
.
clearMap
();
residentList
.
value
=
[];
Dialog
({
message
:
"暂无数据"
});
Dialog
({
message
:
"暂无数据"
});
}
}
}
}
...
...
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