This commit is contained in:
罗松柏 2020-12-09 14:06:39 +08:00
parent dec09acc57
commit ed45134526

View File

@ -919,7 +919,7 @@ if ($act == 'newevent') {
function deletefujian(id){ function deletefujian(id){
if("<?=$isxfvrole?>" != "1" && "<?=$isxfyyerole?>" != "1" && "<?=$canEdit?>" != "1" && "<?=$isgxvrole?>" != "1" && "<?=$isgxyyerole?>" != "1" && "<?=$isgxcperole?>" != "1" && "<?=$isgxyferole?>" != "1" && "<?=$canEdit?>" != "1")return if("<?=$isxfvrole?>" != "1" && "<?=$isxfyyerole?>" != "1" && "<?=$canEdit?>" != "1" && "<?=$isgxvrole?>" != "1" && "<?=$isgxyyerole?>" != "1" && "<?=$isgxcperole?>" != "1" && "<?=$isgxyferole?>" != "1" && "<?=$canEdit?>" != "1")return
if (confirm("确定删除该附件?")) { if (confirm("确定删除该附件?")) {
$.ajax({ $.ajax({
url: './?app=uploader&act=del', url: './?app=uploader&act=del',
dataType: 'json', dataType: 'json',
@ -931,12 +931,12 @@ if ($act == 'newevent') {
console.log(res); console.log(res);
alert('删除成功'); alert('删除成功');
showEventData(notid); showEventData(notid);
textdisabled(); // textdisabled();
}, },
error: function () { error: function () {
alert('数据异常,请稍后重试!!!'); alert('数据异常,请稍后重试!!!');
showEventData(notid); showEventData(notid);
textdisabled(); // textdisabled();
} }
}); });
} }