var dateParm = ''
lay('#version').html('-v' + laydate.v);
$Date = laydate;
//季节选择
renderSeasonDate(document.getElementById('date'), 1);
/**
* 季度初始化
* @param ohd 季度input dom对象非jquery对象
* @param sgl 有值单个,无值默认范围
*/
function renderSeasonDate(ohd, sgl) {
var ele = $(ohd);
$Date.render({
elem: ohd,
type: 'month',
format: 'yyyy年M季度',
min: "1900-1-1",
max: "2099-12-31",
btns: ['clear', 'confirm'],
ready: function(value, date, endDate) {
var hd = $("#layui-laydate" + ele.attr("lay-key"));
if(hd.length > 0) {
hd.click(function() {
ren($(this));
});
}
ren(hd);
},
done: function(value, date, endDate) {
if(!isNull(date) && date.month > 0 && date.month < 5) {
ele.attr("startDate", date.year + "-" + date.mo
layui实现季度选择
最新推荐文章于 2023-06-28 16:07:43 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)