添加上线
This commit is contained in:
parent
25a15ca86d
commit
bd2bc7261b
@ -1 +1 @@
|
||||
{"games":["\u98ce\u66b4\u5947\u5175","\u6b4c\u624bCOCOS","\u4e2d\u53e4\u6218\u9524","\u5996\u7075\u6218\u59ec","\u751f\u5316\u7eaa\u5143","\u8bd9\u8c10\u4e09\u56fd","\u50cf\u7d20\u9879\u76ee","\u5b64\u5c9b\u5947\u5175","\u90e8\u843d\u6218\u9b42","\u90e8\u843d\u7e41\u4f53\u7248","\u90e8\u843d\u97e9\u6587\u7248","\u90e8\u843d\u8d8a\u5357\u7248","\u90e8\u843d\u82f1\u6587\u7248","\u90e8\u843d\u6cf0\u6587\u7248","\u90e8\u843dH5\u7248","\u66d9\u5149\u4e4b\u5883","\u9b54\u6cd5\u95e8H5","\u6b63\u7248\u9b54\u6cd5\u95e8\u539f\u751f","3D\u963f\u51e1\u8fbe","\u5927\u6218\u56fd","\u5927\u4e09\u56fd","\u5927\u4e09\u56fd\u97e9\u6587","\u5766\u514b\u7a81\u88ad","\u5251\u5723\u6302\u673a","\u7cbe\u7075\u7eaa\u5143","\u9b54\u6cd5\u65e0\u654c","\u4e50\u8c37\u519b\u5e08","X\u7cbe\u7075","\u5730\u4ea7\u5927\u4ea8","\u4e50\u8c37MT","\u8d85\u7ea7\u6536\u85cf\u5bb6","\u4e71\u4e16\u957f\u6b4c","\u6b4c\u624b2019","\u6218\u56fd\u4e89\u9e23","\u6697\u9ed1\u5730\u4e0b\u57ce\u7e41\u4f53","\u5c71\u6d77\u7ecf","3D\u751f\u5316","\u5176\u4ed6"],"roles":["\u8212\u5c55","\u9093\u5b9a\u658c","\u9b4f\u6676"],"gxvroles":[""],"gxyyeroles":["\u9b4f\u6676","\u67f3\u94b0\u6ce2","\u6c60\u6e90","\u9093\u6770","\u5434\u660a","\u7f57\u677e\u67cf"],"gxcperoles":["\u9093\u5b9a\u946b","\u9976\u677e","\u91d1\u5143\u5143","\u7f57\u68a6\u83f2","\u9676\u4e39","\u5ed6\u5b50\u9f99"],"gxyferoles":["\u8212\u5c55","\u9093\u5b9a\u658c","\u5510\u51ef","\u55bb\u987a\u745e","\u5218\u601d\u654f"],"xfvroles":["\u8212\u5c55","\u9093\u5b9a\u658c","\u5510\u51ef","\u55bb\u987a\u745e","\u5218\u601d\u654f","\u9b4f\u6676","\u67f3\u94b0\u6ce2","\u6c60\u6e90","\u9093\u6770","\u674e\u4fca","\u9ec4\u6653","\u9093\u5b9a\u946b","\u9976\u677e","\u91d1\u5143\u5143","\u7f57\u68a6\u83f2","\u9676\u4e39","\u5ed6\u5b50\u9f99","\u9093\u5b9a\u5764"],"xfyyeroles":["\u67f3\u94b0\u6ce2","\u6c60\u6e90","\u9093\u6770","\u9b4f\u6676","\u5434\u660a","\u7f57\u677e\u67cf"],"dbyyeroles":["\u7f57\u677e\u67cf"],"sxyyeroles":["\u7f57\u677e\u67cf"],"dbvroles":[""]}
|
||||
{"games":["\u98ce\u66b4\u5947\u5175","\u6b4c\u624bCOCOS","\u4e2d\u53e4\u6218\u9524","\u5996\u7075\u6218\u59ec","\u751f\u5316\u7eaa\u5143","\u8bd9\u8c10\u4e09\u56fd","\u50cf\u7d20\u9879\u76ee","\u5b64\u5c9b\u5947\u5175","\u90e8\u843d\u6218\u9b42","\u90e8\u843d\u7e41\u4f53\u7248","\u90e8\u843d\u97e9\u6587\u7248","\u90e8\u843d\u8d8a\u5357\u7248","\u90e8\u843d\u82f1\u6587\u7248","\u90e8\u843d\u6cf0\u6587\u7248","\u90e8\u843dH5\u7248","\u66d9\u5149\u4e4b\u5883","\u9b54\u6cd5\u95e8H5","\u6b63\u7248\u9b54\u6cd5\u95e8\u539f\u751f","3D\u963f\u51e1\u8fbe","\u5927\u6218\u56fd","\u5927\u4e09\u56fd","\u5927\u4e09\u56fd\u97e9\u6587","\u5766\u514b\u7a81\u88ad","\u5251\u5723\u6302\u673a","\u7cbe\u7075\u7eaa\u5143","\u9b54\u6cd5\u65e0\u654c","\u4e50\u8c37\u519b\u5e08","X\u7cbe\u7075","\u5730\u4ea7\u5927\u4ea8","\u4e50\u8c37MT","\u8d85\u7ea7\u6536\u85cf\u5bb6","\u4e71\u4e16\u957f\u6b4c","\u6b4c\u624b2019","\u6218\u56fd\u4e89\u9e23","\u6697\u9ed1\u5730\u4e0b\u57ce\u7e41\u4f53","\u5c71\u6d77\u7ecf","3D\u751f\u5316","\u5176\u4ed6"],"roles":[""],"gxvroles":[""],"gxyyeroles":["\u9b4f\u6676","\u67f3\u94b0\u6ce2","\u6c60\u6e90","\u9093\u6770","\u5434\u660a","\u7f57\u677e\u67cf"],"gxcperoles":["\u9093\u5b9a\u946b","\u9976\u677e","\u91d1\u5143\u5143","\u7f57\u68a6\u83f2","\u9676\u4e39","\u5ed6\u5b50\u9f99"],"gxyferoles":["\u8212\u5c55","\u9093\u5b9a\u658c","\u5510\u51ef","\u55bb\u987a\u745e","\u5218\u601d\u654f"],"xfvroles":["\u8212\u5c55","\u9093\u5b9a\u658c","\u5510\u51ef","\u55bb\u987a\u745e","\u5218\u601d\u654f","\u9b4f\u6676","\u67f3\u94b0\u6ce2","\u6c60\u6e90","\u9093\u6770","\u674e\u4fca","\u9ec4\u6653","\u9093\u5b9a\u946b","\u9976\u677e","\u91d1\u5143\u5143","\u7f57\u68a6\u83f2","\u9676\u4e39","\u5ed6\u5b50\u9f99","\u9093\u5b9a\u5764"],"xfyyeroles":["\u67f3\u94b0\u6ce2","\u6c60\u6e90","\u9093\u6770","\u9b4f\u6676","\u5434\u660a","\u7f57\u677e\u67cf"],"dbyyeroles":["\u7f57\u677e\u67cf"],"sxyyeroles":["\u7f57\u677e\u67cf"],"dbvroles":[""],"sxaroles":["\u7f57\u677e\u67cf"]}
|
@ -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);//更新运营中心编辑权限
|
||||
@ -356,8 +356,8 @@ if ($act == 'newevent') {
|
||||
</div>
|
||||
|
||||
<div id="gamesbtn" style="padding:0 11px 15px 11px;">
|
||||
<?php if ($canEdit) { ?><a href="./?app=edit" class='btn btn-minier btn-pink'>编辑游戏</a><? } ?>
|
||||
<!-- <a href="./?app=edit" class='btn btn-minier btn-pink'>编辑游戏</a> -->
|
||||
<!-- <?php if ($canEdit) { ?><a href="./?app=edit" class='btn btn-minier btn-pink'>编辑游戏</a><? } ?> -->
|
||||
<a href="./?app=edit" class='btn btn-minier btn-pink'>编辑游戏</a>
|
||||
<button value='' onclick='onlyShowGame(this)' class='btn btn-minier btn-info'>显示全部</button>
|
||||
<?php
|
||||
foreach ($GAMES as $g) {
|
||||
@ -1717,7 +1717,7 @@ if ($act == 'newevent') {
|
||||
console.log(start)
|
||||
console.log(end)
|
||||
console.log(allDay)
|
||||
if ("<?=$canEdit?>" != "1") return;
|
||||
if ("<?=$canEdit?>" != "1" && "<?=$issxarole?>" != "1") return;
|
||||
dict = {};
|
||||
// console.log('select', start, end, allDay);
|
||||
|
||||
@ -1760,7 +1760,6 @@ if ($act == 'newevent') {
|
||||
notid = calEvent.id;
|
||||
starts = calEvent.start;
|
||||
// if ("<?=$canEdit?>" != "1") {
|
||||
console.log("<?=$canEdit?>")
|
||||
if (calEvent.className[0] == 'label-danger') {
|
||||
if ("<?=$isgxvrole?>" != "1" && "<?=$isgxyyerole?>" != "1" && "<?=$isgxcperole?>" != "1" && "<?=$isgxyferole?>" != "1" && "<?=$canEdit?>" != "1") {
|
||||
return
|
||||
@ -1774,9 +1773,6 @@ if ($act == 'newevent') {
|
||||
|
||||
$("#yytext").attr('placeholder','填写本次更新概要,详细更新内容请使用附件')
|
||||
|
||||
|
||||
//console.log($('#uploader').attr('action'))
|
||||
|
||||
dict = {};
|
||||
$.post('./?app=pmcalendar&act=getEventByid', {id: calEvent.id}, function (txt) {
|
||||
var j = JSON.parse(txt);
|
||||
@ -1795,14 +1791,9 @@ if ($act == 'newevent') {
|
||||
}
|
||||
;
|
||||
} else if (calEvent.className[0] == 'label-purple') {
|
||||
console.log("<?=$isxfvrole?>")
|
||||
console.log("<?=$isxfyyerole?>")
|
||||
console.log("<?=$canEdit?>")
|
||||
if ("<?=$isxfvrole?>" != "1" && "<?=$isxfyyerole?>" != "1" && "<?=$canEdit?>" != "1") {
|
||||
console.log(2222)
|
||||
return
|
||||
} else {
|
||||
console.log(1111)
|
||||
$('#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')
|
||||
@ -1900,7 +1891,7 @@ if ($act == 'newevent') {
|
||||
;
|
||||
|
||||
} else {
|
||||
if ("<?=$canEdit?>" == "1") {
|
||||
if ("<?=$canEdit?>" == "1" && "<?=$issxarole?>" != "1") {
|
||||
dict = {};
|
||||
// $.post('./?app=pmcalendar&act=getEventByid', {id: calEvent.id}, function (txt) {
|
||||
// var j = JSON.parse(txt);
|
||||
@ -2298,7 +2289,8 @@ if ($act == 'newevent') {
|
||||
// })
|
||||
|
||||
function Info() {
|
||||
if ("<?=$canEdit?>" != "1") return;
|
||||
|
||||
if ("<?=$canEdit?>" != "1" && "<?=$issxarole?>" != "1") return;
|
||||
dict = {};
|
||||
$.post('./?app=pmcalendar&act=getEventByid', {id: notid}, function (txt) {
|
||||
var j = JSON.parse(txt);
|
||||
@ -2374,7 +2366,12 @@ if ($act == 'newevent') {
|
||||
|
||||
function showEventInfo(start, btns, stype) {
|
||||
var form = $("<form class=''><label>选择游戏和事件类型 (" + start + ")</label><div class='space-1'></div></form>");
|
||||
form.append('<?=gameGameListSelect('game')?> <select id="event"><option value="打包">打包</option><option value="版本更新">版本更新</option><option value="修复外网">修复外网</option><option value="上线">上线</option><option value="节点">节点</option></select>');
|
||||
if("<?=$issxarole?>" != "-1"){
|
||||
form.append('<?=gameGameListSelect('game')?> <select id="event"><option value="上线">上线</option></select>');
|
||||
}else {
|
||||
form.append('<?=gameGameListSelect('game')?> <select id="event"><option value="打包">打包</option><option value="版本更新">版本更新</option><option value="修复外网">修复外网</option><option value="上线">上线</option><option value="节点">节点</option></select>');
|
||||
}
|
||||
|
||||
form.append("<div class='space-5'></div><label for='form-field-mask-1'>事件内容</label><input class='form-control' id='title' autocomplete=off type=text value='' /> ");
|
||||
|
||||
var div = bootbox.dialog({
|
||||
|
Loading…
Reference in New Issue
Block a user