diff --git a/pmcalendar.php b/pmcalendar.php
index cfa73ee..0cb3b74 100644
--- a/pmcalendar.php
+++ b/pmcalendar.php
@@ -110,8 +110,8 @@ $issxarole = in_array($user['name'], $SXAROLES); //可以添加上线卡片
$isyqeroles = in_array($user['name'], $YQEROLES);
//调试
-//$user['name'] = "罗松柏";
-//$canEdit = 1;
+$user['name'] = "罗松柏";
+$canEdit = 1;
//$isgxyyerole=1;
//$isgxcperole=1;
//$isgxyferole=1;
@@ -1028,6 +1028,7 @@ if ($act == 'newevent') {
.recording-box { margin: 10px 20px 0 20px; color:#626262; font-size: 12px; }
.recording—title { font-size: 16px; color:#686868; }
.recording—name { float: right; }
+ .recording—con-box { margin-top: -16px; padding-bottom: 50px; }
-
+
延迟记录
@@ -1221,9 +1222,9 @@ if ($act == 'newevent') {
@@ -2334,17 +2335,31 @@ if ($act == 'newevent') {
$("#yyfujian").empty();
$("#yffujian").empty();
// console.log(res.chanpin_remark)
-
- if(res.yanqi_history != null){
- var recording = JSON.parse(res.yanqi_history);
- for(let i in recording){
- recording[i]['project'] = res.game;
- recording[i]['type'] = res.event;
+ if(res.event == '打包' || res.event=="更新"){//延期记录只有打包和更新才有
+ console.log(8888)
+ if(res.yanqi_history != null){
+ var recording = JSON.parse(res.yanqi_history);
+ for(let i in recording){
+ recording[i]['project'] = res.game;
+ recording[i]['type'] = res.event;
+ var date1 = new Date(recording[i].date1);
+ var timec1 = Date.parse(date1)/1000;
+ var date2 = new Date(recording[i].date2);
+ var timec2 = Date.parse(date2)/1000;
+ if(timec1 > timec2){
+ recording[i]['timetype'] = "提前";
+ }else {
+ recording[i]['timetype'] = "延期";
+ }
+ }
+ // console.log(recording)
+ tmpltxt = doT.template(document.getElementById("recording-dot").innerHTML);//生成模板方法
+ document.getElementById("recording-content").innerHTML = tmpltxt(recording);//数据渲染
}
- console.log(recording)
- tmpltxt = doT.template(document.getElementById("recording-dot").innerHTML);//生成模板方法
- document.getElementById("recording-content").innerHTML = tmpltxt(recording);//数据渲染
+ }else {
+ $("#recording-box").css('display','none');
}
+
if (res.chanpin_remark != "" && res.chanpin_remark != null) {
var chanpin_remark = JSON.parse(res.chanpin_remark)