新增方法$.operate.get(url)

master
RuoYi 6 years ago committed by Limy
parent a7b3d22ce7
commit 8f94d100fa

@ -424,6 +424,10 @@
post: function(url, data) { post: function(url, data) {
$.operate.submit(url, "post", "json", data); $.operate.submit(url, "post", "json", data);
}, },
// get请求传输
get: function(url) {
$.operate.submit(url, "get", "json", "");
},
// 详细信息 // 详细信息
detail: function(id, width, height) { detail: function(id, width, height) {
var _url = $.common.isEmpty(id) ? $.table._option.detailUrl : $.table._option.detailUrl.replace("{id}", id); var _url = $.common.isEmpty(id) ? $.table._option.detailUrl : $.table._option.detailUrl.replace("{id}", id);

@ -39,7 +39,7 @@ $(window).load(function() {
options.imgSrc = e.target.result; options.imgSrc = e.target.result;
//根据MIME判断上传的文件是不是图片类型 //根据MIME判断上传的文件是不是图片类型
if((options.imgSrc).indexOf("image/")==-1){ if((options.imgSrc).indexOf("image/")==-1){
parent.layer.alert("文件格式错误,请上传图片类型,如JPG,JEPGPNG后缀的文件。", {icon: 2,title:"系统提示"}); $.modal.alertWarning("文件格式错误,请上传图片类型,如JPG,JEPGPNG后缀的文件。");
} else { } else {
cropper = $('.imageBox').cropbox(options); cropper = $('.imageBox').cropbox(options);
} }

Loading…
Cancel
Save