Compare commits

...

4 Commits

Author SHA1 Message Date
86e9ff3fbe Merge remote-tracking branch 'origin/master'
# Conflicts:
#	assets/images/dabao.png
#	assets/images/gengxin.png
#	assets/images/jeidian.png
#	assets/images/xiufu.png
#	config.json
#	pmcalendar.php
2020-12-08 13:45:03 +08:00
fe012b3ad4 update 2020-12-08 13:44:08 +08:00
534ab507ee 前端 2020-12-08 11:02:04 +08:00
2bf93d7c16 前端:添加时间 2020-12-03 18:12:14 +08:00
18 changed files with 18817 additions and 136 deletions

15001
assets/css/ace.min.css vendored

File diff suppressed because one or more lines are too long

View File

@ -36,17 +36,32 @@ html .fc,
} }
.fc-header-left { .fc-header-left {
width: 25%; width: 415px;
text-align: left; text-align: center;
position: absolute;
margin: 0 auto;
left: 170px;
right: 0;
z-index: 100000;
display: flex;
justify-content: space-between;
} }
.fc-header-center { .fc-header-center {
text-align: center; text-align: center;
z-index: 1100;
position: absolute;
margin: 0 auto;
left: 0;
right: 0;
} }
.fc-header-right { .fc-header-right {
width: 25%; width: 25%;
text-align: right; text-align: left;
position: absolute;
left: 11px;
z-index: 100000;
} }
.fc-header-title { .fc-header-title {
@ -60,7 +75,8 @@ html .fc,
} }
.fc .fc-header-space { .fc .fc-header-space {
padding-left: 10px; padding-left: 10px;
display: none;
} }
.fc-header .fc-button { .fc-header .fc-button {
@ -102,7 +118,8 @@ html .fc,
.fc-content { .fc-content {
clear: both; clear: both;
zoom: 1; /* for IE7, gives accurate coordinates for [un]freezeContentHeight */ zoom: 1; /* for IE7, gives accurate coordinates for [un]freezeContentHeight */
top: 50px;
} }
.fc-view { .fc-view {
@ -138,13 +155,13 @@ html .fc,
.fc-button { .fc-button {
position: relative; position: relative;
display: inline-block; display: inline-block;
padding: 0 1em; padding: 0 1.4em;
overflow: hidden; overflow: hidden;
height: 1.9em; height: 1.9em;
line-height: 1.9em; line-height: 1.9em;
white-space: nowrap; white-space: nowrap;
cursor: pointer; cursor: pointer;
border-radius: 15px !important ; border-radius: 10px !important ;
} }
.fc-state-default { /* non-theme */ .fc-state-default { /* non-theme */
@ -219,7 +236,8 @@ html .fc,
.fc-state-active, .fc-state-active,
.fc-state-disabled { .fc-state-disabled {
color: #333333; color: #333333;
background-color: #e6e6e6; background-color: #fff;
/* display: none; */
} }
.fc-state-hover { .fc-state-hover {
@ -234,7 +252,7 @@ html .fc,
.fc-state-down, .fc-state-down,
.fc-state-active { .fc-state-active {
background-color: #5fadff; background-color: #0078f7;
color: #fff; color: #fff;
background-image: none; background-image: none;
outline: 0; outline: 0;
@ -246,7 +264,8 @@ html .fc,
background-image: none; background-image: none;
opacity: 0.65; opacity: 0.65;
filter: alpha(opacity=65); filter: alpha(opacity=65);
box-shadow: none; box-shadow: none;
/* display: none; */
} }
@ -269,10 +288,11 @@ html .fc,
color: #fff; /* default TEXT color */ color: #fff; /* default TEXT color */
font-size: .85em; font-size: .85em;
cursor: default; cursor: default;
border-radius: 8px !important; border-radius: 0px !important;
padding: 5px; padding: 10px 5px 10px 15px;
margin: 5px 12px 0 12px; margin: 10px 12px 0px 12px;
cursor:pointer; cursor:pointer;
font-weight: bold;
} }
@media only screen and (max-width:360px) { @media only screen and (max-width:360px) {
@ -404,7 +424,8 @@ table.fc-border-separate {
.fc-border-separate tbody tr.fc-first td, .fc-border-separate tbody tr.fc-first td,
.fc-border-separate tbody tr.fc-first th { .fc-border-separate tbody tr.fc-first th {
border-top-width: 0; border-top-width: 0;
padding-bottom: 10px;
} }
@ -429,7 +450,7 @@ table.fc-border-separate {
.fc-grid .fc-day-number { .fc-grid .fc-day-number {
text-align: right; text-align: right;
padding: 10px 2px; padding: 10px;
} }
.fc-grid .fc-other-month .fc-day-number { .fc-grid .fc-other-month .fc-day-number {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/images/fanhui.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
assets/images/huang_bg.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
assets/images/lan_jiao.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
assets/images/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
assets/images/lu_bg.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
assets/images/pink_bg.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
assets/images/red_bg.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
assets/images/tongji.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
assets/images/zi_bg.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
{"games":["\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","\u6b4c\u624bCOCOS","\u8bd9\u8c10\u4e09\u56fd","\u751f\u5316\u7eaa\u5143","\u6218\u56fd\u4e89\u9e23","\u6697\u9ed1\u5730\u4e0b\u57ce\u7e41\u4f53","\u5996\u7075\u6218\u59ec","\u5c71\u6d77\u7ecf","3D\u751f\u5316","\u98ce\u66b4\u5947\u5175","\u4e2d\u53e4\u6218\u9524","\u50cf\u7d20\u9879\u76ee","\u5176\u4ed6"],"roles":["\u5434\u660a","\u8212\u5c55","\u9093\u5b9a\u658c","dddd","ddd"],"gxvroles":["aaaaa","555"],"gxyyeroles":["\u5434\u660a"],"gxcperoles":["\u5434\u660a"],"gxyferoles":["\u5434\u660a"],"xfvroles":["\u5434\u660a"],"xfyyeroles":["\u5434\u660a"]} {"games":["\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","\u6b4c\u624bCOCOS","\u8bd9\u8c10\u4e09\u56fd","\u751f\u5316\u7eaa\u5143","\u6218\u56fd\u4e89\u9e23","\u6697\u9ed1\u5730\u4e0b\u57ce\u7e41\u4f53","\u5996\u7075\u6218\u59ec","\u5c71\u6d77\u7ecf","3D\u751f\u5316","\u98ce\u66b4\u5947\u5175","\u4e2d\u53e4\u6218\u9524","\u50cf\u7d20\u9879\u76ee","\u5176\u4ed6"],"roles":["\u5434\u660a","\u8212\u5c55","\u9093\u5b9a\u658c","dddd","ddd"],"gxvroles":["aaaaa","555"],"gxyyeroles":["\u5434\u660a"],"gxcperoles":["\u5434\u660a"],"gxyferoles":["\u5434\u660a","\u7f57\u677e\u67cf"],"xfvroles":["\u5434\u660a"],"xfyyeroles":["\u5434\u660a"]}

View File

@ -299,10 +299,12 @@ if ($act == 'newevent') {
<div class="main-content"> <div class="main-content">
<div class="page-content"> <div class="page-content">
<div class="page-header"> <div class="page-header">
<h1>LeGu Event</h1> <!-- <h1>LeGu Event</h1> -->
<img src="assets/images/logo.png">
<div class='xian2'></div>
</div> </div>
<div id="gamesbtn"> <div id="gamesbtn" style="padding:0 11px 15px 11px;">
筛选: <!-- 筛选: -->
<!-- <?php if ($canEdit) { ?><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> <a href="./?app=edit" class='btn btn-minier btn-pink'>编辑游戏</a>
<button value='' onclick='onlyShowGame(this)' class='btn btn-minier btn-info'>显示全部</button> <button value='' onclick='onlyShowGame(this)' class='btn btn-minier btn-info'>显示全部</button>
@ -316,28 +318,41 @@ if ($act == 'newevent') {
</div> </div>
<style> <style>
.xian2 {
width: calc(100% - 200px);
height: 1px;
background-color:#f3f3f3;
}
.datarepair { .datarepair {
z-index: 1000; z-index: 1000;
width: 100px; width: 100px;
height: 40px; height: 27px;
line-height: 27px;
position: relative; position: relative;
top: 90px; top: 60px;
color: #6fb3e0; color: #9f9f9f;
margin: 0 auto; margin: 0 auto;
cursor: pointer; cursor: pointer;
font-size: 16px; font-size: 14px;
display: flex; display: flex;
background-color:#f3f3f3;
border-radius: 8px;
text-align: center;
margin-bottom: 15px;
} }
.datarepair img { .datarepair img {
width: 20px; width: 16px;
height: 20px; height: 16px;
margin-right: 5px; margin-right: 5px;
margin-top: 3px; margin-left: 10px;
margin-top: 6px;
} }
#gameinfo { #gameinfo {
margin: 15px 0 /* margin: 15px 0; */
height: 13px;
background-color:#f5f5f9;
} }
#gameinfo li { #gameinfo li {
@ -398,30 +413,33 @@ if ($act == 'newevent') {
} }
.data_tab { .data_tab {
width: 240px; width: 325px;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
position: relative; position: relative;
top: 40px; top: 18px;
right: 11px;
z-index: 1000; z-index: 1000;
float: right; float: right;
} }
.data-box { .data-box {
width: 50px; width: 80px;
text-align: center; text-align: center;
display: flex;
align-items: center;
} }
.data-box img { .data-box img {
width: 28px; width: 24px;
height: 28px; /* margin: 0 auto; */
margin: 0 auto; margin-right: 5px
} }
.data-box .data-name { .data-box .data-name {
font-size: 15px; font-size: 12px;
color: #5fadff; color: #8e8e8e;
text-align: center; text-align: center;
} }
@ -430,32 +448,38 @@ if ($act == 'newevent') {
color: #a0a0a0; color: #a0a0a0;
text-align: center; text-align: center;
} }
.formtab {
padding: 27px 0px !important;
color:#474747 !important;
border: 0px !important;
text-align: center;
}
</style> </style>
<div class='datarepair' id="datarepair" onclick="datarepair()"> <div class='datarepair' id="datarepair" onclick="datarepair()">
<img src='assets/images/xiazai.png'/> 修复数据 <img src='assets/images/tongji.png' id="dataimg"/> <span id='datarepairname'>查看统计</span>
</div> </div>
<div class='data_tab'> <div class='data_tab'>
<div class='data-box'> <div class='data-box'>
<img src="assets/images/dabao.png"/> <img src="assets/images/dabao.png"/>
<!-- <p class="data-name">打包</p> --> <p class="data-name">打包</p>
<p class="data-num" id="dabaonum"></p> <p class="data-num" id="dabaonum"></p>
</div> </div>
<div class='data-box'> <div class='data-box'>
<img src="assets/images/gengxin.png"/> <img src="assets/images/gengxin.png"/>
<!-- <p class="data-name">更新</p> --> <p class="data-name">更新</p>
<p class="data-num" id="gengxinnum"></p> <p class="data-num" id="gengxinnum"></p>
</div> </div>
<div class='data-box'> <div class='data-box'>
<img src="assets/images/xiufu.png"/> <img src="assets/images/xiufu.png"/>
<!-- <p class="data-name">修复</p> --> <p class="data-name">修复</p>
<p class="data-num" id="xiufunum"></p> <p class="data-num" id="xiufunum"></p>
</div> </div>
<div class='data-box'> <div class='data-box'>
<img src="assets/images/jeidian.png"/> <img src="assets/images/jeidian.png"/>
<!-- <p class="data-name">节点</p> --> <p class="data-name">节点</p>
<p class="data-num" id="jeidiannum"></p> <p class="data-num" id="jeidiannum"></p>
</div> </div>
</div> </div>
@ -463,9 +487,9 @@ if ($act == 'newevent') {
<div id="chart" class="chartbox" style="width:100%;height:400px; margin-top:90px;"></div> <div id="chart" class="chartbox" style="width:100%;height:400px; margin-top:90px;"></div>
<div class="card-body"> <div class="card-body" style="margin: 0 2% 0 3%;">
<table class="table table-bordered table-striped"> <table class="table table-bordered table-striped" style='border:1px solid #f0f0f0 !important; text-align:center;'>
<thead id="thead-title" class="thead"></thead> <thead id="thead-title" class="thead" ></thead>
<tbody id="tbody-content"></tbody> <tbody id="tbody-content"></tbody>
</table> </table>
</div> </div>
@ -607,7 +631,10 @@ if ($act == 'newevent') {
.tianjia { .tianjia {
width: 15px; width: 15px;
height: 15px; height: 15px;
margin-right: 15px; margin-right: 0px;
position: absolute;
top: 10px;
right: 0;
} }
.fujian-box { .fujian-box {
@ -647,6 +674,11 @@ if ($act == 'newevent') {
border-radius: 4px; border-radius: 4px;
float: right; float: right;
cursor: pointer; cursor: pointer;
margin-top: 25px;
}
.upfujian {
width: 100%;
margin: 0 20px;
} }
</style> </style>
<div class='popup-bg' id='popup-bg'> <div class='popup-bg' id='popup-bg'>
@ -673,12 +705,13 @@ if ($act == 'newevent') {
<div class='fujian' id='fujianname'></div> <div class='fujian' id='fujianname'></div>
<div class="tijaioanniu"> <div class="tijaioanniu">
<div style=" position: relative; display: none" class="upfujian" id="upfujian_cp"> <div style=" position: relative; display: none" class="upfujian" id="upfujian_cp">
<img class='tianjia' src='/assets/images/jiahao.png'/>
<iframe id="_hideiframe" name="_hideiframe" style="display: none;"></iframe> <iframe id="_hideiframe" name="_hideiframe" style="display: none;"></iframe>
<form method="post" id="uploader" style="display: block; clear: both; margin-top: 10px;;" <form method="post" id="uploader" style="display: block; clear: both; margin-top: 10px;;"
target="_hideiframe" action="" enctype="multipart/form-data"> target="_hideiframe" action="" enctype="multipart/form-data">
<input name="cid" type="hidden" value="<%=DATA.lastShowCardID%>"/> <input name="cid" type="hidden" value="<%=DATA.lastShowCardID%>" style='opacity: 0; position: absolute;z-index: 1001;'/>
<input type="file" id="fujian" name="fujian[]" multiple <input type="file" id="fujian" name="fujian[]" multiple
onchange="document.getElementById('uploader').submit()"> onchange="document.getElementById('uploader').submit()" style='opacity: 0; position: absolute;z-index: 1001;'>
</form> </form>
<div class='tijiao' id="cptijiao">提交</div> <div class='tijiao' id="cptijiao">提交</div>
@ -710,12 +743,13 @@ if ($act == 'newevent') {
</div> --> </div> -->
<div class="tijaioanniu"> <div class="tijaioanniu">
<div style=" position: relative;display: none;" class="upfujian" id="upfujian_yy"> <div style=" position: relative;display: none;" class="upfujian" id="upfujian_yy">
<img class='tianjia' src='/assets/images/jiahao.png'/>
<iframe id="_hideiframe2" name="_hideiframe" style="display: none;"></iframe> <iframe id="_hideiframe2" name="_hideiframe" style="display: none;"></iframe>
<form method="post" id="uploader_yy" style="display: block; clear: both; margin-top: 10px;;" <form method="post" id="uploader_yy" style="display: block; clear: both; margin-top: 10px;;"
target="_hideiframe" action="" enctype="multipart/form-data"> target="_hideiframe" action="" enctype="multipart/form-data">
<input name="cid" type="hidden" value="<%=DATA.lastShowCardID%>"/> <input name="cid" type="hidden" value="<%=DATA.lastShowCardID%>" style='opacity: 0; position: absolute;z-index: 1001;'/>
<input type="file" id="fujian_yy" name="fujian[]" multiple <input type="file" id="fujian_yy" name="fujian[]" multiple
onchange="document.getElementById('uploader_yy').submit()"> onchange="document.getElementById('uploader_yy').submit()" style='opacity: 0;position: absolute;z-index: 1001;'>
</form> </form>
<div class='tijiao' id="yytijiao">提交</div> <div class='tijiao' id="yytijiao">提交</div>
</div> </div>
@ -742,12 +776,13 @@ if ($act == 'newevent') {
<div class='fujian' id='yffujian'></div> <div class='fujian' id='yffujian'></div>
<div class="tijaioanniu"> <div class="tijaioanniu">
<div style=" position: relative;display: none;" class="upfujian" id="upfujian_yf"> <div style=" position: relative;display: none;" class="upfujian" id="upfujian_yf">
<img class='tianjia' src='/assets/images/jiahao.png'/>
<iframe id="_hideiframe3" name="_hideiframe" style="display: none;"></iframe> <iframe id="_hideiframe3" name="_hideiframe" style="display: none;"></iframe>
<form method="post" id="uploader_yf" style="display: block; clear: both; margin-top: 10px;;" <form method="post" id="uploader_yf" style="display: block; clear: both; margin-top: 10px;;"
target="_hideiframe" action="" enctype="multipart/form-data"> target="_hideiframe" action="" enctype="multipart/form-data">
<input name="cid" type="hidden" value="<%=DATA.lastShowCardID%>"/> <input name="cid" type="hidden" value="<%=DATA.lastShowCardID%>" style='opacity: 0; position: absolute;z-index: 1001;'/>
<input type="file" id="fujian_yf" name="fujian[]" multiple <input type="file" id="fujian_yf" name="fujian[]" multiple
onchange="document.getElementById('uploader_yf').submit()"> onchange="document.getElementById('uploader_yf').submit()" style='opacity: 0; position: absolute;z-index: 1001;'>
</form> </form>
<div class='tijiao' id="yftijiao">提交</div> <div class='tijiao' id="yftijiao">提交</div>
</div> </div>
@ -770,10 +805,10 @@ if ($act == 'newevent') {
<script src="assets/js/date-time/daterangepicker.min.js"></script> <script src="assets/js/date-time/daterangepicker.min.js"></script>
<script type="text/x-dot-template" id="thead-dot"> <script type="text/x-dot-template" id="thead-dot">
<tr> <tr style="background:#fafafa !important;">
{{~it:item:index}} {{~it:item:index}}
<th>{{=item}}</th> <th class='formtab' style="padding: 25px 0px; color:#474747; border: 0px;">{{=item}}</th>
{{~}} {{~}}
</tr> </tr>
@ -782,9 +817,23 @@ if ($act == 'newevent') {
<script type="text/x-dot-template" id="tbody-dot"> <script type="text/x-dot-template" id="tbody-dot">
{{ for(var i in it) { }} {{ for(var i in it) { }}
<tr> <tr>
{{ for(var k in it[i]) { }} {{? i != 1}}
<td>{{= it[i][k]}}</td> {{ for(var k in it[i]) { }}
{{ } }} {{? k !=1}}
<td style="border-top: 1px solid #f0f0f0; color:#474747; padding: 25px 0; background-color:#fff; border-bottom:0px; border-left:0px; border-right:0px; ">{{= it[i][k]}}</td>
{{??}}
<td style="border-top: 1px solid #f0f0f0; color:#474747; padding: 25px 0; background-color:#fff; border-bottom:0px; border-left:0px; border-right:0px; color:#007efa !important;">{{= it[i][k]}}</td>
{{?}}
{{ } }}
{{??}}
{{ for(var k in it[i]) { }}
{{? k !=1}}
<td style="border-top: 1px solid #f0f0f0; color:#474747; padding: 25px 0; background-color:#fafafa; border-bottom:0px; border-left:0px; border-right:0px; ">{{= it[i][k]}}</td>
{{??}}
<td style="border-top: 1px solid #f0f0f0; color:#474747; padding: 25px 0; background-color:#fafafa; border-bottom:0px; border-left:0px; border-right:0px; color:#007efa !important;">{{= it[i][k]}}</td>
{{?}}
{{ } }}
{{?}}
</tr> </tr>
{{ } }} {{ } }}
</script> </script>
@ -889,10 +938,12 @@ if ($act == 'newevent') {
}, },
success: function (res) { success: function (res) {
console.log(res); console.log(res);
alert('提交成功') alert('提交成功');
showEventData(notid);
}, },
error: function () { error: function () {
alert('数据异常,请稍后重试!!!') alert('数据异常,请稍后重试!!!');
showEventData(notid);
} }
}); });
}) })
@ -919,10 +970,12 @@ if ($act == 'newevent') {
}, },
success: function (res) { success: function (res) {
console.log(res); console.log(res);
alert('提交成功') alert('提交成功');
showEventData(notid);
}, },
error: function () { error: function () {
alert('数据异常,请稍后重试!!!') alert('数据异常,请稍后重试!!!');
showEventData(notid);
} }
}); });
}) })
@ -949,10 +1002,12 @@ if ($act == 'newevent') {
}, },
success: function (res) { success: function (res) {
console.log(res); console.log(res);
alert('提交成功') alert('提交成功');
showEventData(notid);
}, },
error: function () { error: function () {
alert('数据异常,请稍后重试!!!') alert('数据异常,请稍后重试!!!');
showEventData(notid);
} }
}); });
}) })
@ -971,8 +1026,8 @@ if ($act == 'newevent') {
$("#upfujian_yy").hide(); $("#upfujian_yy").hide();
i = 0; i = 0;
} }
} };
; console.log("<?=$isgxcperole?>")
if ("<?=$isgxcperole?>" == "1") { if ("<?=$isgxcperole?>" == "1") {
if (i == 0) { if (i == 0) {
$('#cptext').attr('disabled', false) $('#cptext').attr('disabled', false)
@ -983,9 +1038,7 @@ if ($act == 'newevent') {
$("#upfujian_cp").hide(); $("#upfujian_cp").hide();
i = 0; i = 0;
} }
} };
;
console.log("<?=$isgxyferole?>")
if ("<?=$isgxyferole?>" == "1") { if ("<?=$isgxyferole?>" == "1") {
if (i == 0) { if (i == 0) {
$('#yftext').attr('disabled', false) $('#yftext').attr('disabled', false)
@ -997,8 +1050,7 @@ if ($act == 'newevent') {
$("#upfujian_yf").hide(); $("#upfujian_yf").hide();
i = 0; i = 0;
} }
} };
;
if ("<?=$isxfyyerole?>" == "1") { if ("<?=$isxfyyerole?>" == "1") {
if (i == 0) { if (i == 0) {
@ -1010,46 +1062,7 @@ if ($act == 'newevent') {
$("#upfujian_yy").hide(); $("#upfujian_yy").hide();
i = 0; i = 0;
} }
} };
;
// if ("<?=$canEdit?>" == "1") {
// if (i == 0) {
// $('#cptext').attr('disabled', false)
// $('#yytext').attr('disabled', false)
// $('#yftext').attr('disabled', false)
// $(".upfujian").show();
// i = 1;
// } else {
// $('#cptext').attr('disabled', true)
// $('#yytext').attr('disabled', true)
// $('#yftext').attr('disabled', true)
// $(".upfujian").hide();
// i = 0;
// }
// };
// $canEdit = in_array($user['name'], $ROLES);
// $isgxvrole = in_array($user['name'], $GXVROLES); //更新信息查看区浏览权限
// $isgxyyerole = in_array($user['name'], $GXYYEROLES);//更新运营中心编辑权限
// $isgxcperole = in_array($user['name'], $GXCPEROLES);//更新产品中心编辑权限
// $isgxyferole = in_array($user['name'], $GXYFEROLES);//更新研发中心编辑权限
// $isxfvrole = in_array($user['name'], $XFVROLES); //修复信息查看区浏览权限
// $isxfyyerole = in_array($user['name'], $XFYYEROLES);//修复运营中心编辑权限
// if(i == 0){
// $('#cptext').attr('disabled',false)
// $('#yytext').attr('disabled',false)
// $('#yftext').attr('disabled',false)
// i = 1;
// }else {
// $('#cptext').attr('disabled',true)
// $('#yytext').attr('disabled',true)
// $('#yftext').attr('disabled',true)
// i = 0;
// }
} }
function onlyShowGame(o) { function onlyShowGame(o) {
@ -1085,7 +1098,7 @@ if ($act == 'newevent') {
next: '<i class="icon-chevron-right"></i>', next: '<i class="icon-chevron-right"></i>',
prevYear: '去年', prevYear: '去年',
nextYear: '明年', nextYear: '明年',
today: '今天', today: '',
month: '月', month: '月',
week: '周', week: '周',
day: '日' day: '日'
@ -1119,18 +1132,18 @@ if ($act == 'newevent') {
console.log(doc); console.log(doc);
callback(doc.calendarData); callback(doc.calendarData);
// console.log(doc);\ // console.log(doc);\
$("#dabaonum").html(doc.count['打包']); $("#dabaonum").html("("+doc.count['打包']+")");
$("#gengxinnum").html(doc.count['版本更新']); $("#gengxinnum").html("("+doc.count['版本更新']+")");
$("#xiufunum").html(doc.count['修复外网']); $("#xiufunum").html("("+doc.count['修复外网']+")");
$("#jeidiannum").html(doc.count['节点']); $("#jeidiannum").html("("+doc.count['节点']+")");
console.log(doc.calendarData)
if (doc.gameInfo && doc.gameInfo.length > 0) { if (doc.gameInfo && doc.gameInfo.length > 0) {
var _html = []; var _html = [];
for (var i = 0; i < doc.gameInfo.length; i++) { for (var i = 0; i < doc.gameInfo.length; i++) {
var _v = doc.gameInfo[i]; var _v = doc.gameInfo[i];
_html.push("<li>" + _v.end + " " + _v.event + " " + _v.title + "</li>"); _html.push("<li>" + _v.end + " " + _v.event + " " + _v.title + "</li>");
} }
$('#gameinfo ul').html(_html.join('')); $('#gameinfo ul').html(_html.join(''));
} else { } else {
$('#gameinfo ul').html(''); $('#gameinfo ul').html('');
@ -1296,7 +1309,9 @@ if ($act == 'newevent') {
if (dis == 'none') { if (dis == 'none') {
$('#data_box').show(); $('#data_box').show();
$('#calendardiv').hide(); $('#calendardiv').hide();
$('#datarepairname').html('返回Event');
$("#dataimg").attr("src",'assets/images/fanhui.png');
var time = (Math.round(starttime.getTime()) + Math.round(endtime.getTime())) / 2; var time = (Math.round(starttime.getTime()) + Math.round(endtime.getTime())) / 2;
time = new Date(time); time = new Date(time);
var year = time.getFullYear() + '年'; var year = time.getFullYear() + '年';
@ -1325,35 +1340,67 @@ if ($act == 'newevent') {
color: '#6fb3e0', color: '#6fb3e0',
} }
}, },
color: ['#ff7f7f', '#a494f9'],
toolbox: { toolbox: {
show: true,
orient: 'vertical',
right: '1.5%',
top: 'center',
feature: { feature: {
saveAsImage: {} mark: {show: true},
dataView: {show: true, readOnly: false},
magicType: {show: true, type: ['line', 'bar', 'stack', 'tiled']},
restore: {show: true},
saveAsImage: {show: true}
} }
}, },
legend: { legend: {
left: 10 left: '3%',
itemHeight: 11,
itemWidth: 6,
color:"#5f5f5f"
}, },
tooltip: {}, tooltip: {},
grid: { grid: {
left: '0', left: '3%',
right: '0', right: '3%',
bottom: '5%', bottom: '5%',
// top: '0%',
containLabel: true containLabel: true
}, },
color: ['#ff7f7f', '#a494f9'], color: ['#ff7f7f', '#a494f9'],
dataset: { dataset: {
source: chartsdata source: chartsdata
}, },
xAxis: {type: 'category'}, xAxis: {
type: 'category',
axisLabel:{
show: true,
textStyle:{
color:"#bfbfbf"
}
},
axisLine:{
lineStyle:{
color:'#bfbfbf',
}
}
},
yAxis: { yAxis: {
axisLabel:{
textStyle:{
color:"#bfbfbf"
}
},
"axisLine": { //y轴 "axisLine": { //y轴
"show": true "show": false
}, },
"axisTick": { //y轴刻度线 "axisTick": { //y轴刻度线
"show": true "show": false
}, },
"splitLine": { //网格线 "splitLine": { //网格线
"show": false "show": true,
'coloe': '#bfbfbf'
} }
}, },
// Declare several bar series, each will be mapped // Declare several bar series, each will be mapped
@ -1361,11 +1408,17 @@ if ($act == 'newevent') {
series: [ series: [
{ {
type: 'bar', type: 'bar',
barCategoryGap : 60,
itemStyle: { itemStyle: {
normal: { normal: {
label: { label: {
show: true, //开启显示 show: true,
position: 'top', //在上方显示 position: 'insideBottom',
distance: 15,
align: 'left',
verticalAlign: 'middle',
rotate: 1,
fontSize: 16,
textStyle: { //数值样式 textStyle: { //数值样式
color: '#000', color: '#000',
fontSize: 13 fontSize: 13
@ -1376,11 +1429,17 @@ if ($act == 'newevent') {
}, },
{ {
type: 'bar', type: 'bar',
barCategoryGap : 60,
itemStyle: { itemStyle: {
normal: { normal: {
label: { label: {
show: true, //开启显示 show: true,
position: 'top', //在上方显示 position: 'insideBottom',
distance: 15,
align: 'left',
verticalAlign: 'middle',
rotate: 1,
fontSize: 16,
textStyle: { //数值样式 textStyle: { //数值样式
color: '#000', color: '#000',
fontSize: 13 fontSize: 13
@ -1411,6 +1470,11 @@ if ($act == 'newevent') {
} else { } else {
$('#data_box').hide(); $('#data_box').hide();
$('#datarepairname').html('查看统计');
// <img src='assets/images/tongji.png' id="dataimg"/>
$("#dataimg").attr("src",'assets/images/tongji.png');
$('#calendardiv').show(); $('#calendardiv').show();
} }
@ -1440,16 +1504,16 @@ if ($act == 'newevent') {
if (res.yunying_remark != "" && res.yunying_remark != null) { if (res.yunying_remark != "" && res.yunying_remark != null) {
var yunying_remark = JSON.parse(res.yunying_remark); var yunying_remark = JSON.parse(res.yunying_remark);
document.getElementById("yytext").innerHTML = yunying_remark.msg; document.getElementById("yytext").innerHTML = yunying_remark.msg;
document.getElementById("yytime").innerHTML = chanpin_remark.date; document.getElementById("yytime").innerHTML = yunying_remark.date;
} }
if (res.yanfa_remark != "" && res.yanfa_remark != null) { if (res.yanfa_remark != "" && res.yanfa_remark != null) {
var yanfa_remark = JSON.parse(res.yanfa_remark); var yanfa_remark = JSON.parse(res.yanfa_remark);
document.getElementById("yftext").innerHTML = yanfa_remark.msg; document.getElementById("yftext").innerHTML = yanfa_remark.msg;
document.getElementById("yftime").innerHTML = chanpin_remark.date; document.getElementById("yftime").innerHTML = yanfa_remark.date;
} }
var fujian = JSON.parse(res.fujian); var fujian = JSON.parse(res.fujian);
// console.log(fujian); console.log(fujian);
var arrcp = []; var arrcp = [];
var arryy = []; var arryy = [];
var arryf = []; var arryf = [];