删除部分manager不用的图片,压缩图片大小,修改统计时测出的bug

This commit is contained in:
lemon橪
2021-09-02 11:17:11 +08:00
parent 71e4c49c3e
commit 7f46528086
37 changed files with 56 additions and 100 deletions

View File

@@ -1,14 +1,18 @@
<template>
<div>
<div class="breadcrumb">
<span @click="clickBreadcrumb(item,index)" :class="{'active':item.selected}" v-for="(item,index) in dateList" :key="index"> {{item.title}}</span>
<span @click="clickBreadcrumb(item,index)" :class="{'active':item.selected}" v-for="(item,index) in dateList"
:key="index"> {{item.title}}</span>
<div class="date-picker">
<Select @on-change="changeSelect(selectedWay)" v-model="month" placeholder="年月查询" style="width:200px;margin-left:10px;">
<Option v-for="(item,index) in dates" :value="item.year+'-'+item.month" :key="index">{{ item.year+''+item.month+'' }}</Option>
<Select @on-change="changeSelect(selectedWay)" v-model="month" placeholder="年月查询"
style="width:200px;margin-left:10px;">
<Option v-for="(item,index) in dates" :value="item.year+'-'+item.month" :key="index">
{{ item.year+''+item.month+'' }}</Option>
</Select>
</div>
<div class="shop-list" v-if="!closeShop">
<Select clearable @on-change="changeshop(selectedWay)" v-model="storeId" placeholder="店铺查询" style="width:200px;margin-left:10px;">
<Select clearable @on-change="changeshop(selectedWay)" v-model="storeId" placeholder="店铺查询"
style="width:200px;margin-left:10px;">
<Scroll :on-reach-bottom="handleReachBottom">
<Option v-for="(item,index) in shopsData" :value="item.id" :key="index">{{ item.storeName }}</Option>
</Scroll>
@@ -24,20 +28,23 @@ export default {
data() {
return {
month: "", // 月份
selectedWay: { // 可选时间项
selectedWay: {
// 可选时间项
title: "最近7天",
selected: true,
searchType: "LAST_SEVEN",
},
storeId: "", // 店铺id
dates: [], // 日期列表
params: { // 请求参数
params: {
// 请求参数
pageNumber: 1,
pageSize: 10,
storeName: "",
},
dateList: [ // 筛选条件
dateList: [
// 筛选条件
{
title: "今天",
selected: false,
@@ -71,7 +78,6 @@ export default {
methods: {
// 页面触底
handleReachBottom() {
setTimeout(() => {
if (this.params.pageNumber * this.params.pageSize <= this.shopTotal) {
this.params.pageNumber++;
@@ -144,7 +150,15 @@ export default {
this.month = "";
if (item.searchType == "") {
item.searchType = "LAST_SEVEN";
if (
dateList.some((date) => {
return date.title == item.title;
})
) {
item.searchType = date.searchType;
} else {
item.searchType = "LAST_SEVEN";
}
}
this.selectedWay = item;

View File

@@ -78,7 +78,7 @@ export default {
},
},
{
title: "优惠券类型",
title: "活动范围",
key: "activityScope",
minWidth: 120,
render: (h, params) => {