fix(项目报告): 修复项目报告无法选择当前日期的问题

--bug=1009783 --user=宋天阳 【报表统计】github#9565,报表统计的时间控件现在今天查询无法满足
https://www.tapd.cn/55049933/s/1096544
This commit is contained in:
song-tianyang 2022-01-22 18:09:19 +08:00 committed by xiaomeinvG
parent 0a193d6421
commit ad7d54b936
2 changed files with 3 additions and 11 deletions

View File

@ -1421,7 +1421,7 @@ public class MockConfigService {
mockExpect.setMockConfigId(mockConfig.getId());
mockExpect.setId(expectInDb.getId());
mockExpect.setUpdateTime(System.currentTimeMillis());
mockExpectConfigMapper.updateByPrimaryKey(mockExpect);
mockExpectConfigMapper.updateByPrimaryKeyWithBLOBs(mockExpect);
}
}

View File

@ -28,13 +28,13 @@
<el-date-picker
size="small"
v-model="option.times"
align="right"
type="datetimerange"
value-format="timestamp"
:range-separator="$t('api_monitor.to')"
:start-placeholder="$t('commons.date.start_date')"
:end-placeholder="$t('commons.date.end_date')"
:picker-options="datePickerOptions"
style="margin-left: 10px;width: 100%">
style="margin-right: 10px;width: 100%">
</el-date-picker>
</div>
<div v-if="option.timeType === 'dynamicTime'" style="width: 70%;margin-left: 20px;float: left">
@ -219,14 +219,6 @@ export default {
id: 'id',
label: 'label',
},
datePickerOptions: {
disabledDate: (time) => {
let nowDate = new Date();
let oneDay = 1000 * 60 * 60 * 24;
let oneYearLater = new Date(nowDate.getTime() + (oneDay * 365));
return time.getTime() > nowDate || time.getTime() > oneYearLater;//||&&
}
},
};
},
created() {