|
|
@@ -4,14 +4,16 @@ const utils_api = require("../../utils/api.js");
|
|
|
const utils_previewImage = require("../../utils/previewImage.js");
|
|
|
const utils_des = require("../../utils/des.js");
|
|
|
if (!Array) {
|
|
|
+ const _easycom_uni_datetime_picker2 = common_vendor.resolveComponent("uni-datetime-picker");
|
|
|
const _easycom_uv_steps_item2 = common_vendor.resolveComponent("uv-steps-item");
|
|
|
const _easycom_uv_steps2 = common_vendor.resolveComponent("uv-steps");
|
|
|
- (_easycom_uv_steps_item2 + _easycom_uv_steps2)();
|
|
|
+ (_easycom_uni_datetime_picker2 + _easycom_uv_steps_item2 + _easycom_uv_steps2)();
|
|
|
}
|
|
|
+const _easycom_uni_datetime_picker = () => "../../uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.js";
|
|
|
const _easycom_uv_steps_item = () => "../../uni_modules/uv-steps/components/uv-steps-item/uv-steps-item.js";
|
|
|
const _easycom_uv_steps = () => "../../uni_modules/uv-steps/components/uv-steps/uv-steps.js";
|
|
|
if (!Math) {
|
|
|
- (MapContainer + _easycom_uv_steps_item + _easycom_uv_steps + NoData)();
|
|
|
+ (_easycom_uni_datetime_picker + MapContainer + _easycom_uv_steps_item + _easycom_uv_steps + NoData)();
|
|
|
}
|
|
|
const MapContainer = () => "../../components/MapContainer.js";
|
|
|
const NoData = () => "../../components/noData.js";
|
|
|
@@ -20,24 +22,11 @@ const _sfc_main = {
|
|
|
setup(__props) {
|
|
|
common_vendor.onLoad((options) => {
|
|
|
currentId.value = options.id;
|
|
|
+ datetimerangeValue.value = [common_vendor.dayjs(Date.now() - 24 * 3600 * 1e3).format("YYYY-MM-DD hh:mm:ss"), common_vendor.dayjs(Date.now()).format("YYYY-MM-DD hh:mm:ss")];
|
|
|
getData();
|
|
|
});
|
|
|
const currentId = common_vendor.ref();
|
|
|
- const activeIndex = common_vendor.ref(0);
|
|
|
- const searchList = common_vendor.ref([
|
|
|
- {
|
|
|
- value: 0,
|
|
|
- text: "今天"
|
|
|
- },
|
|
|
- {
|
|
|
- value: 1,
|
|
|
- text: "昨天"
|
|
|
- },
|
|
|
- {
|
|
|
- value: 2,
|
|
|
- text: "前天"
|
|
|
- }
|
|
|
- ]);
|
|
|
+ const datetimerangeValue = common_vendor.ref();
|
|
|
const list = common_vendor.ref([]);
|
|
|
const customStyle = {
|
|
|
marginBottom: "30rpx"
|
|
|
@@ -47,7 +36,8 @@ const _sfc_main = {
|
|
|
url: "/wanzai/api/smartFaceDiscern/track",
|
|
|
data: {
|
|
|
id: currentId.value,
|
|
|
- dateTime: activeIndex.value
|
|
|
+ startTime: datetimerangeValue.value[0],
|
|
|
+ endTime: datetimerangeValue.value[1]
|
|
|
}
|
|
|
});
|
|
|
if (res.code == 200) {
|
|
|
@@ -55,23 +45,24 @@ const _sfc_main = {
|
|
|
list.value = result;
|
|
|
}
|
|
|
};
|
|
|
- const changeIndex = (v) => {
|
|
|
- activeIndex.value = v;
|
|
|
- getData();
|
|
|
+ const changeTime = (e) => {
|
|
|
+ if (e.length) {
|
|
|
+ getData();
|
|
|
+ }
|
|
|
};
|
|
|
return (_ctx, _cache) => {
|
|
|
return common_vendor.e({
|
|
|
- a: common_vendor.f(searchList.value, (item, k0, i0) => {
|
|
|
- return {
|
|
|
- a: common_vendor.t(item.text),
|
|
|
- b: item.value === activeIndex.value ? 1 : "",
|
|
|
- c: item.value,
|
|
|
- d: common_vendor.o(($event) => changeIndex(item.value), item.value)
|
|
|
- };
|
|
|
+ a: common_vendor.o(changeTime),
|
|
|
+ b: common_vendor.o(($event) => datetimerangeValue.value = $event),
|
|
|
+ c: common_vendor.p({
|
|
|
+ type: "datetimerange",
|
|
|
+ rangeSeparator: "至",
|
|
|
+ ["clear-icon"]: false,
|
|
|
+ modelValue: datetimerangeValue.value
|
|
|
}),
|
|
|
- b: list.value.length
|
|
|
+ d: list.value.length
|
|
|
}, list.value.length ? {
|
|
|
- c: common_vendor.f(list.value, (item, k0, i0) => {
|
|
|
+ e: common_vendor.f(list.value, (item, k0, i0) => {
|
|
|
return common_vendor.e({
|
|
|
a: common_vendor.t(item.type),
|
|
|
b: common_vendor.t(item.location),
|
|
|
@@ -82,13 +73,13 @@ const _sfc_main = {
|
|
|
f: common_vendor.o(($event) => common_vendor.unref(utils_previewImage.previewImage)(item.image), item.id)
|
|
|
} : {}, {
|
|
|
g: item.id,
|
|
|
- h: "132a14af-2-" + i0 + ",132a14af-1"
|
|
|
+ h: "132a14af-3-" + i0 + ",132a14af-2"
|
|
|
});
|
|
|
}),
|
|
|
- d: common_vendor.p({
|
|
|
+ f: common_vendor.p({
|
|
|
customStyle
|
|
|
}),
|
|
|
- e: common_vendor.p({
|
|
|
+ g: common_vendor.p({
|
|
|
activeColor: "#1E7DFB",
|
|
|
direction: "column",
|
|
|
dot: true,
|