Authored by wangwei

专题管理

... ... @@ -16,7 +16,9 @@ module.exports={
{name: 'title', type: 'string'},
{name: 'plateform', type: 'string'},
{name: 'status', type: 'number'},
{name: 'isShow', type: 'number'}
{name: 'isShow', type: 'number'},
{name:'startTimeStr',type:'string'},
{name:'endTimeStr',type:'string'}
]
},
addSpecialActivity:{
... ...
... ... @@ -9,6 +9,10 @@
<div class="panel-body">
<div class="row">
<div class="panel-col">
<input type="text" id="subject-title" placeholder="标题" name="title"
class="form-control">
</div>
<div class="panel-col">
<select name="sort" id="subject-type" tabindex="-1" title="" class="select2-offscreen brandBtn-group">
<option value="" selected="">类型</option>
<option value="1">奥莱</option>
... ... @@ -41,10 +45,18 @@
<option value="" selected="">是否展示</option>
<option value="1"></option>
<option value="0"></option>
</select>
</div>
<div class="panel-col">
<input type="text" id="subject-startTimeStr" class="form-control panel-input hasDatepicker" name="startTimeStr"
placeholder="开始时间" value="" kl_vkbd_parsed="true" readonly>
</div>
<div class="panel-col">
<input type="text" id="subject-endTimeStr" class="form-control panel-input hasDatepicker" name="endTimeStr"
placeholder="结束时间" value="" kl_vkbd_parsed="true" readonly>
</div>
<div class="panel-col">
<a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
<a id="filter-all" href="/runManage/subjectManage/index" class="btn btn-info">全部</a>
</div>
... ...
var $ = require('jquery'),
common = require('../../../common/common'),
util = require('../../../common/util');
datepicker = require('../../../common/util/datepicker');
new common.dropDown({el: "#subject-type"});
new common.dropDown({el: "#subject-paltform"});
... ... @@ -16,6 +17,9 @@ var g = new common.grid({
plateform: common.util.__input('subject-paltform'),
status: common.util.__input('subject-status'),
isShow: common.util.__input('subject-isShow'),
startTimeStr:common.util.__input('subject-startTimeStr'),
endTimeStr:common.util.__input('subject-endTimeStr'),
title:common.util.__input('subject-title'),
};
},
columns: [
... ... @@ -92,6 +96,13 @@ var g = new common.grid({
]
});
/**
* 日期插件
*/
$('.hasDatepicker').fdatepicker({
format: 'yyyy-mm-dd hh:ii:ss',
pickTime: true
});
g.init('/runManage/subjectManage/subjectList');
... ...