@@ -50,4 +50,10 @@ class MyTeam extends Backend
$this->assign('date',$date);
return $this->fetch();
}
+
+ public function profit_static(){
+ list($date,$dateArr)=$this->rangeTime('date');
+ $this->assign('date',$date);
+ return $this->fetch();
+ }
@@ -0,0 +1,18 @@
+<style>
+ .content{
+ background: white;
+</style>
+<form class="form-inline form" role="form">
+ <div class="form-group">
+ <label for="time">时间段</label>
+ <input type="text" name="date" value="{$date}" class="form-control datetimerange" id="time" placeholder="选择时间" style="width: 300px;">
+ </div>
+ <div class="form-group" style="text-align: right">
+ <button type="submit" class="btn btn-primary doSearch">确定</button>
+ <input type="hidden" name="dialog" value="{:input('dialog')}">
+</form>
+<script>
+ let defDate='{$date}';
+</script>
@@ -113,6 +113,9 @@ define(['jquery', 'bootstrap', 'backend', 'addtabs', 'table', 'echarts', 'echart
});
Table.api.bindevent(table);
Table.api.bindevent(table1);
- }
+ },
+ profit_static() {
+ Form.events.daterangepicker($('.form'))
};