节能减排

This commit is contained in:
jiang 2025-07-24 18:16:13 +08:00
parent 776719ba21
commit dfb5a00d7e
1 changed files with 5 additions and 2 deletions

View File

@ -84,7 +84,8 @@
.layui-layer-title {
border-bottom: 1px solid #008781;
}
.layui-laydate-preview{
.layui-laydate-preview {
color: #FFFFFF !important;
}
@ -186,11 +187,13 @@
laydate = layui.laydate;
let range = getDateRangeOneWeek();
range.startDate = "2024-09-17"
range.endDate = "2024-09-24"
laydate.render({
elem: '#ID-laydate-range',
range: ['#ID-laydate-start-date', '#ID-laydate-end-date'],
btns: ['confirm'],
value: "2024-09-17" + ' - ' + "2024-09-24",
value: range.startDate + ' - ' + range.endDate,
done: function (value) {
// value 是选择的字符串,比如 '2025-06-23 - 2025-07-23'
const [startDateStr, endDateStr] = value.split(" - ");