sbd-npm 1.4.72 → 1.4.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/util.js +8 -5
package/package.json
CHANGED
package/util.js
CHANGED
@@ -54,14 +54,17 @@ const Util = {
|
|
54
54
|
|
55
55
|
// 日期范围选择器配置
|
56
56
|
DateRangePickerOptions: {
|
57
|
+
// 本地化设置
|
57
58
|
locale: {
|
58
59
|
format: 'YYYY-MM-DD',
|
59
60
|
daysOfWeek: ['日', '一', '二', '三', '四', '五', '六'],
|
60
61
|
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
|
61
|
-
firstDay: 1
|
62
|
+
firstDay: 1 // 一周从星期一开始
|
62
63
|
},
|
63
|
-
singleDatePicker: true,
|
64
|
-
singleClasses: "picker_2"
|
64
|
+
singleDatePicker: true, // 单日期选择
|
65
|
+
singleClasses: "picker_2",
|
66
|
+
showDropdowns: true, // 开启年份和月份下拉
|
67
|
+
minDate: '1990-11-26' // 上海证券交易所1990年11月26日正式成立,同年12月19日开始正式营业,深圳证券交易所1991年4月11日经中国人民银行批准成立,同年7月3日正式营业
|
65
68
|
},
|
66
69
|
|
67
70
|
sbd_init: function () {
|
@@ -3633,14 +3636,14 @@ const Util = {
|
|
3633
3636
|
html.push('<div class="form-group">');
|
3634
3637
|
html.push('<label for="', start_id, '"></label>');
|
3635
3638
|
html.push('<div class="col-md-6 col-sm-6 col-xs-12 form-group">');
|
3636
|
-
html.push('<input type="text" class="form-control has-feedback-left" id="', start_id, '" name="', start_id, '" title="开始时间" placeholder="开始时间" value="', start_date, '">');
|
3639
|
+
html.push('<input type="text" class="form-control has-feedback-left" autocomplete="off" id="', start_id, '" name="', start_id, '" title="开始时间" placeholder="开始时间" value="', start_date, '">');
|
3637
3640
|
html.push('<span class="fa fa-calendar-o form-control-feedback left" aria-hidden="true"></span>');
|
3638
3641
|
html.push('</div>');
|
3639
3642
|
html.push('</div>');
|
3640
3643
|
html.push('<div class="form-group" style="margin-left: -15px;">');
|
3641
3644
|
html.push('<label for="', end_id, '"></label>');
|
3642
3645
|
html.push('<div class="col-md-6 col-sm-6 col-xs-12 form-group">');
|
3643
|
-
html.push('<input type="text" class="form-control has-feedback-left" id="', end_id, '" name="', end_id, '" title="结束时间" placeholder="结束时间" value="', end_date, '">');
|
3646
|
+
html.push('<input type="text" class="form-control has-feedback-left" autocomplete="off" id="', end_id, '" name="', end_id, '" title="结束时间" placeholder="结束时间" value="', end_date, '">');
|
3644
3647
|
html.push('<span class="fa fa-calendar-o form-control-feedback left" aria-hidden="true"></span>');
|
3645
3648
|
html.push('</div>');
|
3646
3649
|
html.push('</div>');
|