Authored by xuhongyun

build

@@ -96,13 +96,13 @@ webpackJsonp([42],[ @@ -96,13 +96,13 @@ webpackJsonp([42],[
96 activeTab = t.options.active; 96 activeTab = t.options.active;
97 97
98 g.options.columns[12].hidden = true; 98 g.options.columns[12].hidden = true;
99 - g.options.columns[9].hidden = true; 99 + g.options.columns[9].hidden = false; // 搜索与便签每个标签都显示
100 if (columnname == 3) { 100 if (columnname == 3) {
101 isInfoMiss = 'Y'; 101 isInfoMiss = 'Y';
102 g.options.columns[12].hidden = false; 102 g.options.columns[12].hidden = false;
103 } else { 103 } else {
104 isInfoMiss = ''; 104 isInfoMiss = '';
105 - g.options.columns[9].hidden = false; 105 + //g.options.columns[9].hidden = false; //
106 } 106 }
107 107
108 if (columnname == 1 || columnname == 2 || columnname == 3 || columnname == 4) { 108 if (columnname == 1 || columnname == 2 || columnname == 3 || columnname == 4) {
@@ -326,7 +326,7 @@ webpackJsonp([42],[ @@ -326,7 +326,7 @@ webpackJsonp([42],[
326 } 326 }
327 }, { 327 }, {
328 display: '搜索/标签', 328 display: '搜索/标签',
329 - hidden: true, 329 + hidden: false,
330 render: function (item) { 330 render: function (item) {
331 var searchAndLabel = item.searchAndLabel ? item.searchAndLabel : '', 331 var searchAndLabel = item.searchAndLabel ? item.searchAndLabel : '',
332 style = item.style ? item.style : '', 332 style = item.style ? item.style : '',
@@ -26,7 +26,9 @@ webpackJsonp([82],[ @@ -26,7 +26,9 @@ webpackJsonp([82],[
26 {display:"单券号",name:"couponCode"}, 26 {display:"单券号",name:"couponCode"},
27 {display:"订单号",name:"orderCode"}, 27 {display:"订单号",name:"orderCode"},
28 {display:"优惠券名称",name:"couponName"}, 28 {display:"优惠券名称",name:"couponName"},
29 - {display:"有效期",name:"endTimeStr"}, 29 + {display:"有效期", render: function(item) {
  30 + return '<p>' + date_fuction(item.startTime) + '--' + item.endTimeStr + '</p>';
  31 + }},
30 {display:"状态",render: function(item) { 32 {display:"状态",render: function(item) {
31 var status = ""; 33 var status = "";
32 if(item.status == 0) { 34 if(item.status == 0) {
@@ -124,5 +126,21 @@ webpackJsonp([82],[ @@ -124,5 +126,21 @@ webpackJsonp([82],[
124 }); 126 });
125 127
126 128
  129 +
  130 + function date_fuction(shijianchuo)
  131 + {
  132 + //shijianchuo是整数,否则要parseInt转换
  133 + var time = new Date(shijianchuo * 1000);
  134 + var y = time.getFullYear();
  135 + var m = time.getMonth()+1;
  136 + var d = time.getDate();
  137 + var h = time.getHours();
  138 + var mm = time.getMinutes();
  139 + var s = time.getSeconds();
  140 + return y+'-'+add0(m)+'-'+add0(d)+' '+add0(h)+':'+add0(mm)+':'+add0(s);
  141 + }
  142 +
  143 + function add0(m){return m<10?'0'+m:m }
  144 +
127 /***/ } 145 /***/ }
128 ]); 146 ]);