Merge branch 'sprint/169_zhouxin_43618' into 'sprint/169'

Finish task #43618.

See merge request easycorp/zentaopms!199
This commit is contained in:
孙广明
2021-10-28 05:24:56 +00:00
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ $('#future').on('change', function()
{
if($(this).prop('checked'))
{
$('#begin').val('').attr('disabled', 'disabled');
$('#begin').attr('disabled', 'disabled');
$('#end').val('').parents('tr').hide();
}
else
+4 -1
View File
@@ -43,11 +43,14 @@ $('#future').on('change', function()
{
if($(this).prop('checked'))
{
$('#begin').val('').attr('disabled', 'disabled');
$('#begin').attr('disabled', 'disabled');
$('#end').val('').parents('tr').hide();
}
else
{
var begin = $('#begin').val();
if(begin == '') $('#begin').val(today);
$('#begin').removeAttr('disabled');
$('#end').parents('tr').show();
}
+1
View File
@@ -14,6 +14,7 @@
<?php include '../../common/view/kindeditor.html.php';?>
<?php js::set('weekend', $config->execution->weekend);?>
<?php js::import($jsRoot . 'misc/date.js');?>
<?php js::set('today', helper::today());?>
<div id='mainContent' class='main-content'>
<div class='center-block'>
<div class='main-header'>