前端
This commit is contained in:
parent
9e8b5af88b
commit
eeef746471
@ -61,6 +61,7 @@ html .fc,
|
|||||||
text-align: left;
|
text-align: left;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 11px;
|
left: 11px;
|
||||||
|
top: 32px;
|
||||||
z-index: 100000;
|
z-index: 100000;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,7 +82,8 @@ html .fc,
|
|||||||
|
|
||||||
.fc-header .fc-button {
|
.fc-header .fc-button {
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* buttons edges butting together */
|
/* buttons edges butting together */
|
||||||
@ -138,7 +140,10 @@ html .fc,
|
|||||||
}
|
}
|
||||||
|
|
||||||
.fc-state-highlight { /* <td> today cell */ /* TODO: add .fc-today to <th> */
|
.fc-state-highlight { /* <td> today cell */ /* TODO: add .fc-today to <th> */
|
||||||
background: #e6e6e6;
|
background: #fff;
|
||||||
|
background-image: url('/assets/images/dian.png');
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: right 3.5px top 7.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fc-cell-overlay { /* semi-transparent rectangle while dragging */
|
.fc-cell-overlay { /* semi-transparent rectangle while dragging */
|
||||||
@ -450,7 +455,8 @@ table.fc-border-separate {
|
|||||||
|
|
||||||
.fc-grid .fc-day-number {
|
.fc-grid .fc-day-number {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fc-grid .fc-other-month .fc-day-number {
|
.fc-grid .fc-other-month .fc-day-number {
|
||||||
|
BIN
assets/images/dian.png
Normal file
BIN
assets/images/dian.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
BIN
assets/images/jia.png
Normal file
BIN
assets/images/jia.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
BIN
assets/images/x.png
Normal file
BIN
assets/images/x.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 454 B |
184
pmcalendar.php
184
pmcalendar.php
@ -333,7 +333,7 @@ if ($act == 'newevent') {
|
|||||||
color: #9f9f9f;
|
color: #9f9f9f;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 14px;
|
font-size: 12px;
|
||||||
display: flex;
|
display: flex;
|
||||||
background-color:#f3f3f3;
|
background-color:#f3f3f3;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
@ -342,11 +342,11 @@ if ($act == 'newevent') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.datarepair img {
|
.datarepair img {
|
||||||
width: 16px;
|
width: 12px;
|
||||||
height: 16px;
|
height: 12px;
|
||||||
margin-right: 5px;
|
margin-right: 10px;
|
||||||
margin-left: 10px;
|
margin-left: 15px;
|
||||||
margin-top: 6px;
|
margin-top: 7px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#gameinfo {
|
#gameinfo {
|
||||||
@ -423,7 +423,7 @@ if ($act == 'newevent') {
|
|||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -15px;
|
top: 18px;
|
||||||
right: 2%;
|
right: 2%;
|
||||||
z-index: 1000;
|
z-index: 1000;
|
||||||
float: right;
|
float: right;
|
||||||
@ -633,18 +633,19 @@ if ($act == 'newevent') {
|
|||||||
|
|
||||||
.fujian img {
|
.fujian img {
|
||||||
width: 14px;
|
width: 14px;
|
||||||
height: 12px;
|
|
||||||
margin-right: 7px;
|
margin-right: 7px;
|
||||||
margin-left: 14px;
|
margin-left: 14px;
|
||||||
}
|
}
|
||||||
|
.ximg {
|
||||||
|
margin-right: 0px !important;
|
||||||
|
margin-left: 5px !important;
|
||||||
|
margin-top: 2px;
|
||||||
|
cursor:pointer;
|
||||||
|
}
|
||||||
|
|
||||||
.tianjia {
|
.tianjia {
|
||||||
width: 15px;
|
|
||||||
height: 15px;
|
|
||||||
margin-right: 0px;
|
margin-right: 0px;
|
||||||
position: absolute;
|
margin-top: 10px;
|
||||||
top: 10px;
|
|
||||||
right: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.fujian-box {
|
.fujian-box {
|
||||||
@ -674,25 +675,38 @@ if ($act == 'newevent') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tijiao {
|
.tijiao {
|
||||||
width: 60px;
|
width: 280px;
|
||||||
height: 25px;
|
height: 34px;
|
||||||
|
line-height:34px;
|
||||||
background-color: #5fadff;
|
background-color: #5fadff;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 25px;
|
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border-radius: 4px;
|
border-radius: 8px;
|
||||||
float: right;
|
float: right;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin-top: 25px;
|
margin-top: -5px;
|
||||||
}
|
}
|
||||||
.upfujian {
|
.upfujian {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0 20px;
|
margin: 0 13px;
|
||||||
}
|
}
|
||||||
.listhove {
|
.listhove {
|
||||||
box-shadow: 0px 0px 5px #40a9ff;
|
box-shadow: 0px 0px 5px #40a9ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input::-webkit-input-placeholder,textarea::-webkit-input-placeholder { /* WebKit browsers*/
|
||||||
|
color:#c3c3c3;
|
||||||
|
}
|
||||||
|
input:-moz-placeholder { /* Mozilla Firefox 4 to 18*/
|
||||||
|
color:#c3c3c3;
|
||||||
|
}
|
||||||
|
input:-moz-placeholder { /* Mozilla Firefox 19+*/
|
||||||
|
color:#c3c3c3;
|
||||||
|
}
|
||||||
|
input:-ms-input-placeholder { /* Internet Explorer 10+*/
|
||||||
|
color:#c3c3c3;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<div class='popup-bg' id='popup-bg'>
|
<div class='popup-bg' id='popup-bg'>
|
||||||
<div class="yiny" id='yiny'></div>
|
<div class="yiny" id='yiny'></div>
|
||||||
@ -710,12 +724,12 @@ if ($act == 'newevent') {
|
|||||||
<div class='cptime' id='cptime'></div>
|
<div class='cptime' id='cptime'></div>
|
||||||
</div>
|
</div>
|
||||||
<div class='cptext-box'>
|
<div class='cptext-box'>
|
||||||
<textarea disabled='disabled' id='cptext' onblur="isFocuscp()"></textarea>
|
<textarea disabled='disabled' id='cptext' onblur="isFocuscp()" placeholder="添加产品中心对本节点的描述"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class='fujian-box'>
|
<div class='fujian-box'>
|
||||||
|
|
||||||
<!-- 附件 -->
|
<!-- 附件 -->
|
||||||
<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'/>
|
<img class='tianjia' src='./assets/images/jiahao.png'/>
|
||||||
@ -724,7 +738,7 @@ if ($act == 'newevent') {
|
|||||||
target="_hideiframe" action="" enctype="multipart/form-data">
|
target="_hideiframe" action="" enctype="multipart/form-data">
|
||||||
<input name="cid" type="hidden" value="<%=DATA.lastShowCardID%>" style='opacity: 0; position: absolute;z-index: 1001;'/>
|
<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()" style='opacity: 0; position: absolute;z-index: 1001;'>
|
onchange="document.getElementById('uploader').submit()" style='opacity: 0; position: absolute; top:20px; z-index: 1001;'>
|
||||||
</form>
|
</form>
|
||||||
<div class='tijiao' id="cptijiao">提交</div>
|
<div class='tijiao' id="cptijiao">提交</div>
|
||||||
|
|
||||||
@ -742,7 +756,7 @@ if ($act == 'newevent') {
|
|||||||
<div class='cptime' id='yytime'></div>
|
<div class='cptime' id='yytime'></div>
|
||||||
</div>
|
</div>
|
||||||
<div class='cptext-box'>
|
<div class='cptext-box'>
|
||||||
<textarea disabled='disabled' id='yytext' onblur="isFocusyy()"></textarea>
|
<textarea disabled='disabled' id='yytext' onblur="isFocusyy()" placeholder="添加运营中心对本节点的描述"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class='fujian-box'>
|
<div class='fujian-box'>
|
||||||
|
|
||||||
@ -762,7 +776,7 @@ if ($act == 'newevent') {
|
|||||||
target="_hideiframe" action="" enctype="multipart/form-data">
|
target="_hideiframe" action="" enctype="multipart/form-data">
|
||||||
<input name="cid" type="hidden" value="<%=DATA.lastShowCardID%>" style='opacity: 0; position: absolute;z-index: 1001;'/>
|
<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()" style='opacity: 0;position: absolute;z-index: 1001;'>
|
onchange="document.getElementById('uploader_yy').submit()" style='opacity: 0;position: absolute; top:20px; z-index: 1001;'>
|
||||||
</form>
|
</form>
|
||||||
<div class='tijiao' id="yytijiao">提交</div>
|
<div class='tijiao' id="yytijiao">提交</div>
|
||||||
</div>
|
</div>
|
||||||
@ -781,7 +795,7 @@ if ($act == 'newevent') {
|
|||||||
<div class='cptime' id='yftime'></div>
|
<div class='cptime' id='yftime'></div>
|
||||||
</div>
|
</div>
|
||||||
<div class='cptext-box'>
|
<div class='cptext-box'>
|
||||||
<textarea disabled='disabled' id='yftext' onblur="isFocusyf()"></textarea>
|
<textarea disabled='disabled' id='yftext' placeholder="添加研发中心对本节点的描述"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class='fujian-box'>
|
<div class='fujian-box'>
|
||||||
|
|
||||||
@ -789,13 +803,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'/>
|
<img class='tianjia' src='./assets/images/jia.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%>" style='opacity: 0; position: absolute;z-index: 1001;'/>
|
<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()" style='opacity: 0; position: absolute;z-index: 1001;'>
|
onchange="document.getElementById('uploader_yf').submit()" style='opacity: 0; position: absolute; top:20px; z-index: 1001;'>
|
||||||
</form>
|
</form>
|
||||||
<div class='tijiao' id="yftijiao">提交</div>
|
<div class='tijiao' id="yftijiao">提交</div>
|
||||||
</div>
|
</div>
|
||||||
@ -853,17 +867,20 @@ if ($act == 'newevent') {
|
|||||||
|
|
||||||
<script type="text/x-dot-template" id="fujian-dot">
|
<script type="text/x-dot-template" id="fujian-dot">
|
||||||
{{~it:item:index}}
|
{{~it:item:index}}
|
||||||
{{? item != ''}}
|
<img src="./assets/images/xiazai.png"/ class='xiazaiimg'>
|
||||||
<img src="./assets/images/xiazai.png"/>
|
<div id='cpfuinfo'>
|
||||||
<div id='cpfuinfo'>
|
<a href='http://leguevent.local{{= item.file}}' target="_blank">{{= item.name}}</a>
|
||||||
<a href='http://leguevent.local{{= item.file}}'>{{= item.name}}</a>
|
</div>
|
||||||
</div>
|
<img src="./assets/images/x.png" class='ximg' onclick="deletefujian('{{= item.key}}')"/>
|
||||||
{{??}}
|
{{~}}
|
||||||
<div class='fujian'>
|
</script>
|
||||||
<img src="./assets/images/fujian.png"/>
|
|
||||||
未添加附件
|
<script type="text/x-dot-template" id="fujiankong-dot">
|
||||||
</div>
|
{{~it:item:index}}
|
||||||
{{?}}
|
<div class='fujian'>
|
||||||
|
<img src="./assets/images/fujian.png"/>
|
||||||
|
未添加附件
|
||||||
|
</div>
|
||||||
{{~}}
|
{{~}}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@ -874,6 +891,31 @@ if ($act == 'newevent') {
|
|||||||
var dict = {};
|
var dict = {};
|
||||||
var notid;
|
var notid;
|
||||||
|
|
||||||
|
function deletefujian(id){
|
||||||
|
|
||||||
|
if("<?=$isxfvrole?>" != "1" && "<?=$isxfyyerole?>" != "1" && "<?=$canEdit?>" != "1" && "<?=$isgxvrole?>" != "1" && "<?=$isgxyyerole?>" != "1" && "<?=$isgxcperole?>" != "1" && "<?=$isgxyferole?>" != "1" && "<?=$canEdit?>" != "1")return
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url: './?app=uploader&act=del',
|
||||||
|
dataType: 'json',
|
||||||
|
data: {
|
||||||
|
id: notid,
|
||||||
|
key: id
|
||||||
|
},
|
||||||
|
success: function (res) {
|
||||||
|
console.log(res);
|
||||||
|
alert('删除成功');
|
||||||
|
showEventData(notid);
|
||||||
|
textdisabled();
|
||||||
|
},
|
||||||
|
error: function () {
|
||||||
|
alert('数据异常,请稍后重试!!!');
|
||||||
|
showEventData(notid);
|
||||||
|
textdisabled();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// function isFocusyf(){
|
// function isFocusyf(){
|
||||||
// var aa = $('#')
|
// var aa = $('#')
|
||||||
// $("#listyf").addClass('listhove');
|
// $("#listyf").addClass('listhove');
|
||||||
@ -949,7 +991,7 @@ if ($act == 'newevent') {
|
|||||||
var cptext = $("#cptext").val();
|
var cptext = $("#cptext").val();
|
||||||
var myDate = new Date();
|
var myDate = new Date();
|
||||||
var year = myDate.getFullYear(); //获取当前年份(2位)
|
var year = myDate.getFullYear(); //获取当前年份(2位)
|
||||||
var month = myDate.getMonth();
|
var month = myDate.getMonth()+1;
|
||||||
var day = myDate.getDate();
|
var day = myDate.getDate();
|
||||||
var branch = myDate.getHours(); //获取当前小时数(0-23)
|
var branch = myDate.getHours(); //获取当前小时数(0-23)
|
||||||
var second = myDate.getMinutes(); //获取当前分钟数(0-59)
|
var second = myDate.getMinutes(); //获取当前分钟数(0-59)
|
||||||
@ -971,10 +1013,12 @@ if ($act == 'newevent') {
|
|||||||
console.log(res);
|
console.log(res);
|
||||||
alert('提交成功');
|
alert('提交成功');
|
||||||
showEventData(notid);
|
showEventData(notid);
|
||||||
|
textdisabled();
|
||||||
},
|
},
|
||||||
error: function () {
|
error: function () {
|
||||||
alert('数据异常,请稍后重试!!!');
|
alert('数据异常,请稍后重试!!!');
|
||||||
showEventData(notid);
|
showEventData(notid);
|
||||||
|
textdisabled();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
@ -983,7 +1027,7 @@ if ($act == 'newevent') {
|
|||||||
var yytext = $("#yytext").val();
|
var yytext = $("#yytext").val();
|
||||||
var myDate = new Date();
|
var myDate = new Date();
|
||||||
var year = myDate.getFullYear(); //获取当前年份(2位)
|
var year = myDate.getFullYear(); //获取当前年份(2位)
|
||||||
var month = myDate.getMonth();
|
var month = myDate.getMonth()+1;
|
||||||
var day = myDate.getDate();
|
var day = myDate.getDate();
|
||||||
var branch = myDate.getHours(); //获取当前小时数(0-23)
|
var branch = myDate.getHours(); //获取当前小时数(0-23)
|
||||||
var second = myDate.getMinutes(); //获取当前分钟数(0-59)
|
var second = myDate.getMinutes(); //获取当前分钟数(0-59)
|
||||||
@ -1003,10 +1047,12 @@ if ($act == 'newevent') {
|
|||||||
console.log(res);
|
console.log(res);
|
||||||
alert('提交成功');
|
alert('提交成功');
|
||||||
showEventData(notid);
|
showEventData(notid);
|
||||||
|
textdisabled();
|
||||||
},
|
},
|
||||||
error: function () {
|
error: function () {
|
||||||
alert('数据异常,请稍后重试!!!');
|
alert('数据异常,请稍后重试!!!');
|
||||||
showEventData(notid);
|
showEventData(notid);
|
||||||
|
textdisabled();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
@ -1016,7 +1062,7 @@ if ($act == 'newevent') {
|
|||||||
var yftext = $("#yftext").val();
|
var yftext = $("#yftext").val();
|
||||||
var myDate = new Date();
|
var myDate = new Date();
|
||||||
var year = myDate.getFullYear(); //获取当前年份(2位)
|
var year = myDate.getFullYear(); //获取当前年份(2位)
|
||||||
var month = myDate.getMonth();
|
var month = myDate.getMonth()+1;
|
||||||
var day = myDate.getDate();
|
var day = myDate.getDate();
|
||||||
var branch = myDate.getHours(); //获取当前小时数(0-23)
|
var branch = myDate.getHours(); //获取当前小时数(0-23)
|
||||||
var second = myDate.getMinutes(); //获取当前分钟数(0-59)
|
var second = myDate.getMinutes(); //获取当前分钟数(0-59)
|
||||||
@ -1035,14 +1081,25 @@ if ($act == 'newevent') {
|
|||||||
console.log(res);
|
console.log(res);
|
||||||
alert('提交成功');
|
alert('提交成功');
|
||||||
showEventData(notid);
|
showEventData(notid);
|
||||||
|
textdisabled();
|
||||||
},
|
},
|
||||||
error: function () {
|
error: function () {
|
||||||
alert('数据异常,请稍后重试!!!');
|
alert('数据异常,请稍后重试!!!');
|
||||||
showEventData(notid);
|
showEventData(notid);
|
||||||
|
textdisabled();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
|
function textdisabled(){
|
||||||
|
$('#yytext').attr('disabled', false)
|
||||||
|
$('#yftext').attr('disabled', false)
|
||||||
|
$('#cptext').attr('disabled', false)
|
||||||
|
$("#upfujian_yy").hide();
|
||||||
|
$("#upfujian_cp").hide();
|
||||||
|
$("#upfujian_yf").hide();
|
||||||
|
}
|
||||||
|
|
||||||
var i = 0;
|
var i = 0;
|
||||||
|
|
||||||
function bianji() {
|
function bianji() {
|
||||||
@ -1545,28 +1602,47 @@ if ($act == 'newevent') {
|
|||||||
document.getElementById("yftext").innerHTML = yanfa_remark.msg;
|
document.getElementById("yftext").innerHTML = yanfa_remark.msg;
|
||||||
document.getElementById("yftime").innerHTML = yanfa_remark.date;
|
document.getElementById("yftime").innerHTML = yanfa_remark.date;
|
||||||
}
|
}
|
||||||
|
|
||||||
var fujian = JSON.parse(res.fujian);
|
|
||||||
console.log(fujian);
|
|
||||||
var arrcp = [];
|
var arrcp = [];
|
||||||
var arryy = [];
|
var arryy = [];
|
||||||
var arryf = [];
|
var arryf = [];
|
||||||
for (let i in fujian) {
|
// if(res.fujian != null){
|
||||||
if (fujian[i]['bumen'] == 'chanpin') {
|
var fujian = JSON.parse(res.fujian);
|
||||||
arrcp.push(fujian[i])
|
for (let i in fujian) {
|
||||||
console.log(arrcp);
|
if (fujian[i]['bumen'] == 'chanpin') {
|
||||||
|
arrcp.push(fujian[i])
|
||||||
|
} else if (fujian[i]['bumen'] == 'yunyig') {
|
||||||
|
arryy.push(fujian[i])
|
||||||
|
} else if (fujian[i]['bumen'] == 'yanfa') {
|
||||||
|
arryf.push(fujian[i])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
console.log(arrcp.length)
|
||||||
|
console.log(arryy.length)
|
||||||
|
console.log(arryf)
|
||||||
|
if(arrcp.length != 0){
|
||||||
tmpltxt = doT.template(document.getElementById("fujian-dot").innerHTML);//生成模板方法
|
tmpltxt = doT.template(document.getElementById("fujian-dot").innerHTML);//生成模板方法
|
||||||
document.getElementById("fujianname").innerHTML = tmpltxt(arrcp);//数据渲染
|
document.getElementById("fujianname").innerHTML = tmpltxt(arrcp);//数据渲染
|
||||||
} else if (fujian[i]['bumen'] == 'yunyig') {
|
}else {
|
||||||
arryy.push(fujian[i])
|
var data = "<div class='fujian'><img src='./assets/images/fujian.png'/>未添加附件</div>";
|
||||||
|
$('#fujianname').html(data);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(arryy.length != 0){
|
||||||
tmpltxt = doT.template(document.getElementById("fujian-dot").innerHTML);//生成模板方法
|
tmpltxt = doT.template(document.getElementById("fujian-dot").innerHTML);//生成模板方法
|
||||||
document.getElementById("yyfujian").innerHTML = tmpltxt(arryy);//数据渲染
|
document.getElementById("yyfujian").innerHTML = tmpltxt(arryy);//数据渲染
|
||||||
} else if (fujian[i]['bumen'] == 'yanfa') {
|
}else {
|
||||||
arryf.push(fujian[i])
|
var data = "<div class='fujian'><img src='./assets/images/fujian.png'/>未添加附件</div>";
|
||||||
|
$('#yyfujian').html(data);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(arryf.length != 0){
|
||||||
tmpltxt = doT.template(document.getElementById("fujian-dot").innerHTML);//生成模板方法
|
tmpltxt = doT.template(document.getElementById("fujian-dot").innerHTML);//生成模板方法
|
||||||
document.getElementById("yffujian").innerHTML = tmpltxt(arryf);//数据渲染
|
document.getElementById("yffujian").innerHTML = tmpltxt(arryf);//数据渲染
|
||||||
|
}else {
|
||||||
|
var data = "<div class='fujian'><img src='./assets/images/fujian.png'/>未添加附件</div>";
|
||||||
|
$('#yffujian').html(data);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
error: function () {
|
error: function () {
|
||||||
alert('数据异常,请稍后重试!!!')
|
alert('数据异常,请稍后重试!!!')
|
||||||
|
@ -15,6 +15,7 @@ if ($act == 'add') {
|
|||||||
$newName = "/uploader/{$id}.{$houzhui}";
|
$newName = "/uploader/{$id}.{$houzhui}";
|
||||||
|
|
||||||
$fileData[$id] = array(
|
$fileData[$id] = array(
|
||||||
|
"key" => $id,
|
||||||
"name" => $filename,
|
"name" => $filename,
|
||||||
"bumen" => r('bumen'),
|
"bumen" => r('bumen'),
|
||||||
"file" => $newName
|
"file" => $newName
|
||||||
|
Loading…
Reference in New Issue
Block a user