img
This commit is contained in:
parent
82a562516d
commit
27aae3edcf
@ -1047,11 +1047,13 @@ if ($act == 'newevent') {
|
||||
/* .recording—con-box { margin-top: 16px; } */
|
||||
.yanqi { position: absolute; top:0; right:0;}
|
||||
.recording-dot-box { margin-top: 0px; padding: 14px; border-bottom: 1px solid #f2f2f2;}
|
||||
.recording-dot-box img { width: 16px; margin-top: 6px; cursor:pointer}
|
||||
.recording-dot-box:hover { border: 1px solid #5fadff; }
|
||||
.biankuang { box-shadow: 0px 0px 10px #5fadff;}
|
||||
.liyoubox {width: 100%; word-wrap: break-word; white-space: normal; word-break: break-all;}
|
||||
.recording—text { width: 100%; height: 60px; resize:none; display:none; padding: 8px 0; }
|
||||
.recording-img { width: 16px; margin-top: 6px; cursor:pointer}
|
||||
/* .recording-dot-box:hover { border: 1px solid #5fadff; } */
|
||||
/* .biankuang { box-shadow: 0px 0px 10px #5fadff;} */
|
||||
.biankuang { border: 1px solid #5fadff;}
|
||||
.liyoubox {width: 100%; color:#656464; word-wrap: break-word; white-space: normal; word-break: break-all; background-color:#f4f4f4; padding: 8px; border-radius: 5px; min-height: 60px; margin-top: 6px;}
|
||||
.recording—text { width: 100%; height: 60px; resize:none; display:none; padding: 0px; background-color:#f4f4f4; border: 0px; }
|
||||
.jiao { float: right; margin-top: 0px; margin-right: 12px; }
|
||||
</style>
|
||||
<div class='popup-bg' id='popup-bg'>
|
||||
<div class="yiny" id='yiny' onclick="guanbi()"></div>
|
||||
@ -1246,13 +1248,14 @@ if ($act == 'newevent') {
|
||||
{{~it:item:index}}
|
||||
<div class='recording-dot-box' id='recording-dot-box{{=index}}'>
|
||||
<p><span style='font-weight: bold;'>《{{= item.project}}》</span>项目{{=item.type}}从<span style='color:#77da80'>{{=item.date1}}</span>日{{=item.timetype}}到<span style='color:#ff7f7f'>{{=item.date2}}</span>日</p>
|
||||
<div class='liyoubox'>
|
||||
<div style='margin-top: 6px;' id="recording—ly{{=index}}"> 调整理由为:<font>{{= item.reason}}</font></div>
|
||||
<img src='./assets/images/jiao1.jpg' class="jiao" id="jiao{{= index}}"/>
|
||||
<div class='liyoubox' id="liyoubox{{=index}}">
|
||||
<div style='margin-top: 0px;' id="recording—ly{{=index}}"> 调整理由为:<font>{{= item.reason}}</font></div>
|
||||
<textarea class='recording—text' id='recording—text{{=index}}'> {{= item.reason}} </textarea>
|
||||
</div>
|
||||
<P class='recording—name' style='margin-top: 6px;'>调整人:{{=item.user}}</p>
|
||||
<img src='./assets/images/jlxg.png' onclick='recordingedit("recording-dot-box{{=index}}",{{=index}})' >
|
||||
<img src='./assets/images/jldel.png' onclick='recordingdel({{=index}})'>
|
||||
<img src='./assets/images/jlxg.png' class='recording-img' onclick='recordingedit("recording-dot-box{{=index}}",{{=index}})' >
|
||||
<img src='./assets/images/jldel.png' class='recording-img' onclick='recordingdel({{=index}})'>
|
||||
</div>
|
||||
{{~}}
|
||||
</script>
|
||||
@ -1291,10 +1294,12 @@ if ($act == 'newevent') {
|
||||
function recordingedit(id,idx){
|
||||
if ("<?=$canEdit?>" != "1" && "<?=$issxarole?>" != "1") return;
|
||||
$(".recording-dot-box").removeClass("biankuang");
|
||||
$("#jiao"+idx).attr("src", "./assets/images/jiao1.jpg");
|
||||
if(recedittype == 0){
|
||||
$("#recording—ly"+idx).css('display','none');
|
||||
$("#recording—text"+idx).css('display','block');
|
||||
$('#'+id).addClass('biankuang');
|
||||
$('#liyoubox'+idx).addClass('biankuang');
|
||||
$("#jiao"+idx).attr("src", "./assets/images/jiao2.jpg");
|
||||
recedittype = 1;
|
||||
console.log('111'+recedittype)
|
||||
}else {
|
||||
@ -1984,13 +1989,24 @@ if ($act == 'newevent') {
|
||||
dict.end = $.fullCalendar.formatDate(event.end, 'yyyy-MM-dd');
|
||||
loading.show();
|
||||
dict.reason = prompt("请输入延期原因");
|
||||
|
||||
if(dict.reason){
|
||||
//点击的是“确定”
|
||||
$.post('./?app=pmcalendar&act=movevent', dict, function (txt) {
|
||||
loading.hide();
|
||||
if (txt == '1') {
|
||||
calendar.fullCalendar('refetchEvents');
|
||||
}
|
||||
});
|
||||
}else if(dict.reason === ""){
|
||||
//用户没有输入内容点击的“确定”
|
||||
loading.hide();
|
||||
location.reload();
|
||||
}else{
|
||||
//点击的是“取消”
|
||||
loading.hide();
|
||||
location.reload();
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
,
|
||||
|
Loading…
Reference in New Issue
Block a user