feature: task
This commit is contained in:
parent
50e27370dd
commit
7b268b1b84
|
|
@ -133,6 +133,11 @@ class Schedule extends Backend
|
|||
return json($result);
|
||||
}
|
||||
|
||||
$timeType = [
|
||||
1 => '本月排班',
|
||||
2 => '本周排班',
|
||||
];
|
||||
$this->view->assign("timetype", $timeType);
|
||||
return $this->view->fetch();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -17,3 +17,48 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script id="customformtpl" type="text/html">
|
||||
<!--form表单必须添加form-commsearch这个类-->
|
||||
<form action="" class="form-commonsearch">
|
||||
<div style="border-radius:2px;margin-bottom:10px;background:#f5f5f5;padding:15px 20px;">
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-6 col-md-3" style="min-height:68px;">
|
||||
<!--这里添加68px是为了避免刷新时出现元素错位闪屏-->
|
||||
<div class="form-group">
|
||||
<label class="control-label">时间范围</label>
|
||||
<input type="hidden" class="operate" data-name="timetype" value="in"/>
|
||||
<div>
|
||||
<select id="c-flag" class="form-control selectpicker" name="timetype" style="height:31px;">
|
||||
{foreach name="timetype" item="vo"}
|
||||
<option value="{$key}" {in name="key" value="" }selected{/in}>{$vo}</option>
|
||||
{/foreach}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-6 col-md-3">
|
||||
<div class="form-group">
|
||||
<label class="control-label">创建时间</label>
|
||||
<input type="hidden" class="operate" data-name="createtime" value="RANGE"/>
|
||||
<div>
|
||||
<input type="text" class="form-control datetimerange" name="createtime" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-6 col-md-3">
|
||||
<div class="form-group">
|
||||
<label class="control-label"></label>
|
||||
<div class="row">
|
||||
<div class="col-xs-6">
|
||||
<input type="submit" class="btn btn-success btn-block" value="提交"/>
|
||||
</div>
|
||||
<div class="col-xs-6">
|
||||
<input type="reset" class="btn btn-primary btn-block" value="重置"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -91,7 +91,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|||
// 初始化表格
|
||||
table.bootstrapTable({
|
||||
url: $.fn.bootstrapTable.defaults.extend.index_url,
|
||||
columns: columnArr
|
||||
columns: columnArr,
|
||||
searchFormVisible: true,
|
||||
searchFormTemplate: 'customformtpl',
|
||||
});
|
||||
|
||||
// 为表格绑定事件
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user