前端
This commit is contained in:
parent
e812f2c6dd
commit
60fd963a68
@ -2,7 +2,7 @@
|
|||||||
$user = SESS::get('EVENTUserInfo');
|
$user = SESS::get('EVENTUserInfo');
|
||||||
// if(isn($user))exit();
|
// if(isn($user))exit();
|
||||||
$user = json_decode($user, true);
|
$user = json_decode($user, true);
|
||||||
// $user['name'] = "罗松柏";
|
$user['name'] = "罗松柏";
|
||||||
$canEdit = in_array($user['name'], $ROLES);
|
$canEdit = in_array($user['name'], $ROLES);
|
||||||
$isgxvrole ='1'; //in_array($user['name'], $GXVROLES); //更新信息查看区浏览权限
|
$isgxvrole ='1'; //in_array($user['name'], $GXVROLES); //更新信息查看区浏览权限
|
||||||
$isgxyyerole = in_array($user['name'], $GXYYEROLES);//更新运营中心编辑权限
|
$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 () {
|
$('#fujian').change(function () {
|
||||||
var wenjianname = $('#fujian').val();
|
var wenjianname = $('#fujian').val();
|
||||||
var obj = document.getElementById("fujian");
|
var obj = document.getElementById("fujian");
|
||||||
@ -1303,6 +1285,9 @@ if ($act == 'newevent') {
|
|||||||
selectable: true,
|
selectable: true,
|
||||||
selectHelper: true,
|
selectHelper: true,
|
||||||
select: function (start, end, allDay) {
|
select: function (start, end, allDay) {
|
||||||
|
console.log(start)
|
||||||
|
console.log(end)
|
||||||
|
console.log(allDay)
|
||||||
if ("<?=$canEdit?>" != "1") return;
|
if ("<?=$canEdit?>" != "1") return;
|
||||||
dict = {};
|
dict = {};
|
||||||
// console.log('select', start, end, allDay);
|
// console.log('select', start, end, allDay);
|
||||||
@ -1402,7 +1387,22 @@ if ($act == 'newevent') {
|
|||||||
;
|
;
|
||||||
} else {
|
} else {
|
||||||
if ("<?=$canEdit?>" == "1") {
|
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 {
|
}else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user