feat:小bug
This commit is contained in:
1 parent
f722106984
commit
dcd391235e
4 files changed
+10
-10
No files matched your search
@@ -57,10 +57,10 @@ const props = defineProps({
|
||||
},
|
||||
});
|
||||
|
||||
const activeSegment = ref(props.segments[0].value || "YESTERDAY");
|
||||
const activeSegment = ref(props.segments[1].value || "TODAY");
|
||||
|
||||
if (Array.isArray(props.segments) && props.segments.length > 0) {
|
||||
activeSegment.value = props.segments[0].value;
|
||||
activeSegment.value = props.segments[1].value;
|
||||
}
|
||||
|
||||
const curList = computed(() => {
|
||||
|
||||
@@ -65,12 +65,12 @@ const props = defineProps({
|
||||
});
|
||||
|
||||
const colors = ["#31D3A4", "#1AD0F9", "#5470C6", "#FFC83D", "#FF6B6B", "#9B59B6"];
|
||||
const activeSegment = ref(props.segments[0].value || "TODAY");
|
||||
const activeSegment = ref(props.segments[1].value || "TODAY");
|
||||
const chartRef = useTemplateRef("chartRef");
|
||||
let chartInstance = null;
|
||||
|
||||
if (Array.isArray(props.segments) && props.segments.length > 0) {
|
||||
activeSegment.value = props.segments[0].value;
|
||||
activeSegment.value = props.segments[1].value;
|
||||
}
|
||||
|
||||
const total = computed(() => {
|
||||
|
||||
@@ -97,7 +97,7 @@ const timerObj = reactive({
|
||||
initial: null,
|
||||
interval: 10 * 1000,
|
||||
queryParams: {
|
||||
dateRangeType: "YESTERDAY",
|
||||
dateRangeType: "TODAY",
|
||||
},
|
||||
data: null,
|
||||
},
|
||||
@@ -106,7 +106,7 @@ const timerObj = reactive({
|
||||
initial: null,
|
||||
interval: 10 * 1000,
|
||||
queryParams: {
|
||||
dateRangeType: "YESTERDAY",
|
||||
dateRangeType: "TODAY",
|
||||
current: 1,
|
||||
size: 30,
|
||||
},
|
||||
@@ -423,7 +423,7 @@ const getCanteenOrderList = () => {
|
||||
timerObj.canteenOrderPage.data = data.records.map((v) => {
|
||||
return {
|
||||
tag: v.merchantName,
|
||||
name: `${v.productDesc},共${v.payPrice}元`,
|
||||
name: `${v.productDesc},共${displayPrice(v.payPrice)}元`,
|
||||
time: v.createTime,
|
||||
};
|
||||
});
|
||||
|
||||
+3
-3
@@ -27,7 +27,7 @@
|
||||
<div class="main">
|
||||
<AsideBlock height="calc(100% * 2 / 3)" titleBgWidth="50%">
|
||||
<template #header>
|
||||
<span>实时视频</span>
|
||||
<span>超市报表</span>
|
||||
<div class="report-search">
|
||||
<el-date-picker style="width: 20vw;" v-model="queryParams.createTimeList" type="datetimerange" size="small"
|
||||
placeholder="请选择日期" format="YYYY-MM-DD HH:mm:ss" value-format="YYYY-MM-DD HH:mm:ss"
|
||||
@@ -104,7 +104,7 @@ const timerObj = reactive({
|
||||
interval: 10 * 1000,
|
||||
data: null,
|
||||
queryParams: {
|
||||
dateRangeType: "YESTERDAY"
|
||||
dateRangeType: "TODAY"
|
||||
},
|
||||
},
|
||||
// 超市购买实时统计
|
||||
@@ -317,7 +317,7 @@ const getAlarmListData = () => {
|
||||
timerObj.shopOrder.data = data.records.map((v) => {
|
||||
return {
|
||||
tag: v.merchantName,
|
||||
name: `${v.productDesc},共${v.payPrice}元`,
|
||||
name: `${v.productDesc},共${displayPrice(v.payPrice)}元`,
|
||||
time: v.createTime,
|
||||
};
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user