完善营销信息录入功能
This commit is contained in:
parent
d407560620
commit
c02a4fb2fa
@ -401,9 +401,9 @@ const {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// 只有当checkType为'9'时才显示编辑按钮
|
// 只有当checkType为'9'时才显示编辑按钮
|
||||||
// if (row.checkFlag !== '9') {
|
if (row.checkFlag !== '9') {
|
||||||
// return null;
|
return null;
|
||||||
// }
|
}
|
||||||
return (
|
return (
|
||||||
<div class="flex-center gap-8px">
|
<div class="flex-center gap-8px">
|
||||||
{editBtn()}
|
{editBtn()}
|
||||||
|
@ -530,18 +530,18 @@ function getDateRange() {
|
|||||||
if (props.operateType === 'add') {
|
if (props.operateType === 'add') {
|
||||||
// 新增时限制为当月
|
// 新增时限制为当月
|
||||||
const startOfMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
const startOfMonth = new Date(now.getFullYear(), now.getMonth(), 1);
|
||||||
const endOfMonth = new Date(now.getFullYear(), now.getMonth() + 1, 0);
|
// const endOfMonth = new Date(now.getFullYear(), now.getMonth() + 1, 0);
|
||||||
return {
|
return {
|
||||||
startDate: startOfMonth.getTime(),
|
startDate: startOfMonth.getTime(),
|
||||||
endDate: endOfMonth.getTime()
|
endDate: now
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
// 修改时限制为上月+本月
|
// 修改时限制为上月+本月
|
||||||
const startOfLastMonth = new Date(now.getFullYear(), now.getMonth() - 1, 1);
|
const startOfLastMonth = new Date(now.getFullYear(), now.getMonth() - 1, 1);
|
||||||
const endOfLastMonth = new Date(now.getFullYear(), now.getMonth()+1, 0);
|
// const endOfLastMonth = new Date(now.getFullYear(), now.getMonth()+1, 0);
|
||||||
return {
|
return {
|
||||||
startDate: startOfLastMonth.getTime(),
|
startDate: startOfLastMonth.getTime(),
|
||||||
endDate: endOfLastMonth.getTime()
|
endDate: now
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user