Browse Source

修改显示

ajun 4 năm trước cách đây
mục cha
commit
60be91ffed
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      resources/js/queryForm/queryForm.js

+ 3 - 1
resources/js/queryForm/queryForm.js

@@ -519,7 +519,9 @@ const query = function getQueryForm(data) {
         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.bind('input propertychange', function () {
-            let value = this.value !== '' ? this.value + ' ' + (!!min.val() ? min.val() : '23:59') : '';
+            let hm = '00:00';
+            if(!condition.name.includes('start'))hm = '23:59';
+            let value = this.value !== '' ? this.value + ' ' + (!!min.val() ? min.val() : hm) : '';
             modifyData({name: condition.name, type: 'time', value: value, mold: 'time'});
             // modifyData({name: condition.name, type: 'dateTime', value: this.value, mold: 'dateTime'});
         });