|
|
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"});
|
|
|
new common.dropDown({el: "#subject-status"});
|
|
|
|
|
|
new common.dropDown({el: "#subject-isShow"});
|
|
|
var yhChannelArr = ["男生", "女生", "儿童", "创意生活"];
|
|
|
|
|
|
var g = new common.grid({
|
...
|
...
|
@@ -14,7 +15,11 @@ var g = new common.grid({ |
|
|
return {
|
|
|
sort: common.util.__input('subject-type'),
|
|
|
plateform: common.util.__input('subject-paltform'),
|
|
|
status: common.util.__input('subject-status')
|
|
|
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: [
|
...
|
...
|
@@ -73,6 +78,10 @@ var g = new common.grid({ |
|
|
item.endTime = common.util.__dateFormat(new Date(item.endTime*1000), "yyyy-MM-dd hh:mm:ss");
|
|
|
return item.startTime + "~<br>" + item.endTime;
|
|
|
}},
|
|
|
{display: "前端展示",name:"isShow", render: function (item) {
|
|
|
if(item.isShow == 1) return "是";
|
|
|
else if(item.isShow == 0) return "否";
|
|
|
}},
|
|
|
{
|
|
|
display: "操作", name: "", render: function (item) {
|
|
|
var arr = [];
|
...
|
...
|
@@ -87,6 +96,13 @@ var g = new common.grid({ |
|
|
|
|
|
]
|
|
|
});
|
|
|
/**
|
|
|
* 日期插件
|
|
|
*/
|
|
|
$('.hasDatepicker').fdatepicker({
|
|
|
format: 'yyyy-mm-dd hh:ii:ss',
|
|
|
pickTime: true
|
|
|
});
|
|
|
|
|
|
g.init('/runManage/subjectManage/subjectList');
|
|
|
|
...
|
...
|
|