|
@@ -29,12 +29,12 @@
|
|
|
<div class="form-group">
|
|
|
<label class="col-sm-2 control-label">概要:</label>
|
|
|
<div class="col-sm-10">
|
|
|
- <input id="noticeOutline" name="noticeOutline" th:field="*{noticeOutline}" class="form-control" type="text" required maxlength="50">
|
|
|
+ <input id="noticeOutline" name="noticeOutline" th:field="*{noticeOutline}" class="form-control" type="text" required maxlength="1000">
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
|
|
|
|
|
- <input id="fmzFile" name="fmzFile" type="hidden"/>
|
|
|
+ <input id="fmzFile" name="fmzFile" type="hidden" th:field="*{fmzFileUrl}"/>
|
|
|
<label class="col-sm-2 control-label">封面图:</label>
|
|
|
<div class="col-sm-10">
|
|
|
<div class="fileinput fileinput-new" data-provides="fileinput">
|
|
@@ -127,11 +127,14 @@
|
|
|
var sHTML = $('.summernote').summernote('code');
|
|
|
$("#noticeContent").val(sHTML);
|
|
|
var file = $('#fmz').find('img').attr('src');
|
|
|
- if(file == undefined){
|
|
|
+ var pic = $('#fmzFile').val();
|
|
|
+ if(pic == undefined){
|
|
|
$.modal.alertWarning("请上传图片");
|
|
|
return;
|
|
|
}
|
|
|
- $('#fmzFile').val(file);
|
|
|
+ if (file != undefined) {
|
|
|
+ $('#fmzFile').val(file);
|
|
|
+ }
|
|
|
$.operate.save(prefix + "/edit", $('#form-notice-edit').serialize());
|
|
|
}
|
|
|
}
|