|
@@ -18,6 +18,7 @@
|
|
|
<th>爬虫代码</th>
|
|
|
<th>网站名称</th>
|
|
|
<th>栏目名称</th>
|
|
|
+ <th>平台</th>
|
|
|
<th>节点</th>
|
|
|
<th>任务状态</th>
|
|
|
<th>类型</th>
|
|
@@ -51,37 +52,9 @@
|
|
|
|
|
|
},
|
|
|
"columnDefs": [
|
|
|
- { "orderable": false, "targets": [0,1,2,3,4,5,10,11] },
|
|
|
- //爬虫挂起
|
|
|
- // {"targets":[11], createdCell: function (cell, cellData, rowData, rowIndex, colIndex) {
|
|
|
- // var aInput;
|
|
|
- // $(cell).click(function () {
|
|
|
- // if( rowData.i_state == "关闭"||rowData.i_pendstate ==1 ){//任务不能由挂起转为非挂起状态;关闭任务不能挂起操作
|
|
|
- // return
|
|
|
- // }
|
|
|
- // $(this).html(createComboxPendState(rowData.s_code,rowData._id));
|
|
|
- // var aInput = $(this).find(":input");
|
|
|
- // aInput.focus().val(cellData);
|
|
|
- // });
|
|
|
- // $(cell).on("click", ":input", function (e) {
|
|
|
- // e.stopPropagation();
|
|
|
- // });
|
|
|
- // $(cell).on("change", ":input", function () {
|
|
|
- // $(this).blur();
|
|
|
- // });
|
|
|
- // $(cell).on("blur", ":input", function () {
|
|
|
- // var text = $(this).find("option:selected").text();
|
|
|
- // if(text == "否"){
|
|
|
- // text = 0
|
|
|
- // }else if(text == "是"){
|
|
|
- // text = 1
|
|
|
- // }
|
|
|
- // mytask.cell(cell).data(text);
|
|
|
- // cellData = text;
|
|
|
- // });
|
|
|
- // }}
|
|
|
- ],
|
|
|
- "order": [[10,"desc"]], //默认排序列
|
|
|
+ { "orderable": false, "targets": [0,1,2,3,4,5,6,12] },
|
|
|
+ ],
|
|
|
+ "order": [[11,"desc"]], //默认排序列
|
|
|
"lengthChange":false,
|
|
|
"serverSide": true,
|
|
|
"searching": true,
|
|
@@ -92,6 +65,12 @@
|
|
|
{"data":"s_code"},
|
|
|
{"data": "s_site"},
|
|
|
{"data": "s_channel"},
|
|
|
+ {"data": "s_platform",render:function(val,a,row){
|
|
|
+ if (val == null || val == undefined){
|
|
|
+ return "golua平台"
|
|
|
+ }
|
|
|
+ return val
|
|
|
+ }},
|
|
|
{"data": "i_event"},
|
|
|
{"data": "i_state","width":"5%",render:function(val,a,row){
|
|
|
if (val == 0){
|