前端
This commit is contained in:
parent
1f0d486f30
commit
d88ad0bcd3
@ -444,19 +444,19 @@ if ($act == 'newevent') {
|
||||
<div class='data-box'>
|
||||
<img src="assets/images/gengxin.png"/>
|
||||
<!-- <p class="data-name">更新</p> -->
|
||||
<p class="data-num" id="gengxinnum">17</p>
|
||||
<p class="data-num" id="gengxinnum"></p>
|
||||
</div>
|
||||
|
||||
<div class='data-box'>
|
||||
<img src="assets/images/xiufu.png"/>
|
||||
<!-- <p class="data-name">修复</p> -->
|
||||
<p class="data-num" id="xiufunum">17</p>
|
||||
<p class="data-num" id="xiufunum"></p>
|
||||
</div>
|
||||
|
||||
<div class='data-box'>
|
||||
<img src="assets/images/jeidian.png"/>
|
||||
<!-- <p class="data-name">节点</p> -->
|
||||
<p class="data-num" id="jeidiannum">17</p>
|
||||
<p class="data-num" id="jeidiannum"></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class='data_box' id='data_box'>
|
||||
@ -1202,10 +1202,10 @@ if ($act == 'newevent') {
|
||||
eventClick: function (calEvent, jsEvent, view) {
|
||||
console.log(calEvent.className[0])
|
||||
notid = calEvent.id;
|
||||
if ("<?=$canEdit?>" != "1") {
|
||||
// if ("<?=$canEdit?>" != "1") {
|
||||
|
||||
if (calEvent.className[0] == 'label-danger') {
|
||||
if ("<?=$isgxvrole?>" != "1" && "<?=$isgxyyerole?>" != "1" && "<?=$isgxcperole?>" != "1" && "<?=$isgxyferole?>" != "1") {
|
||||
if ("<?=$isgxvrole?>" != "1" && "<?=$isgxyyerole?>" != "1" && "<?=$isgxcperole?>" != "1" && "<?=$isgxyferole?>" != "1" && "<?=$canEdit?>" != "1") {
|
||||
return
|
||||
} else {
|
||||
$('#uploader').attr('action', './?app=uploader&id=' + calEvent.id + '&bumen=chanpin&act=add');
|
||||
@ -1232,7 +1232,7 @@ if ($act == 'newevent') {
|
||||
}
|
||||
;
|
||||
} else if (calEvent.className[0] == 'label-purple') {
|
||||
if ("<?=$isxfvrole?>" != "1" && "<?=$isxfyyerole?>" != "1") {
|
||||
if ("<?=$isxfvrole?>" != "1" && "<?=$isxfyyerole?>" != "1" && "<?=$canEdit?>" != "1") {
|
||||
return
|
||||
} else {
|
||||
$('#uploader').attr('action', './?app=uploader&id=' + calEvent.id + '&bumen=chanpin&act=add');
|
||||
@ -1261,31 +1261,29 @@ if ($act == 'newevent') {
|
||||
} else {
|
||||
return
|
||||
}
|
||||
}
|
||||
// }else {
|
||||
// $('#uploader').attr('action', './?app=uploader&id=' + calEvent.id + '&bumen=chanpin&act=add');
|
||||
// $('#uploader_yy').attr('action', './?app=uploader&id=' + calEvent.id + '&bumen=yunyig&act=add')
|
||||
// $("#uploader_yf").attr('action', './?app=uploader&id=' + calEvent.id + '&bumen=yanfa&act=add')
|
||||
|
||||
// //console.log($('#uploader').attr('action'))
|
||||
|
||||
$('#uploader').attr('action', './?app=uploader&id=' + calEvent.id + '&bumen=chanpin&act=add');
|
||||
$('#uploader_yy').attr('action', './?app=uploader&id=' + calEvent.id + '&bumen=yunyig&act=add')
|
||||
$("#uploader_yf").attr('action', './?app=uploader&id=' + calEvent.id + '&bumen=yanfa&act=add')
|
||||
|
||||
//console.log($('#uploader').attr('action'))
|
||||
|
||||
dict = {};
|
||||
$.post('./?app=pmcalendar&act=getEventByid', {id: calEvent.id}, function (txt) {
|
||||
var j = JSON.parse(txt);
|
||||
dict.start = j.start;
|
||||
dict.end = j.end;
|
||||
dict.id = calEvent.id;
|
||||
$('#game').val(j.game);
|
||||
$('#hour').val(j.shour);
|
||||
$('#min').val(j.smin);
|
||||
$('#event').val(j.event);
|
||||
$('#title').val(j.title);
|
||||
hourChange($('#hour'));
|
||||
});
|
||||
dstr = $.fullCalendar.formatDate(calEvent.start, 'yyyy-MM-dd');
|
||||
showEventData(calEvent.id);
|
||||
|
||||
// dict = {};
|
||||
// $.post('./?app=pmcalendar&act=getEventByid', {id: calEvent.id}, function (txt) {
|
||||
// var j = JSON.parse(txt);
|
||||
// dict.start = j.start;
|
||||
// dict.end = j.end;
|
||||
// dict.id = calEvent.id;
|
||||
// $('#game').val(j.game);
|
||||
// $('#hour').val(j.shour);
|
||||
// $('#min').val(j.smin);
|
||||
// $('#event').val(j.event);
|
||||
// $('#title').val(j.title);
|
||||
// hourChange($('#hour'));
|
||||
// });
|
||||
// dstr = $.fullCalendar.formatDate(calEvent.start, 'yyyy-MM-dd');
|
||||
// showEventData(calEvent.id);
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
@ -1434,17 +1432,17 @@ if ($act == 'newevent') {
|
||||
// $("#cptext").val(res.yanfa_remark)
|
||||
// res.chanpin_remark = res.chanpin_remark.replace('\\','')
|
||||
console.log(res.chanpin_remark)
|
||||
if (res.chanpin_remark != "") {
|
||||
if (res.chanpin_remark != "" && res.chanpin_remark != null) {
|
||||
var chanpin_remark = JSON.parse(res.chanpin_remark)
|
||||
document.getElementById("cptext").innerHTML = chanpin_remark.msg;
|
||||
document.getElementById("cptime").innerHTML = chanpin_remark.date;
|
||||
}
|
||||
if (res.yunying_remark != "") {
|
||||
if (res.yunying_remark != "" && res.yunying_remark != null) {
|
||||
var yunying_remark = JSON.parse(res.yunying_remark);
|
||||
document.getElementById("yytext").innerHTML = yunying_remark.msg;
|
||||
document.getElementById("yytime").innerHTML = chanpin_remark.date;
|
||||
}
|
||||
if (res.yanfa_remark != "") {
|
||||
if (res.yanfa_remark != "" && res.yanfa_remark != null) {
|
||||
var yanfa_remark = JSON.parse(res.yanfa_remark);
|
||||
document.getElementById("yftext").innerHTML = yanfa_remark.msg;
|
||||
document.getElementById("yftime").innerHTML = chanpin_remark.date;
|
||||
|
Loading…
Reference in New Issue
Block a user