Showing
1 changed file
with
9 additions
and
0 deletions
| ... | @@ -213,6 +213,15 @@ onMounted(() => { | ... | @@ -213,6 +213,15 @@ onMounted(() => { |
| 213 | // 设置默认值 | 213 | // 设置默认值 |
| 214 | currentDate.value = [Year, Month, Day]; | 214 | currentDate.value = [Year, Month, Day]; |
| 215 | currentTime.value = [Hour, Minute]; | 215 | currentTime.value = [Hour, Minute]; |
| 216 | + // 设置默认最大最小日期 | ||
| 217 | + if (data_minvalue.split(" ")[0].length) { | ||
| 218 | + const min = data_minvalue.split(" ")[0].split("-"); | ||
| 219 | + minDate.value = new Date(+min[0], +min[1] - 1, +min[2]); | ||
| 220 | + } | ||
| 221 | + if (data_maxvalue.split(" ")[0].length) { | ||
| 222 | + const max = data_maxvalue.split(" ")[0].split("-") | ||
| 223 | + maxDate.value = new Date(+max[0], +max[1] - 1, +max[2]) | ||
| 224 | + } | ||
| 216 | // 设置默认最大最小时间 | 225 | // 设置默认最大最小时间 |
| 217 | if (data_minvalue.split(" ")[1]) { | 226 | if (data_minvalue.split(" ")[1]) { |
| 218 | minTime.value = data_minvalue.split(" ")[1]; | 227 | minTime.value = data_minvalue.split(" ")[1]; | ... | ... |
-
Please register or login to post a comment