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