Commit 023860e7 by zhangxw

常驻地bug,ui走查修改

1 parent a69901c6
......@@ -6,6 +6,7 @@
--van-text-link-color: #0077FF !important;
--van-blue: #0077FF !important;
--van-search-input-height: 32px !important;
--van-search-content-background-color: #f5f6f7 !important;
--van-font-weight-bold: 600 !important;
--van-search-action-text-color: var(--base-color) !important;
--van-dropdown-menu-title-active-text-color: var(--base-color) !important;
......
......@@ -871,7 +871,7 @@ export default defineComponent({
justify-content: space-between;
align-items: center;
border-bottom: 1px solid #f0f2f5;
padding: 10px 0;
padding: 5px 0;
.item-title-left {
.item-text-name {
font-size: 14px;
......@@ -894,7 +894,7 @@ export default defineComponent({
}
}
.item-text-content {
padding: 10px 0;
padding: 5px 0;
.item-text-sn {
display: flex;
.sn-item {
......@@ -920,7 +920,12 @@ export default defineComponent({
}
}
.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 {
......
......@@ -7,7 +7,7 @@
<span class="slect-class">{{ currDateText }}</span>
<van-icon class="icon-rotate" name="play" />
</div>
<div class="tabbar-item" @click="showSpeedPicker = true">
<div class="tabbar-item" @click="changeSpeedPickerPopup">
回放速度&nbsp;
<span class="slect-class">{{ selectSpeedId || "" }}</span>
<van-icon class="icon-rotate" name="play" />
......@@ -210,6 +210,11 @@ export default defineComponent({
}
});
};
// 切换速度弹窗
const changeSpeedPickerPopup = () => {
speedId.value = selectSpeedId.value;
showSpeedPicker.value = true;
};
// 切换速度
const changSpeed = (e) => {
speedId.value = e;
......@@ -446,6 +451,7 @@ export default defineComponent({
maxDate,
replayList,
dateTimePicker,
changeSpeedPickerPopup,
};
},
});
......@@ -610,7 +616,8 @@ export default defineComponent({
margin-left: -72px;
z-index: 101;
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 {
margin-left: 12px;
......
......@@ -183,13 +183,11 @@ export default defineComponent({
};
const saveTime = () => {
showTimePicker.value = false;
if (seledtedItem.value === 2) {
// 不显示picker顶部 确认时调用 自带的confirm 防止选择时间延迟
nextTick(() => {
let confirmBtn = dateTimePicker.value.$el.children[0].children[1];
confirmBtn.click();
});
}
// 不显示picker顶部 确认时调用 自带的confirm 防止选择时间延迟
nextTick(() => {
let confirmBtn = dateTimePicker.value.$el.children[0].children[1];
confirmBtn.click();
});
};
onMounted(() => {
AMapLoader.load({
......@@ -201,9 +199,8 @@ export default defineComponent({
mapContentRefs.value.initMap("residentContainer");
});
});
// 选择时间
// 快捷选择时间
const selectTime = (e) => {
seledtedItem.value = e;
switch (e) {
case 0:
searchTime.value = [
......@@ -211,7 +208,7 @@ export default defineComponent({
moment().format("YYYY-MM-DD HH:mm:ss"),
];
showTimePicker.value = false;
currentDateText.value = "自定义";
seledtedItem.value = e;
getData();
break;
case 1:
......@@ -219,8 +216,8 @@ export default defineComponent({
moment().subtract(30, "day").format("YYYY-MM-DD HH:mm:ss"),
moment().format("YYYY-MM-DD HH:mm:ss"),
];
currentDateText.value = "自定义";
showTimePicker.value = false;
seledtedItem.value = e;
getData();
break;
case 2:
......@@ -228,7 +225,7 @@ export default defineComponent({
break;
}
};
// 时间选择
// 自定义时间选择
const change = (e) => {
currentDate.value = e;
currentDateText.value = moment(e).format("YYYY-MM");
......@@ -236,6 +233,7 @@ export default defineComponent({
moment(e).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();
};
// 获取数据
......@@ -250,6 +248,8 @@ export default defineComponent({
if (res.data.length > 0) {
init(currentMap, res.data);
} else {
currentMap.clearMap();
residentList.value = [];
Dialog({ message: "暂无数据" });
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!