This commit is contained in:
罗松柏 2020-12-09 18:01:46 +08:00
parent e812f2c6dd
commit 60fd963a68

View File

@ -2,7 +2,7 @@
$user = SESS::get('EVENTUserInfo');
// if(isn($user))exit();
$user = json_decode($user, true);
// $user['name'] = "罗松柏";
$user['name'] = "罗松柏";
$canEdit = in_array($user['name'], $ROLES);
$isgxvrole ='1'; //in_array($user['name'], $GXVROLES); //更新信息查看区浏览权限
$isgxyyerole = in_array($user['name'], $GXYYEROLES);//更新运营中心编辑权限
@ -946,24 +946,6 @@ if ($act == 'newevent') {
}
}
// function isFocusyf(){
// var aa = $('#')
// $("#listyf").addClass('listhove');
// $("#listyy").removeClass('listhove');
// $("#listcp").removeClass('listhove');
// console.log(1111)
// }
// function isFocusyy(){
// $("#listyf").removeClass('listhove');
// $("#listyy").addClass('listhove');
// $("#listcp").removeClass('listhove');
// }
// function isFocuscp(){
// $("#listyf").removeClass('listhove');
// $("#listyy").removeClass('listhove');
// $("#listcp").addClass('listhove');
// }
$('#fujian').change(function () {
var wenjianname = $('#fujian').val();
var obj = document.getElementById("fujian");
@ -1303,6 +1285,9 @@ if ($act == 'newevent') {
selectable: true,
selectHelper: true,
select: function (start, end, allDay) {
console.log(start)
console.log(end)
console.log(allDay)
if ("<?=$canEdit?>" != "1") return;
dict = {};
// console.log('select', start, end, allDay);
@ -1402,7 +1387,22 @@ if ($act == 'newevent') {
;
} else {
if ("<?=$canEdit?>" == "1") {
Info()
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');
Info();
}else {
return
}