mirror of https://gitee.com/y_project/RuoYi.git
新增修改全屏/确认取消按钮
parent
6237ddb3dc
commit
0c76d45349
|
@ -391,8 +391,16 @@
|
||||||
shade: 0.3,
|
shade: 0.3,
|
||||||
title: title,
|
title: title,
|
||||||
content: url,
|
content: url,
|
||||||
|
btn: ['确定', '关闭'],
|
||||||
// 弹层外区域关闭
|
// 弹层外区域关闭
|
||||||
shadeClose: true
|
shadeClose: true,
|
||||||
|
yes: function(index, layero) {
|
||||||
|
var iframeWin = layero.find('iframe')[0];
|
||||||
|
iframeWin.contentWindow.submitHandler();
|
||||||
|
},
|
||||||
|
cancel: function(index) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
layer.full(index);
|
layer.full(index);
|
||||||
},
|
},
|
||||||
|
|
|
@ -37,12 +37,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
|
||||||
<div class="form-control-static col-sm-offset-9">
|
|
||||||
<button type="submit" class="btn btn-primary">提交</button>
|
|
||||||
<button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div th:include="include::footer"></div>
|
<div th:include="include::footer"></div>
|
||||||
|
@ -61,13 +55,16 @@
|
||||||
noticeTitle:{
|
noticeTitle:{
|
||||||
required:true,
|
required:true,
|
||||||
}
|
}
|
||||||
},
|
|
||||||
submitHandler: function(form) {
|
|
||||||
var sHTML = $('.summernote').code();
|
|
||||||
$("#noticeContent").val(sHTML);
|
|
||||||
$.operate.save(prefix + "/add", $('#form-notice-add').serialize());
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function submitHandler() {
|
||||||
|
if ($.validate.form()) {
|
||||||
|
var sHTML = $('.summernote').code();
|
||||||
|
$("#noticeContent").val(sHTML);
|
||||||
|
$.operate.save(prefix + "/add", $('#form-notice-add').serialize());
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -38,12 +38,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
|
||||||
<div class="form-control-static col-sm-offset-9">
|
|
||||||
<button type="submit" class="btn btn-primary">提交</button>
|
|
||||||
<button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div th:include="include::footer"></div>
|
<div th:include="include::footer"></div>
|
||||||
|
@ -66,13 +60,16 @@
|
||||||
xxxx:{
|
xxxx:{
|
||||||
required:true,
|
required:true,
|
||||||
},
|
},
|
||||||
},
|
|
||||||
submitHandler: function(form) {
|
|
||||||
var sHTML = $('.summernote').code();
|
|
||||||
$("#noticeContent").val(sHTML);
|
|
||||||
$.operate.save(prefix + "/edit", $('#form-notice-edit').serialize());
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function submitHandler() {
|
||||||
|
if ($.validate.form()) {
|
||||||
|
var sHTML = $('.summernote').code();
|
||||||
|
$("#noticeContent").val(sHTML);
|
||||||
|
$.operate.save(prefix + "/edit", $('#form-notice-edit').serialize());
|
||||||
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue