|
|
@@ -472,15 +472,8 @@ const query = function getQueryForm(data) {
|
|
|
dateTime.attr('title', controlJsType(condition.tip[0], 'undefined') ? '' : condition.tip[0]);
|
|
|
let min = $("<input id='" + condition.name + "_min' class='form-control form-control-sm ml-2' style='max-width: 100px;' placeholder='00:00' data-toggle='tooltip' data-placement='top' >");
|
|
|
min.attr('title', controlJsType(condition.tip[1], 'undefined') ? '' : condition.tip[1]);
|
|
|
- dateTime.blur(function(){
|
|
|
- let value = this.value !== '' ? this.value + ' ' +(!!min.val() ? min.val() :'00:00' ) : '';
|
|
|
- modifyData( {name: condition.name, type: 'time', value: value, mold: 'time'});
|
|
|
- });
|
|
|
- dateTime.keypress(function(event){
|
|
|
- if(event.which === 13){
|
|
|
- let value = this.value !== '' ? this.value + ' ' +(!!min.val() ? min.val() :'00:00' ) : '';
|
|
|
- modifyData({name: this.name, type: 'input_select_longtext', value: value, mold: 'input'});
|
|
|
- }
|
|
|
+ dateTime.bind('input propertychange', function () {
|
|
|
+ modifyData({name: condition.name, type: 'dateTime', value: this.value, mold: 'dateTime'});
|
|
|
});
|
|
|
min.bind('input propertychange', function () {
|
|
|
if (['null', 'undefined', ''].includes(dateTime.val()))return;
|